blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
126bc1c31467b15f3249bc26ab009233ac079281 | 463c053bcf3f4a7337b634890720ea9467f14c87 | /doc/source/ray-core/doc_code/actor-sync.py | 48bc4eb410c11b92e875b05571c3a5d87c840fce | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 881 | py | import asyncio
import ray
# We set num_cpus to zero because this actor will mostly just block on I/O.
@ray.remote(num_cpus=0)
class SignalActor:
def __init__(self):
self.ready_event = asyncio.Event()
def send(self, clear=False):
self.ready_event.set()
if clear:
self.ready... | [
"noreply@github.com"
] | pdames.noreply@github.com |
b54029177b1f51498c2ca5f68014f1adc259274a | 2e1863e159b036b3e2983c310d471608fb6381be | /tests/test_select_multiple_field.py | a5280b4c22725ca481bad8dc8fd1204f4d5658cc | [] | no_license | ltvolks/wtforms-json | 8c33104b2f0fe1929b7c1352c38a93ef8e3329ce | 026f421beeac405d01b2c42e0caf585ee0a6e707 | refs/heads/master | 2021-01-24T00:04:48.906797 | 2013-09-21T12:27:22 | 2013-09-21T12:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | import wtforms_json
from wtforms import *
wtforms_json.init()
def test_select_field():
fixtures = [
{'name': 'Scarlet Witch', 'childs': 3, '__result': True},
{'name': 'Black Cat', 'childs': 0, '__result': False},
{'name': 'Tigra', 'childs': 1, '__result': True},
]
class MomForm(F... | [
"hans.r.69@gmail.com"
] | hans.r.69@gmail.com |
89134400ccc28a26b516bbb2c28f2c8435a1331f | cdd87af340f1431f7866211551b826c5d8295f51 | /tests/samplers_tests/test_grid.py | 968915cf1fb678ab8efcd4ffba076372c2252405 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | VladSkripniuk/optuna | ce6dc19cc83c9d92da531f1a8782c0ac85063a7a | 81d5b67a81ae14d606e6d6120ce50d02e90b0942 | refs/heads/master | 2021-01-26T01:46:50.574361 | 2020-03-02T14:25:01 | 2020-03-02T14:25:01 | 243,262,903 | 0 | 0 | MIT | 2020-02-26T12:57:39 | 2020-02-26T12:57:39 | null | UTF-8 | Python | false | false | 5,821 | py | from collections import OrderedDict
import itertools
import numpy as np
import pytest
import optuna
from optuna import samplers
if optuna.type_checking.TYPE_CHECKING:
from collections import ValuesView # NOQA
from typing import Dict # NOQA
from typing import List # NOQA
from typing import Union #... | [
"sano@preferred.jp"
] | sano@preferred.jp |
80a14f17033899ccf595bdf87f2e69d0d98a674a | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4455861.3.spec | e8931b48c6dd319bb00567b3ab78976b86bbf00e | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,317 | spec | {
"id": "mgm4455861.3",
"metadata": {
"mgm4455861.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
17aedfb1a805c18cd16b8e0bcc4cbcae87f0bcd3 | 81930c01935554f98066c711635d8f9342d19232 | /WebRoot/fckeditor/editor/filemanager/connectors/py/fckutil.py | 8578d65d46eda1990c3536b89568d781cf79b63d | [] | no_license | keets2012/teachingOnLine | c995ca38d06324c80b359afd79b61d9da297e450 | eb64718162310f513c61dc0c220da93eeedef16a | refs/heads/master | 2021-01-10T08:53:04.461883 | 2016-09-12T01:55:15 | 2016-09-12T01:55:15 | 43,011,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,666 | py | <<<<<<< HEAD
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2008 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the ... | [
"928420597@qq.com"
] | 928420597@qq.com |
f36a0117e05b4bddbc624741aec311a233dc86b1 | 06bdb0bcfb92dccf798dcc5fee90ee07e0b8e340 | /Assignment 1/opencl.py | bff4994695864017faae9e7cb2c0648472f8673b | [] | no_license | peter-xxxxx/Hetero-Computing-Homework | ae007019cf39026f4bcc91835cbe35696ed87adc | 76e763021eb5dd7adf7fad7ca82b4c0ceb962cfb | refs/heads/master | 2020-04-02T05:08:58.978875 | 2018-10-21T21:49:53 | 2018-10-21T21:49:53 | 154,054,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,264 | py | #!/usr/bin/env python
import time
import pyopencl as cl
import pyopencl.array
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
class openclModule:
def __init__(self, idata):
# idata: an array of lowercase characters.
# Get platform and device
NAM... | [
"xusuyang@peters-Mac.local"
] | xusuyang@peters-Mac.local |
b7301d1fbf818f6ef127734af94615d410d2a459 | 6c995906999a000ff2de54ad021c8ae7ea27344c | /src/python/driver.py | 00afcd2569183b1d3f02948256b61da939a38646 | [] | no_license | harrygun/ZA_rec | 2427b1e042c383b8513e1c44b43258da92ba3736 | 7d4be8279b631de39820c8bf1b84a4b9c48c6cc4 | refs/heads/master | 2021-01-13T15:59:25.678425 | 2016-12-16T01:21:38 | 2016-12-16T01:21:38 | 76,792,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import os
import numpy as np
import pylab as pl
import genscript.progcontrol as pc
from genscript.extendclass import *
import genscript.mpiutil as mpi
import cosmology.power as power
def Testing_portal(p):
return
param_dict={
'power_spectrum_fname': '/home/xwang/workspace/general-data/power/fiducial_... | [
"xwang@cita.utoronto.ca"
] | xwang@cita.utoronto.ca |
18ffbacb67477efa68678d7568f47f2f8a6dbe4c | 25afa63cbb605182238a665695fc49324f48a33d | /source/main/urls.py | 0506ae8a5072d8addfeb640c039d1be28e77f2d8 | [] | no_license | York5/Issue_Tracker | 84a45346161e3e7e2668017e24600efa727a5b32 | 5b3a842fc44fb13316e62bcbc96930961772b716 | refs/heads/master | 2023-05-01T01:45:00.844541 | 2019-10-31T12:24:29 | 2019-10-31T12:24:29 | 211,317,633 | 0 | 0 | null | 2023-04-21T20:38:14 | 2019-09-27T12:45:31 | HTML | UTF-8 | Python | false | false | 886 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"mikhailvishin2@yandex.com"
] | mikhailvishin2@yandex.com |
24bc41eb2f4f89ca812fcf85604187464eda7aa2 | ac661c9fa744984a3e7bd399bd887b466643023a | /audio_chatbot.py | 258aaaadb3388766401895af005b53b68ef3e893 | [] | no_license | ratulbasak/audio_chatbot | 00e8ad5980dcb684c84d0eb53c3fdebc740ab23a | e77a94ede8b93f66fd8fd92cf9958949c38a0a7d | refs/heads/master | 2021-01-13T03:35:02.275159 | 2016-08-08T21:09:17 | 2016-08-08T21:09:17 | 77,297,527 | 0 | 0 | null | 2016-12-24T19:29:44 | 2016-12-24T19:29:43 | null | UTF-8 | Python | false | false | 2,694 | py | from tkinter import *
import os, html
import pyaudio
import speech_recognition as sr
import tkinter.scrolledtext
class App():
def __init__(self):
self.doss = os.getcwd()
self.com_sign = "Bot >> "
self.user_sign = "You >> "
self.r = sr.Recognizer()
self.window = Tk()
... | [
"shovon.sylhet@gmail.com"
] | shovon.sylhet@gmail.com |
ad2ed771f1e096556714341485d9077e6de44995 | 65b4bb5a4ba3284453654ef96cf5e5073228083d | /floydhub_beta_clean.py | 66e8c523073eeca19bb37ae0265b2a4a692cc3f3 | [] | no_license | amlawson98/Colorblind_Neural_Net | 8ffc720af67271de78fed7e81f1d6315126e4db5 | 98223f06c893f9e314f11bca09f345a49307494c | refs/heads/master | 2020-09-08T12:24:32.181109 | 2019-11-12T04:59:23 | 2019-11-12T04:59:23 | 221,132,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # Get images
X = []
for filename in os.listdir('../Train/'):
X.append(img_to_array(load_img('../Train/'+filename)))
X = np.array(X, dtype=float)
# Set up training and test data
split = int(0.95*len(X))
Xtrain = X[:split]
Xtrain = 1.0/255*Xtrain
#Design the neural network
model = Sequential()
model.add(InputLayer(... | [
"32847387+amlawson98@users.noreply.github.com"
] | 32847387+amlawson98@users.noreply.github.com |
63d1c5aed5f4bd5277d394d2d3c8809e34ccc391 | 468a7f2728fc4024825f30181cc0324e3edefa16 | /venv/bin/chardetect | 52240009f99ce43850d3aee924e058ed4c8a0194 | [] | no_license | CarusCha/pythonProject | 60492a676cd1cc8629f359fc0528b2a105fd1019 | 422913bef98c9ccc95c62287d36564d7a94795ea | refs/heads/main | 2023-07-27T00:40:20.854879 | 2021-09-06T14:54:54 | 2021-09-06T14:54:54 | 403,646,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/Users/chajonghun/PycharmProjects/pythonProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"chajonghun.kor@gmail.com"
] | chajonghun.kor@gmail.com | |
ea3d4ec1463d1e8dec3cc664a53e3f17777103e6 | b1ce53aabfcc1852e013d386272d7d4260226995 | /venv/Test8.py | ef3360f3f23e2fa0f3079b38fb454d585ee32656 | [] | no_license | naren6195/pythonProject | 91e57431a20c8e6c8eab0c7ffc6a264e08051a36 | 10950f0205c30315d171dc1468dd176c7d5efb34 | refs/heads/master | 2023-04-25T18:16:47.438760 | 2021-06-01T18:59:39 | 2021-06-01T18:59:39 | 372,927,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import os
os.chdir("C:\\Users\\Narendra\\Desktop\\NewPythonTest")
print(os.getcwd())
f1=open('4567.txt','r+')
#f2=f1.read()
f3=f1.readlines()
f4=f1.readline()
#print(f3)
#print(f4)
for l in f3:
print(l)
| [
"narendrasai6195@live.com"
] | narendrasai6195@live.com |
934f3a82f33908e41b028a031cfa39c63aa7a5e6 | 1f3ef231c7b907fd2da2636909322b6ce115e8ae | /userbot/plugins/support.py | d6abd1ae4be7effd0551c6f0fe1d433008e90f81 | [
"MIT"
] | permissive | indianSammy07/Wolfuser | 61774799e4d981eaded19d553b2baacbac97f8fc | 9c56dde1f81cec9eb4dd85a369f3a1f8b99f0763 | refs/heads/master | 2022-11-16T18:54:10.286881 | 2020-07-22T03:14:01 | 2020-07-22T03:14:01 | 274,834,329 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | """Emoji
Available Commands:
.support
Credits to noone
"""
from telethon import events
import asyncio
from userbot.utils import admin_cmd
@borg.on(admin_cmd("wolf"))
async def _(event):
if event.fwd_from:
return
animation_interval = 0.1
animation_ttl = range(0,36)
#input_str = event.pattern_... | [
"noreply@github.com"
] | indianSammy07.noreply@github.com |
c2c8d845e7acdd265fa76cea7af6223a766cddc9 | 47a3d4959fb84085c30cf1eac45a2de1315fdabe | /rango/admin.py | a46eca8b2c51798eee3fadf4453b7395a39cb6ed | [] | no_license | vikasreddy92/tangowithdjango | 80cc430f6e396bedcc1c4cf467efe02dbc34d683 | ef444eb554fde172ae82812e200ac0a2da1f516e | refs/heads/master | 2020-05-29T09:13:46.698535 | 2016-10-05T04:12:33 | 2016-10-05T04:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from django.contrib import admin
from rango.models import Category, Pages, UserProfile
# Register your models here.
admin.site.register(Category)
class PageAdmin(admin.ModelAdmin):
list_display = ('title', 'category' , 'url')
admin.site.register(Pages, PageAdmin)
admin.site.register(UserProfile) | [
"santhoshboggarapu@gmail.com"
] | santhoshboggarapu@gmail.com |
a6c7eec4770c837eabbcd5463e2e7ec107094b27 | 4fc1a545a317c45b827b79d61af30ecd60bcf5f9 | /engine/game_connector.py | 895578e887ffded5e32c1d6fbf410cbb7612d58b | [] | no_license | surenm/hex | 7fad0b8bf22be888d555c7885f541cb707fea1ee | dfdc688908743782b24872c610cb5efa4e39696f | refs/heads/master | 2020-11-29T15:24:04.589840 | 2014-09-17T15:35:10 | 2014-09-17T15:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | import game_api
import time
from optparse import OptionParser
import example_player
if __name__ == "__main__":
parser = OptionParser()
parser.add_option("", "--a_input", dest="a_in",
help="input file for player A", metavar="FILE")
parser.add_option("", "--b_input", dest="a_out",
... | [
"max@recoset.com"
] | max@recoset.com |
307a73a433443dbda7b4f25e04203673d8e9775f | 6b532a243c693739151664e9e9772d9391ab39df | /code/intersection.py | f3832e9f9df1c8ed6cc2a7f496b92419a8949dfe | [] | no_license | slugwarz05/checkpoint | f3c592d91c362f15ede662226ee9174e04ff3555 | ab4d8e57589f4058db010d8e5c56a7a0875887c0 | refs/heads/master | 2021-01-15T23:27:40.999510 | 2016-02-12T17:36:26 | 2016-02-12T17:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | class Intersection:
"""
Implements an intersection, used for parametrically limiting pedestrian flow.
Note: the intersection is not yet used in this initial model, but its definition
is provided here.
"""
"""
Creates a new intersection.
Args:
int_id: Integer. Unique numerica... | [
"matthewbentonmay@gmail.com"
] | matthewbentonmay@gmail.com |
544c68bbb9bcd0defc1e22d8be96424e01d8528a | c73baa3234fdd58f4209fb6960d9afa6a6efc492 | /9.updating/qq_bot.py | 292021d139d8da0bfac89da30ca58e1531878631 | [
"MIT"
] | permissive | hireach/examples-of-web-crawlers | 173f2ef2223bc45d5585c0cee6aeb3b6e9186e96 | 1cd077367981834da34370644a238fbd5194512a | refs/heads/master | 2020-05-25T03:26:00.522076 | 2019-05-19T20:12:00 | 2019-05-19T20:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,625 | py | # -*- coding:utf-8 -*-
# 引用自定义库
from decrypt import hash33_token
from decrypt import hash33_bkn
from decrypt import get_sck
from url_request import get_html
from url_request import post_html
from decrypt import get_csrf_token
# 引用第三方库
import re
import time
from requests import get
from requests import post
from requ... | [
"3257179914@qq.com"
] | 3257179914@qq.com |
48a3d0e17c6da5f6f7978d6fecf15aab2c14acfb | f4a8ce0c4e37ff85047d7e45a425cf8d2a1aa9d9 | /Random/file.py | eb3fa04edd818ff81ddf0d59f63c7c98da05827c | [] | no_license | oladapo-joseph/rock_paper_scissors | 514b1ffb7d14c395131d3f94c7de670b5dd5ac84 | 799e3b574e0a0a81109a7508423c04c553a4b033 | refs/heads/main | 2023-02-11T14:22:34.552554 | 2021-01-14T01:38:36 | 2021-01-14T01:38:36 | 310,174,204 | 0 | 0 | null | 2021-01-14T01:38:37 | 2020-11-05T02:53:48 | Python | UTF-8 | Python | false | false | 314 | py | def test():
infile = open('test001.txt', 'r', encoding='utf8')
outfile = open('test002.txt', 'w', encoding='utf8')
for line in infile:
lines = ":".join(line)
# s = line.split(".")
outfile.write(lines)
# outfile.write(s)
infile.close()
outfile.close()
test()
| [
"oladapo_joseph@yahoo.com"
] | oladapo_joseph@yahoo.com |
b6855e0a4702ef6be028e101470e0dc92b243364 | 62e9fb33329fbefa89287e5bc343cb9c120306a1 | /tensorflow_probability/python/sts/forecast.py | 9505ff71edfc41823f9f6152b7bc80dc2968fd62 | [
"Apache-2.0"
] | permissive | npfp/probability | 3c103d4b9d7a72d3d16eb79b1e4f648afbaca057 | 3911f4463cdcca6cc118633742430885fb0c88cb | refs/heads/master | 2022-05-01T14:23:40.504258 | 2022-04-07T20:08:45 | 2022-04-07T20:10:58 | 246,853,846 | 0 | 0 | Apache-2.0 | 2020-03-12T14:23:04 | 2020-03-12T14:23:03 | null | UTF-8 | Python | false | false | 24,131 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
1ef93eb81a2c7b76ee8332735487da4f4a17a2aa | 3dcca553db05a113781162eb6f7af6881ad05f93 | /Python Start/Лекция 2-3. Числа/Lection_2_tsk_1.py | 213cb2f696c2f9621d2e934c822e8bcd38347de5 | [] | no_license | YevhenMix/courses | f137864d0f098dd1246ce9191a8890260b90f42a | 628d224a57f07945c60982749b38dfe03e69a6e0 | refs/heads/master | 2023-02-28T08:36:44.643941 | 2021-02-04T21:37:51 | 2021-02-04T21:37:51 | 331,698,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | print('Программа разбивает 5-ти значное число на цифры из которого оно состоит.')
# решение когда сразу int
num = int(input('Введите желаемое число: '))
first = num // 10000
second = num % 10000 // 1000
third = num % 1000 // 100
fourth = num % 100 // 10
fifth = num % 10
print(first)
print(second)
print(third)
print... | [
"jeka.mixaylov58@gmail.com"
] | jeka.mixaylov58@gmail.com |
a25f0dbe9161129f6ddf0034ac21ea1857e7f672 | 7352a0827b27dae0932c0d680bf2e68da4ae3b06 | /handwriting_recognition.py | 3e7fbde585a52864ce5669cc6edeaf37d02b57e1 | [] | no_license | adith-a-danthi/Tensorflow-Programs | 830326fc0795617855c590ea23ef11930696e42d | 3aa6ba9c585c5de560f10176847f227dcc61d47f | refs/heads/master | 2022-11-05T16:21:50.564723 | 2020-06-26T14:48:16 | 2020-06-26T14:48:16 | 267,604,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | import tensorflow as tf
# To stop training after 99% accuracy is reached
class myCallback(tf.keras.callbacks.Callback):
def on_epoch_end(self, epoch, logs={}):
if(logs.get('accuracy') > 0.99):
print("\nReached 99% accuracy so cancelling training!")
self.model.stop_training = True
c... | [
"adith.danthi@gmail.com"
] | adith.danthi@gmail.com |
61c28f0a8d8ac1e14fb99000c8f0c3a4653fa6c5 | 177c62658bb3954b867c679eaf7eb2f1793fc5e6 | /ebroker/bin/convert_extract_ebroker_market_data_with_candle_stick.py | c14b156eef1da38803dbdb32aa6b1216a1c6ac81 | [] | no_license | hfyan0/ebrokerdata_cash | d7298bef7bb3cbcfb359f39afdc80b69ee7d210f | 52c7e8663963fa105ea5691b5b38e30b73fd1b1b | refs/heads/master | 2020-04-06T07:13:05.330211 | 2016-09-06T05:40:49 | 2016-09-06T05:40:49 | 62,302,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,724 | py | #!/usr/bin/python
import sys
import time
import re
import candlestick_generator
# Created by DT
# Updated by CCF
# Last update: 20140103, CCF
# Version v0.3
# Change:
# * Parse the line char by char instead of spliting "|"
# * Data structure change
# * New function: tokenizeLine(line)
# Version v0.2
# Change:
# Added ... | [
"hfyan0@gmail.com"
] | hfyan0@gmail.com |
7a6c3780f0af337afc14ae8694d810e09fe88f1e | 659d6e67281480ca7f3c6970444144878e86d6f3 | /graphwave/benchmark_algorithms/roleX.py | 58d6220758f94fa0392be4339e29953400c72264 | [] | no_license | Sephora-M/StateFeaturesLearning | 3b2ff6783fb48708911c674e6c5c0a9a70c3e1d1 | 349b001305195c0971b2486f90d9122e197a8cbe | refs/heads/master | 2022-06-22T09:20:49.223407 | 2020-01-19T22:41:16 | 2020-01-19T22:41:16 | 234,719,173 | 2 | 0 | null | 2022-06-22T00:13:27 | 2020-01-18T10:41:04 | Python | UTF-8 | Python | false | false | 13,518 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 3 09:57:52 2017
@author: Lab41: Github: Circulo/circulo/algorithms/rolx.py
#### https://github.com/Lab41/Circulo/blob/master/circulo/algorithms/rolx.py
Set of functions to compute the RolX featurization
"""
import sys
import math
import igraph
import numpy as np
from... | [
"sephora.madjiheurem@gmail.com"
] | sephora.madjiheurem@gmail.com |
b95ad6aaa1502bf5b398071790eda12f55ab22b4 | bcfbf38b1367ba46ea7000afce190ca3e17a0820 | /packages/core.py | f332ff7e327c60fbf7de0f0072fe7c7b712ca488 | [
"MIT"
] | permissive | georgeyjm/Dumpling-Bot | ce5a6ba3fec654a7256c2d8956ded66854fe50ae | 3f875e665a530cd8777f65def8c72b728ab0414e | refs/heads/master | 2021-09-08T18:42:52.175338 | 2017-03-18T08:51:10 | 2017-03-18T08:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def log(infoType, info):
'''记录任何信息或错误。\ninfoType参数只支持INFO或ERROR。'''
if infoType not in ('INFO', 'ERROR'):
log('ERROR', 'Unknown Info Type -> {} ({})'.format(infoType, info))
return -1
print('[{}] {}'.format(infoType, info))
| [
"noreply@github.com"
] | georgeyjm.noreply@github.com |
2874ae6f2c2ba711a43128b0a96e35ae83ae3f40 | 298df017f47c6ad55c0845ceb3359df011d52e2c | /ch7_list_004.py | 973ee83b42a6000a59ee274bbf8cae627542b7c9 | [] | no_license | cmjao/Python-practicespace | 6b8af76d36de3c9afd8acd50601f73c810738723 | 3a69eb3cb593ab1005a112fc498b22711f0c3725 | refs/heads/master | 2022-12-01T20:41:33.750971 | 2020-08-05T08:57:14 | 2020-08-05T08:57:14 | 279,794,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | start1 = ['fee', 'fie', 'foe']
# (first, second)
rhymes = [
('flop', 'get a mop'),
('fope', 'turn the rope'),
('fa', 'get your ma'),
('fudge', 'call the judge'),
('fat', 'pet the cat'),
('fog', 'walk the dog'),
('fun', 'say we are done'),
]
start2 = "Someone better"
# Line1 start1 (首字大寫、後面加... | [
"gtmin1118@gmail.com.tw"
] | gtmin1118@gmail.com.tw |
dd7e3a62a5b216c5ebcc9450423021cdcf93c847 | 08870aa021eecd19dd7ff26d9bfa9a05806eb4db | /Compliant_control/Modifications/PILCO/controllers.py | 88bf8f0ca08c0245a0d21fe98f17e0778a33130d | [
"Apache-2.0"
] | permissive | soumayya-plaif/Compliant_control | 03e9c4c024b3c013ae1218832a7428a5516b3b33 | 485f627fa83d59f414f41bd57c5d37528ef5f1ec | refs/heads/main | 2023-07-16T23:38:16.546231 | 2021-08-27T18:01:06 | 2021-08-27T18:01:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,488 | py | import tensorflow as tf
from tensorflow_probability import distributions as tfd
import numpy as np
import gpflow
from gpflow import Parameter
from gpflow import set_trainable
from gpflow.utilities import positive
f64 = gpflow.utilities.to_default_float
from .models import MGPR
float_type = gpflow.config.default_float(... | [
"martihmy@stud.ntnu.no"
] | martihmy@stud.ntnu.no |
dcc354de5bac5131f98794f55fa6a1ebafd31fda | acabd628b26a165d84c325a1d0978b312f03caa2 | /code/factorial_no.py | 3513efa6f9540a8357073d9e400807b961773a27 | [] | no_license | Muthulekshmi-99/guvi | 7e298f44515fbafa373349c547e82e84866425b2 | 2a628cf69bc3beac295d36160e42329499a116af | refs/heads/master | 2020-06-03T00:10:37.702907 | 2019-06-19T17:26:20 | 2019-06-19T17:26:20 | 191,355,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | m=int(input())
n=1
for i in range (1,m+1):
n=n*i
print(n)
| [
"noreply@github.com"
] | Muthulekshmi-99.noreply@github.com |
8e8ae9bfed60b43e8a113dae5cd5686a87ef0c24 | 6dd7fb197d43bc15f24b3474c0b0bc1acbb5f489 | /no15_three_sum.py | 99435d38289f1e30d1a59d6c619565d5187d86db | [] | no_license | jackneer/my-leetcode | 27dbf04ce3431fadf98055a3fe432c4420f4c242 | dda5fe0a0ff6a89a7fc4b1a43e4c15ba0c53ac0d | refs/heads/master | 2020-12-01T19:40:55.501124 | 2020-02-15T10:07:53 | 2020-02-15T10:07:53 | 230,745,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | def three_sum(nums):
check_sums = []
result = []
for i in range(0, len(nums) - 2):
for j in range(i + 1, len(nums) - 1):
for k in range( j + 1, len(nums)):
sum = nums[i] + nums[j] + nums[k]
check_sum = abs(nums[i]) + abs(nums[j]) + abs(num... | [
"p500.wu@gmail.com"
] | p500.wu@gmail.com |
a21099da7c91dee4b39c5939673f21b41c5bc5a1 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/notifications/client/controls/notificationSettingList.py | 7b0f568634a511abff787bcc94b24bb894ef9d24 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 8,450 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\notifications\client\controls\notificationSettingList.py
from carbonui.control.scrollContainer import ScrollContainer
from carbonui.primitives.sprite import Sprite
from eve.client.script.ui.control.eveLabel import EveLabelMe... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
2744e132cf91f846554720a928a3317943904bd2 | 40e3ee2f6048c518b5bc8ddb3b128c0f3e5d92a3 | /utils.py | 2c5cbb61173976d8a4fca6bb03cc95b4c4f67a1f | [
"MIT"
] | permissive | shubhampachori12110095/TextSentimentClassification | d1b731ff4ca1dc04aa776ab4087d0753c65d485d | fbc67289f40cf01a737ac4ff8face7d75777a226 | refs/heads/master | 2020-04-07T09:35:54.663798 | 2018-04-24T02:49:53 | 2018-04-24T02:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,813 | py | import pandas as pd
import numpy as np
import os
from configs import general_config
from data_helpers.utils import readNewFile,loadDict
import logging
import tensorflow as tf
def get_num_params():
# for v in tf.trainable_variables():
# print(v.name)
# print(np.prod(v.get_shape().as_list()))
ret... | [
"wslc1314@gmail.com"
] | wslc1314@gmail.com |
24eca002962dcec2c9b5fda770719d430b59cf20 | 919afc2e687d72b11f51619bd1c05aec7cd48654 | /app.py | dcd7a9434e4d0bb57d2ce95adc3da2e19a8b4ef3 | [] | no_license | himanshu0137/dataPeaceAPI | 6c288a9a25c8878100f3badf531030b268d4a413 | 2dcd701923ab7b94f001da61df40d1b570d2b160 | refs/heads/master | 2021-07-23T04:11:58.113913 | 2020-03-04T19:57:35 | 2020-03-04T19:57:35 | 244,989,142 | 0 | 0 | null | 2021-03-20T03:03:18 | 2020-03-04T19:44:28 | Python | UTF-8 | Python | false | false | 437 | py | from flask_api import FlaskAPI
from controllers import Routes
from dal import initDb
# Initializing Flask API
app = FlaskAPI(__name__, instance_relative_config=True)
app.config.from_pyfile('config.py', silent=True)
# Created Blueprint to separate modules from main file
for route in Routes:
app.register_blueprint(... | [
"himanshu.bansal@quovantis.com"
] | himanshu.bansal@quovantis.com |
0a01687df2c089a195511f68aa806930a226fa5e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2019_08_28_17_27_12_718860.py | 40dd7d3f989b5e4d580c39c5026bf8cd7af9b70f | [] | 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 | 134 | py | import math
def calcula_gaussiana(x,mi,sigma):
expo=(-0.5)*((x-mi)/sigma)**2
f=(1/(sigma*(2*pi)**0.5))*exp(expo)
return f
| [
"you@example.com"
] | you@example.com |
445c279e9840d42246cf9d5793b71853026baf52 | f00eb2b355aa5b24a6b931c32ba9736de95d18c3 | /programs/basic_joystick/lib/sqrt.py | c47c71fd61ce64506c36b27f10cf6bfb42b3d772 | [] | no_license | toomone/orb9k_circuitpython | edb9ffd20c620444bcee6a739d0786b97015602d | 4c505a955162614056408b6820afe203eb6934b5 | refs/heads/master | 2023-02-18T14:51:11.679817 | 2021-01-24T20:40:06 | 2021-01-24T20:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # from https://codegolf.stackexchange.com/questions/85555/the-fastest-square-root-calculator so we don't have to import math
def sqrt(n):
# 3 iterations of newton's method, hard-coded
# normalize
# find highest bit
highest = 1
sqrt_highest = 1
while highest < n:
highest <<= 2
sq... | [
"vbputz@gmail.com"
] | vbputz@gmail.com |
fc2a32429ee94a2b10f1abdb867af943035ad10e | be0ed66aff9e77785421f7631bea94c7c6994331 | /python/669_TrimaBinarySearchTree.py | 729649148b722d53b16a1c93af9713eff3a17758 | [] | no_license | FLameSunRisE/leetcode | adf91c386686768337c855381274c227862c26ec | 8f7fc41bfaf1c86c19075be83f135449c6d7fe07 | refs/heads/master | 2023-08-16T18:44:42.633045 | 2023-08-07T09:36:06 | 2023-08-07T09:36:06 | 167,931,797 | 0 | 3 | null | 2021-02-13T03:12:16 | 2019-01-28T09:08:55 | Python | UTF-8 | Python | false | false | 2,124 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def stringToTreeNode(input):
input = input.strip()
input = input[1:-1]
if not input:
return None
inputValues = [s.strip() for s... | [
"flamesunrises@gmail.com"
] | flamesunrises@gmail.com |
b52b272677a9e03f4419a4ff839ac72a88d3320a | 0b9c154323ffe73679d28abae0a449140ebea074 | /main.py | 7170ea278c8ac1919bcb1a295b5f31002285dac6 | [] | no_license | AkshachRd/dwh-edu-task | c4b43ffbcf4886431c58d9156ab5d2e7ece057f6 | b3e3995474408b8e43a603b403bb086167402ae7 | refs/heads/master | 2023-06-21T11:39:29.316233 | 2021-08-05T05:44:40 | 2021-08-05T05:44:40 | 381,762,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from dotenv import load_dotenv
import requests
from os import environ
load_dotenv()
CURRENCY_API_KEY = environ.get("CURRENCY_API_KEY")
url = "https://currency-converter5.p.rapidapi.com/currency/convert"
querystring = {"format": "json", "from": "USD", "to": "RUB, EUR, CNY", "amount": "1"}
headers = {
'x-rapidapi-k... | [
"dr.chashka@gmail.com"
] | dr.chashka@gmail.com |
bfebf9a045f1ac38ea25c1b9ab4fa817a6e389bd | ec4f4aa5e22131bb094e6afc5af35dd37d68d3df | /python-flask/swagger_server/models/egress_mapping_schema.py | 5cf5410b16a8a833feba168862c1df63e77c77e2 | [] | no_license | ajragusa/OpenConfigAPI | e4224212dac3fb125ebff2ebedda930c9c979e71 | 485da3b2b96d568f857ccc931a86d7e7e9f3cab4 | refs/heads/master | 2020-05-29T23:01:05.287841 | 2019-05-30T17:16:39 | 2019-05-30T17:16:39 | 189,425,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server.models.vlan_logical_egress_mapping_config import VlanLogicalEgressMappingConfig # noqa: F401,E5... | [
"aragusa@globalnoc.iu.edu"
] | aragusa@globalnoc.iu.edu |
57a99dee4b6da30f4e1c4ad270261ca0246f6c77 | fe5ed850257cc8af4df10de5cffe89472eb7ae0b | /小小的Python编程 源代码/b代码/bak_code2-32/Chapter16/16.1queue.py | 3c1c6d17d437d81edd5a203eb016cec33806edb3 | [] | no_license | hujianli94/Python-code | a0e6fe6362868407f31f1daf9704063049042d9e | fe7fbf59f1bdcbb6ad95a199262dd967fb04846c | refs/heads/master | 2020-09-13T01:11:34.480999 | 2019-11-19T05:29:59 | 2019-11-19T05:29:59 | 222,614,662 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #队列演示
import queue #引入队列模块
line=queue.Queue() #创建队列
if line.empty(): #测试队列是否为空
print("队列line为空")
#向队列放入元素
for person in range(50):
line.put("路人"+str(person))
line.put("小小")
line.put("爸爸")
#get()示例
x=line.get()
print(x)
x=line.get()
print(x)
#取出并依次打印队列里的元素... | [
"1879324764@qq.com"
] | 1879324764@qq.com |
5415155cfc7c687c70d6bc97f0e21bd94815c8e4 | f69030f82976394dbb1a9337658b065f02f4b307 | /roles/copy_directories/files/load_testing_python_scripts/random_data_generator/source/random_data_generator.py | cfb4357c2b8f45a6447710d0a6b452c966f817b5 | [] | no_license | RGirard94/TimescaleDB_Test | 644070d9921de8a4eb53920c4f636f55d649e594 | 0db912032dc4680fc580f5cc347d0b5222d70285 | refs/heads/master | 2020-06-30T15:19:12.584952 | 2019-08-09T12:51:36 | 2019-08-09T12:51:36 | 200,869,589 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,033 | py | # coding: utf-8
import argparse
import configparser
import datetime
from datetime import date
import string
import random
import os
import shutil
import logging
# CREATE LOGGERS #
LOG_FORMAT = '%(asctime)s :: %(levelname)s :: %(message)s'
RR_INTERVAL = 'RrInterval'
MOTION_ACCELEROMETER = 'MotionAccelerometer'
MOTION... | [
"rgirard@octo.com"
] | rgirard@octo.com |
d3f18aa4bdaa8a91e26996c66b3d19356a8227f1 | fa8fc38ad86ee96810fcf4ca8d5cc873ef5cdf9c | /settings.py | 7bb05380cb0f864ae42d3b545962f053be575386 | [] | no_license | pekkajauhi/alien_invaders | dfa7c4e5bb635485c999f3e9d4012943e43d4abd | f40e268d65734064b168af4a1a34d2c3ed3cd72f | refs/heads/master | 2020-06-22T22:02:10.865968 | 2019-07-23T13:17:03 | 2019-07-23T13:17:03 | 198,410,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | class Settings():
"""A class to store all settings for Alien Invasion"""
def __init__(self):
"""Initialize the game's static settings."""
# Screen settings
self.screen_width = 1200
self.screen_height = 600
#self.bg_color = (230,230,230)
self.bg_color = (0,0,25)
... | [
"pekkajauh@gmail.com"
] | pekkajauh@gmail.com |
12d00efdb514f1d4ed0ee3a133482a16b185c430 | fd001df16f819f657526c4824bc77aae8c368f0b | /vip/main.py | 6f6853003391a49cd76ae3c4ff7ea145546a812e | [] | no_license | juntalis/vip | c852d8a2f1688d827d48f8a0b6a304786fdf6a1a | 62318661ac5c1297a01add3b584bffd45ab56891 | refs/heads/master | 2020-12-28T22:22:07.250997 | 2012-12-10T02:23:23 | 2012-12-10T02:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | # -*- coding: utf-8 -*-
import argparse
import contextlib
import sys
import vip
from vip import core
@contextlib.contextmanager
def protect_from_VipError():
try:
yield
except core.VipError as e:
core.logger.exception("fatal: " + str(e))
def create_argument_parser():
usage = """
%(pro... | [
"dawid.fatyga@gmail.com"
] | dawid.fatyga@gmail.com |
a6443714e78c514f91288fa7d1228269064a5eb1 | 82a39bab1ce10e01739bc7dbd17d823662b89222 | /w9Main(지하철역 최단거리).py | f124feb9348a8b453ad1e7f93b6cc0288af402ef | [] | no_license | JeonHeeSang/p2_201611103 | 1658499dbc575f09ba95faab2e82167cc303cfc2 | d2fc35bf6da8907ffc868272d1f4c5cba4f0e61a | refs/heads/master | 2021-01-17T04:47:54.436893 | 2016-06-14T09:41:46 | 2016-06-14T09:41:46 | 54,961,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import math
Locations=tuple()
myList=list()
(x1,y1)=(37.575765,126.973626)
Locations=[(37.576573,126.985536),(37.588826,126.944051),(37.574577,126.957754),(37.619012,126.921141),(37.571618,126.976551)]
mylist=list()
for i in Locations:
mylist.append(math.sqrt((x1-i[0])**2+(y1-i[1])**2))
print min(mylist)
... | [
"gmltkd1302@naver.com"
] | gmltkd1302@naver.com |
bfd141a0f30ebd17b92bff39da89b6b302f60c69 | e7ed154e504e60a48ba11cbde115c073036e6ffb | /booker/tickets_querier.py | 9fccac81c79176dbd2c692dea5a0804831aed697 | [
"MIT"
] | permissive | kgd1987/12306-auto-book | 1f6412dbf47210f13127b40c3b789ded5c5b3a39 | a2a876016f4826baf5d880fffca7f7260cc717dc | refs/heads/master | 2020-04-10T21:11:36.410275 | 2018-12-03T12:09:50 | 2018-12-03T12:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | py | # -*- coding: utf-8 -*-
import requests
from booker.consts import urls
# An object that implements central inquiry funcitionality
class Querier():
def __init__(self, departure, destination, date, ticket_type = 'ADULT', **kwargs):
self.departure = departure
self.destination = destination
sel... | [
"tomatokillar@gmail.com"
] | tomatokillar@gmail.com |
15646181db241c6d6f3a9e9f418a536aa95263f0 | 433c8104a6a114fe5aa4f28ac3ea05ab21e258c7 | /web_api/yonyou/apis/enum.py | 42a6b7924d10d9393d463cca2e194b060a5babf7 | [
"MIT"
] | permissive | zhanghe06/flask_restful | dda5a77cc8f6d6ad3de4b86c337fded12faa0057 | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | refs/heads/master | 2022-12-10T13:50:15.268373 | 2018-08-28T11:57:39 | 2018-08-28T11:57:39 | 139,790,305 | 2 | 2 | MIT | 2022-12-08T02:15:24 | 2018-07-05T03:27:38 | Python | UTF-8 | Python | false | false | 2,754 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: enum.py
@time: 2018-08-23 15:50
"""
from libs.mysql_orm_op import DbInstance
from web_api.databases.yonyou import db
from web_api.models.yonyou import EapEnum
db_instance = DbInstance(db)
def get_enum_row_by_id(enum_id):
""... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
1be3d3576a39cb6f1efb3f5ca688fbe06e2125ad | d1835b1fa65adea42b883fa234197b1aa5e2b8e1 | /usb_import.py | 4d90eb076acd732b0d908035556b764c8a83ede1 | [] | no_license | rafaeljegundo/xbowtocitec | 88b103fae1ac1c20993b4d8aab9fcfcd830e711e | a0d2bf834657b2646cfb24a9f5961a39c9dd67bb | refs/heads/master | 2020-05-17T13:06:12.124163 | 2011-07-01T14:51:23 | 2011-07-01T14:51:23 | 1,582,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | # -*- coding: cp1252 -*-
import time
import signal
import sys
import serial
ser = serial.Serial()
ser.port = 3 # May change from system to system. Validate to be sure.
ser.baudrate = 57600
if ser.isOpen():
ser.close()
ser.open()
else:
ser.open()
def decode(code):
deco = []
for... | [
"rafael.jegundo@gmail.com"
] | rafael.jegundo@gmail.com |
7802adee41606de0ec1ff1fc15514f63d6937454 | e354add7dd04582cc4227bcf95a34f097b3c5d34 | /coinaddress/networks/bitcoin.py | e57d26021823befb4b64e355a78c5d047c7ab4b3 | [
"MIT"
] | permissive | GDPR-gg/coinaddress | e9dab4cf0cec2a155b623d2e47080000b71b1fc5 | 09f95c8622992da2a3e634be95fc10114276b8eb | refs/heads/master | 2023-07-30T17:49:23.341617 | 2021-09-28T00:00:12 | 2021-09-28T00:00:12 | 411,075,512 | 0 | 0 | MIT | 2021-09-27T23:44:42 | 2021-09-27T23:44:42 | null | UTF-8 | Python | false | false | 137 | py | from .base import BaseNetwork
from .registry import registry
@registry.register('bitcoin', 'BTC')
class Bitcoin(BaseNetwork):
pass
| [
"roman@tolkachyov.name"
] | roman@tolkachyov.name |
04e7c53a7c383222f9c0e97164420b372bd0ed45 | c49196dc86e30512973782937a08501381790141 | /plugins/dice.py | e4aaeec7bfbc22be83ec2badde446593e6220747 | [] | no_license | atsumin/slack-todo | 5d2fa6d9910a236ef423eb90fc70d1676fdb377d | 26b33c6b40b13f9f1d9e09ec34543b4740629faf | refs/heads/master | 2022-11-30T02:20:48.897555 | 2020-08-16T09:54:19 | 2020-08-16T09:54:19 | 278,641,577 | 0 | 0 | null | 2020-08-16T09:54:20 | 2020-07-10T13:33:12 | Python | UTF-8 | Python | false | false | 2,484 | py | import random
from slackbot.bot import respond_to
from slackbot.bot import listen_to
def dice(num,m):
mess = ""
h = 0
for i in range(num):
f = random.randint(1,m)
h = h + f
if num == 1:
mess = "(" + str(f) + ")"
elif i == 0:
mess = "(" + str(f)... | [
"{earthmiran@gmail.com}"
] | {earthmiran@gmail.com} |
bb416b08bb75ad5743c5818b2f526e869a3dc034 | f573bdebd7b3489a90f6031f529b91718d169950 | /crimson_forge/__init__.py | 09085deefb723dc2536bb99fab5029ed2cb3ec62 | [] | no_license | miralayipouya/crimson-forge | 67b6aa4a87815169ae6987ed5c90cde66308b709 | a4a2b5a8f7024aa17b1b5c93a1bcc9f3af7ded21 | refs/heads/master | 2023-04-23T20:50:30.742235 | 2021-05-19T20:11:11 | 2021-05-19T20:11:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# crimson_forge/__init__.py
#
# 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 copyright
# notice, this l... | [
"zeroSteiner@gmail.com"
] | zeroSteiner@gmail.com |
ca105c2e0f4626dfd831c53a2fc9910355fb5b0b | 660c36d33a8d73b2a08d2bbd0b624dee56366843 | /PythonTest/flask_test.py | 2670170b06a1ee8c7914723aee82231d87bf54e0 | [] | no_license | mpp100579/test_case | 78dd68341643c354f744c32d19ed3f54dadb9c0a | 2c8062f73ed16d098770d9f45e08454b451c1c68 | refs/heads/master | 2020-04-13T08:31:11.018112 | 2019-07-05T06:41:44 | 2019-07-05T06:41:44 | 163,083,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | # -*- coding:utf-8 -*-
'''
import flask
from flask import request
from flask import jsonify
import tools
import OP_db
import settings
# 创建一个服务,把当前这个python文件当做一个服务
server = flask.Flask(__name__)
# server.config['JSON_AS_ASCII'] = False
# @server.route()可以将普通函数转变为服务 登录接口的路径、请求方式
@server.route('/login', methods=['ge... | [
"2906211933@qq.com"
] | 2906211933@qq.com |
1b7cd915223a2064e1a33ecdbe508f602974a7cf | c1973f51924be8fb0a71c3556f4214ad6c769ad3 | /matrix_helper.py | b03db9a996ca4b03c477f35e9db404db030e8b1f | [] | no_license | brandonlogan/python_opengl_learning | ff27c3e94821bb142a510acf15dde0bd262316e3 | 56d403d103496f4e50b836c0e99505364ada859a | refs/heads/master | 2021-01-15T11:48:59.633146 | 2013-07-05T07:46:59 | 2013-07-05T07:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | import glm
import math
import numpy
def translate(matrix, x, y, z):
translation = glm.types.mat4x4.identity()
translation.col3_vec4(glm.vec4(x, y, z, 1))
return translation.mul_mat(matrix)
def scale(matrix, x, y, z):
scaling = glm.mat4x4.identity()
scaling.i00 = x
scaling.i11 = y
scaling... | [
"johnbrandonlogan@gmail.com"
] | johnbrandonlogan@gmail.com |
c282c9be34a54448c3e932b51203545d2d511cc7 | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.6.0b7/bin/weewx/cheetahgenerator.py | 9f827c995c99b80e9986cec85047e89cb9371ce5 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 33,943 | py | #
# Copyright (c) 2009-2020 Tom Keffer <tkeffer@gmail.com>
#
# Class Gettext is Copyright (C) 2021 Johanna Karen Roedenbeck
#
# See the file LICENSE.txt for your full rights.
#
"""Generate files from templates using the Cheetah template engine.
For more information about Cheetah, see http://www.cheetahtemplat... | [
"tom@tom.org"
] | tom@tom.org |
c579c4b8c1ee1a5a4164749336b8dc4787659c92 | f2220e153715dc47aaf49244c393b662c44dc980 | /blackjack.py | 40ee54a6d7f720c6332f5a681463cd1f9ca5e521 | [
"MIT"
] | permissive | mattwbarry/py_blackjack | 018f52206a4c69920894e10891766ee150877592 | c35fd1492b9f8d50a36e152b83c56740eccc0b21 | refs/heads/master | 2021-01-18T07:44:55.391658 | 2014-09-09T17:41:11 | 2014-09-09T17:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,154 | py | from random import shuffle
y = 'y'
n = 'n'
class Blackjack():
def __init__(self, players=4):
self.deck = [
{ 'number': '2', 'suit': 'hearts', 'value': 2 },
{ 'number': '3', 'suit': 'hearts', 'value': 3 },
{ 'number': '4', 'suit': 'hearts', 'value': 4 },
{ 'number': '5', 'suit': 'hearts', 'value': 5 },... | [
"mattwbarry@gmail.com"
] | mattwbarry@gmail.com |
391278daedcf36626a688fd8400b020bcd1efade | f825bea24f4cb5ee44828101611918b75f9ff13e | /meetups/migrations/0004_auto_20210705_2028.py | c9be474a92565870dfea797fce393642d4d696dd | [] | no_license | ethanl267/Django_course | 2735a8a982205b707445ce5fa24f216724be4914 | b08d57a531fcb3e7f37b513267b83075e70fb0f5 | refs/heads/main | 2023-06-12T16:08:59.874068 | 2021-07-06T15:42:08 | 2021-07-06T15:42:08 | 379,626,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # Generated by Django 2.2.12 on 2021-07-05 20:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('meetups', '0003_auto_20210705_1940'),
]
operations = [
migrations.CreateModel(
name='Participant',
fields=[
... | [
"ethanlesch8@gmail.com"
] | ethanlesch8@gmail.com |
61acb92e717a198fb0f9c74aff8b85975263a920 | ee6fc02e8392ff780a4f0d1a5789776e4d0b6a29 | /code/practice/abc/abc078/c.py | bb3317cee6cc38832ee76b4f54c7679216a3610b | [] | no_license | mollinaca/ac | e99bb5d5c07159b3ef98cd7067424fa2751c0256 | 2f40dd4333c2b39573b75b45b06ad52cf36d75c3 | refs/heads/master | 2020-12-22T11:02:13.269855 | 2020-09-18T01:02:29 | 2020-09-18T01:02:29 | 236,757,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
n,m = map(int,input().split())
print (((1900*m)+100*(n-m))*(2**m))
| [
"github@mail.watarinohibi.tokyo"
] | github@mail.watarinohibi.tokyo |
747ad736df23783884812c7c474ad3c6f8c00a34 | 1b2a1f807b98034567e936b9b5c76c2fc89b908a | /adj_tf/benchmark/benchmark.py | 75e77abfdd19ec6f2d0c21eb8821a66ad3a33e6c | [] | no_license | Adreambottle/Transformer2GP | 48c955d8eb155caef4c24a3c03ee3aa9ab0bd3da | 5ba1a5005c2ad21066304cdeb1d7c2587c8191da | refs/heads/main | 2023-07-07T14:17:51.673437 | 2021-08-17T14:14:56 | 2021-08-17T14:14:56 | 397,279,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,611 | py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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.a... | [
"adreambottle@outlook.com"
] | adreambottle@outlook.com |
83cc6528e430a0605e35d04ff62abfd58560ccc2 | 880b6f0b7d92f078ad20b6e3665fd50df280d53b | /specfemio/headers.py | feaf312d88128f0b1e587b679e0f44c1de74cfde | [
"MIT"
] | permissive | code-cullison/pyaspect | 6f704f78708e0bb302c8ff0e20f3927eb9e032ab | def81569d4cde9c2e4c9310b7323b81351dd46f6 | refs/heads/master | 2023-04-17T10:54:09.681644 | 2022-08-15T21:27:34 | 2022-08-15T21:27:34 | 386,649,496 | 0 | 1 | MIT | 2022-08-12T22:15:14 | 2021-07-16T13:38:07 | Jupyter Notebook | UTF-8 | Python | false | false | 43,013 | py | import copy
import importlib
import numpy as np
import pandas as pd
from pyaspect.moment_tensor import MomentTensor
################################################################################
#
# General Header Class
#
################################################################################
class Head... | [
"iamagoofymonkey@gmail.com"
] | iamagoofymonkey@gmail.com |
85f269b48f07a744203cc249f5dd3ef1050b583f | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_managed_service_identity_client.py | 46a47731fc02b8a9f4b3bc9caa1601be24b04373 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 10,721 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f7e6341da4bc292e5510cb94accb12cdaf6b6f82 | 9b014785a72075980509c95e1cccd7bef23f677a | /source/MultiAgent/Regular/QLearning.py | 03a9b1cd25dd0cf78b226c21de06021e08d48273 | [] | no_license | camielv/UvA-MasterAI-AA | 65ad4f0d7120407989c1cb28010f6584aee5571f | a1bc1f82f2824055d3adcd0c33105556aa4099a8 | refs/heads/master | 2021-01-21T12:26:43.782401 | 2012-10-21T20:52:42 | 2012-10-21T20:52:42 | 5,686,236 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | # Assignment: MultiAgent Planning/Learning
# Course: Autonomous Agents 2012-2013
# Education: Master Artificial Intelligence
# By: Steven Laan
# Auke Wiggers
# Camiel Verschoor
#
# File: QLearning.py
# Description: Implementation of Q-learning
from itertools im... | [
"wiggers.auke@gmail.com"
] | wiggers.auke@gmail.com |
7d8b4d71d0fd044530ce9b323e6fe0fae7e27d31 | 5f42b679f5a045f58a2434aeb7d28ea424a3e6d9 | /image_manager/manager.py | a84ded99a899e507b485302e94cdb77a01d36ff2 | [] | no_license | AddMob/django-image-manager | 4e623cde149c33e18943e5938dca92edfba528e2 | 43693f7ec7a1ea3524c42ed4c263a563523f6ef4 | refs/heads/master | 2020-04-03T17:51:16.369024 | 2013-07-11T23:04:09 | 2013-07-11T23:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | #coding: utf-8
from django.conf import settings
import glob
import os
def add(image, address, name):
try:
path_dir = settings.MEDIA_IMAGES + address
image_name, image_type = name.split('.')
path = path_dir + '/' + image_name
if not os.path.exists(path_dir):
os.makedirs(... | [
"charles.garrocho@gmail.com"
] | charles.garrocho@gmail.com |
5ee148fc1bf9ebadfcb9c8ca1374d2effa2d2039 | 72540dd6c566b62024995ed15082cf828f613a66 | /getstatus.py | fb76de5856e5247f2f8f3a81627e0bdb722d7753 | [
"MIT"
] | permissive | schwark/smartthings-hunterdouglasplatinum | 61a182206572c43c939dc6b3d97fdf497dfb57e8 | e9826f3bec648ac41c5e18422da127eca2ebbd29 | refs/heads/master | 2021-06-01T16:00:48.892429 | 2020-01-23T20:33:55 | 2020-01-23T20:33:55 | 40,951,612 | 9 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | import socket
import sys
HD_GATEWAY_PORT = 522
TIMEOUT = 10
def create_socket(server):
try:
sock = socket.create_connection((server, HD_GATEWAY_PORT), timeout=TIMEOUT)
helo = recv_until(sock, 'Shade Controller')
except socket.error:
sock.close()
sock = None
return sock
def socket_com(server, me... | [
"schwark@alum.rpi.edu"
] | schwark@alum.rpi.edu |
787e695b02a9594ddb9c2cb122ed87808a9100f6 | 5bd46410c2dc4113e4003ea535e65b93da44dc4a | /HW4/test.py | b44858d6192361875544b9ae2677bd24d51e70b9 | [] | no_license | RyanHiatt/Becca_HW | 70fa6a3d8673384ce1a4138ba22bde9caf07f1d6 | 177b5a6a3ca146439de980f7d540c08394653e36 | refs/heads/master | 2023-04-19T22:14:25.018707 | 2021-05-05T01:09:52 | 2021-05-05T01:09:52 | 362,554,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | import numpy as np
power = 1
A = np.zeros((power + 1, power + 1)) # make a square array of zeros
b = np.zeros(power + 1)
print(A)
print(b)
| [
"rhiatt614@gmail.com"
] | rhiatt614@gmail.com |
a298ee76966af957524f81072e00c40d7a0df10e | f6d3a6562f18e1a8ec14d038b228dc43652a3b35 | /早期/learning python.py | 59ef362f99f720a3ad3ae528ac145b5413679e0f | [] | no_license | huangno27/learn | be19a65744b588b296961572e8a5292f1230332f | 93fe784a3127e76995e9ae018605efbe78238385 | refs/heads/master | 2020-04-26T12:52:07.692473 | 2019-03-10T10:31:55 | 2019-03-10T10:31:55 | 173,563,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #!/use/bin/env python 3.7
def in_fridge():
try:
count = fridge[wanted_food]
except KeyError:
count = 0
return count
import random
secret = random.randint(1,10)
temp = input("猜猜看:")
guess = int(temp)
while guess != secret:
temp = input("猜错了,再来一次:")
guess = int(temp)
if guess ... | [
"13436918611@163.com"
] | 13436918611@163.com |
ad71d0b4b6f72098b48bf452ac4deb043da2229f | a6b91d57b9f002bd1b75a6ba5ac2987246a2aa07 | /src/AggSilver_Price_mean.py | aa37e3fa0e549f774f694c0f8ceda0f8e5393553 | [] | no_license | teketekere/avito18 | 15badea9d72a2f0dd1e3c4e467e492801e343808 | c427a2ed9b4beaf57a3fa6106254d5f0181cc860 | refs/heads/master | 2020-03-17T14:05:54.149007 | 2018-06-28T00:14:40 | 2018-06-28T00:14:40 | 133,658,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,012 | py | import pandas as pd
import time
import gc
import numpy as np
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import StandardScaler as SS
import itertools
import pickle
from copy import deepcopy
from collections import Counter
from tqdm import tqdm
from myutils import timer, redu... | [
"noreply@github.com"
] | teketekere.noreply@github.com |
4fbaa46799abae47ff490cf403db45274a503327 | d9d61dc15dc2ad1779969a21d628498b2601cbd7 | /env/bin/easy_install | 1505671b08eef7da49e2323c9759f4a9f721ddf2 | [] | no_license | Munyola/stravagroupride | 49a6c91ba6444a6fc5114a1245a322917aff3429 | e2d2255efcac3b6f34f2dae6ec40e60da27d0ad6 | refs/heads/master | 2020-07-05T10:08:57.047783 | 2017-01-21T22:30:19 | 2017-01-21T22:30:19 | 202,618,770 | 0 | 0 | null | 2019-08-15T22:24:12 | 2019-08-15T22:20:51 | Python | UTF-8 | Python | false | false | 329 | #!/Users/samuelmoseley/Documents/stravagroupride/env/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.6c11','console_scripts','easy_install'
__requires__ = 'setuptools==0.6c11'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_insta... | [
"samuelmoseley@Samuels-MacBook-Pro-2.local"
] | samuelmoseley@Samuels-MacBook-Pro-2.local | |
13102d7fc96476fe1a1aba37f5250693e99fd263 | 7a78225689f4ac346b0706b8ce71a3c4921e0e5d | /one_on_one/schedule.py | 137de4072e8abbecb49f88e0cd9f3a951f9c504a | [] | no_license | thieman/one_on_one | 3287f4a678733869abe01006f85a159dd60af7ec | 6ef1e63363eeaaeea0d5fc9fe6652b273322a725 | refs/heads/master | 2020-12-30T16:42:20.503339 | 2016-08-31T00:35:22 | 2016-08-31T00:35:22 | 91,018,168 | 0 | 0 | null | 2017-05-11T19:56:53 | 2017-05-11T19:56:53 | null | UTF-8 | Python | false | false | 6,680 | py | import httplib2
import datetime
import base64
from email.MIMEText import MIMEText
from oauth2client.client import SignedJwtAssertionCredentials
from apiclient import discovery
class Schedule(object):
def schedule(self, pairs, no_pair=None, meeting_dt=None):
""" This method is made to be overwritten by sub... | [
"paetling@gmail.com"
] | paetling@gmail.com |
cb616defe7d275bd7447eac9d42bfe18bfcd3b8f | 1212c51860b5277dbf0e8a4c7d6e972ab2a21408 | /limb_manipulation/src/database.py | 045cd779278872623ba8d3c1061e1556189b51b7 | [] | no_license | hcrlab/access_teleop | f514f4d2383e82866dbf00e1ae830d36d66a1501 | 201dccc03c76e0d5189c04e8635f035a78da500c | refs/heads/master | 2021-01-16T18:12:00.922465 | 2020-06-01T05:04:39 | 2020-06-01T05:04:39 | 100,047,231 | 3 | 3 | null | 2017-10-12T00:58:50 | 2017-08-11T15:43:45 | JavaScript | UTF-8 | Python | false | false | 1,443 | py | #!/usr/bin/env python
import rospy
import os
import pickle
class Database(object):
def __init__(self):
# actions and their offsets
self._actions = {}
# file path of the database
script_path = os.path.abspath(__file__)
script_dir = os.path.split(script_path)[0]
self.... | [
"mecu@cs.washington.edu"
] | mecu@cs.washington.edu |
c847a80d49912a090cb89a16981cc505f936a115 | 5d4e22ddf6e1ab9fd77cf15f5ed8f98a64d8a471 | /crawler_sys/scheduler/pull_es_register_and_push_to_redis.py | 3b1d06869c89e6e66fda277295fd5b575eaa63bc | [] | no_license | daiyunbin/crawler | 11ef2a2577e41758c1267757d6610983702f5e5e | 39d7c84cdbd177f1eabc8f0f1176dfe78037f8f0 | refs/heads/master | 2022-08-05T10:40:00.570806 | 2020-05-22T19:38:58 | 2020-05-22T19:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 21 10:24:31 2018
@author: fangyucheng
"""
import argparse
from crawler.crawler_sys.utils.connect_with_redis import push_video_url_to_redis_set
from crawler.crawler_sys.utils.connect_with_es import pull_url_from_es
from crawler.crawler_sys.utils.date_calculator import cal... | [
"360134299@qq.com"
] | 360134299@qq.com |
edd4fa29759616dc883f8b37ef99b251a6ef3bee | 3bce532523000205b25cef42599ac9337e75ed1e | /project/blog_server/tools/loging_decorator.py | 631b2dd875b5d4dd4ed105cb7d122903b68d911e | [] | no_license | NavasCSDN/python_learn_0701 | 46c4ec893780ca8362dee73838eda46b5e80b880 | 2ffc62c24a954912aac104cf528788d7150163c9 | refs/heads/master | 2020-06-13T19:27:14.859364 | 2019-08-06T08:12:01 | 2019-08-06T08:12:01 | 194,764,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py |
def loging_check(*methods):
def _loging_check(func):
def wrapper(request, *args, **kwargs):
return
return wrapper
return _loging_check | [
"jcmxdd@163.com"
] | jcmxdd@163.com |
e26dce7cc0cc970d69f7461bafbdc26197a68c05 | fc2447b91cbee82e74e939092ec1903678f3217a | /PythonPractice/hm_py/hm_multitasking/hm_Thread_lock.py | b9dc1ee26649bfc47e5e9227218d4689b6090054 | [] | no_license | yglj/learngit | 0eac654e7c49f2ede064b720e6ee621a702193b4 | 74fb4b93d5726c735b64829cafc99878d8082121 | refs/heads/master | 2022-12-24T10:01:56.705046 | 2019-05-27T21:04:08 | 2019-05-27T21:04:08 | 146,157,116 | 0 | 1 | null | 2022-12-12T07:01:25 | 2018-08-26T06:28:20 | HTML | UTF-8 | Python | false | false | 870 | py |
import threading
import time
gl_num = 0 # 多线程访问全局变量会发生资源竞争,影响数据安全
lock = threading.Lock() # 创建互斥锁对象,解决线程同步问题
def sum1(n):
global gl_num
print('Thread:%s' % threading.current_thread())
for i in range(n):
lock.acquire() # 上锁
gl_num += 1
lock.release() # 释放锁
def sum2(n):
g... | [
"2365952530@qq.com"
] | 2365952530@qq.com |
0f06df8bd778867cda2cbddc78149ffab730985f | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/modular_tree/grease_pencil.py | 183fdeba8fc3de276497b0dad75e66819a0a7da8 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | py | from collections import deque
import bpy
from bpy.types import Operator
from bpy.props import IntProperty, BoolProperty, FloatProperty
from mathutils.geometry import intersect_point_line
from mathutils import Vector
from math import cos, inf, pi
from random import random
from.geometry import to_array
def distribu... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f795af648856cc7d4fb41d3ff7db01f0228b024e | ffa433aafa09257c718e3931ff36c6b9c88b1722 | /mysite/migrations/0001_initial.py | 3a5e6dd30797187c725f4a62d80386172b019f22 | [] | no_license | RohaSpirit/homework02 | 2ebb1840de5439240d7fe54ab8f798b25391e861 | 7a253a05b2c053a959b1e575269be939c37ebf2a | refs/heads/main | 2023-06-23T01:28:00.948315 | 2021-07-16T13:45:34 | 2021-07-16T13:45:34 | 386,333,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # Generated by Django 3.2.5 on 2021-07-13 07:30
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
... | [
"malaysid00@gmail.com"
] | malaysid00@gmail.com |
bba93c7909a69bc1eb7106984fc28a98bc93ca50 | 0eded9a2c1f0bc7a7765cc3829b23a5df956f6fd | /10_regex/regex_christmas.py | 6816dc219f378eef1ce66b7ff6063d95981d6309 | [] | no_license | RickBahague/python-solutions | 6543e036bb4a408d831dacea3b233f4f2ddec519 | 66047d5bd6853dbbb26a1575b5c4f848d35d56bd | refs/heads/master | 2021-01-13T17:13:43.061353 | 2016-01-13T11:37:34 | 2016-01-13T11:37:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | # task 19
import re
import json
import urllib.request
def get_data():
# STEP 1
# Get the Json from the URL
data = urllib.request.urlopen('http://fsr.github.io/\
python-lessons/misc/christmas.json')
wishlist = json.loads(data.read().decode('utf-8'))
return wishlist
def do_santas_work(wishlist):... | [
"Doering.Felix@googlemail.com"
] | Doering.Felix@googlemail.com |
bfe73c9937420c25b9574728b02e93be6126d53b | f53a9298c372dc0004e58ae6e53079c8afa2ed75 | /docs/source/conf.py | 3b62687c402251be1ac33fe49970605f5f5714b9 | [
"BSD-3-Clause"
] | permissive | aaraney/nbsphinx-multilink | f8654b5c12b48577cd8892bd3ed7886b5f4b4772 | dd0a393c22c4aed25c300fd5ef1a21fe0bb537f1 | refs/heads/master | 2023-03-27T05:41:19.206914 | 2021-04-02T18:09:43 | 2021-04-02T18:17:30 | 341,663,061 | 1 | 0 | BSD-3-Clause | 2021-04-02T18:17:30 | 2021-02-23T19:15:54 | Python | UTF-8 | Python | false | false | 6,221 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"vidartf@gmail.com"
] | vidartf@gmail.com |
2fbd91842be2caeec6ae550d3a7b18aba36a26d9 | 30b31b91b0e7e8155ece40efba025aba9cdad8da | /data/generate_cdf.py | 2422595f68ba5062d54df6437b829bc5b314f98e | [] | no_license | ziy212/HeadlessBrowser | 18d267fddea51f463fa051d3e7efaf7fe432e640 | 7536c98ab2c3a58ec3f1de298448c87672ada199 | refs/heads/master | 2021-01-19T07:20:16.135785 | 2015-11-12T19:04:37 | 2015-11-12T19:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,883 | py | import matplotlib.pyplot as plt
import matplotlib
import sys
import numpy as np
def readData(path,scale=1.0,min=0.0, max=30.0):
f = open(path)
data = []
for line in f:
val = float(line.strip())
if val > max or val < min:
print str(val)
else:
data.append(val*s... | [
"xiangpan2011@gmail.com"
] | xiangpan2011@gmail.com |
86039b9f96851250bb77722e43982f6be91550cd | cd033c38e985a6735ec90c88f4c8047f20d82064 | /funciones4final.py | dff54cbdc6159d3e4b18a3898e5b29aa02b4afcf | [] | no_license | AnabellaParedes/DEMO_CONTABLE | 8e57a722dbc8d2419ad5bd007f8923c1010b2587 | c619ac1c49737657a5482700dbe2b8638597f057 | refs/heads/master | 2022-11-10T18:43:59.746779 | 2020-07-01T02:25:36 | 2020-07-01T02:25:36 | 274,784,076 | 0 | 0 | null | 2020-06-29T05:08:49 | 2020-06-24T22:48:06 | Python | UTF-8 | Python | false | false | 7,438 | py | #sueldom = sueldo mensual
#sueldoa = sueldo anual
#m = n meses
#g = grati
#mes_i = mes de inicio
#mes_f = mes de salida
#anio_i = anio de inicio
#anio_f = anio de salida
def conteo_meses(iniciomes,finmes,inicioanio,finalanio):
#Se quiere determinar el numero de meses para los diferentes calculos en el programa
... | [
"66015059+AnabellaParedes@users.noreply.github.com"
] | 66015059+AnabellaParedes@users.noreply.github.com |
583f042acda1f09fdea5324cdb1e140bb2a1ccc9 | 08c8bf9ea15094eee96df1a42d1d222362b5dc7a | /src/dicom_parser/utils/__init__.py | 37bf50c0c7ec3daf0e1791668ce9fc4a845ac3ca | [
"MIT"
] | permissive | open-dicom/dicom_parser | 51801fc9e86379e470308b28f05b9520315c82fc | 8f9224dfb1e12ee52aa17d520f10e169fe400391 | refs/heads/main | 2023-04-07T01:21:31.390019 | 2023-03-15T12:48:23 | 2023-03-15T12:48:23 | 241,392,223 | 12 | 9 | MIT | 2023-03-15T12:48:27 | 2020-02-18T15:09:51 | Python | UTF-8 | Python | false | false | 276 | py | """
Utilities for the *dicom_parser* package.
"""
from dicom_parser.utils.parse_tag import parse_tag
from dicom_parser.utils.path_generator import generate_paths
from dicom_parser.utils.read_file import read_file
from dicom_parser.utils.requires_pandas import requires_pandas
| [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
b398741b20cab175383fd7a981945f9bbdd411d9 | dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0 | /src/main/scala/DiameterOfNAryTree.py | d45f17eaccb63fce612d3cd1eafde3455b775d7e | [] | no_license | joestalker1/leetcode | 8a5cdda17abd33c3eef859732f75d7bec77a9d0e | ae392ddbc7eb56cb814b9e9715043c98a89a6314 | refs/heads/master | 2023-04-13T22:09:54.407864 | 2023-04-09T19:22:54 | 2023-04-09T19:22:54 | 131,803,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | """
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children if children is not None else []
"""
class Solution:
def diameter(self, root: 'Node') -> int:
if not root:
return 0
longest_diameter = 0
... | [
"denys@dasera.com"
] | denys@dasera.com |
3e229daf1c200bb0454cd6367a521b44a361e1d2 | a170eb7fee1ecec17d87625ba6631bce8456ecf7 | /stacks/maximum-element/solution.py | 19f38afcf072591c0a6f3c1c8869c0d95affa9f1 | [] | no_license | takuti/HackerRank | 9c92a58d2ae43ea15069659bf3e9785504bc6a3e | 3a2057ea0527d091e390ea1d609e559c5ff0045a | refs/heads/master | 2023-06-03T12:25:57.452552 | 2021-06-21T22:12:36 | 2021-06-21T22:12:36 | 369,939,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | #!/bin/python
import math
import os
import random
import re
import sys
#
# Complete the 'getMax' function below.
#
# The function is expected to return an INTEGER_ARRAY.
# The function accepts STRING_ARRAY operations as parameter.
#
def getMax(operations):
stack = []
res = []
max_in_stack = 0
for op ... | [
"k.takuti@gmail.com"
] | k.takuti@gmail.com |
ee82f7737c2b4bb17aecaf8168bcff6011eae8de | 1064038560fd177e1274f9d50bcf4e466700ca79 | /hcseduapp/migrations/0011_multiplechoicea_video.py | 071cac8d384ba902a1f25934d92e102580c21012 | [] | no_license | YingjiaLi1/HcseduApp | a5c546d51b5a22f8554772cc9b0fe41d5369844d | 2ebd3732fd6f41073784f8347a410302b4d3a328 | refs/heads/master | 2020-06-30T05:32:57.340098 | 2019-08-29T00:45:10 | 2019-08-29T00:45:10 | 200,742,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-08-16 00:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hcseduapp', '0010_linkedq_opno'),
]
operations = [
migrations.AddField(
... | [
"“2414112l@student.gla.ac.uk”"
] | “2414112l@student.gla.ac.uk” |
208dfd445577442be6e09ca6e927cdf8157d070b | 73bca317047b37eda3cb6f49704a0ba7382f8d98 | /background/network_scan_detector.py | f0c099048749d2b4efc39a14e2edc4694b35d54f | [
"MIT"
] | permissive | Hadhat/flow-inspector | aa0e65f8117367549d88f65dec1792c9adc4875e | b53d5a06046992ae2cb9be8586454da1625f215e | refs/heads/master | 2020-12-25T13:24:03.553525 | 2014-08-12T12:19:43 | 2014-08-12T12:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from analysis_base import AnalysisBase
import config
import common
class NetworkScanDetector(AnalysisBase):
def __init__(self, flowbackend, databackend):
AnalysisBase.__init__(self, flowbackend, databackend)
def analyze(self, startBucket, endBucket):
tableName = common.DB_FLOW_PREFIX + str(self.flowBackend.ge... | [
"braun@net.in.tum.de"
] | braun@net.in.tum.de |
6a2021d0dc6d0b3741d58fc65b577d713cf89407 | 7c355b29791f4a3a8a98b68b05a6668a0f7d2e9e | /decode.py | 4fd525d50c522d3f49a8e846947475d544944dd6 | [] | no_license | msaspeech/Arabic_ASR | 4b14aba71ef949da81bfae472502ab26f7afc232 | dac9dbfdfb3d66155b6a61bcb3ff17c4a38d827d | refs/heads/master | 2023-04-08T07:56:32.763349 | 2019-07-22T10:01:38 | 2019-07-22T10:01:38 | 191,977,084 | 3 | 2 | null | 2023-03-24T23:08:06 | 2019-06-14T16:46:16 | Python | UTF-8 | Python | false | false | 178 | py | from models.Speech_API.models.speech_recognition import recognize_speech
decoded_sentence = recognize_speech("test.wav", latent_dim=300, architecture=1)
print(decoded_sentence)
| [
"sofiane.mdjk@gmail.com"
] | sofiane.mdjk@gmail.com |
0ba768c26a48b70e9506ac0d5ef54ada17b6814a | c94d11f27b745194b091a16df3e9b4dbf60d3e3a | /process-ontology-flask.py | f3fb55da2ff110322c068cae7415a26a91326fce | [] | no_license | jbgour/OWL-reasoning | 4f008e06d2c0159fafc1a5806ee608a839e4a15b | c821bf46b3a60508e9c65d169bcb5e05b9898ad7 | refs/heads/main | 2023-02-24T06:34:01.557146 | 2021-01-31T17:01:21 | 2021-01-31T17:01:21 | 328,758,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | # Fichier site_dynamique.py
from owlready2 import *
onto = get_ontology("process-ontology.owl").load()
from flask import Flask, url_for
app = Flask(__name__)
sync_reasoner_pellet([onto], infer_property_values=True, infer_data_property_values=True, debug=True,
keep_tmp_file=True)
@app.route('/... | [
"jeanbaptiste.gourlet@hotmail.fr"
] | jeanbaptiste.gourlet@hotmail.fr |
d739614e11fd2e45bcceb34f65bad95af7031d9b | c7a3d3d83eafe816a7b9e2daceccec7e9cf95211 | /blogging/argcomplete_patch.py | a898ec8110e60e9e8cef020bdf2e159a7b4f1553 | [
"MIT"
] | permissive | cuyu/blogging | a5c0c844f82e2fcc60e7cfe1ebc300f7081c812e | 51ecf90d0e81c97223c66bda8b18ded0913a45ff | refs/heads/master | 2021-01-02T08:48:19.897829 | 2019-01-25T08:56:55 | 2019-01-25T08:56:55 | 99,064,270 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,933 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A monkey patch to fix auto complete failed when inputs contains unicode words in zsh
See https://github.com/kislyuk/argcomplete/issues/228 for the discussions
"""
import argcomplete
from argcomplete import *
def hacked_call(self, argument_parser, always_complete_optio... | [
"icyarm@qq.com"
] | icyarm@qq.com |
ee55e6039ac4ac62e5acce167fbe3a3938014bbc | 44f791c94194d7001dfd12f913c2a3edf8b2d27d | /utils/Tuples.py | 4e74cf353ad25ddaa0d33023725a84442ff9fa94 | [] | no_license | Josephbakulikira/Ray-Tracing-with-python-from-Scratch | 41fadfa3b8b071ae3161baf0df348824d886b835 | d77bb367e37bd0d1e2c84513906d49586581d4e7 | refs/heads/master | 2023-04-28T10:46:44.519315 | 2021-06-02T22:25:02 | 2021-06-02T22:25:02 | 354,248,435 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | import numpy as np
from math import sqrt, pow
class Tuples:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
def add(a, b):
if a.w + b.w == 0:
return Vector3(a.x + b.x, a.y + b.y , a.z + b.z)
return Point(a.x + b.x, a.y + b.y , a.z + b.z)
d... | [
"48150537+Josephbakulikira@users.noreply.github.com"
] | 48150537+Josephbakulikira@users.noreply.github.com |
882b15701109914a0cfce2e6a901b2d32f952f93 | 940755a6b0c475ef0e3fb89564953a2657a59d44 | /04_build_nn_quickly.py | 479f84fc277003273c99e0abe291016fa5695b89 | [] | no_license | LeungHan/pytorch-learn | 5aa62f5f87e1b404a609e1057b21e27e7ee18185 | 56f9e762014bd7f3c8c013774121c53366e7afa9 | refs/heads/master | 2022-04-22T19:59:51.079941 | 2020-04-27T03:26:42 | 2020-04-27T03:31:23 | 259,193,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | import torch
import matplotlib.pyplot as plt
from torch.autograd import Variable
if __name__ == "__main__":
# load data
n_data = torch.ones(100,2)
x0 = torch.normal(2*n_data,1)
y0 = torch.zeros(100) #标签0
x1 = torch.normal(-2*n_data,1)
y1 = torch.ones(100) #标签1
... | [
"1844113541@qq.com"
] | 1844113541@qq.com |
d604d05e0d9730fd0585f355762e61fb909d71a0 | c9d5ddaad2197044c60260d43bb7e46f7ad035ef | /model_utils.py | fa66284845f236ee35e0e13c3ae0c13e9c0233cd | [] | no_license | Li-Ming-Fan/my_reader | 938f6e76004f70cf565ed3bf12d774ceb31177a9 | 11950798c7c1f76bfbf7dc6aa48676bccb8ef8b8 | refs/heads/master | 2022-04-10T08:27:49.231768 | 2020-03-15T13:39:55 | 2020-03-15T13:39:55 | 211,350,095 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,942 | py |
import os
import json
from utils import compute_bleu_rouge
from utils import normalize
#
def do_eval(model, batcher, settings, result_dir=None, result_prefix=None, save_full_info=False):
"""
"""
pred_answers, ref_answers = [], []
total_loss, total_num = 0, 0
count = 0
while True:
... | [
"li_m_f@163.com"
] | li_m_f@163.com |
bdbf431600e3d185cef15b8104b5c4a77abad69b | e338694a7f01a24ffcd3a9fb91c5d11ab7b5b2ba | /scripts/word_counts_to_vocab.py | 636df809da3e8154a1ce353d62bb77c0b82fa2c4 | [
"Apache-2.0"
] | permissive | zaffnet/pocolm | c457027b81073e3568939f46d87cd6c90ea28375 | d146c1fe8a05a709e4ddec941dba5e8e8ad67527 | refs/heads/master | 2020-07-01T09:00:31.532192 | 2019-08-07T20:03:55 | 2019-08-07T20:03:55 | 201,118,403 | 0 | 0 | NOASSERTION | 2019-08-07T19:53:13 | 2019-08-07T19:53:13 | null | UTF-8 | Python | false | false | 8,782 | py | #!/usr/bin/env python
# We're using python 3.x style print but want it to work in python 2.x.
from __future__ import print_function
import os
import argparse
import sys
import operator
from collections import defaultdict
parser = argparse.ArgumentParser(description="Creates a vocabulary file from a 'counts' director... | [
"dpovey@gmail.com"
] | dpovey@gmail.com |
71dca2055bdb5ba65a6d62df5a2e08130b4b5940 | bfaa2b4c13343613d951ab288c321506f4b74fa2 | /Scripts_Python/Number_race_1.py | 1ccbd9390f38fbf0064c33f4c4a255bf83091c5d | [
"MIT"
] | permissive | Msarate16/FrameWorks_8A | 88aae4b0a728f023b0b4d05643f05d7db96d585e | 19e3084d59d6866c34988fbab4027d5d062d6bb8 | refs/heads/main | 2023-08-31T18:24:40.824447 | 2021-09-21T19:23:25 | 2021-09-21T19:23:25 | 402,074,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import os
from random import randint
def dices():
status =True
while status:
dice1 = randint(1, 6)
dice2 = randint(1, 6)
print("Dado 1: ", dice1)
print("Dado 2: ", dice2)
if dice1 == dice2:
status=False
print("::: Es su primer pa... | [
"noreply@github.com"
] | Msarate16.noreply@github.com |
dd9fde8de36512ec2ee7d88e4b47c058cd8f2c33 | 173f95e690f0823cd74732630f4fa68460a623c5 | /muver_api/migrations/0010_auto_20160504_0913.py | 4bfe850a428962a9cdec67ea363f31ae472999d3 | [] | no_license | kjmullen/mUver | 7e6d579aa338e0efe952afd428c4c535fcb2ace1 | fb03cb799634daf33d5196bac944a0daea084120 | refs/heads/master | 2016-09-14T10:58:40.826890 | 2016-06-06T22:06:21 | 2016-06-06T22:06:21 | 57,250,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-04 16:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('muver_api', '0009_auto_20160503_1632'),
]
operations = [
migrations.AddField... | [
"kevinkozzik@gmail.com"
] | kevinkozzik@gmail.com |
1947595924c21a1bf501f2d14a776b5ebfb39f31 | e6f762e3f5cdae05280274dfe90909ab1e95032f | /mlstds/context_processors.py | d3ba3e8ffbddc71079eeb2ccb0a7456e58fee542 | [] | no_license | tooxie/django-mlstds | 54344a6e03c13754f5a9b98131c7347379735785 | cff3ad58b73077e431cf8db545d596132dd655b5 | refs/heads/master | 2016-09-06T19:02:51.097451 | 2010-10-19T04:43:55 | 2010-10-19T04:43:55 | 1,000,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # -*- coding: utf-8 -*-
from django.conf import settings
def urls(request):
url_dict = {}
for attr in dir(settings):
if attr.endswith('_URL'):
url_dict[attr] = getattr(settings, attr).replace('%s', '')
return url_dict
def language(request):
try:
lang = settings.LANGUAGE_C... | [
"alvaro@mourino.net"
] | alvaro@mourino.net |
d10a003b80f6ddccc84ddfa5947ddf51b8cc9e1d | f8e43d1f5e19258ab44bf34dbf06a9ccb4f4422e | /data_structures/s01_array.py | c2ee1fab47cf60fa0363abccb733856ff0d3f969 | [] | no_license | yanshugang/study_data_structures_and_algorithms | bf47a303dab29f067ec9dd4f7d57e53cb114a5a7 | 4aa8a3d9bcbfd169fbe821378ff219b347bda92f | refs/heads/master | 2020-04-13T09:58:59.965788 | 2019-07-26T06:30:33 | 2019-07-26T06:30:33 | 163,126,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | """
线性结构:内存连续,可以通过下标访问
类型:数组(array)和列表(list)
用list实现定长的array
+ = = = = = = = +
| append | O(n) |
+ — — — — — — — +
| remove | O(n) |
+ - - - - - - - +
| search | O(1) |
+ = = = = = = = +
"""
# python的array: 只能存同一类型(数值或字符),更推荐使用numpy.array
class Array(object):
def __init__(self, size=32):
self._size = ... | [
"yanshugang11@163.com"
] | yanshugang11@163.com |
3d84ce90ce3962bc77142682f63e790d812925bb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_367/ch22_2020_04_20_18_07_39_360782.py | b597fe84dbffca639b7593bf7e98b02e691bfba4 | [] | 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 | 156 | py | p=int(input('Quantos cigarros: '))
o=int(input('Quantos anos: '))
cigarros= (p*360) * o
tempo= (cigarros *10)/144
print('dias a menos: {0}' .format(tempo)) | [
"you@example.com"
] | you@example.com |
98ca94745ddff3a473f8e09f14c52f30b4d8cb72 | c63ec7aef9fa908a1bde776039b57a586a6f42ca | /helpdesk/cc.py | 117a61470c2309d38acf464cfc4bfc7480812334 | [] | no_license | terkpeh1990/gasinfosys | b7741342859cd11556804be55de4fc27f8e96aff | 1a4cac96fedf0374b9db8a330def342dab3a4b25 | refs/heads/main | 2023-07-10T01:11:40.282421 | 2021-08-13T08:26:46 | 2021-08-13T08:26:46 | 395,572,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,956 | py | # from django.db import models
# from django.contrib.auth.models import User
# from django.conf import settings
# from datetime import datetime,date
# from django.contrib.sessions.models import Session
# from django.core.validators import MaxValueValidator
# from django.db.models.signals import post_save,pre_save
# fro... | [
"68113347+ITtechnical@users.noreply.github.com"
] | 68113347+ITtechnical@users.noreply.github.com |
d35cb59ff4dce7e4ec40f93acc7ef6f00e528744 | 7c4db177c9bd28c65a0792d77e64d3121a10030e | /Software Fix/workaround/views.py | ea10d0cd16b5535d20dc68fa9e6c7a82e4f2f26b | [] | no_license | jsomiya/Smart-Store-Replenishment-System | 9ca8aa6d1339b4aabb260458becd7996c9acd7d3 | 53626de603c31d51f2b2862f79f0d5fce329a94f | refs/heads/master | 2022-11-10T21:44:35.378564 | 2020-06-18T07:21:13 | 2020-06-18T07:21:13 | 273,176,642 | 1 | 0 | null | 2020-06-18T07:56:33 | 2020-06-18T07:56:32 | null | UTF-8 | Python | false | false | 1,310 | py | from django.shortcuts import render
from pymongo import MongoClient
import random
client = MongoClient(
"mongodb+srv://ushita:ushita26@cluster0-s5zz8.mongodb.net/test?retryWrites=true&w=majority")
db = client.test
collection = db.items
# Home Page with Start Button
def button(request):
return render(reques... | [
"ushitag@gmail.com"
] | ushitag@gmail.com |
11a18ee577d876d1a1a56f94a0d171b9c39c9932 | 82caa7c74a95b7ffdf578d0942e1a2b7fac1edff | /wider resnet38/run/train.py | 7e6f1a9fbe8220e2c799e13db68fc452187fae02 | [] | no_license | yudiz97/11785-project | 50e0c5e7bded7b056db9772ff05a6c394814ac73 | e160bf5abf09cd61fadb7c45337868ecf2389ae7 | refs/heads/master | 2023-01-09T16:31:32.940628 | 2020-11-11T05:09:27 | 2020-11-11T05:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os,sys
sys.path.append("..")
import numpy as np
import tensorflow as tf
import data_utils as dt
from core import resnet38
os.environ['CUDA_VISIBLE_DEVICES'] = ''
config_gpu = tf.ConfigProto()
config_gpu... | [
"596835723@qq.com"
] | 596835723@qq.com |
e7be0c7059dccaf889b64e2159db7d2d79347d2a | 39b35326534d6efa8a60344ef59eac3d8cea562f | /recyclepj/login/migrations/0001_initial.py | a60ce3cc7a0f6134b3dd6af63e3c9f7fde4e2aed | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Hyo-gyeong/Django_review | 8635e8311111cab56066c6b87429c7f57c5e42c3 | 8b59d717c0c8c4404230c8eaa42e6074cacdd712 | refs/heads/master | 2021-01-03T08:32:06.706689 | 2020-08-31T04:55:59 | 2020-08-31T04:55:59 | 240,000,924 | 0 | 0 | null | 2020-08-17T19:21:30 | 2020-02-12T11:53:19 | Python | UTF-8 | Python | false | false | 492 | py | # Generated by Django 3.0.5 on 2020-07-15 17:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Login',
fields=[
('id', mod... | [
"cdkrcd8@gmail.com"
] | cdkrcd8@gmail.com |
7dac21dec591b462ebe6dc791a459ab9a3d9c604 | 60b1f668808de2b82c2fcb62b07b45bb165219f2 | /test/test_operation_action_response_error.py | a5bbc78cccc9e8f90f8214c160336f2601ff00f0 | [] | no_license | andersonmiguel/Egoi | 6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20 | b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2 | refs/heads/master | 2022-06-21T07:18:44.920786 | 2020-05-04T17:29:02 | 2020-05-04T17:29:02 | 261,250,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | # coding: utf-8
"""
APIv3 (Beta)
# Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
46b6301a28be145eb50c67c791673b511d885716 | 9056b5a416adc2b5c4d4b26f576ddb4fb0b1d22c | /transformacion.py | e073345902dcb4549283b9edbbf708ff6040e84b | [] | no_license | GarbiSebastian/TeLeng-TP | 9128dd82afe9977bc42ed75942134070553a5c7d | a90adda58979c2d33e7c8cc02329da49528869fb | refs/heads/master | 2021-01-01T18:29:51.311295 | 2014-11-27T04:48:26 | 2014-11-27T04:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | import sys
import numpy as np
from math import *
from copy import deepcopy
class Transformacion(object):
def __init__(self):
self.space = np.identity(4)
self.color = np.array([1,1,1])
self.depth = 100
def transformar(self,trans):
self.space = np.dot(self.space,trans.space)
self.color = self.color * tran... | [
"garbyseba@gmail.com"
] | garbyseba@gmail.com |
d52c3f74e131fb8123e565a6fa2173817f2da8cd | 50c2bb79de4d4ecc7a0b6b835d611627fccd82cc | /datatest/__past__/api08.py | f62a436ef48063a6b382853b9356c3ea0c6018d6 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | chansonZ/datatest | 84d493623e218988acf1e533914b71db110f839f | 2e200e2bb7d9a8016bcb6e908d4a8b12db8e2568 | refs/heads/master | 2021-07-07T07:58:40.766960 | 2017-09-29T15:07:20 | 2017-09-29T15:07:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | """Backward compatibility for version 0.8 API."""
from __future__ import absolute_import
import datatest
from datatest.utils import collections
from datatest.utils import itertools
from datatest.errors import NOTFOUND
def _columns(self, type=list): # Removed in datatest 0.8.2
return type(self.fieldnames)
datate... | [
"shawnbrown@users.noreply.github.com"
] | shawnbrown@users.noreply.github.com |
b396995015c218b5e511b8ef7c840db5cff1965b | 9c0b9766ade4272096f8d067b3ceac57bfad10d9 | /NeuralOCR/NeuralOCR/wsgi.py | b270114492822006b43175c09e19559fa4001812 | [
"MIT"
] | permissive | rbalda/neural_ocr | 68828996e1b0e34768f8de9b5604ccf253b1f079 | 140585a7e99f1d49e52b142811273b02c08c0675 | refs/heads/master | 2021-01-10T04:59:54.072242 | 2016-01-25T14:16:02 | 2016-01-25T14:16:02 | 49,538,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for NeuralOCR 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"rbalda@espol.edu.ec"
] | rbalda@espol.edu.ec |
c41b07f87b3c1d8b47a5ea6374d5e8c5edc50ec4 | 6ab5d6d9f69346ad1af17b7c96e8c20834ec5ac6 | /functionaltests/api/v2/test_blacklist.py | c9729c8f00bfaea157458264cca0f05e959e68db | [
"Apache-2.0"
] | permissive | ISCAS-VDI/designate-base | eec2f6bf0d71fcf8c1f975be0e94357e41e1f5ca | bd945607e3345fbef8645c3441e96b032b70b098 | refs/heads/master | 2020-04-03T00:07:03.726411 | 2016-06-07T06:53:04 | 2016-06-07T06:53:04 | 60,588,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | # Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# Author: Endre Karlson <endre.karlson@hp.com>
#
# 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/lice... | [
"wangfeng@nfs.iscas.ac.cn"
] | wangfeng@nfs.iscas.ac.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.