blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
374c960f285d4baaf8c9ce3b8205ea9135cd46b5 | d571d407cfda435fcab8b7ccadb1be812c7047c7 | /guild/tests/samples/projects/flags-dest/submod.py | 6416966dcb06abb15601a3c47796545306d1ac5c | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | guildai/guildai | 2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af | 149055da49f57eaf4aec418f2e339c8905c1f02f | refs/heads/main | 2023-08-25T10:09:58.560059 | 2023-08-12T20:19:05 | 2023-08-12T20:19:05 | 105,057,392 | 833 | 86 | Apache-2.0 | 2023-08-07T19:34:27 | 2017-09-27T18:57:50 | Python | UTF-8 | Python | false | false | 169 | py | import argparse
p = argparse.ArgumentParser()
p.add_argument("--bar", default=456)
if __name__ == "__main__":
args = p.parse_args()
print("bar: %s", args.bar)
| [
"g@rre.tt"
] | g@rre.tt |
4be16408f688e6b5cb887f4a18ae62b9a56fd20a | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/parser/template/node_tests/richmedia_tests/test_carousel.py | 00edd17c4ac2091155b647b8e43f064c5c9e3f10 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
21c0443c59c65a77addd1fcc15d3b94c4b037acc | 7884d75d9835493ff627d0468e94fe7a838a6aa1 | /ocr_server/restapi/recognize.py | ff03aad6edbfd4381bcff7e6a1e274ae8b269893 | [] | no_license | fjibj/OCRServer | d2c7c5217046ffbec6f2affdd1c77379f9453d67 | e23c23198fc89feb2f714faf2d022b1e21ac2151 | refs/heads/master | 2020-03-18T18:50:51.501629 | 2017-01-18T08:35:40 | 2017-01-18T08:35:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import yaml
CONFIG_PATH = './recognize/config.yaml'
CONFIG_DATA = {}
def loadConfig():
global CONFIG_DATA
f = open(CONFIG_PATH, encoding='utf-8')
CONFIG_DATA = yaml.safe_load(f)
f.close()
for name in CONFIG_DATA:
config = CONFIG_DATA[name]
... | [
"="
] | = |
62fd7f83ae140306bbea3251e99b3e08f097a951 | 61dfa0ac80a6979d135e969b5b7b78a370c16904 | /analysis/projections/get_projection_alpha_dm.py | 7abcc8371fcb01ab5adfeceb45330d9e01e88595 | [] | no_license | bvillasen/cosmo_tools | 574d84f9c18d92d2a9610d1d156113730d80f5a4 | 6bb54534f2242a15a6edcf696f29a3cf22edd342 | refs/heads/master | 2021-07-13T06:43:32.902153 | 2020-10-05T21:17:30 | 2020-10-05T21:17:30 | 207,036,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | import sys, os
import numpy as np
import h5py as h5
import matplotlib.pyplot as plt
# from mpl_toolkits.axes_grid1 import make_axes_locatable
# import matplotlib.transforms as tfrms
# import matplotlib
# import matplotlib as mpl
# mpl.rcParams['savefig.pad_inches'] = 0
# import palettable.cmocean.sequential as colors
... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
5b2179a2439730b1162882adb56bcf9da6062535 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008.1/applications/games/simutrans-waste/actions.py | 9fcfaccbd3668b1ec6905a88338d406b19946b22 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
import os
def fixperms(d):
for root, dirs, files in os.walk(d):
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
9ce8ba8ed02d447b630541ebffebfeb1900a1f8a | 83c62d10899b4e5d7028915a9f727bcdec0f861c | /reports/tests.py | e868d5496f433f94b227b269b675d01567a51c08 | [
"Apache-2.0"
] | permissive | meetjitesh/cito_engine | 1b70139d762a9540bc40d2544ff4c9884de4eef3 | ae63ff1147fa1c536dc2673e873768e5624b40bb | refs/heads/master | 2020-12-26T10:45:52.137856 | 2014-05-18T14:19:38 | 2014-05-18T14:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """Copyright 2014 Cyrus Dasadia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | [
"cyrus@extremeunix.com"
] | cyrus@extremeunix.com |
64217402f5ba7531d6d16c011e9923000e824b9a | 919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2 | /conans/test/integration/cache/test_home_special_char.py | 9c8ad39a70060a614aa24ffe500e1e6c0b312817 | [
"MIT"
] | permissive | thorsten-klein/conan | 1801b021a66a89fc7d83e32100a6a44e98d4e567 | 7cf8f384b00ba5842886e39b2039963fc939b00e | refs/heads/develop | 2023-09-01T12:04:28.975538 | 2023-07-26T10:55:02 | 2023-07-26T10:55:02 | 150,574,910 | 0 | 0 | MIT | 2023-08-22T14:45:06 | 2018-09-27T11:16:48 | Python | UTF-8 | Python | false | false | 2,319 | py | import os
import platform
import pytest
from conans.test.utils.test_files import temp_folder
from conans.test.utils.tools import TestClient
import textwrap
_path_chars = "päthñç$"
@pytest.fixture(scope="module")
def client_with_special_chars():
""" the path with special characters is creating a conanbuild.bat... | [
"noreply@github.com"
] | thorsten-klein.noreply@github.com |
2fd3bcd0b1e0a265de56a4a6fcf68eb7015bb7eb | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/sngakh004/question4.py | 64ef79e9395c406a90e97ab814688ab603b0c013 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | """Akhil Singh
SNGAKH004
Program to draw a histogram of class mark data.
23 April 2014"""
#Get class marks from user
class_mark=input("Enter a space-separated list of marks:\n")
#Converting a string into a list of intergers
class_mark=class_mark.split()
for a in range(len(class_mark)):
class_mark[a]=ev... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
4370fe568105d6947b4b17e170453c6a279fbf30 | 3f3471faa4a693fb18adb651500753f637ab1916 | /book.py | 65bdcf54cb5837e194d347af766617add40fcbf4 | [] | no_license | sarte3/pj5 | 1f7a54fc5a6e78a3e803416787ea32c3626761cd | afdb2dd49292c8647f9dec5a061a8d4f1bba06d7 | refs/heads/master | 2023-03-06T04:11:22.607225 | 2021-02-25T05:17:36 | 2021-02-25T05:17:36 | 342,131,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | from datetime import datetime
import pandas as pd
import matplotlib.pyplot as plt
# 한글처리
from matplotlib import font_manager, rc
fontname = font_manager.FontProperties(fname='malgun.ttf').get_name()
rc('font', family=fontname)
import json
import os
import sys
import urllib.request
client_id = "twrhEE4LU8HoKxIrMwzM"
... | [
"sarte@outlook.kr"
] | sarte@outlook.kr |
e548f54d3a7c8da2d51938e1da6415835d9d5685 | 94f156b362fbce8f89c8e15cd7687f8af267ef08 | /midterm/main/permissions.py | 57ee4beb272ac8cfc9255ea149ac2f53b1a21476 | [] | no_license | DastanB/AdvancedDjango | 6eee5477cd5a00423972c9cc3d2b5f1e4a501841 | 2b5d4c22b278c6d0e08ab7e84161163fe42e9a3f | refs/heads/master | 2020-07-17T19:21:16.271964 | 2019-12-03T21:58:51 | 2019-12-03T21:58:51 | 206,081,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from rest_framework.permissions import IsAuthenticated, BasePermission
from users.models import MainUser
class ProductPermission(BasePermission):
message = 'You must be the authenticated.'
def has_permission(self, request, view):
if view.action is 'create':
return request.user.is_superuser... | [
"dastan211298@gmail.com"
] | dastan211298@gmail.com |
7bbe3d2066efd578b09eee3aee8ab3d57cc65694 | c95310db610fd4ca1899903d3982d0733c2c693d | /problems/reverse_bits/solution.py | 5fbfca10974c1a7d264cfe02ae82088da1d3273a | [] | no_license | findcongwang/leetcode | e8cbc8899a6af2134de66d6ff1a1ead4c10d38e6 | f52ea63fc0680613a3ebf3f3b4e4f1be7bbfd87c | refs/heads/main | 2023-02-25T17:33:41.270128 | 2021-01-29T17:57:15 | 2021-01-29T17:57:15 | 306,998,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | class Solution:
def reverseBits(self, n: int) -> int:
count = 31
num = 0
while n > 0:
num = num + ((n&1) * 2**count)
n = n >> 1
count -= 1
return num | [
"findcongwang@gmail.com"
] | findcongwang@gmail.com |
acc0a1be6531ff69b956ab61565fa4ebda0839ee | 5cc94ad2377777067e7e9fad08823f201b790a63 | /github-backup | 94c4a4a40db48d1d39243f0149b93648e9e996ca | [] | no_license | rrosajp/github-backup | 86ea44a6addd24072cfe150de2be4c4a71310720 | a538de0bd0a29b82f4cc669cf60132aa83548469 | refs/heads/master | 2022-03-17T23:15:25.856395 | 2019-11-27T19:02:35 | 2019-11-27T19:02:35 | 273,772,938 | 1 | 0 | null | 2020-06-20T19:37:44 | 2020-06-20T19:37:43 | null | UTF-8 | Python | false | false | 4,511 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# github_backup.py
#
# Copyright 2017 Spencer McIntyre <zeroSteiner@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source cod... | [
"zeroSteiner@gmail.com"
] | zeroSteiner@gmail.com | |
3fb43fde0c3c30ff359ad45502555447f39d8cdb | 6543e5bfec2f2d89ac6a7e42e8f38d2f3df26615 | /1306JumpGameIII.py | 5545d7464d227a8cbade8389f59323cc7f68b298 | [] | no_license | adityachhajer/LeetCodeSolutions | bc3136fa638a3b2c7d35e419a063e9ce257bc1af | 693fd3aef0f823f9c3cfc14c3d1010584b7a762d | refs/heads/master | 2023-02-17T08:21:00.064932 | 2021-01-19T14:05:08 | 2021-01-19T14:05:08 | 270,973,258 | 2 | 1 | null | 2020-09-30T18:30:21 | 2020-06-09T10:33:39 | Python | UTF-8 | Python | false | false | 532 | py | class Solution:
def solve(self,arr,start,ans):
if start>=len(arr) or start<0:
return False
elif arr[start]==0:
# ans[start]=True
return True
elif ans[start]==1:
return False
else:
ans[start]=1
return self.... | [
"noreply@github.com"
] | adityachhajer.noreply@github.com |
fe1a0e8c9ddaa1a7fa94404a66e4dc8769440385 | e2a006a139330bca613169e547e185b1a5048646 | /L8/busca_punto.py | a31fad5cb4ef87ebcb323606529b9ccf720bee06 | [] | no_license | Mi7ai/EI1022 | 013d54d470b38c125503c0173b355cc7bc681784 | f80d5b4f99e1427fd5c2673499a3eee0d1dfc1ca | refs/heads/master | 2020-03-29T13:54:58.231532 | 2018-12-05T13:50:27 | 2018-12-05T13:50:27 | 149,988,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py |
def busca_punto_rec(v):
def rec(b: int, e:int ):
if e-b == 0: return None
h = (b+e)//2
if v[h] < h:
return rec(h,e)
elif v[h] > h:
return rec(b,h)
else:
return h
return rec(0, len(v))
#para acasa hacrlo sin recursividad
# def busca_p... | [
"hottmayer@gmail.com"
] | hottmayer@gmail.com |
7e8185b954c7aad21024d466b6adf503e4442918 | 4664bb1572d1d9bb90f99a11016d0fbe9b28c632 | /search/utils/constants.py | 647ceca9fa4eb44b99e06938b96dd418393a4d69 | [] | no_license | prdx/Indexer | 32cfbf05dfec595c00550322859260c15a2906e8 | 08b52734b293cb2f0a57ed74d818ece70425711f | refs/heads/master | 2020-03-22T23:22:27.947273 | 2018-07-20T16:27:40 | 2018-07-20T16:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | class Constants:
CACHE_PATH = './cache/'
DATA_PATH = './AP_DATA/ap89_collection/'
DOC_TYPE = 'document'
DOCLIST_PATH = './AP_DATA/processed_doclist.txt'
ES_SCRIPTS_PATH = './es/'
INDEX_NAME = 'ap89_collection'
MAX_OUTPUT = 1000
RESULTS_PATH = './results/'
STOPWORDS_PATH = './AP_DATA... | [
"astungkara.project@gmail.com"
] | astungkara.project@gmail.com |
d3b38d9183e453184a9cbc3ba6574a778fc49705 | 74649c1220c68ad0af79e420d572e3769fcd7a53 | /_unittests/ut_documentation/test_run_notebooks_onnx_viz.py | 6a0613ce77a5e839c1437dc40f2a84f34aab0076 | [
"MIT"
] | permissive | sdpython/mlprodict | e62edcb428700cb2c4527e54e96431c1d2b36118 | 27d6da4ecdd76e18292f265fde61d19b66937a5c | refs/heads/master | 2023-05-08T10:44:30.418658 | 2023-03-08T22:48:56 | 2023-03-08T22:48:56 | 112,469,804 | 60 | 13 | MIT | 2023-04-19T01:21:38 | 2017-11-29T11:57:10 | Python | UTF-8 | Python | false | false | 991 | py | # -*- coding: utf-8 -*-
"""
@brief test log(time=30s)
"""
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
from pyquickhelper.pycode import (
add_missing_development_version, ExtTestCase
)
import mlprodict
class TestNo... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
82a1fc92fe198a109b3287ee4730928c9d081839 | 1978a9455159b7c2f3286e0ad602652bc5277ffa | /exercises/04_data_structures/task_4_8.py | e089dd1a02e42d41758421e563cf86a42a9f841c | [] | no_license | fortredux/py_net_eng | 338fd7a80debbeda55b5915dbfba4f5577279ef0 | 61cf0b2a355d519c58bc9f2b59d7e5d224922890 | refs/heads/master | 2020-12-03T17:32:53.598813 | 2020-04-08T20:55:45 | 2020-04-08T20:55:45 | 231,409,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | # -*- coding: utf-8 -*-
'''
Задание 4.8
Преобразовать IP-адрес в двоичный формат и вывести на стандартный поток вывода вывод столбцами, таким образом:
- первой строкой должны идти десятичные значения байтов
- второй строкой двоичные значения
Вывод должен быть упорядочен также, как в примере:
- столбцами
- ширина стол... | [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
920f4452d90e699d289148b8978d08ac6d9ab071 | ca9ab449331c31c1046ddbdd09a7079a65024a8a | /data_structure/dict/dictionary-basic.py | f66a2c66a35de603ed5c996bb9c524f11ebfc656 | [] | no_license | linth/learn-python | 95947fd40f578d4473496c263ab45a7459fe4773 | 33c36b45c0dc46cf6d9a5d1237b63c8c2442b3fd | refs/heads/master | 2023-04-28T17:08:06.473326 | 2023-04-24T17:09:41 | 2023-04-24T17:09:41 | 172,464,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # dictionary: key and value.
dict = {
"name": "George",
"year": 2019,
"sex": "boy",
"weight": 78,
"height": 190,
}
print(dict)
# get value
print(dict['year']) # first way to get value.
x = dict.get('year') # another way to get value.
print(x) # 2019.
# change value
dict['year'] = 2000
print(dict[... | [
"zhua0404@gmail.com"
] | zhua0404@gmail.com |
d348b2ed798851b3ca34bbfdcb624c6df23eb785 | b107883be08ea56bd3a56ddb0e2dd8dacce7db2e | /src/polystar/pipeline/keras/trainer.py | db62a563eeff68041d0a316b49186f70f8caffa3 | [] | no_license | PolySTAR-mtl/cv | ef7977b62577e520f6c69a9b7891c7f38e307028 | 27564abe89e7dff612e3630c31e080fae4164751 | refs/heads/master | 2023-05-01T16:45:19.777459 | 2021-05-30T10:36:10 | 2021-05-30T10:36:10 | 356,053,312 | 0 | 0 | null | 2021-05-30T10:36:11 | 2021-04-08T21:32:06 | Python | UTF-8 | Python | false | false | 1,427 | py | from dataclasses import dataclass, field
from typing import List
from numpy.core._multiarray_umath import ndarray
from tensorflow.python.keras.callbacks import Callback
from tensorflow.python.keras.models import Model
from polystar.pipeline.keras.compilation_parameters import KerasCompilationParameters
from polystar.... | [
"mathieu@feedly.com"
] | mathieu@feedly.com |
02ae2bc23f3e2eb1ae2eaa25d2b06540fd152327 | 109a8fb3e17ccf1efa6057d59441933ce678c2f0 | /app/schemas/user_schema.py | 39d4e7768ecc51aca1201755f784f6fcb9b635f7 | [] | no_license | oulabla/rest_test | 8daac7db642adb72a07a9662920bcbfd7b750fbf | fad8eb7bd253271706518b3ba6f117997ba08dfa | refs/heads/main | 2023-08-27T07:39:15.079957 | 2021-10-15T15:56:02 | 2021-10-15T15:56:02 | 416,887,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from marshmallow import fields
from . import BaseSchema
from marshmallow_sqlalchemy import auto_field
from marshmallow.fields import Date
from marshmallow_sqlalchemy.fields import Nested
from app.models.user import User
from app.schemas.role_schema import RoleSchema
from app.schemas.phone_schema import PhoneSchema
... | [
"="
] | = |
4db4ead4d9e8fc01e987b14c56aca330364ea2b7 | 6920575dc95c6800fb8e8088719afa88931281b5 | /tests/validator/test_validating_a_motion.py | 8f6a6c4882be98bfdbdde320c887b6a363fa5e59 | [] | no_license | pipermerriam/ethereum-alarm-governance | 091de3a3f72c95e097a24bd05a1d7ebe4738a01b | 1b4a9a0355976f92e88396582a64fdfb50bbe858 | refs/heads/master | 2023-08-28T09:39:44.191755 | 2016-02-15T22:18:18 | 2016-02-15T22:18:18 | 47,724,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import pytest
deploy_contracts = []
ONE_DAY = 24 * 60 * 60
@pytest.mark.parametrize(
"quorium,pass_percentage,debate_period,executor,expected",
(
(10000, 51, ONE_DAY, "0xd3cda913deb6f67967b99d67acdfa1712c293601", True),
(10001, 51, ONE_DAY, "0xd3cda913deb6f67967b99d67acdfa1712c293601", Tru... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
ce88bf7af10a89c8474dffc2a82e54e04c1d6a2b | 56ffce29f0d27f83206e11870d95982c38524aae | /apweb/site/configure.py | e40a59ea7cfb45c55048ca631afb93938572dc5f | [] | no_license | adamandpaul/apweb | cce365085e2ee58cfbc31544c5a7414e67ad56b4 | b1bb81fa7d7b39f19e187462aa3447ff482b46af | refs/heads/master | 2022-10-19T02:09:52.437906 | 2021-05-21T06:10:08 | 2021-05-21T06:10:08 | 201,398,036 | 0 | 3 | null | 2022-09-21T21:39:41 | 2019-08-09T05:41:06 | Python | UTF-8 | Python | false | false | 1,316 | py | # -*- coding:utf-8 -*-
from .password_login_provider import PasswordLoginProvider
from .resource import Site
import apweb.authentication
def site_factory(request):
"""Return a default site factory"""
return Site.from_request(request)
def get_user_for_unauthenticated_userid(request):
email = request.un... | [
"arterrey@gmail.com"
] | arterrey@gmail.com |
c948ad237c590dfd89ae5e491450ac4895fbb550 | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/181.py | 20a43d86dda37f41451faaad66761d0cd6d16b34 | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | def countBirths():
ret = []
for y in range(1880, 2015):
count = 0
filename = 'names/yob%d.txt' %y
with open(filename, 'r') as f:
data = f.readlines()
for d in data:
if d[-1] == '\n':
d = d[:-1]
b... | [
"jsh2333@gmail.com"
] | jsh2333@gmail.com |
81e1ff36d764ebf2d6e179a45efa2e2ac9a119f4 | 71a7ed5dd56b89aea1795a3db1469e3006be783f | /configs/body/2d_kpt_sview_rgb_img/deeppose/coco/res50_coco_256x192.py | 2d2b20fa49d0e23356d688081388809183364474 | [
"Apache-2.0"
] | permissive | RunningLeon/mmpose | b6091416a2565778a1438b23edaa6620a2088a3e | 9ef202c0a4b2c28add32b530caf2ea0354843fe4 | refs/heads/master | 2023-06-30T04:46:52.917877 | 2021-08-05T08:54:24 | 2021-08-05T08:54:24 | 335,275,684 | 0 | 0 | Apache-2.0 | 2021-02-02T12:06:57 | 2021-02-02T12:06:57 | null | UTF-8 | Python | false | false | 3,956 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP', save_best='AP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=None)
# learning pol... | [
"noreply@github.com"
] | RunningLeon.noreply@github.com |
86fcf6c74099436224d26ca4ccd9c27e498fcc0c | 11f7add72635ad985b3e98fd77e9426e8c74ab08 | /growthintel/growthintel.py | 7d641b9bad3fbb521fa21f28b0a5e9ec17603326 | [] | no_license | harshdarji/python | afa6b11338504567ece8bb1e78e841d13716ff14 | 8bad854304f423264b7b0724b87c7cd7de748cd6 | refs/heads/master | 2020-12-31T01:48:04.439466 | 2012-09-13T09:22:58 | 2012-09-13T09:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | APIKey="00a5f2164e5e49b29981ddcbe9df7d7c"
import parse
import json
output={"type":"FeatureCollection","features":[]}
postcodes=["AB","AL","B","BA","BB","BD","BH","BL","BN","BR","BS","BT","CA","CB","CF","CH","CM","CO","CR","CT","CV","CW","DA","DD","DE","DG","DH","DL","DN","DT","DY","E","EC","EH","EN","EX","FK","FY","G"... | [
"jeromecukier@gmail.com"
] | jeromecukier@gmail.com |
32d654a348320c21302268c73278d97e9540c221 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GLES2/NV/framebuffer_blit.py | ada66373b0f3e2262f88cc60a536d0ce0840c18b | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.constant import Constant as _C
# End users want this...
from OpenGL.raw.GLES2 import _errors
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
_EXTENSION_NAME = 'GLES2_NV_framebuffer_blit'
def ... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
c520dd7bddfc90caab08af4bb0a8517af01ac98a | 0422bca79c61ee4630f7c762e77ca9780b05e3ff | /pattern/text/nl/parser/__init__.py | 590127d45bbbde61c6675e815462d4cc4e8842d0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kkoch986/pattern | 69ac11d12ea4fd2bb581e3343bca021cf6e46c92 | db807c888dcd15f515afe31753c9b0345a11b542 | refs/heads/master | 2021-01-18T04:26:13.078631 | 2013-02-14T03:29:25 | 2013-02-14T03:29:25 | 8,186,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | #### PATTERN | NL | RULE-BASED SHALLOW PARSER ######################################################
# Copyright (c) 2010 Jeroen Geertzen and University of Antwerp, Belgium
# Authors: Jeroen Geertzen (Dutch language model), Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips... | [
"tom@organisms.be"
] | tom@organisms.be |
cfd7b02747987b034cf4487a4f0d184a14a698da | 43a4fd934407a963c876dc1b15fd7052e693592b | /GearBot/Util/RaidHandling/RaidShield.py | 2920e7cee1e644e445fd3d504d578a43fb9c6170 | [
"MIT"
] | permissive | mrkirby153/GearBot | aa02fdd32bec292a54e8e3805bd829f16522cdc8 | a61d936c12e906c7bcfaa840a585ee25ffc06138 | refs/heads/master | 2020-05-29T18:59:55.450101 | 2019-06-02T09:54:18 | 2019-06-02T09:54:18 | 189,318,104 | 0 | 0 | MIT | 2019-05-30T00:31:06 | 2019-05-30T00:31:06 | null | UTF-8 | Python | false | false | 1,444 | py | from Util import GearbotLogging
from Util.RaidHandling import RaidActions
class RaidShield:
def __init__(self, shield_info) -> None:
self.shield_name=shield_info["name"]
self.start_actions = [action for action in shield_info["actions"]["triggered"]]
self.raider_actions = [action for actio... | [
"aenterprise2@gmail.com"
] | aenterprise2@gmail.com |
c35ac0e38e1bf86dd30321937444199e6b545717 | 478009111504d54f45490f71c1e61190ecfede3f | /sesion_4/test_xl2.py | 54fc999f79dc94a336ef6161315e7708b6b13766 | [] | no_license | BeatrizInGitHub/python-sci | 9938c406e9642385d602971e985668765dfabbfa | d8ed9656184b5f08d41430ed5a770dc6f4550893 | refs/heads/master | 2020-05-22T19:46:08.065601 | 2017-02-26T02:15:31 | 2017-02-26T02:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from openpyxl import load_workbook
wb = load_workbook("Libro1.xlsx")
ws = wb["Hoja1"]
cells = ws["C4:F10"]
mat = []
for r in cells:
row = []
for cell in r:
x = cell.value
row.append(x)
mat.append(row)
print mat
x = ws["C4"].value
x = mat[0][0] | [
"badillo.soft@hotmail.com"
] | badillo.soft@hotmail.com |
51cf140ce032eb19a30ee3990d6bf89971df2ab8 | c1fcdd80101aeae0ba8b4ae0e229f58ed58fd41f | /testPredictor.py | fe7bea830d5e4f619513d78c2e0e5b9ab4ea4023 | [] | no_license | luizgh/ModelEvaluation | 367432f0456052f539c61766b00f1f59bc5fa3a5 | 2933918276d0dcc42d484d9163c4b6c9ea32f26a | refs/heads/master | 2016-09-06T04:15:11.140896 | 2014-03-19T00:07:46 | 2014-03-19T00:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import unittest
from Predictor import Predictor
from TestUtils import *
class testPredictor(unittest.TestCase):
def testAll(self):
logProbabilities = numpy.asarray([[0.4, 0.80, 0.50],
[0.45, 0.4, 0.41],
[0.4, 0.41, ... | [
"luiz.gh@gmail.com"
] | luiz.gh@gmail.com |
a0b726ca16865f5077e8d0a563538ac2f6752e45 | 874153914c2784eb164c271e4a68c01265e5ce7f | /tool/module/arkon_config.py | a6a18adaf5c5f245e552d73e4e0c95d158b9cff6 | [
"Apache-2.0"
] | permissive | random-archer/mkinitcpio-systemd-tool | 3c6f572244fb84e9eab4fa1291d4e5526a614751 | 5685070783975c934c517d603bcfd614f8b194a3 | refs/heads/master | 2023-08-17T20:52:13.040297 | 2022-12-21T14:20:10 | 2022-12-21T14:20:10 | 59,916,137 | 108 | 29 | NOASSERTION | 2023-08-13T09:35:00 | 2016-05-28T22:00:58 | Python | UTF-8 | Python | false | false | 2,750 | py | #!/usr/bin/env python
#
# shared config for build/setup/verify cycle
#
import os
import datetime
import nspawn
# detect build system
def has_ci_azure():
return "AZURE_EXTENSION_DIR" in os.environ
# no http proxy in azure
if has_ci_azure():
nspawn.CONFIG['proxy']['use_host_proxy'] = 'no'
nspawn.CONFIG... | [
"andrei.pozolotin@gmail.com"
] | andrei.pozolotin@gmail.com |
9b66a0e02508ee60fbd50d1de623179d0ef4f34b | 9cec93a18ea94504947820205d0faae4d67ecd8d | /H2TauTau/python/eventContent/common_cff.py | cd998b53c2a17602f3659cbf83da20caa949c0ea | [] | no_license | DESY-CMS-SUS/cmgtools-lite | de88b1d5dc20a925ed5b7c7be69fa3ef677955c6 | db52d50047178563a0eb7f5858ae100aa408ec68 | refs/heads/8_0_25 | 2021-05-23T04:36:22.900460 | 2017-11-09T10:32:41 | 2017-11-09T10:32:41 | 60,184,794 | 3 | 9 | null | 2021-02-17T23:22:12 | 2016-06-01T14:37:18 | Python | UTF-8 | Python | false | false | 1,693 | py | import copy
common = [
# 'drop *',
'keep double_fixedGridRho*_*_*',
'keep edmTriggerResults_TriggerResults_*_*',
'keep patPackedTriggerPrescales_*_*_*',
'keep patElectrons_slimmedElectrons_*_*',
'keep patJets_slimmedJets_*_*',
'keep patJets_patJetsReapplyJEC_*_*',
'keep patMETs_slimmedM... | [
"jan.steggemann@cern.ch"
] | jan.steggemann@cern.ch |
2e29fe62e754d295f00d590bcd2ce5ca0afddcf2 | 5ef2ebd4334769955cff15a03f5956b0fac6ba52 | /docs/conf.py | 15332c991b4e2357f380f776c35bd8c2c007fe0e | [
"BSD-3-Clause-Modification"
] | permissive | smurfix/repoze.retry | b58bf0b1e96e995d8631e03d1eb51cea84bb2a3c | 0b7eae20b2ae29180bc36a5549ae9e54e5b6a7bd | refs/heads/master | 2021-01-17T08:00:17.562716 | 2013-12-03T09:16:39 | 2013-12-03T09:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | # -*- coding: utf-8 -*-
#
# repoze.retry documentation build configuration file, created by
# sphinx-quickstart on Mon Aug 9 08:03:46 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"tseaver@palladion.com"
] | tseaver@palladion.com |
cf586d21d70ab55c9b7d5a8e1e146b94a0e7493b | 4ba18540bfd8c523fe39bbe7d6c8fa29d4ec0947 | /atlas/foundations_events/src/test/consumers/jobs/queued/test_queued_job_notifier.py | d0480777c4e91860a0d9142ea598f1e067386f54 | [
"BSD-3-Clause",
"MIT",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | yottabytt/atlas | c9d8ef45a0921c9f46d3ed94d42342f11488a85e | b040e574fbc64c833039b003f8a90345dd98e0eb | refs/heads/master | 2022-10-14T11:12:12.311137 | 2020-06-13T13:19:35 | 2020-06-13T13:19:35 | 272,008,756 | 0 | 0 | Apache-2.0 | 2020-06-13T12:55:29 | 2020-06-13T12:55:28 | null | UTF-8 | Python | false | false | 1,369 | py |
import unittest
from mock import Mock
from foundations_spec.helpers import *
from foundations_spec.helpers.spec import Spec
class TestQueuedJobNotifier(Spec):
job_notifier = let_mock()
@let
def consumer(self):
from foundations_events.consumers.jobs.queued.job_notifier import JobNotifier
... | [
"mislam@squareup.com"
] | mislam@squareup.com |
eb8e03b50b9cf04c181f5fd214e1461f869755bb | beea119ff63911711c906ea82cd7c8fa0b33f149 | /src/oscar/apps/dashboard/catalogue/mixins.py | b924a7dbbda53e107a9875e6c67e2c80b06ce6bc | [
"MIT"
] | permissive | benjaminbills/fundizshop | 6157316182ffa0045d68737315682c361f968ce9 | b5d09f70c0a728c74efa72a37b03efef2bed9d3d | refs/heads/master | 2023-06-21T19:05:08.120925 | 2021-07-13T05:00:15 | 2021-07-13T05:00:15 | 379,179,978 | 1 | 4 | MIT | 2021-07-07T09:18:29 | 2021-06-22T07:27:11 | Python | UTF-8 | Python | false | false | 529 | py | class PartnerProductFilterMixin:
def filter_queryset(self, queryset):
"""
Restrict the queryset to products the given user has access to.
A staff user is allowed to access all Products.
A non-staff user is only allowed access to a product if they are in at
least one stock rec... | [
"paulkush7777@gmail.com"
] | paulkush7777@gmail.com |
40ff46ac61dab69c55f35bf02697ae1ce5adca82 | 88841c4b8c8a2d8c12186105510d325ff84324a5 | /scripts/artifacts/bluetoothOther.py | 111a4684b9a7165e034b4f586b0c34ae67aa8dad | [
"MIT"
] | permissive | mastenp/iLEAPP | 404b8aca6b6bc6fab04240fdccf822839bade1e1 | ee40ef7505b36d0b9b04131f284a9d4d036514a5 | refs/heads/master | 2022-12-26T07:55:17.905307 | 2020-09-29T11:58:16 | 2020-09-29T11:58:16 | 272,011,420 | 1 | 0 | MIT | 2020-09-29T11:58:17 | 2020-06-13T13:12:05 | Python | UTF-8 | Python | false | false | 1,198 | py | import glob
import os
import sys
import stat
import pathlib
import plistlib
import sqlite3
import json
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows
def get_bluetoothOther(files_found, report_folder, seeker):
file_found = str(files_... | [
"abrignoni@gmail.com"
] | abrignoni@gmail.com |
d7f81f1b456b403d5cfaa53ae22d927009042b7d | 8a73cde463081afd76427d5af1e6837bfa51cc47 | /service/surf/apps/filters/metadata.py | 49cdddb85d42d447a04530c4871e5959605a61e7 | [
"MIT"
] | permissive | surfedushare/search-portal | 8af4103ec6464e255c5462c672b30f32cd70b4e1 | 63e30ad0399c193fcb686804062cedf3930a093c | refs/heads/acceptance | 2023-06-25T13:19:41.051801 | 2023-06-06T13:37:01 | 2023-06-06T13:37:01 | 254,373,874 | 2 | 1 | MIT | 2023-06-06T12:04:44 | 2020-04-09T13:07:12 | Python | UTF-8 | Python | false | false | 2,079 | py | from collections import defaultdict
import requests
from django.conf import settings
from django.utils.functional import cached_property
class MetadataTree(object):
harvester_url = None
api_token = None
def __init__(self, harvester_url, api_token, warm_up_cache=False):
self.harvester_url = harv... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
3ea01b02f1d2247da82de5a03180b328416801ca | 1a80c38ea020a8b18bb2c61b55caff8a38f553b9 | /SWEA/trying/6058.py | 647d2ed1e2f5a17a5950b75fb675a9047cc7a63c | [] | no_license | jiwookseo/problem-solving | 775a47825dc73f8a29616ef7011e8ee7be346f80 | eefbefb21608ae0a2b3c75c010ae14995b7fc646 | refs/heads/master | 2020-04-19T03:11:02.659816 | 2019-08-14T08:59:06 | 2019-08-14T08:59:06 | 167,926,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # 6058. 새해 축하 파티 D5
# https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWbHe_w6AHIDFAV0&categoryId=AWbHe_w6AHIDFAV0&categoryType=CODE
def gen():
a=0
for i in range(1,401):
a+=i
yield a
for tc in range(1,int(input())+1):
inp=list(map(int,input().split()))
b,l... | [
"spjo21@naver.com"
] | spjo21@naver.com |
831d02112e7ceee36ced42de31fb8ccfb82dfac5 | 2247218311804a8e6ca0d07840ab918cd749376d | /tests/func/test_glr_parsing.py | 00ca40063da92a24e7c3ae3f8c0c690526bf186a | [
"Python-2.0",
"MIT"
] | permissive | morganjk/parglare | e48067ee99ead524d9bb311be80bc173e50ef5d2 | 39b8034d50d328844dfd91fcd94e23166056398f | refs/heads/master | 2021-07-18T09:44:39.758588 | 2017-10-22T15:08:56 | 2017-10-22T15:08:56 | 107,910,367 | 1 | 0 | null | 2017-10-22T23:17:58 | 2017-10-22T23:17:58 | null | UTF-8 | Python | false | false | 5,101 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from parglare import GLRParser, Grammar, Parser
from parglare.exceptions import SRConflicts
def test_lr2_grammar():
grammar = """
Model: Prods EOF;
Prods: Prod | Prods Prod;
Prod: ID "=" ProdRefs;
ProdRefs: ID | ProdRef... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
a083f7ad8469cb81abd1209db8dd1c48afc39efa | 52d9f9fb6348c51e14c470e4405a79204ea98980 | /unit5_Auto_Test_Model/test5_3模块化与参数化/read_json.py | cf0bae59ca450578251cece4a4810693c6a6ce5f | [] | no_license | UULIN/automation_test | 0a815d9b1032d8d393e4f340bd294f17e20d194d | 5a193bb897d653a44e0376bcb6592d7b1811a424 | refs/heads/master | 2023-01-05T15:07:54.133329 | 2020-11-02T04:58:11 | 2020-11-02T04:58:11 | 280,456,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | """
读取json
"""
import json
import os
path = os.path.abspath("config")
with open(path+"\\user_info.json", "r") as f:
data = f.read()
userlist = json.loads(data)
print(userlist) | [
"1036190402@qq.com"
] | 1036190402@qq.com |
7a28ea1553bdc4de0d169a474e8f80f39f34399a | bf66a28310d934fd1b8b14f762b336b9ec893a04 | /spaces/management/commands/seed_detail_spaces.py | f9b9f8cc4f792d7c46b1fa631cb36906e2b90db2 | [] | no_license | jeongmin14/enter_cloud-backend | 0664a6563ea090926a8522b454b762afed1f5c9d | 789b358e8c3cf5be8505185c048e10556bfd9e0a | refs/heads/main | 2023-03-26T03:54:39.565076 | 2021-03-17T13:09:32 | 2021-03-17T13:09:32 | 348,644,724 | 0 | 0 | null | 2021-03-17T13:08:07 | 2021-03-17T09:09:14 | null | UTF-8 | Python | false | false | 3,291 | py | import csv
import random
import bcrypt
from django_seed import Seed
from faker import Faker
from django.contrib.admin.utils import flatten
from django.core.management.base import BaseCommand
from django.utils import timezone
from django.db.models import Count
from users.mo... | [
"sol35352000@gmail.com"
] | sol35352000@gmail.com |
0285552898e2f3c4ef99eed1b5f9c01d312dad95 | 5c41836471e08252f11bc51ce54e4d449f6a4f88 | /cajas/migrations/0004_auto_20180807_1115.py | b0877a004b33455f8b8122267004dd4dcc2bc3f3 | [] | no_license | wahello/dr_amor_app | 1e9be88681d94bda5425d006a769fd3c55edbadb | 3604f7992df97e981f6f72fd844b58186ebed6ef | refs/heads/master | 2020-04-27T10:46:46.453354 | 2019-02-25T04:50:34 | 2019-02-25T04:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.0.2 on 2018-08-07 16:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cajas', '0003_auto_20180801_2003'),
]
operations = [
migrations.AlterField(
model_name='billetemoneda',
name='activo... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
fa7186feee14a377eaf7cacdfd7aafc2db7bccca | 6518c74441a68fc99b2b08423b5ea11480806499 | /tests/tracking/test_artifact_utils.py | 42df335dbdc72043cd5ea533d5a16b1c13f91b18 | [
"Apache-2.0"
] | permissive | criteo-forks/mlflow | da58e64d09700623810da63999a1aca81b435b90 | 499284d8dc9e9ec79d8d9dbd03c58d162a2b7eaa | refs/heads/master | 2023-04-14T17:59:29.997458 | 2022-01-11T09:50:26 | 2022-01-11T09:50:26 | 191,391,769 | 5 | 4 | Apache-2.0 | 2023-04-07T15:16:20 | 2019-06-11T14:44:00 | Python | UTF-8 | Python | false | false | 5,304 | py | import os
from unittest import mock
from unittest.mock import ANY
import mlflow
from mlflow.tracking.artifact_utils import (
_download_artifact_from_uri,
_upload_artifacts_to_databricks,
)
def test_artifact_can_be_downloaded_from_absolute_uri_successfully(tmpdir):
artifact_file_name = "artifact.txt"
... | [
"noreply@github.com"
] | criteo-forks.noreply@github.com |
df611eb84cc4a732b0e4702ae54d667788b7c362 | 9eef3e4cf39a659268694cf08a4a799af8fb13e2 | /inference/surrogate/nn_surrogate/learning/training.py | 313ed4ae3a7b98e3561490f4cf3964ce074c4d2c | [] | no_license | cselab/tRBC-UQ | c30ec370939b949c989d2e9cd30137073b53e7d2 | cd7711b76c76e86bc6382914111f4fa42aa78f2c | refs/heads/master | 2023-04-18T03:06:49.175259 | 2022-10-25T15:45:07 | 2022-10-25T15:45:07 | 483,407,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | #!/usr/bin/env python
from copy import deepcopy
import torch
from torch.utils.data import DataLoader
def train_model(model,
data_loader: DataLoader,
x_valid: torch.tensor,
y_valid: torch.tensor,
criterion = torch.nn.MSELoss(),
lr=0.1,
... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
4d708ea3bd225f0c0c2dc484df2259a106ba8471 | f0fe4f17b5bbc374656be95c5b02ba7dd8e7ec6d | /all_functions/linux server/python GUI/menus/popupMenu.py | 1f03b6eadd92ccda984447a8fd4cfb671036029d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | Heroku-elasa/heroku-buildpack-python-ieee-new | f46a909ebc524da07f8e15c70145d1fe3dbc649b | 06ec2fda04d9e478ed2506400e460489b0ca91ab | refs/heads/master | 2022-12-10T13:14:40.742661 | 2020-01-29T14:14:10 | 2020-01-29T14:14:10 | 60,902,385 | 0 | 0 | MIT | 2022-12-07T23:34:36 | 2016-06-11T10:36:10 | Python | UTF-8 | Python | false | false | 2,177 | py | # submenu.py
import wx
########################################################################
class MyForm(wx.Frame):
""""""
#----------------------------------------------------------------------
def __init__(self):
"""Constructor"""
wx.Frame.__init__(self, None, title="Popup Menu Tutor... | [
"soheil_paper@yahoo.com"
] | soheil_paper@yahoo.com |
3f87c89ac30e6067d6d60050f99e7ddc4417d01a | 0435b6282cfc7cb27c5c5f2d7d2bcbf160ca8d7d | /Project_2/linear.py | 7c9b6e7ce2bec81bd7b80dcd64aeeecc566bf256 | [] | no_license | zx-joe/EPFL-Deep-Learning | 39d97b1d02c2d4b5fdee471ffe41ce06328e2f9a | 8d2b1aa94608e6cdc2dcc60fa6c5f4e3b7e69e36 | refs/heads/master | 2022-12-11T11:11:07.960851 | 2020-09-08T09:03:21 | 2020-09-08T09:03:21 | 190,944,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | import torch
import math
from torch import Tensor, FloatTensor
import matplotlib.pyplot as plt
from module import Module
class Linear (Module) :
# one fully-connected layer
def __init__(self, in_dim, out_dim, eps=1., method='xavier'):
self.in_dim=in_dim
self.out_dim=out_dim
... | [
"xiao.zhou@epfl.ch"
] | xiao.zhou@epfl.ch |
cc29d5398e6d41ed19ef958c63351c898a368bb6 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/boto/configservice/exceptions.py | 58aa550f9cd9b165a42667b8d7135033fda20174 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 2,528 | py | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights ... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
232ac4debdccb67b46d0441af9c4ba867812edf9 | 3539d0e3ddd7849a14876e95f0332428ec28ebf7 | /Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/4. Classification/1. KNN/7. classify.py | 9009fe68fc2f9cd150796ea094d743cfcc322a16 | [
"MIT"
] | permissive | DincerDogan/Data-Science-Learning-Path | ff146de2cf4ebc5fedfa9377babf959208dfe7e6 | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | refs/heads/main | 2023-05-08T10:53:47.449974 | 2021-06-06T21:27:31 | 2021-06-06T21:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from movies import movie_dataset, movie_labels, normalize_point
def distance(movie1, movie2):
squared_difference = 0
for i in range(len(movie1)):
squared_difference += (movie1[i] - movie2[i]) ** 2
final_distance = squared_difference ** 0.5
return final_distance
def classify(unknown, dataset, labels, k):
... | [
"aristyanto2320@gmail.com"
] | aristyanto2320@gmail.com |
aa73120bf09c8c6af195213100bedac6b5e7e642 | 54934cfe32ce5aa5c2e718b0c5c2afa4b458fe75 | /25ch/graph.py | 617c1d6ad6e8616a8e8c0e6ea2ca8c171b8b289c | [] | no_license | mccarvik/intro_to_algorithms | 46d0ecd20cc93445e0073eb0041d481a29322e82 | c2d41706150d2bb477220b6f929510c4fc4ba30b | refs/heads/master | 2021-04-12T12:25:14.083434 | 2019-11-09T05:26:28 | 2019-11-09T05:26:28 | 94,552,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | from random import randint
import pdb
class Graph:
"""
Graph data structure.
"""
def __init__(self, fname = None, numVertices = None, numEdges = None, weightRange = None, directed = True):
"""
Generates a weighted graph.
"""
self.adjacent = {}
self.weight = {}
... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
01f71854fb9d777d10176477c617eccd675ac52c | a3f1e80179c23d9202d72b75dd37a49b44785f45 | /api/client/test/test_api_catalog_upload_item.py | f3b1cbbfc6b43d84d22085c8e5fe119b0da41801 | [
"Apache-2.0"
] | permissive | pvaneck/mlx | b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27 | 6edaa0bd77787c56b737322a0c875ae30de6cd49 | refs/heads/main | 2023-05-14T06:08:38.404133 | 2021-05-04T01:41:11 | 2021-05-04T01:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # Copyright 2021 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"82406273+mlx-bot@users.noreply.github.com"
] | 82406273+mlx-bot@users.noreply.github.com |
b75c4770199293de8d847af50386a6f6211d23b6 | 26c0f80688f75a188097a232c229a73c8e7cc6ed | /user/migrations/0031_alter_profile_zipcode.py | 26fb0ef6fbd873151e7d3d517d0ac2cbcf69cd3b | [] | no_license | creep1g/DjangoWebstore | 8207d7ea53c478fb7e5745e1c6ae6699102b5df5 | bd27340b86bf2289b8c14216462d932ccdf4986d | refs/heads/main | 2023-05-06T09:50:04.846489 | 2021-05-28T14:40:40 | 2021-05-28T14:40:40 | 371,730,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.2 on 2021-05-12 15:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0030_merge_0024_alter_profile_card_cvc_0029_profile_city'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"thorgilshjalmarsson@gmail.com"
] | thorgilshjalmarsson@gmail.com |
d5b1789b3dd0c839b86dd726c2e71effbdd484ab | 371277a2586e85337cd50a0e2889a962b89fbca0 | /Semana 5/Subida de Archivos Flask - Portfolio/models/conocimiento.py | e4e67176849e22c32a4fec64a7569de0c8b0abe9 | [] | no_license | Jesuscueva/Virtual-Back-5 | eca62561f19a3028880e3a68868ff4f1c271d579 | 2f4557a6cdae91c9fd4f22103b5bdd473845d5a4 | refs/heads/main | 2023-04-02T13:47:58.161874 | 2021-04-10T02:09:01 | 2021-04-10T02:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | from config.base_datos import bd
from sqlalchemy import Column, types
from sqlalchemy.schema import ForeignKey
class ConocimientoModel(bd.Model):
__tablename__ = 't_conocimiento'
conocimientoId = Column(
name='conocimiento_id',
type_=types.Integer,
primary_key=True,
unique=True,... | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
6648dc83958d98e09181be589c965e5d5083dbc0 | e2604baf3baddbbebf8597c7a3a76bac988efb41 | /venv/bin/wsdump.py | 6f6c90fbda8537d5bc52a71ac71732e9a1879bcb | [] | no_license | Surajgupta5/Django-WIth-Docker | 2fe1037451c113feba72c50d5425d4461c2f40be | ca879e43af043dccba6b325f89ac3c6f495dbe56 | refs/heads/master | 2022-07-19T18:55:48.243626 | 2020-05-11T05:53:52 | 2020-05-11T05:53:52 | 262,951,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,437 | py | #!/home/workspace/project2/venv/bin/python
import argparse
import code
import sys
import threading
import time
import ssl
import gzip
import zlib
import six
from six.moves.urllib.parse import urlparse
import websocket
try:
import readline
except ImportError:
pass
def get_encoding():
encoding = getattr... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7a5019f032d3564ba4d7d1adff38dcfc7b6dad35 | d109b64bfa8c80a6ec7d647beeadf9fe1c667fac | /class1101/LED11.py | ef6615d3a9cc7c3e69773a9d62dd8e9899f26d39 | [] | no_license | jumbokh/micropython_class | d34dd0a2be39d421d3bbf31dbb7bfd39b5f6ac6f | 950be81582dba970e9c982e2e06fa21d9e9a0fdd | refs/heads/master | 2022-10-10T22:27:02.759185 | 2022-10-01T14:44:31 | 2022-10-01T14:44:31 | 173,898,623 | 4 | 3 | null | 2020-03-31T09:57:23 | 2019-03-05T07:40:38 | Jupyter Notebook | UTF-8 | Python | false | false | 160 | py | from machine import Pin
import utime
LED = None
LED = Pin(11, Pin.OUT)
while True:
LED.value(0)
utime.sleep(1)
LED.value(1)
utime.sleep(1) | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
225cf46464767cc87e3de5acdd111b3d2d50c482 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2594/60640/267498.py | 06ef98d3317b58f2f24605f47cf036c4eaa392d4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """
O(N)
"""
t = int(input())
for i in range(t):
inp = list(input())
set_inp = list(set(inp))
if len(set_inp) == len(inp):
print(-1)
else:
MAX_CHAR = 256
# 记录每个字符的位置,-1表示从未出现过
firstIndex = [-1 for x in range(MAX_CHAR)]
res = 0
for j in range(len(inp)):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0ba65146cf6659db44dd47b906d4f6f8ea99fa48 | 6e800b3513537622df14bb598abe9c051116106c | /51-100/088MergeEasy.py | 14ead1c1a42033d242f68373f994af50d34f3ddf | [] | no_license | Huxhh/LeetCodePy | fd72f03193d1f0b58c44bffc46a9a59ba9714215 | 6a99e84c5742ca68012b14da362f6c3255e10b21 | refs/heads/master | 2023-06-09T09:23:54.209025 | 2023-05-31T16:29:03 | 2023-05-31T16:29:03 | 148,866,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # coding=utf-8
def merge(nums1, m, nums2, n):
index = m + n - 1
x = m - 1
y = n - 1
while True:
if x < 0 and y < 0:
break
if x >= 0 and y >= 0:
if nums1[x] >= nums2[y]:
nums1[index] = nums1[x]
x -= 1
else:
... | [
"563255387@qq.com"
] | 563255387@qq.com |
c6f80b6fcff9d820146a6c798e6abee898629364 | 4fb5eb0a9a24fa5c112a4ebc854ee2604b04adda | /python/oanda/models/calculated_trade_state.py | 996c9bbd4d0e98b92e6550ccd12dbbf12aedeb73 | [
"MIT"
] | permissive | KoenBal/OANDA_V20_Client | ed4c182076db62ecf7a216c3e3246ae682300e94 | e67b9dbaddff6ed23e355d3ce7f9c9972799c702 | refs/heads/master | 2020-03-27T20:42:25.777471 | 2019-12-02T15:44:06 | 2019-12-02T15:44:06 | 147,088,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | # coding: utf-8
"""
OANDA v20 REST API
The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/perso... | [
"koen.bal@gmail.com"
] | koen.bal@gmail.com |
6f227c5ce3a2d188622f589658f80e019ffc2ec6 | 7e4460c85790fae2d470182732289bcd1b8777b2 | /Process/process_scripts.py | c6028329d884b48f3b57d3958e624f02c6d43b3a | [] | no_license | khamukkamu/swconquest-msys | 5b23654c8dd2e8b2f25bc7914252eedc05a5cc1e | 71337a4ae9c507b9440e84cf49d31fc67a781978 | refs/heads/master | 2021-04-29T19:00:10.389224 | 2019-05-01T15:11:11 | 2019-05-01T15:11:11 | 121,704,753 | 1 | 1 | null | 2018-02-16T01:40:58 | 2018-02-16T01:40:58 | null | UTF-8 | Python | false | false | 1,812 | py | import string
from module_info import *
from module_scripts import *
from process_common import *
from process_operations import *
from module_info import wb_compile_switch as is_wb
def save_scripts(variable_list,variable_uses,scripts,tag_uses,quick_strings):
file = open(export_dir + "scripts.txt","w")... | [
"swyterzone@gmail.com"
] | swyterzone@gmail.com |
9c06c0a29a8845ed289678b35982f9e2dbc2a720 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03957/s736073526.py | 4d07ff9077817797927326fee3fdb9b2cb662fdf | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | s=input()
ans="No"
for i in range(len(s)):
if s[i]=="C":
for j in range(i+1,len(s)):
if s[j]=="F":
print("Yes")
exit()
else:
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bafd53e16b68d5c5315f2de4dc3a24be45844475 | ae9bb7babce2a0349ae932985cf418a03057c670 | /test_ProjectPractice/test_requests/wework/__init__.py | 3c6ed16fe565082753b7192859a99a55e588806c | [] | no_license | Veraun/HogwartsSDET17-1 | d2592fcb4c9c63724c19bcf9edde349ebcd2c8af | 6648dbfb640b065ff2c76cb6889a8f9e4f124b91 | refs/heads/main | 2023-07-02T05:20:32.161248 | 2021-08-06T03:55:13 | 2021-08-06T03:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | '''
#!/usr/bin/python3
# -*- coding: utf-8 -*-
@author: wangwei
@project: HogwartsSDET17
@file: __init__.py.py
@time: 2021/3/28 19:30
@Email: Warron.Wang
''' | [
"wei1.wang@ximalaya.com"
] | wei1.wang@ximalaya.com |
13fe7acffc167ef651043847166ade55dfbe7fad | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/thienthientanvn.py | 80cce4c40f006fcc7e32a7cdf2085a62934bb55f | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='mytextarea']/span",
'price' : "//span/div[@class='price']",
'category' : "//div[@id='accordion']/ul/li",
'descri... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
5ae2c762306e5a94e26a671d98093c5b02e5db3d | f167dffa2f767a0419aa82bf434852069a8baeb8 | /lib/youtube_dl/extractor/arcpublishing.py | ca6a6c4d87f9f13a259f8402f5e7ef51ad097088 | [
"MIT"
] | permissive | firsttris/plugin.video.sendtokodi | d634490b55149adfdcb62c1af1eb77568b8da3f5 | 1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3 | refs/heads/master | 2023-08-18T10:10:39.544848 | 2023-08-15T17:06:44 | 2023-08-15T17:06:44 | 84,665,460 | 111 | 31 | MIT | 2022-11-11T08:05:21 | 2017-03-11T16:53:06 | Python | UTF-8 | Python | false | false | 7,970 | py | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
extract_attributes,
int_or_none,
parse_iso8601,
try_get,
)
class ArcPublishingIE(InfoExtractor):
_UUID_REGEX = r'[\da-f]{8}-(?:[\da-f]{4}-){3}[\da-f]{12}'
_VALID_URL = r'... | [
"noreply@github.com"
] | firsttris.noreply@github.com |
b1effa43176d77ba4cd5d71fe491629591f33413 | 978a0ff297cfe68baa8b62a30aaacefa3efdd48d | /flaskfiles/flaskpractice.py | 4fe3f0d5817107d5f5eb70af42986722a0a65e5e | [] | no_license | pavi535/pythonpratice | d55f263cf4170ace3fa8ba7f4a26d67f950af7ce | 9f66be3e609f2b4fbc1a035e67d6fcf08992818a | refs/heads/main | 2023-08-27T06:38:30.446752 | 2021-11-10T03:03:24 | 2021-11-10T03:03:24 | 426,094,134 | 0 | 0 | null | 2021-11-10T03:03:25 | 2021-11-09T04:46:11 | Python | UTF-8 | Python | false | false | 2,593 | py | from datetime import datetime
from flask import Flask, render_template, url_for, flash, redirect
from flask_sqlalchemy import SQLAlchemy
from forms import RegistrationForm, LoginForm
app = Flask(__name__)
app.config['SECRET_KEY'] = '5791628bb0b13ce0c676dfde280ba245'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///s... | [
"you@example.com"
] | you@example.com |
8a995bd441b1bf0410c40c17856e88cacb7fdc00 | 840ca6face6cb369104eec228fe7b51630bd10f1 | /剑指offer/52-两个链表的第一个公共节点.py | ca8ed7ed73921386ff21cac0c21a687a57434913 | [] | no_license | Leofighting/Practice-on-LeetCode | 56e6245eb03f76ca254e54dc0a0cdd2c71ec3dd0 | 6d7dad991922abe862f19009b261b5146e059955 | refs/heads/master | 2021-08-16T04:21:04.699124 | 2020-06-29T22:48:38 | 2020-06-29T22:48:38 | 197,718,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding:utf-8 -*-
__author__ = "leo"
# 输入两个链表,找出它们的第一个公共节点。
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def get_intersection_node(self, headA, headB):
node1, node2 = headA, headB
while node1 != node2:
node1 = node1.... | [
"leoxiaojw@gmail.com"
] | leoxiaojw@gmail.com |
b06e3ace791dfcd120050816b47cf3cea36e3caf | 056adbbdfb968486ecc330f913f0de6f51deee33 | /609-find-duplicate-file-in-system/find-duplicate-file-in-system.py | 369212a29b568e52d671b267faa76bb344d532b9 | [] | no_license | privateHmmmm/leetcode | b84453a1a951cdece2dd629c127da59a4715e078 | cb303e610949e953b689fbed499f5bb0b79c4aea | refs/heads/master | 2021-05-12T06:21:07.727332 | 2018-01-12T08:54:52 | 2018-01-12T08:54:52 | 117,215,642 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | # -*- coding:utf-8 -*-
# Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files in the file system in terms of their paths.
#
# A group of duplicate files consists of at least two files that have exactly the s... | [
"hyan90@ucsc.edu"
] | hyan90@ucsc.edu |
7863e3a9c1b084f2424bfe6b8e926d7afd714b98 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04030/s580737724.py | e5017d598b9bc2f7e817eadffadd9076c0229da3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | S = input()
Z = []
X = len(S)
i = 0
while i < X :
if S[i] == "0":
Z.append(0)
elif S[i] == "1":
Z.append(1)
elif S[i] == "B":
if len(Z)== 0:
pass
else:
Z.pop()
i += 1
i = 0
X = len(Z)
while i < X:
print(Z[i] , end ="")
i +=1 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3267827c6172fd22712c30402e7fc68868d81061 | 42b84b02e64d21234372501a20bf820e0bcbf281 | /site/threath/apps/user_profiles/views.py | 2054832130d5f203d6bf0ea498dde605276bad9c | [] | no_license | gage/proto | 861d1e1190770b0cc74f51a6fe140157cc0ac12e | e13ac7d0ee5c6acce2557dcf71a00a941543c006 | refs/heads/master | 2020-04-06T06:44:01.712532 | 2013-06-28T06:30:59 | 2013-06-28T06:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | import time
from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.template.loader import render_to_string
from django.conf import settings
from d... | [
"sean.cheng@geniecapital.com"
] | sean.cheng@geniecapital.com |
0039e5a8aec878cb771be2ecdc89116f71a7cd5f | 48ff6b01dabc631c8924f3c51996010d9e0d2086 | /psypl/experiments/variable_count.py | 8f9bdaeef8f1030d231ba50b2ed17beb7e2c70bb | [] | no_license | willcrichton/psypl-experiments | b4522908f17ba9fbc023fa627a260e645a511bc4 | 7b0a134cc17919e62707d005fc03f2e22938eb13 | refs/heads/master | 2022-12-18T01:41:20.964024 | 2021-02-13T00:46:55 | 2021-02-13T00:46:55 | 219,410,440 | 3 | 0 | null | 2022-12-07T14:42:13 | 2019-11-04T03:33:04 | Jupyter Notebook | UTF-8 | Python | false | false | 3,326 | py | from enum import Enum
from ..utils import random_tree, ConstNode, OpNode, all_names, shuffle, try_int
from random import sample
from itertools import combinations, product
from ..base import Experiment
from pprint import pprint
import pandas as pd
import numpy as np
import experiment_widgets
class VariableCountExperim... | [
"wcrichto@cs.stanford.edu"
] | wcrichto@cs.stanford.edu |
ab5a8efe6ee474ebb3d0874bd150540fd5990e8f | b05ae08859d3b593b6c815a10e0705e13c1ae1eb | /RinoNakasone/RinoNakasone/spiders/piaohua.py | 46b6392f62d63419047047495d160ab00d756622 | [] | no_license | jacksonyoudi/Rino_nakasone_backend | 32425bcd9087384fa25db1fe51e854b7a4f1fa12 | e838668a6f67a6a4eca52d7658ad84b61b4123db | refs/heads/master | 2021-04-15T18:21:17.678794 | 2019-03-02T15:16:30 | 2019-03-02T15:16:30 | 126,698,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | # -*- coding: utf-8 -*-
import scrapy
from urllib.parse import urljoin
from bs4 import BeautifulSoup
from RinoNakasone.settings import PIAOHUA
class PiaohuaSpider(scrapy.Spider):
name = 'piaohua'
allowed_domains = ['www.piaohua.com']
start_urls = ['http://www.piaohua.com/']
def parse(self, response):... | [
"liangchangyoujackson@gmail.com"
] | liangchangyoujackson@gmail.com |
9565c6008d359c9ef4776815146440ba81e91136 | a4f2d74559b00191454d7d3492f8d35d118332b5 | /src/atra/plot/network_air.py | 15d33b561b56963e9c5b77d2ee76eb5a2084872d | [
"MIT"
] | permissive | nfontan/argentina-transport | c4b6f06a33034ce1c3ce905f901ff5086013b38b | f1583b077844e6b20b2c81144dec0872c88bdb80 | refs/heads/master | 2023-03-18T10:23:44.580084 | 2019-08-11T22:01:34 | 2019-08-11T22:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | """Plot air network
"""
import os
import cartopy.crs as ccrs
import geopandas
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
from atra.utils import load_config, get_axes, plot_basemap, scale_bar, plot_basemap_labels, save_fig
def main(config):
"""Read shapes, plot map
"""
data_pa... | [
"tomalrussell@gmail.com"
] | tomalrussell@gmail.com |
2264e15313f69e818f1bbdd697aae79e592592ad | 4273f162abb12ef1939271c2aabee9547ac6afee | /crowd/utils/config.py | 054ef5faf1c8d84308890a15230a3b194adf10e5 | [] | no_license | xiyuhao/subins_tutorials | 2717c47aac0adde099432e5dfd231606bf45a266 | acbe4fe16483397e9b0f8e240ca23bdca652b92d | refs/heads/master | 2023-07-28T13:42:41.445399 | 2021-09-12T11:02:37 | 2021-09-12T11:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | '''
config.py 0.0.1
Date: January 15, 2019
Last modified: June 14, 2019
Author: Subin. Gopi(subing85@gmail.com)
# Copyright(c) 2019, Subin Gopi
# All rights reserved.
# WARNING! All changes made in this file will be lost!
Description
None.
'''
def get_conig():
return 'Linux', 'maya', '2016', '2.7.5'
def... | [
"subing85@gmail.com"
] | subing85@gmail.com |
6ef4885b55b2959e9db0e836280c30f7bf832629 | a2860dd0acbb7b85d30fad1be52512fa7bc4c611 | /cerebralcortex/core/file_manager/read_handler.py | f1d9eb4c750b94afc422959e5232bc2448e3825c | [
"BSD-2-Clause"
] | permissive | hippietilley/CerebralCortex-Kernel | b1783c8156744f7809c9a3810b990c45945da936 | c7dac033d9561f14bdb72430577db6ae4e3c7911 | refs/heads/master | 2020-04-18T15:15:47.199601 | 2019-01-18T16:05:14 | 2019-01-18T16:05:14 | 167,607,878 | 0 | 0 | BSD-2-Clause | 2019-01-25T20:16:54 | 2019-01-25T20:16:54 | null | UTF-8 | Python | false | false | 6,069 | py | # Copyright (c) 2018, MD2K Center of Excellence
# - Nasir Ali <nasir.ali08@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above cop... | [
"nasir.ali08@gmail.com"
] | nasir.ali08@gmail.com |
996925f5530dd5af83fba2da9dd72a0012fcef11 | a0f27e45f598a5c4145efa44ae05edf431b7e06f | /seqmod/modules/ff.py | 4d6a8e6043e089cd4a0ed05da4145de8fd6bf3c5 | [] | no_license | cmry/seqmod | af4d2e6227247f5d3630a53818328cea493672f4 | ddc57cd36c6b6204263db770f4c98923ffb4ba0b | refs/heads/master | 2021-09-11T23:50:01.261133 | 2018-01-09T15:51:23 | 2018-01-09T15:51:23 | 113,448,571 | 0 | 0 | null | 2017-12-07T12:31:43 | 2017-12-07T12:31:43 | null | UTF-8 | Python | false | false | 5,677 | py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Function
class MLP(nn.Module):
"""
Standard MLP
"""
def __init__(self, inp_size, hid_size, nb_classes,
nb_layers=1, dropout=0.0, act='relu'):
self.inp_size, self.hid_size = inp_size,... | [
"enrique.manjavacas@gmail.com"
] | enrique.manjavacas@gmail.com |
fd75ee444727d1fd69c72d0457b9ea145dcba2b1 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/pipelines_20200627225401.py | 2181904c869c47b47b88084f2f73feb9b48ff6f0 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 523 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class MaoyanspidersPipeline(object):
def process_item(self, item, spider):
films_name = item['films_name']
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
8536e0cce05e6fee39144b2b1c6e1b5c482b510f | 8064bbf3dadc70c3aceeecd885bc69cfddf06549 | /ZeeAnalyzer/test/runElectronPlots_Skim_v1.py | 9dc1a84ee437d62c8d259a0380e2392dbbaec102 | [] | no_license | taroni/ZeeAnalyzer | 6faf7e4d9785ab9b15559d096a2b98d5e7483be7 | 44046f7095a22a9b5486a5ab0aee2dee52b430ae | refs/heads/master | 2022-01-17T20:12:06.695267 | 2017-11-24T13:51:25 | 2017-11-24T13:51:25 | 110,087,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TestElectrons")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.load("Configuration.StandardSequences.FrontierConditio... | [
"Silvia.Taroni@cern.ch"
] | Silvia.Taroni@cern.ch |
e4ede140050fb8c241173693253719a2d0235799 | 799c9d7e1436232a02b213178ed0bda9d5c673e8 | /Chapter15/example2.py | b3c8ae550f592b84515a5257e78fd403bf0171f4 | [
"MIT"
] | permissive | KrisNguyen135/Advanced-Python-Programming-Second-Edition | a32578116805285983df8eac2dba584e0e77ea0d | e5d473e3efc5f6590028cb3f318e1f4aeb0aadd1 | refs/heads/main | 2023-08-14T18:14:09.087485 | 2021-09-19T17:57:03 | 2021-09-19T17:57:03 | 373,899,665 | 0 | 0 | MIT | 2021-06-04T16:23:55 | 2021-06-04T16:23:55 | null | UTF-8 | Python | false | false | 686 | py | import time
import threading
COUNT = 50000000
def countdown(n):
while n > 0:
n -= 1
###########################################################################
start = time.time()
countdown(COUNT)
print('Sequential program finished.')
print(f'Took {time.time() - start : .2f} seconds.')
###############... | [
"nguyenminhquan135@gmail.com"
] | nguyenminhquan135@gmail.com |
a38e00bd15b7f69cd0501f9e2a9343c1615f935c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/83f8ec00a3cf40a78f2fd2fa2dedcd3a.py | 76cb33cce300805428c65c319f8169dd9e0ef049 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 270 | py | import re
def hey(input):
clean_input = input.strip()
if clean_input == '':
return 'Fine. Be that way!'
if clean_input.isupper():
return 'Whoa, chill out!'
if clean_input.endswith('?'):
return 'Sure.'
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
bcee99a9a701fa5486e9c1baba62c7e8182cc60d | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/worksheet/test_date_time_01.py | 50180b311c94a156c9af3597a1e11e5fb953c101 | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 6,888 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
import unittest
from datetime import datetime
from ...worksheet import Worksheet
class TestConvertDateTim... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
d0bc437a44318504958582938e6622cdb01b23a9 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_01_20_gsh_database_red/integrate_parallel.py | 19794112e938772715aa9bad100ef9986045d7cc | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | import numpy as np
# import itertools as it
import db_functions as fn
import gsh_hex_tri_L0_16 as gsh
import h5py
import time
import sys
tnum = np.int64(sys.argv[1])
filename = 'log_integrate_parallel_%s.txt' % str(tnum)
""" Load Y vec """
f = h5py.File('var_extract_total.hdf5', 'r')
var_set = f.get('var_set')
sinp... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
e1f86e42b1651b24b49a852a30e9ba287c876154 | 36126f91a2d5903483b84ba2d8be77e160803058 | /tests/test_model.py | 2fcf991147d46894fa7d917d389309988844fd6e | [
"Apache-2.0"
] | permissive | open-risk/transitionMatrix | 9962bb2656eb637ba56afc3adecf42bbe68f9593 | d05e75cbc251f01842dd8c5ce225894b988f4d99 | refs/heads/master | 2023-03-05T08:01:20.816425 | 2023-02-22T20:46:38 | 2023-02-22T20:46:38 | 110,365,127 | 73 | 29 | Apache-2.0 | 2022-12-08T11:37:12 | 2017-11-11T17:25:08 | Python | UTF-8 | Python | false | false | 5,126 | py | # encoding: utf-8
# (c) 2017-2022 Open Risk, all rights reserved
#
# TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of TransitionMatrix. This is notwithstanding any licenses of
# third-party software included in this distribution. You may not use this... | [
"openrisk@outlook.com"
] | openrisk@outlook.com |
d1df29cfcfd4dace82fa7e4e728abf9975d61641 | 94615230d5733282fb69ae5d35411c04a337d353 | /sublime-text-3/Packages/HTML-CSS-JS Prettify/src/py/utils/constants.py | 2d082675e21dc88f0f92e4c331ef81174d4f9007 | [
"Unlicense"
] | permissive | EnTeQuAk/dotfiles | fcef6a885891c3c132da3ea970dd21aee16b72c1 | b00890fa64a01b3a0e4eaaada13e90c1ef36b9e0 | refs/heads/master | 2023-01-04T21:09:37.330838 | 2019-09-16T14:49:45 | 2019-09-16T14:49:45 | 1,558,950 | 1 | 0 | Unlicense | 2023-01-04T05:01:57 | 2011-04-02T08:31:38 | Vim script | UTF-8 | Python | false | false | 623 | py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""Various constants used by this plugin"""
from sublime import platform, version
PLATFORM = platform()
SUBLIME_VERSION... | [
"cg@webshox.org"
] | cg@webshox.org |
1b02cbd81e6d0d70e6c61416944602b6e863075c | e15b2ebbb9bf30a50d1e720624e9853aa269fc05 | /CoverSlasher/items.py | 563945642bcb4b389d94c4ea6bdfbf3d8b5cf0e0 | [] | no_license | Hodo7amShichiYA/WnacgCoverSlasher | e42ce1ec438558c2890d1bf34f9a192eb1ab4f81 | 5734d58caedb3defff622bb45de6cd073f8b656d | refs/heads/master | 2020-04-27T16:03:02.225473 | 2019-03-08T09:05:06 | 2019-03-08T09:05:06 | 174,470,262 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # -*- coding: utf-8 -*-
import scrapy
class CoverslasherItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
image_urls = scrapy.Field() #保存图片地址
images = scrapy.Field() #保存图片的信息
image_names = scrapy.Field() #保存图片的信息
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
91f92c326775e661700467fed42718d9b09d1adb | e53d8488ffea72db3f3618f5639f2ddfa929f11b | /perpustakaan/migrations/0002_delete_buku.py | 63677b59c0a8886eaae0991e502bc4c513f0449e | [] | no_license | writerlab/perpus | 60473fa2b51d67617525bfc25b75656141e9529b | 9cf7676a543c3414ac2e7fca88c3d26ac403be3b | refs/heads/master | 2023-07-15T05:27:23.859264 | 2021-08-29T02:02:34 | 2021-08-29T02:02:34 | 262,490,216 | 5 | 10 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # Generated by Django 2.2.12 on 2020-05-11 07:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('perpustakaan', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Buku',
),
]
| [
"netspytux@gmail.com"
] | netspytux@gmail.com |
2a930f8fc17f6a4af9fdfaeb6ff31fb3020b1552 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Python/Core/Lib/lib2to3/main.py | 21120209a72ee4a781dc2b7ce9223426acd4d8bd | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,385 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: main.py
"""
Main program for 2to3.
"""
from __future__ import with_statement
import sys
import os
import difflib
import logging
import shutil
import ... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
f92227c51ec1996e3e31c2e0073f8916609625b5 | e4bab7fc4e8eacb62ad35b4b58b9a5093bae44c7 | /spec/rift/data/models/tenant.py | a7a4d5803847af6a42bab44665e8cd139f2cfdba | [
"Apache-2.0"
] | permissive | mkam/Rift | 972d5c571ead01480519509b783ec70b0636d10f | 802892f7c119845e0f2ec5b0798463f210e7061f | refs/heads/master | 2021-06-01T12:33:58.147207 | 2015-08-27T19:35:51 | 2015-08-27T19:35:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import uuid
from specter import Spec, expect
from rift.data.models.tenant import Tenant
class TenantModel(Spec):
def can_convert_to_dictionary(self):
tmp_uuid = str(uuid.uuid4())
tenant = Tenant(name=tmp_uuid, tenant_id=tmp_uuid)
tenant_dict = tenant.as_dict()
test_dict = Tenant.... | [
"john.vrbanac@linux.com"
] | john.vrbanac@linux.com |
c6181955ae958e8e09f7d70d6cabc46465b949a8 | 9930f08717594022e0f7fde2a96baaa7fcfce784 | /assignment3_prime number or not.py | c6ba297b1ad4aab747f95704e77a94145abc75b2 | [] | no_license | dinesh5555/python_assignments | 72bd2d1cc35a92a01826536eeb4107953d8d73c7 | 33fbcbe1de8f92bd6ffe07fa66640ce1ab84a756 | refs/heads/master | 2022-11-11T18:42:41.621053 | 2020-07-03T09:12:49 | 2020-07-03T09:12:49 | 276,854,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
# coding: utf-8
# In[19]:
num=int(input("enter a number"))
if num>1:
for i in range(2,num):
if (num%i)==0:
print(num,"is not a prime number")
break
else:
print(num,"is a prime number")
| [
"noreply@github.com"
] | dinesh5555.noreply@github.com |
7f78820ec7b0fb9e06f0c1b1bdf198ef2b2cabe4 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project2/Project2/.history/blog/views_20211114212413.py | 9aa8a5a017e67a14ca1de498d7a75944f750328a | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 486 | py | from django.shortcuts import get_object_or_404, render
from .models import Blog
# Create your views here.
def all_blogs(request):
blogs = Blog.objects.filter(status=1).order_by('-created_on')
return render(request, 'blog/all_blogs.html', {'blogs': blogs})
def detail(request, slug):
blog = get_object_or... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
73a769860358682887712313fed38e62177e3612 | 55815c281f6746bb64fc2ba46d074ca5af966441 | /medium/299.py | 4b6e196e858ad7ee70a73d1e40dbf8f868f06bf8 | [] | no_license | brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | import collections
class Solution:
def getHint(self, secret: str, guess: str) -> str:
cows = 0
bulls = 0
for i in range(len(secret)):
if secret[i] == guess[i]:
bulls += 1
secret_counter = collections.Counter(secret)
guess_counter = colle... | [
"brandoneng000@gmail.com"
] | brandoneng000@gmail.com |
610dffc1617cd22bd7b8e889c292a9d1ef1e3346 | 677002b757c0a1a00b450d9710a8ec6aeb9b9e9a | /tiago_public_ws/build/tiago_bringup/catkin_generated/pkg.develspace.context.pc.py | dd49ac14d12608a0d4daa23f54bf5fb2b0e9670f | [] | no_license | mrrocketraccoon/tiago_development | ce686c86459dbfe8623aa54cf4279021342887fb | a0539bdcf21b67ab902a4649b516dcb929c54042 | refs/heads/main | 2023-06-16T19:39:33.391293 | 2021-07-08T21:20:03 | 2021-07-08T21:20:03 | 384,249,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "tiago_bringup"
PROJECT_SPACE_DIR = "/... | [
"ricardoxcm@hotmail.com"
] | ricardoxcm@hotmail.com |
4af74a933a0a3e003647d10696dc9afb71b9e739 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/framework/experimental/math_ops.py | bb168de21996ba1f8aa825afb66054bf16c1f338 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
29d682db283e2dc08722ab6dd840796f0e982a94 | e67a0139092d3389fea0075de9ecf12ab209649f | /scripts/addons_extern/AF_3dview_specials/VIEW3D_MT_armature_specials.py | 47b9a6cae734433af79d7e3a2b6eef5aca78063f | [] | no_license | amagnoni/blenderpython | 9fe864d287f992b7cd71cd584fca4a501a6ac954 | d2fec1a35369b7b171e2f0999196b87e242e08f3 | refs/heads/master | 2021-01-18T11:28:55.372759 | 2015-10-17T20:16:57 | 2015-10-17T20:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,882 | py | # 3Dビュー > アーマチュア編集モード > 「W」キー
import bpy
import re
################
# オペレーター #
################
class CreateMirror(bpy.types.Operator):
bl_idname = "armature.create_mirror"
bl_label = "Select bones mirroring."
bl_description = "Mirrored at any axes selected bone."
bl_options = {'REGISTER', 'UNDO'}
def execute... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
14258aac0b0a7e639801a834cddbdf0089e45ea8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_240/ch140_2020_04_01_19_19_15_085921.py | 4c86827b303c447f074e6de350d868de44996204 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def faixa_notas(notas):
a = 0
b = 0
c = 0
for i in notas:
if i < 5:
a += 1
elif i <= 7:
b += 1
else:
c += 1
return [a ,b ,c] | [
"you@example.com"
] | you@example.com |
9d4fa0a1977714a0290798e157f5b22310e8461f | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/hdinsight/v20210601/_enums.py | edcf6d44105644a4c49b3c3c4900f7f15073a76f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'DaysOfWeek',
'DirectoryType',
'JsonWebKeyEncryptionAlgorithm',
'OSType',
'PrivateIPAllocationMe... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
77b74a14ad5a1874eb757c258db26fc759163437 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /laioffer/remove-certain-characters.py | ba414a70cff9fca8d6bb41e33f8626f682e9c25a | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | class Solution:
def remove(self, string, t):
array = list(string)
uniq_t = set(t)
slow = 0
fast = 0
for fast in range(0, len(array)):
if array[fast] not in uniq_t:
array[slow] = array[fast]
slow += 1
res = ""
for i ... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
e856c3512502cc8ddd31849054c4633d661bca3c | 9d6271fd3851acb797a5120e0d884130f7548833 | /kmeans.py | 4950fd689a0074d89dbcfb3e82ec63e3d12597e9 | [] | no_license | Wenbin94/toolbox | f5d69e1b3a158ad076562829e2d83738e282da04 | e88e1ba51e5a4c963626000b434072b6aa64e09d | refs/heads/master | 2020-08-22T02:50:57.779313 | 2019-10-08T10:57:52 | 2019-10-08T10:57:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,233 | py | '''
2019.10.8 ming71
功能: 对box进行kmeans聚类
注意:
- 停止条件是最小值索引不变而不是最小值不变,会造成早停,可以改
- 暂时仅支持voc标注
- 如需改动再重写get_all_boxes函数即可
'''
import numpy as np
import glob
import os
from decimal import Decimal
class Kmeans:
def __init__(self, cluster_number, all_boxes, save_path):
self.cluster_number = cluste... | [
"chaser.ming@gmail.com"
] | chaser.ming@gmail.com |
65b8808ec3e1a0d27451e396ee0d6a134cdabb91 | a98cab2f9c24a85a5f46b2cbec7506b79f4ea634 | /app/src/models/sentence_model.py | 1588e64f2771d2064366357aaa9e173d0246e6a2 | [] | no_license | DIS-SIN/ODSC-2019 | b8b8d10b41d95925219a0be36b5ef8b541396681 | c2a606471452e358f0e245841e78f562c570bbf5 | refs/heads/master | 2020-05-17T18:27:08.591454 | 2019-04-30T03:02:35 | 2019-04-30T03:02:35 | 183,884,786 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from neomodel import (
StructuredNode,
StringProperty,
DateTimeProperty,
UniqueIdProperty
)
from datetime import datetime
class Sentence(StructuredNode):
nodeId = UniqueIdProperty()
sentence = StringProperty(required=True)
addedOn = DateTimeProperty(default_now=True)
updatedOn = DateT... | [
"omardev9898@gmail.com"
] | omardev9898@gmail.com |
184895f8be106c50e7efd39383cec128bad28d48 | 8780bc7f252f14ff5406ce965733c099034920b7 | /pyCode/pagesize/pagesize/wsgi.py | dfa911c708e95d9a1ec3be3f2f82bcdcfb628314 | [] | no_license | 13661892653/workspace | 5e4e458d31b9355c67d67ba7d9faccbcc1ac9f6b | 17960becabb3b4f0fc30009c71a11c4f7a5f8330 | refs/heads/master | 2020-12-24T20:00:15.541432 | 2018-08-14T13:56:15 | 2018-08-14T13:56:15 | 86,225,975 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for pagesize project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"470563152@qq.com"
] | 470563152@qq.com |
72400fc6b6ffce55fbd9162fc62cecddf26120d2 | d8169f7c2efdeb40fe9dcdd59ce040138804d2af | /2nd/mysite/settings.py | b80fdf7c56fd69ac13acd7925dd80038a10abed8 | [] | no_license | KimDoKy/pyDjango | d9ab67b6da6541ebd04658945922d9924a85b107 | 53ef776dd20488f0dfda6b7e3fd5281e8f3e98fd | refs/heads/master | 2020-12-30T13:08:15.951633 | 2017-10-04T10:01:15 | 2017-10-04T10:01:15 | 91,325,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"makingfunk0@gmail.com"
] | makingfunk0@gmail.com |
52bc7f128792a60754a8768605b64ec973f3a0b1 | c61f41a8655b39098ffa257fb994979d17dfb10c | /cremilda/parser.py | f9fd5a4c5ff50d4043307e03b5cbf47de4a5c04b | [] | no_license | luizpaulosilva/compiladores-1 | 48f09085c0f61b2f1bea0507adde9a03473b2d23 | f553d9de0b6cd764d11bd533cec6bde9877d6587 | refs/heads/master | 2020-03-18T10:50:01.200756 | 2018-05-03T17:13:41 | 2018-05-03T17:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | import ox
from .lexer import tokens
from .ast import BinOp, FCall, Atom, Assign
def make_parser():
return ox.make_parser([
('module : statement SEMICOLON', lambda x, _: [x]),
('module : statement SEMICOLON module', statements),
('statement : NAME EQ expr', var_def),
('expr : atom OP expr', op_ca... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
51ed26d155d3ac70a5b01ef59f20d79a642bf07f | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/adaptor/AdaptorIscsiAuth.py | 85653c123f5847d9bf6701d752efdd160c69cfe0 | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | """This module contains the general information for AdaptorIscsiAuth ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class AdaptorIscsiAuthConsts():
pass
class AdaptorIscsiAuth(ManagedObject):
... | [
"test@cisco.com"
] | test@cisco.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.