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
364068e4568c2f826396dafe75d23e9cbc8c2206
d0450f95c3cf54bc846efb440ac8f90ed23f04fe
/carnottech/urls.py
971644381fdfcaf40a17b09c127a87be6ad095f8
[]
no_license
LekhanaPanchayatula/carnot
0a3b15c51b5c6c86ed49cc5b0392f7afdc76b3a1
f94750d85638d1b7bacaef5cca3f45e2298d45a8
refs/heads/main
2023-05-08T15:38:15.599553
2021-05-25T03:09:11
2021-05-25T03:09:11
370,540,701
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from django.conf.urls import url from carnottech import views from django.urls import path urlpatterns=[ url(r'^$',views.home, name='home'), url(r'^fetch',views.fetch, name='fetch') ]
[ "lekhanapanchayatula2911@gmail.com" ]
lekhanapanchayatula2911@gmail.com
0f9d392ecee09b89b3059707eb5e920a5a275a90
8a3fe1a9cad2c56bd6a3251f9d1084c06c7f68b5
/TestModel/urls.py
43e61e698fb2746d41dc8c74bea0ff4f90f0938a
[]
no_license
CharlieZheng/LearningDjango
d81d4ce9460053a42117e4c38724d255d0b0f593
041c108f3e88f7eef793c2d757a128efe80dada3
refs/heads/master
2020-03-18T21:29:03.565143
2018-05-30T08:43:41
2018-05-30T08:43:41
135,283,066
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
"""fuction docstring""" from django.urls import path from . import views app_name = 'TestModelAppName' urlpatterns = [ # ex: /TestModel/ path('', views.IndexView.as_view(), name='index'), # ex: /TestModel/5/ path('<int:pk>/', views.DetailView.as_view(), name='detail'), # ex: /TestModel/5/results/ ...
[ "740483802@qq.com" ]
740483802@qq.com
3a2203845372ec65f4380ad1fc8e7e5da0974dae
82b36ca1194a89a542f1e2d56bd96d859de3d343
/tensorflow/etc/mem32432.py
e4b2e92a4de75d0a209c6e7fb3fd570e859fa99a
[]
no_license
rationality6/ml_notebook
b523b6590f46beaa374e15b4af743f7f320380c2
c67f9e61e70ffe098acea227fb9d51b556866153
refs/heads/master
2020-03-18T15:36:35.473868
2018-06-01T08:38:00
2018-06-01T08:38:00
134,917,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
import tensorflow as tf # x_data = [1, 2, 3] x_data = [1, 2, 3] y_data = [1, 2, 3] m = n_samples = len(X) W = tf.Variable(tf.random_uniform([1], -1.0, 1.0)) b = tf.Variable(tf.random_uniform([1], -1.0, 1.0)) X = tf.placeholder(tf.float32) Y = tf.placeholder(tf.float32) hypothesis = W * X + b cost = tf.reduce_mean(...
[ "codepawn@icloud.com" ]
codepawn@icloud.com
902f694fd6429bd5c384cc034eb81329ba341fc1
fcf8b6f0d3cae56013fd20655e65c71b72ac74b6
/d3rlpy-master/scripts/create_pendulum_dataset
6c39da9839378e414c856ecb68e5225379b02db3
[ "MIT" ]
permissive
SOPR-T/SOPR-T
4a338481295ec2779007814e14c54b68e78cbf34
3242461fa8b3e917cde70be497beb1158a7b27e6
refs/heads/main
2023-06-11T07:21:25.426046
2021-07-05T12:24:48
2021-07-05T12:24:48
371,642,211
9
1
null
null
null
null
UTF-8
Python
false
false
546
#!/usr/bin/env python import gym import d3rlpy d3rlpy.seed(100) # prepare environment env = gym.make('Pendulum-v0') eval_env = gym.make('Pendulum-v0') # prepare algorithms sac = d3rlpy.algos.SAC() # prepare utilities buffer = d3rlpy.online.buffers.ReplayBuffer(maxlen=1000000, env=env) # start training sac.fit_onl...
[ "noreply@github.com" ]
SOPR-T.noreply@github.com
9978916a52928e5c088af94ff1b7ca88a5e209c8
97c0f0e799108c00d084c8d30974c10879f55992
/src/com/scott/dev/demo/crawl/as/run.py
3af75dc2668efa4215e971158b352cd28e082984
[]
no_license
kuiwang/py-dev
1ef98618d9ee19674878b68930acd9c7c6e1eaeb
61375491955ffbdbee18d4f4f40ab8b63cf0901a
refs/heads/master
2020-04-02T13:32:24.458250
2020-01-16T10:00:44
2020-01-16T10:00:44
154,485,682
0
0
null
2020-01-16T10:03:03
2018-10-24T10:56:47
Python
UTF-8
Python
false
false
8,193
py
# -*- coding: utf-8 -*- # from download_info import download_info # from download_pictures import get_info, get_info_imgs, download from importlib import reload import os, sys import logging, json, demjson, time import requests, random from multiprocessing import Process, Queue, Pool reload(sys) PY_GEN_PATH = "D:/d...
[ "wk@gmail.com" ]
wk@gmail.com
e699cda227ba68d9a3a9122ca69be7e2ae5c1a57
67ddedc825a4852349bb3e54f7d31cdeb34c64aa
/contrib/testgen/gen_key_io_test_vectors.py
cfcf70fa73dc3d37f054a9d4084749fe247c87dc
[ "MIT" ]
permissive
geranium-coin/geranium
3500632ed8e666d30d1b28494b1b7b5003c18ecc
93c08aa10ea151f4efd8337c1d5599ee7e8d58ea
refs/heads/master
2022-07-28T21:28:55.717800
2022-01-10T17:30:13
2022-01-10T17:30:13
440,774,432
2
0
MIT
2022-01-04T08:33:10
2021-12-22T07:39:53
C++
UTF-8
Python
false
false
10,266
py
#!/usr/bin/env python3 # Copyright (c) 2012-2018 The Geranium Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Generate valid and invalid base58 address and private key test vectors. Usage: PYTHONPATH=../../...
[ "manomay.jyotish.vadhuvar@gmail.com" ]
manomay.jyotish.vadhuvar@gmail.com
e10d59850e77d79fe0ec9169cce0ab67f2d3418d
ba6c8c70541a7aacdd4cc2573776dbed9ea0d8f1
/catkin_ws/devel/lib/python2.7/dist-packages/bebop_msgs/msg/_Ardrone3PilotingStateLandingStateChanged.py
af36bd625602add700705b5f44426ab97808ce98
[]
no_license
hotaro161/190703_catkin_ws
74a62fa29a0f940a930df4c023f36f01f30b23f7
711c2665121e7452a2575c75058a037b479f4596
refs/heads/master
2020-06-14T09:03:15.900063
2019-10-10T07:29:05
2019-10-10T07:29:05
194,964,971
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
/home/mlab/catkin_ws/devel/.private/bebop_msgs/lib/python2.7/dist-packages/bebop_msgs/msg/_Ardrone3PilotingStateLandingStateChanged.py
[ "mlab@mlab-System-Product-Name" ]
mlab@mlab-System-Product-Name
a49e2981e3bf1e5622c75bb54165b0f55cecfe87
31c94ea00f0f6673f161a21a529f2272e7460a34
/bindapi/routerApi.py
4ea16209cd1e7101e783bcfeaa0d6ef1853e83b0
[]
no_license
xgocn/bindapi
0d3e51f696a9d3ec5dde4e05d1c2d5eb2fe52f5a
343f07176de43c3e5ffc9b26c479c47c289fdc0e
refs/heads/master
2023-03-15T08:01:22.550448
2018-05-09T06:19:22
2018-05-09T06:19:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
# -*- coding: utf-8 -*- # author: kiven from rest_framework.routers import DefaultRouter router = DefaultRouter() from bind.views import DomainViewSet, RecordViewSet, AllDomainViewSet, XfrAclViewSet router.register(r'domains', DomainViewSet) router.register(r'records', RecordViewSet) router.register(r'xf...
[ "kevin@126.com" ]
kevin@126.com
d0e393e77605831d05bcdd4af710108f67725448
5184ea2fd27e01467d5b027864d14b2d4638ba1b
/Number theory/1094/10974.py
2a0934d21a7ccac9d4fbf66f2cf6811b21d981ae
[]
no_license
zc1001/leetcode
1587f951e52dd08cfcbb2c6b3f5cbff5cb9b3a67
45b20789ae00bb3713ab30159ac4f4af7eea55fa
refs/heads/master
2021-07-11T19:26:24.647433
2020-09-27T08:21:01
2020-09-27T08:21:01
203,901,667
3
0
null
null
null
null
UTF-8
Python
false
false
5,543
py
import math import copy import operator # 执行用时 :168 ms, 在所有 python 提交中击败了30.19% 的用户 # 内存消耗 :12.3 MB, 在所有 python 提交中击败了100.00%的用户 import string import os import numpy as np import matplotlib.pyplot as plt # def get_filelist(strl): # l = [] # s1 = strl # for i in range(8): # s =...
[ "jlbczhangchao0800@126.com" ]
jlbczhangchao0800@126.com
645292003fafcc1743493a4c224ec36849957e54
dfbc409d90138726d05ce75d90f505bd771980a6
/sent2vec/word2vec.py
ab6de9de671e6dde093533f96276f1cc98dec887
[]
no_license
amirpouya/EMNLP_Paper
02b3a72a0efddd1907297ef711ce52ca062d7e96
1507325a03a40309bf2d75aefca7d032603ab3fa
refs/heads/master
2016-08-12T05:41:12.840388
2015-05-27T19:28:41
2015-05-27T19:28:41
36,387,016
0
0
null
null
null
null
UTF-8
Python
false
false
56,807
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative sampling [1]_ [2]_. ...
[ "amirpouya@lab.statnlp.info" ]
amirpouya@lab.statnlp.info
3286b6e037876ccf28e3fec43f2c2ceee70c43e6
699b7906f9db62299af09270e7f8ff7f22785876
/Model.py
68cc56e5a95ef3f28a7a8c0551b983f10d530aa2
[]
no_license
carterrxavier/classification-project
662cd70938134e6d1519f85e2e8a27703f7b00e0
6365c2d739260c97145f19f78538bb9115d1b08c
refs/heads/main
2023-05-10T13:05:23.455360
2021-06-07T00:14:16
2021-06-07T00:14:16
370,766,876
1
0
null
null
null
null
UTF-8
Python
false
false
4,236
py
import pandas as pd import numpy as np from sklearn.metrics import classification_report,confusion_matrix,recall_score, precision_score import warnings warnings.filterwarnings('ignore') def train_validate_results(model, X_train, y_train, X_validate, y_validate, details=False): ''' this function prints the a...
[ "carter.r.xavier@gmail.com" ]
carter.r.xavier@gmail.com
0771d2ebca7dfbe8f5b99a3f0964a5e904ee75ae
d04d88e034b5826799de8e71eb1d61a395bbfbd4
/kingdombot/ally.py
c8f5b3a62a84a3a29c4c2e17cee5ae003e6f47ea
[]
no_license
Flaymed/Volara
5f3861a59f53103058262a9c39055c31e9f1caa8
562c17c40112a0f34128377010c09a9dc758667d
refs/heads/master
2022-12-21T13:19:20.688603
2019-11-03T23:53:31
2019-11-03T23:53:31
210,471,375
1
0
null
2022-12-11T07:04:01
2019-09-23T23:39:32
Python
UTF-8
Python
false
false
1,973
py
import random import sqlite3 conn = sqlite3.connect('./database/main.db') c = conn.cursor() def requestAlly(id, clanname): name = (clanname,) c.execute("SELECT name FROM kingdoms WHERE ownerid=?", id) requestsender = c.fetchone() c.execute("UPDATE kingdoms SET request=? WHERE name=?", [requestsender, n...
[ "34602265+Flaymed@users.noreply.github.com" ]
34602265+Flaymed@users.noreply.github.com
4411fbda61c10c94fb5fb39237e1c2887ae61d0e
c11fbe26ab5e3ae4ca4b73238a9f0f0694829e9c
/biosteam_lca/units/construction.py
2c97456864813fc52e095d0a39284578389fbe72
[ "LicenseRef-scancode-unknown-license-reference", "NCSA" ]
permissive
Uzair1shah/biosteam_lca
ca84348b4742014ca4d367f88cebd2b04aa32e4b
ca2d3bbbb9a17bb849d06dc3f5c16ec7fc510a18
refs/heads/master
2023-07-16T01:05:08.273416
2021-08-30T20:11:40
2021-08-30T20:11:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
# -*- coding: utf-8 -*- """ Created on Thu Mar 14 15:33:39 2019 @author: cyshi """ # This class will be completed when Karen finishes her design on all biorefinary constructiosn, including all deirect and indirects inputs related to coast and emission. class Construction: """A summary of all construction...
[ "cyshi@illinois.edu" ]
cyshi@illinois.edu
742e69c1a22297de8f0a8cd58cecab3389d6f888
a281d09ed91914b134028c3a9f11f0beb69a9089
/tests/integration/docusaurus/connecting_to_your_data/cloud/gcs/pandas/inferred_and_runtime_yaml_example.py
e7ed0539f4232487def269d75f60499c9e167e07
[ "Apache-2.0" ]
permissive
CarstenFrommhold/great_expectations
4e67bbf43d21bc414f56d576704259a4eca283a5
23d61c5ed26689d6ff9cec647cc35712ad744559
refs/heads/develop
2023-01-08T10:01:12.074165
2022-11-29T18:50:18
2022-11-29T18:50:18
311,708,429
0
0
Apache-2.0
2020-11-10T15:52:05
2020-11-10T15:52:04
null
UTF-8
Python
false
false
4,209
py
from typing import List # <snippet> from ruamel import yaml import great_expectations as ge from great_expectations.core.batch import Batch, BatchRequest, RuntimeBatchRequest # </snippet> # <snippet> context = ge.get_context() # </snippet> # <snippet> datasource_yaml = rf""" name: my_gcs_datasource class_name: Dat...
[ "noreply@github.com" ]
CarstenFrommhold.noreply@github.com
2c23249fc74872183ccefdd2fc78c32f3fabef9b
0c4e96ffd2926ae14d7cb1e9d4c5a3125ea08a49
/models/instructors.py
fc9820c26f4da7a9c11bf2ff5d68aa6397eacb6a
[]
no_license
samj0516/daily-journal-server
7d8902ed6c95f07d0e33bae378b58f13ee3c34a8
fba3efcf7903404cff430eea20110b8622cc181c
refs/heads/main
2023-04-17T13:02:33.588889
2021-04-22T21:11:12
2021-04-22T21:11:12
360,682,112
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
class Instructor(): def __init__(self, id, first_name): self.id = id self.first_name = first_name
[ "samj0516@gmail.com" ]
samj0516@gmail.com
f6b23ffa695566bdecd4607042fa580e550c11b6
e25b0dc781cc291da63e9af1319666cb3e3fd94b
/Real_exp2/Codes/preprocess_real_data_classes.py
9158d1c83f17bf31c9c8a6ae3787751cedef4e7e
[]
no_license
nastaran75/JMLR-Reg
2621e123a847e0d72bccd5938ab8f06d3aa875c1
0daff201b4a462817f7f0caef2a87c46706cb612
refs/heads/master
2021-02-04T01:50:19.367050
2020-03-28T08:22:09
2020-03-28T08:22:09
243,599,352
0
0
null
null
null
null
UTF-8
Python
false
false
11,283
py
import sys from os import listdir from os.path import isfile, join import numpy.random as rand import math import codecs import csv import random #import fasttext from myutil import * import numpy as np import numpy.linalg as LA from scipy.io import arff import shutil #from PIL import Image # from sklearn.preprocessi...
[ "nastaran.okati@gmail.com" ]
nastaran.okati@gmail.com
b6fc20b4b723b8508a08403ad9d890bbdefa0cf5
f6352e266c60f70835dff98874b9e96d6f1ae2a8
/0226/selectionSortModule1.py
a5abd1eabe0841cdfe176f4fa76ac1dae128b844
[]
no_license
Ryujongwoo/python0202
67e2bc5a0e8fcf7a20c93a55af573e92d929c308
fec56fda56ad117cfa48261215e2c8e216b3d5b2
refs/heads/master
2022-04-15T14:40:15.662343
2020-03-17T12:59:25
2020-03-17T12:59:25
239,483,235
0
1
null
null
null
null
UTF-8
Python
false
false
1,741
py
# 오름차순 정렬 함수 def selectionSortAsc(data): for i in range(0, len(data) - 1, 1): for j in range(i + 1, len(data), 1): if data[i] > data[j]: data[i], data[j] = data[j], data[i] return data # 내림차순 정렬 함수 def selectionSortDesc(data): for i in range(0, len(data) - 1, 1): ...
[ "noreply@github.com" ]
Ryujongwoo.noreply@github.com
5a34311df8cf9337bb08deff80cb04533e13b6f5
882542fb43991643987dfd66b94be35f6c968334
/hw2/histotest.py
5f6929e7ed0f4443da2d99db9a022d216a4445e3
[]
no_license
ethanglaser/ECE20875
5142734622ca2be7f9f2333d814b1ca55c7d8b33
dfcedd06b2cfb8877f2df05a07267a9e61bf6f6c
refs/heads/master
2023-04-03T07:37:15.103592
2021-04-16T23:07:59
2021-04-16T23:07:59
291,803,484
0
2
null
null
null
null
UTF-8
Python
false
false
1,145
py
from homework2 import histogram, addressbook data = [-2, -2.2, 0, 5.6, 8.3, 10.1, 30, 4.4, 1.9, -3.3, 9, 8] hist = histogram(data, 10, -5, 10) print(hist) data = [-4, -3.2, 0, 7.6, 1.0, 2.2, 30, 2.2, 1.9, -8.3, 6, 5] hist = histogram(data, 10, -5, 10) print(hist) data = [2,2,2] hist = histogram(data, 3, -2, 3) print...
[ "glasere@purdue.edu" ]
glasere@purdue.edu
e1bb5e27f5d7426dd85a37efc2fd2a5991021262
7e6db7aee2f0c196c38ed56eefe7b2384a2ff74c
/apps/testcases/urls.py
ad09b05568ec383f06e9ad70e7f772cab8a5cd09
[]
no_license
LuHale/AutomaticTestingPlatform
adb95aa626fbcd973e6ca2ab7de98a8475d82e6d
eb50aa6b088dc2c52d1ffb345e438a918e291e0f
refs/heads/master
2022-12-13T12:37:09.850765
2019-09-19T02:29:15
2019-09-19T02:29:15
205,477,191
0
1
null
2022-12-08T06:06:04
2019-08-31T01:05:16
JavaScript
UTF-8
Python
false
false
588
py
from django.urls import path from.views import testcaselist, del_testcase, create_testcase, submit_testcase, edit_testcase, update_testcase urlpatterns = [ path('', testcaselist, name='testcaselist'), path('deltestcase/<testcase_id>', del_testcase, name='deltestcase'), path('createtestcase/', create_testc...
[ "565985644@qq.com" ]
565985644@qq.com
92b5789de8b5fb6affeaa6d11e741768cb6ddb3c
338cf459e5a19545dd5995fa5da811ff0147b17d
/collector/migrations/0014_auto_20160318_1446.py
e61585850ae5d8cb74d63eac554917b2ddc18d06
[]
no_license
mazucci/heatmapviz
2e42b9f09bf631101d5f62f5d19440c76ed94af7
07684d347bb7d61a2625deac55960fdd57cd4b34
refs/heads/master
2021-05-04T03:20:07.084868
2016-11-18T16:32:41
2016-11-18T16:32:41
71,370,854
0
5
null
2016-10-21T10:25:05
2016-10-19T15:20:43
Python
UTF-8
Python
false
false
428
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('collector', '0013_gpsdata_local_id'), ] operations = [ migrations.AlterField( model_name='gpsdata', ...
[ "may.zurb@gmail.com" ]
may.zurb@gmail.com
52a7c6c46b07827e837f84c077d75d923603f7b6
3520f8e954ce1af575488f0753f85cf2afe96fa2
/backend/middleware/warning_exception_middleware.py
555b2d823681cd3732f3402710fb3b1762bb8948
[]
no_license
mdee/djember
ee39ee25be65bfc15b78dc5486a2677e3f56100f
cd97aabdb95900860b0bf823eb94c44e5ba1b176
refs/heads/master
2021-01-20T00:56:27.633476
2015-01-08T18:26:08
2015-01-08T18:26:08
26,779,224
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
# -*- coding: utf-8 -*- __author__ = "MDee" import traceback import sys import warnings class ProcessExceptionMiddleware(object): def process_response(self, request, response): if response.status_code != 200: print '\n'.join(traceback.format_exception(*sys.exc_info())) return respons...
[ "mark.dhillon@gmail.com" ]
mark.dhillon@gmail.com
e033e65954bc0e69da6ed0c9b0bcfd89c96cf60f
2988de871bec4e4da49136de0be6b1e581b958b1
/tests/test_corona.py
44e9bb32e65725eb7e4e043c1a7323879c374c41
[]
no_license
SambhavChoradia/corona
b46c64034210c28bf57f0b83614d603bdf331a15
6722bd1214b8b29c4fcd26bce126dd76398903ff
refs/heads/master
2022-11-28T02:27:26.224600
2020-08-10T12:56:58
2020-08-10T12:56:58
286,475,699
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
from corona import __version__ def test_version(): assert __version__ == '0.1.0'
[ "sambhav.choradia@initbit.in" ]
sambhav.choradia@initbit.in
dcd1de5532170a434837aafaca19ea83985eb47b
24301aa84b87f82d1abe340e5706bd7119f96b21
/utillities/check_all.py
96f23a912d6fc6bfad94e20145775e23dca67514
[]
no_license
kungfu-kenny/MeetingSite
28c70c494d3e4aaf080dfd27956a02eb968fad6f
ef2c70246963c6e364d3635618298cecb008187f
refs/heads/master
2023-09-01T17:14:51.086341
2021-10-27T15:09:40
2021-10-27T15:09:40
412,394,110
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
import os from config import default_chunk def check_storage(folder_path:str) -> bool: return os.path.exists(folder_path) \ and os.path.isdir(folder_path) def produce_storage(folder_path:str) -> None: return os.path.exists(folder_path) \ or os.mkdir(folder_path) def check_file_presence(file_p...
[ "oleksandrshevchenko889@gmail.com" ]
oleksandrshevchenko889@gmail.com
4fcb1cc6ef1aa8dd0b590806b4fe4be048784aea
37f1838b0a1f13fd516e28ae6f8641f1bfe90ab1
/part02_regression/p04_support_vector_regression/svr.py
e270e40505151f532ed839f545bdbeeb9b91c9c0
[ "Apache-2.0" ]
permissive
reyadussalahin/ml-a2z
e3a787f1144bf7f2e1084e4a1f93bbedad317c3d
d76fc63970303a53ec11b963bc86c4e71e8e83e5
refs/heads/master
2020-05-27T10:06:29.881930
2019-06-09T06:26:07
2019-06-09T06:26:07
188,577,861
0
0
null
null
null
null
UTF-8
Python
false
false
1,816
py
# it's the part same in every script # please change your project_root dir as you need # this project_root may not be same as yours...running the code won't work # this whole process i've gone through to provide Data file path # you can/should follow your own approach import os if os.name == 'posix': PROJECT_ROOT ...
[ "reyadussalahin@gmail.com" ]
reyadussalahin@gmail.com
95a528dd21133ba2df964b0d63a9451686576c0e
5224ca43fde4a549655e45aab88a0215ed5a50bd
/.venv/bin/eradicate
411605314aa31e256ceddd1578219b58112d59cb
[]
no_license
goevs/python-project-lvl1
29370e432365815ad0daed6903fbdc4bf3f55dd0
cdb4e97778d49ff259ce3470029c8f219fd79815
refs/heads/master
2022-11-24T14:19:49.164175
2020-07-16T16:12:33
2020-07-16T16:12:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,691
#!/home/vil/edu/python-project-lvl1/.venv/bin/python3 # Copyright (C) 2012-2015 Steven Myint # # 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 limita...
[ "pilot.cool@mail.ru" ]
pilot.cool@mail.ru
a5730babeea5cb9b9fa196c88478e70d153d0beb
212f68a515ac97a2f7152016b230e69d42060f04
/tapiriik/services/DecathlonCoach/decathloncoach.py
6eb1e3011f83527bc504075c0e8898ebbfd7698b
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
filin2009/exercisync
07a7b7479ff52b86b99ad0e05c70df5e55071952
f0995a6fb11efd1a662d1e5fb8be02b53b053548
refs/heads/master
2022-02-13T07:36:34.955858
2019-07-24T18:28:52
2019-07-24T18:28:52
219,769,182
1
0
Apache-2.0
2019-11-05T15:42:29
2019-11-05T14:46:18
null
UTF-8
Python
false
false
23,148
py
# Synchronization module for decathloncoach.com # (c) 2018 Charles Anssens, charles.anssens@decathlon.com from tapiriik.settings import WEB_ROOT, DECATHLONCOACH_CLIENT_SECRET, DECATHLONCOACH_CLIENT_ID, DECATHLONCOACH_API_KEY from tapiriik.services.service_base import ServiceAuthenticationType, ServiceBase from tapi...
[ "canssens@gmail.com" ]
canssens@gmail.com
45bd56adc1b2966f89f8975993d293920fc347e9
b0b5a04a5f13eb6bbd9b00d580068687ee03f975
/redisleaderboard/leaderboard.py
2237f9f2006858560422b7106c7257d6fe932e5d
[]
no_license
CorneliusIV/redis-leaderboard
b65efe0f8e6f07fbb7abb06dad3d55e89ac083b4
b08808e704b8fd00b778d590cf2d4a55b5997b76
refs/heads/master
2020-06-18T13:06:58.038469
2018-02-02T16:17:41
2018-02-02T16:17:41
75,137,502
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
import json from django.conf import settings from django_redis import get_redis_connection if settings.APP_STATE not in ('postactivation', 'recap'): rediscon = get_redis_connection('leaderboard') def response_to_dict(b): d = json.loads(b[0].decode('utf8')) d.update({'score': b[1]}) return d def get...
[ "cornelius@isl.co" ]
cornelius@isl.co
c31338954ced6e76da2274aa4b6340be2e11225e
aa8e6259f33bdcfdf21434da5185f31aa6927195
/gtf_admm_gird_v1.py
ded9bf78405dafb35b2100bc464273be8ad8622f
[]
no_license
Ryanshuai/graph_trend_filtering_py
b32448cfdc4c50a9dfde144abe73e878891f26de
243969bf7dd97e483693ac88e45ab2192cd4edbf
refs/heads/master
2020-11-27T07:13:22.116640
2019-12-24T20:56:05
2019-12-24T20:56:05
229,349,019
2
0
null
null
null
null
UTF-8
Python
false
false
1,927
py
import numpy as np from numpy.linalg import norm from grid_system import grid_system_2d, grid_system_3d from get_Delta_grid import get_Delta_grid from soft_thresh import soft_thresh from construct_O import construct_O def gtf_admm_grid_v1(y: np.array, k, lamb, rho, max_iter=1000): y_size = y.size y_shape = y...
[ "1018718155@qq.com" ]
1018718155@qq.com
4b0396f3c233a125ea3c25284daaacfd7059575c
4bf5ac851ae63740100d396a230d86bf2984cb1f
/satire_fake_cohmetrix.py
d8d556f11c20bbc8af2ba84082d149adebad03e8
[]
no_license
weilingwei96/Satire_vs_Fake
6c0d7215007d6e7569246ce6aca7c4ec2166bf2d
80350266c4a1d058d65d4f038f4a1424351dd1b1
refs/heads/master
2022-03-13T10:18:55.566726
2019-11-23T23:29:14
2019-11-23T23:29:14
281,037,166
0
1
null
2020-07-20T06:48:43
2020-07-20T06:48:42
null
UTF-8
Python
false
false
6,080
py
from sklearn.linear_model import LogisticRegression from sklearn.metrics import classification_report from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from sklearn.metrics import make_scorer from sklearn.naive_bayes import GaussianNB from sklearn.model_selection import c...
[ "pdr.hosseini@gmail.com" ]
pdr.hosseini@gmail.com
05f9301df81319e54b22a7ca62d0a6c6cfddddaa
6989ea305abec4198de989f867c8b0c2af342176
/DataFest/csvparse.py
d6cface97323ff09deacb94d3f936e6344fa8358
[]
no_license
jed326/DataFest2018
acf60a27d34b8f61df8c92ed96e1da641fc50c8f
b09e0e6fd9682a649b69062ba271a224276bf5e4
refs/heads/master
2020-03-18T10:50:43.672627
2018-05-23T23:41:45
2018-05-23T23:41:45
134,636,442
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
import csv with open('cityIndexStates.csv', 'w') as csvOut: writer = csv.writer(csvOut, delimiter=',', quoting=csv.QUOTE_MINIMAL) writer.writerow(['City'] + ['Type'] + ['Index']) with open('ODN_Cost_of_Living.csv', 'r') as csvIn: reader = csv.reader(csvIn, delimiter=',') for row in reader: ...
[ "noreply@github.com" ]
jed326.noreply@github.com
36a920fc840a4cac53c5c0475cc0246db7de7072
a2d497e219db4cefd073ec37b786ae37aea73515
/MashScript.py
d4c947ddba0a86423dddf0c6a0c676a30545a6ce
[]
no_license
Andrew-J-Miller/RPI_proj
10a4fef90bb6f73adfbbd1511ab64b7e1f64d03b
270032239f02dbb23caeee36eb570bc945e523c0
refs/heads/master
2020-03-16T13:16:51.623507
2018-09-12T18:12:19
2018-09-12T18:12:19
132,685,527
0
0
null
null
null
null
UTF-8
Python
false
false
7,391
py
import RPi.GPIO as GPIO from pygame import mixer import os import time import sys import tkinter as tk from tkinter import ttk import datetime #This is the python script that will be called for the Mash step #Is essentially identical to the general heating template with the exception that the pump is run. #librar...
[ "noreply@github.com" ]
Andrew-J-Miller.noreply@github.com
17b6a63f5fd62343b7a3cb8a859ed7ef5cd184f7
521648e4e12366760da7baff15d35201e0b19a5e
/django_ansible/shell.py
5dc1d4613af2d30156968e00bd67fc7c89c10b8e
[]
no_license
sashgorokhov/django-ansible
b54f596f7d50d239474eb2d4fd8e85c0da21f959
ad32255b7c87bcada1bd6c8aa250c1ec52c8cd49
refs/heads/master
2021-01-22T07:52:55.457727
2017-02-13T19:46:23
2017-02-13T19:46:23
81,864,171
1
0
null
null
null
null
UTF-8
Python
false
false
919
py
import subprocess import logging logger = logging.getLogger(__name__) def _try_decode(b): try: return b.decode() except: return b def run(executable, args, env=None, cwd=None, **kwargs): """ :param kwargs: Additional arguments passed to subprocess.run function :rtype: subprocess...
[ "sashgorokhov@gmail.com" ]
sashgorokhov@gmail.com
a43314ecbd28c6a36f85c46b51a9b51ade14fd6e
c3247112f8e5dc2e3da786668f3136e95184efc7
/MyDemoProject/settings.py
d1bc7a590195a8d1be6b97024d9c302c46289b5a
[]
no_license
akshayanagaraj/POSTHUB
7936fff9c53bc8fe8205b9ea7bc873345d00d249
d064f05fa3e054f4ab7c795b1305df832a686827
refs/heads/master
2023-02-14T17:26:17.324212
2020-12-30T13:26:07
2020-12-30T13:26:07
319,924,867
0
0
null
null
null
null
UTF-8
Python
false
false
4,683
py
""" Django settings for MyDemoProject project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pat...
[ "akshayanagaraj00@gmail.com" ]
akshayanagaraj00@gmail.com
cd441f2d3c611228048829a1ca0097ef862c5ad3
fe8981741df39900d7fce240cfb07b7f05e18d30
/Datacamp Assignments/Data Engineer Track/3. Software Engineering & Data Science/10_creating_setup.py
7d58d8d8a3882fb41096f4684f45e478f88d4ff0
[ "MIT" ]
permissive
Ali-Parandeh/Data_Science_Playground
8924a252d9eeb7748b5d35545bd51f2102ae6476
c529e9b3692381572de259e7c93938d6611d83da
refs/heads/master
2020-09-17T10:34:55.427499
2020-04-18T10:02:42
2020-04-18T10:02:42
224,075,630
0
1
null
null
null
null
UTF-8
Python
false
false
1,038
py
# Import needed function from setuptools from setuptools import setup # Create proper setup to be used by pip setup(name='text_analyzer', version='0.0.1', description='Perform and visualize a text anaylsis.', author='Ali', packages=['text_analyzer'], install_requires=['matplotlib>=3.0.0']...
[ "Ali.Parandeh@atkinsglobal.com" ]
Ali.Parandeh@atkinsglobal.com
e2f068cbe30c6a0e2ced7c56d424860a07838c8b
d0cd3064e1b24542e02518961fd6643af56738f0
/ticha-django-site/handwritten_texts/views.py
96faec09e23c5252e504753c7de6a6f472a2b205
[]
no_license
zhanpengwang888/Docker-Test
126bd74301b7550de753eb7539795e20ace285c5
2f0eefb684622d6eead3977697e8ccf4761ba1be
refs/heads/master
2022-12-15T11:49:46.899365
2017-09-29T21:02:05
2017-09-29T21:02:05
104,515,096
0
0
null
2022-12-07T23:56:40
2017-09-22T20:16:17
HTML
UTF-8
Python
false
false
1,899
py
from django.shortcuts import render from .models import HandwrittenText from django.views.generic import ListView class HandwrittenListView(ListView): model = HandwrittenText template_name = 'handwritten_texts/list.html' EN_TO_ES = { 'title': 'título', "language": "idioma", "document_type": "tipo_del_doc...
[ "zhanpengwang@Zhanpengs-MacBook-Air.local" ]
zhanpengwang@Zhanpengs-MacBook-Air.local
e7b91b1e1a9a07d308d53477e8feb10298c13fa7
4b8279ac15416e85641f8c70afacbad9cfdd34f2
/bloggo/decorators.py
273caef174b07ebe5828fdae64adf1990436042a
[]
no_license
kunxi/django-bloggo
2d30c613e10195ffaaead1ca5c24739de8cff5de
f78a2f97a7bfc471002b6812d16698239c222ce5
refs/heads/master
2021-01-25T08:37:09.408187
2010-08-23T00:36:30
2010-08-23T00:36:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
from django.utils.decorators import decorator_from_middleware import context_processors require_siteconf = decorator_from_middleware(context_processors.require_siteconf)
[ "kunxi@kunxi.org" ]
kunxi@kunxi.org
1f46b61b04387cb9bac34da475225708022f4256
85373d45a83e4096affafa4f4e5b400787413e57
/test/programytest/storage/entities/test_twitter.py
2029e686fce23c3649fb991138d2227ae6ad9fa9
[ "MIT" ]
permissive
keiffster/program-y
a02bb9d8278835547cc875f4f9cd668d5b1f44da
fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20
refs/heads/master
2023-08-23T13:55:39.255535
2022-12-13T09:51:57
2022-12-13T09:51:57
74,462,571
379
173
NOASSERTION
2023-05-23T00:51:21
2016-11-22T10:43:41
Python
UTF-8
Python
false
false
471
py
import unittest.mock from programy.storage.entities.twitter import TwitterStore class TwitterStoreTests(unittest.TestCase): def test_store_last_message_ids(self): store = TwitterStore() with self.assertRaises(NotImplementedError): store.store_last_message_ids(1, 2) def test_load...
[ "keith@gchqsurserverf3.home" ]
keith@gchqsurserverf3.home
f486f1646c5aee7e78087c10701847e789eca729
4ade1bb7226d69d653065deabf9ffc0885d61791
/sources/structurebuilder/plugins/copy_paste_plugin.py
1c41c341fc9499626c794c4a7e0e678ebb86d5bb
[]
no_license
zalt00/Game2
030ffe9ef53d72b0c4f835bf9e4653036d2f482c
aa7d39ff96b4d737bdcc05085522bfd67755b332
refs/heads/master
2023-06-19T23:30:06.732897
2021-07-13T17:09:13
2021-07-13T17:09:13
239,285,671
0
0
null
null
null
null
UTF-8
Python
false
false
1,552
py
# -*- coding:Utf-8 -*- from .plugin_base import PluginMeta, AbstractPlugin, command import pygame pygame.init() __plugin_name__ = 'CopyPastePlugin' class CopyPastePlugin(AbstractPlugin, metaclass=PluginMeta): def __init__(self, app): super(CopyPastePlugin, self).__init__(app) self.copied_subtab...
[ "leberre.amedee@gmail.com" ]
leberre.amedee@gmail.com
c13e18406862b21208f3d0eabecafed60a527fec
0b1002296d0686daae2ec0e83cafbba9833bf837
/utils/test.py
20fbd142451833f7a9d51ceac556d2b719c2efae
[]
no_license
williamzxl/tmp1
b35f967ee62b25c65976b5c0a59cd71b315c2029
0213bac933435ae15dfc10997aa6b07300e2f580
refs/heads/master
2021-06-10T01:37:35.060796
2018-12-21T06:38:14
2018-12-21T06:38:14
162,676,016
1
0
null
2021-06-01T23:13:05
2018-12-21T06:37:07
Python
UTF-8
Python
false
false
122
py
a = {'groupID': '2475', 'newF': 3, 'sysID': '11-Hubei-Reading-4', 'taskID': '37037'} print(a.keys()) print(list(a.keys()))
[ "1053418947@qq.com" ]
1053418947@qq.com
6a515c0069fd5bf15272817de03f9bb0eb4b954d
a55496a955fc3e74e893a5692385b0f7c2a9ebfd
/0226_숫자배열회전.py
5737a37fd7fec526c58b1883d6dd41c90e6ef00d
[]
no_license
i-cluster/Study
ab74c524875e5dac1ae1acd8f61b03d44a88c8de
1c85caa0f27bfaace99514a1713799af07023cc5
refs/heads/master
2023-04-14T17:34:40.679721
2021-04-29T12:23:10
2021-04-29T12:23:10
309,609,722
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
# SWEA 1961 # https://bit.ly/3aGQi12 def turn(k, ar): for i in range(n): for j in range(n-1, -1, -1): turned[i][k] += ar[j][i] return list(turned[i][k] for i in range(n)) import sys sys.stdin = open('sample.txt', 'r') for tc in range(1, int(input())+1): n = int(input()) arr = [li...
[ "jhlee9091@gmail.com" ]
jhlee9091@gmail.com
d4d6f8c7d0d44505e4fca8cbbe86cd3b935367db
cfb2f8175741705776585e6de0e9eca367bb7181
/爬虫笔记/SpiderBegining/爬虫与json/06-get请求.py
ae4df52127e190a771f76dfdb0118f37a15e7511
[]
no_license
qiuqiubeibei/qiuqiubeibei.githup.io
0ed6c50c3ea9e31570c2103879d4ecee6ea9754a
cb855469a62a0c4e5d192f31e794f1c5b082b2b0
refs/heads/master
2020-05-18T07:25:12.117397
2020-01-31T14:31:54
2020-01-31T14:31:54
184,264,310
8
4
null
null
null
null
UTF-8
Python
false
false
296
py
''' get的特点:把数据拼接到请求路径后面传递给服务器 优点:速度快 缺点:承载数据量小,不安全 ''' import urllib.request url = "https://movie.douban.com" response = urllib.request.urlopen(url) data = response.read().decode("utf-8") print(data)
[ "noreply@github.com" ]
qiuqiubeibei.noreply@github.com
48d0dc88474f9a9daaca5cccdce6a61d601feac0
fe6f183202e10e6c65f53a57e897ccde7ac6aef7
/logging_.py
08cdcf0136f46fec88813cb24396104794e68044
[]
no_license
B2Metric-AI/db-for-learning-python
11f623b8250795e6533d1537661e8e2d756a9f0c
59fd408c70417505e5c51ea88099bcfc6a7263c7
refs/heads/master
2022-01-05T12:56:14.062140
2018-10-20T13:32:14
2018-10-20T13:32:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
import logging # レベル設定もできる # formatter = '%(levelname)s:%(message)s' # formatter = '%(asctime)s:%(message)s' # logging.basicConfig(level = logging.INFO, format = formatter) logging.basicConfig(level = logging.INFO) # logging.critical('critical') # logging.error('error') # logging.warning('warning') # logging.info('in...
[ "ngovanmanh88@gmail.com" ]
ngovanmanh88@gmail.com
e7578cef4a041a9964a50a37d121f428f740ef9a
3c7565fc2a4c24ca358b4a9f5e847740be1ee496
/accounts/models/livestock_module.py
1eab59b1e63a3500365fd1887ed08a5f1611ffe3
[]
no_license
mohitspi/channab01
54a9aa4e0f6f6975b6d6da884a73030b0ffd552d
7e0c6deb9592b990ca2e54919522e5f71f0125b2
refs/heads/master
2022-11-23T08:51:19.702997
2020-08-01T09:06:31
2020-08-01T09:06:31
284,409,643
0
0
null
null
null
null
UTF-8
Python
false
false
5,207
py
from django.db import models from product.models import Category from django.contrib.auth.models import User class AddedAnimalLiveStock(models.Model): '''Demonstrate docstring for confirming that this class will store all product added by logged in user''' choices=( ('Male', 'Male'), ('Female',...
[ "mohitrahejatimone@gmail.com" ]
mohitrahejatimone@gmail.com
3f4a3115d59cbdaa0eebda1fc2946dac648429c8
7e7dd9a9886007cd37dc320de8b8c807043610c6
/experiments/q_learner.py
c478664b8d1ce9b730f4e19a8bb4619ef72ce03e
[]
no_license
npho/HW4
ba8f9add0daded40d334a563e878ba6659e35aaa
4060fd9883ee99d2f69629f2a89969a244bc9edb
refs/heads/master
2020-05-09T20:51:33.663028
2019-04-15T03:26:48
2019-04-15T03:26:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,622
py
import json import os import time import numpy as np from .base import BaseExperiment, OUTPUT_DIRECTORY import solvers if not os.path.exists(OUTPUT_DIRECTORY + '/Q'): os.makedirs(OUTPUT_DIRECTORY + '/Q') if not os.path.exists(OUTPUT_DIRECTORY + '/Q/pkl'): os.makedirs(OUTPUT_DIRECTORY + '/Q/pkl') if not os.pa...
[ "nampho@me.com" ]
nampho@me.com
6186b22b3a120dabe4ba8f3d591b10995ca352d9
79aaa3d38c0296d0c0572fd77bfbe24bb2ee4adb
/hierarchical.py
2f3e94e305cd6f44d79663a50a335dce6850e48a
[]
no_license
ixicrom/droplets
809cb3e939211b6a50acd71a47468707e01661f3
c0e52a0a1be2aed8ad321430feee6c4c3b510a85
refs/heads/master
2021-07-20T06:01:24.962827
2021-02-11T16:39:04
2021-02-11T16:39:04
241,429,544
0
0
null
null
null
null
UTF-8
Python
false
false
3,152
py
from processing_tools import * from sklearn import cluster imPath = '/Users/s1101153/Desktop/droplet_stacks/63x/final_images/ims_to_read/' infoFile = '/Users/s1101153/Desktop/droplet_stacks/63x/stack_info.csv' # %% calculating variables from wedge slices slices = pd.read_pickle('/Users/s1101153/Desktop/droplet_stack...
[ "e.m.gould@sms.ed.ac.uk" ]
e.m.gould@sms.ed.ac.uk
28dccbb9398db07f45d327d9f7177a7907e88734
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/python/paddle/distributed/launch/controllers/ipu_controller.py
bf2c5f34b3bdf946f0f16b99225771bd139022e5
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
6,679
py
# Copyright (c) 2022 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
109a21b79abddfbc7f76c75cdba728b887a8d0ef
9343c9a43e1940b6ca7e96d0891edef385389083
/labs/lab3/train_hvd_1.py
197c1a2711684a9cc98dccd1718f112ce9c71686
[ "MIT" ]
permissive
luyuliu/CSE-5194
4441301d283820e45d64b3503061221082cf334b
52970106c21b30e64d4cf1df26bec09929494060
refs/heads/master
2020-07-09T17:19:47.994233
2019-12-26T15:13:56
2019-12-26T15:13:56
204,032,088
1
0
null
null
null
null
UTF-8
Python
false
false
9,253
py
from __future__ import print_function import argparse import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms import torch.utils.data.distributed import horovod.torch as hvd import collections import random, time, os import torch from utils impor...
[ "liuluyu0378@gmail.com" ]
liuluyu0378@gmail.com
7b88efcd16638abbf9a7b7bf5405d75f01442fa0
4ef12965654c4bc9d6a0635ecf8188ecf2defed8
/my_new_application_1046/wsgi.py
3cb6a828d03839b76f908d22de5a1756e8c484a1
[]
no_license
crowdbotics-apps/my-new-application-1046
2d30662ae59e1675d0fee78789898852a1b81b45
e3ee98e6318bac0a61b3519d148b4b6b80c9c6f5
refs/heads/master
2022-12-21T22:11:11.515569
2019-02-23T00:42:41
2019-02-23T00:42:41
172,153,638
0
0
null
2022-12-08T01:40:51
2019-02-23T00:41:51
Python
UTF-8
Python
false
false
424
py
""" WSGI config for my_new_application_1046 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.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefa...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
4fe67943284d35aae5492511e9750adaef3d0bcb
0316d7901906971046bcf401de83ecebcdc84602
/I0320122_Exercise3.1.py
51d10865ea20c20e9024225dbde9096f77ae4d4a
[]
no_license
alvinanindra18/Alvin-Anindra-Putra_I0320122_Muhammad-Abyan_Tugas-3
df5439ce6956a924d861d1cc084e1e2fcd9f234a
e8164b1a03ce8e340736fbb7b4c023e00a593b99
refs/heads/main
2023-03-22T13:31:37.756556
2021-03-18T08:50:00
2021-03-18T08:50:00
348,999,954
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
#Cara mengakses nilai di dalam list Python list1 = ['fisika', 'kimia', 1993, 2017] list2 = [1, 2, 3, 4, 5, 6, 7 ] print ("list1[0]: ", list1[0]) print ("list2[1:5]: ", list2[1:5])
[ "noreply@github.com" ]
alvinanindra18.noreply@github.com
f3e6a56ad13c3ca60eee69d6fcdd140bdd25a488
6bf2ca52c3dcc3f2507c9643e5c0643bda26e65d
/application.py
c3c200a7fb657a44fc1638b403f3ee400572e677
[ "Apache-2.0" ]
permissive
dilipforlearn/hyperledgercomposer-pizza-on-the-blockchain
d47b2f26be183250f0234f36d2db56d6a5ee6a56
01ae134d6e3fccd72a15b8d69739fac6b4eb6c8f
refs/heads/master
2022-12-07T00:22:50.867139
2020-08-18T17:14:16
2020-08-18T17:14:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,889
py
from flask import Flask, render_template, request, redirect import requests import json import random import os import dateutil.parser app = Flask(__name__) # Helper function to parse the raw string from the Blockchain def myOwnerFunc(newOwner): return newOwner.split("#")[1].title() # Helper function to get th...
[ "bharath.fpl@gmail.com" ]
bharath.fpl@gmail.com
0a4496a02194dde02d89f94e065bb5e8d08c414d
b77cc1448ae2c68589c5ee24e1a0b1e53499e606
/leave/migrations/0011_auto_20170216_1404.py
583d88c706e6ecb11c94de53c4d77eac4b435c0f
[]
no_license
PregTech-c/Hrp_system
a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7
11d8dd3221497c536dd7df9028b9991632055b21
refs/heads/master
2022-10-09T07:54:49.538270
2018-08-21T11:12:04
2018-08-21T11:12:04
145,424,954
1
1
null
2022-10-01T09:48:53
2018-08-20T13:58:31
JavaScript
UTF-8
Python
false
false
421
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-02-16 11:04 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('leave', '0010_auto_20170215_1712'), ] operations = [ migrations.RenameModel( ...
[ "imugabi64@yahoo.com" ]
imugabi64@yahoo.com
8786ea0334c5efedf5e9f45374a05f141cbafbd2
5b24395856a88bcd61baa6ebe5220493998c7025
/drf_day2/urls.py
9f47782fd692557044dbe1c9c00e049c5209efba
[]
no_license
wulinyuan-python/drf_all
65a2294204c3bd184a73b8f1b45b34c9c0116795
9dba41e4c7ae15622aeba88c874dc22a6c0c0e54
refs/heads/master
2023-01-06T13:31:57.569132
2020-11-04T09:08:39
2020-11-04T09:08:39
308,489,222
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
from django.urls import path from drf_day2 import views urlpatterns = [ path("user/", views.UserView.as_view()), path("student/", views.StudentAPIView.as_view()), path("student/<str:id>/", views.StudentAPIView.as_view()), path("emp/", views.EmployeeAPIView.as_view()), path("emp/<str:id>/", views....
[ "8202453+wulinyuan@user.noreply.gitee.com" ]
8202453+wulinyuan@user.noreply.gitee.com
cf5d0a7771e323b24bd3ee042f85b1bcbe5f004f
2233f520493f64c6070dd3e77722e53a7dd738e8
/day5/my_devices_na.py
2721f252d62d9ee537165a0fe29a355f3aca4d31
[ "Apache-2.0" ]
permissive
mpjeffin/pynet-ons-oct17
690bb31600b8ef5131439bb25ddce35b4855ba6a
d0daf9c250f79bc34b3b8b06b67004f56ef834a2
refs/heads/master
2021-09-07T00:00:02.234456
2018-02-13T19:58:11
2018-02-13T19:58:11
125,467,721
1
0
null
2018-03-16T05:26:10
2018-03-16T05:26:10
null
UTF-8
Python
false
false
1,517
py
""" pynet-rtr1 (Cisco IOS) 184.105.247.70 pynet-rtr2 (Cisco IOS) 184.105.247.71 pynet-sw1 (Arista EOS) 184.105.247.72 pynet-sw2 (Arista EOS) 184.105.247.73 pynet-sw3 (Arista EOS) 184.105.247.74 pynet-sw4 (Arista EOS) 184.105.247.75 juniper-srx 184.105.247.76 """ from getpass import getpass password = ...
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
e5d626a8e29cff942cabd559358ec0fa0a02efdd
f6d62be29514e0ca2fe72d66ce5b300a45a67abd
/src/MyWeb/config.py
1531d17322a416641507fc5b9aac2a7e1d3e571c
[]
no_license
johnhuzhy/MyPythonExam
63f9f3d11074f11423b25ed37b0bc9def26b3ca4
f4988ba0f18f333ff1832c218aa2654ac16b403e
refs/heads/master
2022-12-16T10:51:35.600279
2020-09-17T12:04:28
2020-09-17T12:04:28
259,513,586
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
# APP配置 SERVER_HOST = 'localhost' SERVER_PORT = 2345 DEBUG = True # DB配置 DIALECT = 'mysql' DRIVER = 'pymysql' USERNAME = 'test' PASSWORD = 'zaq12wsx' DB_HOST = 'localhost' DB_PORT = '3306' DATABASE = 'huzhy' SQLALCHEMY_DATABASE_URI = f"{DIALECT}+{DRIVER}://{USERNAME}:{PASSWORD}@{DB_HOST}:{DB_PORT}/{DATABASE}?charset=...
[ "johnho560@gmail.com" ]
johnho560@gmail.com
7f92f2587cfb587208f36e8f323f7845992daf6b
207cbf583d629631536a1c8c2e78ff89d7895fa2
/test/test_experiments.py
9167381b8a26f66627a10d3ce9cd9ffbf8112db3
[]
no_license
nalrefai/EnsembleMethodsForFeatureSelection
376f1e9b4ee0024e792219f456dd53e7834b63f0
43e4258c2c48bdf883fc33b797520cb442ee93bb
refs/heads/master
2021-09-23T17:41:41.003720
2018-09-25T21:17:22
2018-09-25T21:17:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,466
py
from experiments import * import numpy as np import robustness_measure import feature_selector from sklearn.dummy import DummyClassifier class TestRobustnessExperiment: experiment = MeasureExperiment( measures=robustness_measure.Dummy(), feature_selectors=[feature_selector.DummyFeatureSelector(), ...
[ "a.goscinski@mail.tu-berlin.de" ]
a.goscinski@mail.tu-berlin.de
3c38660ec4d35e0550e8ee0a5d07cfa3e6b542e2
0486a473653b4f74581d063de54ff9c9f66a05a5
/scripts/fmri/cluster_automator.py
8e9ccaf199091a93f7d8a3970629035565289f6b
[]
no_license
mlko53/cultsid
845b710fe847a520d3e886e6f5d9b803d8a8d4db
7819d3f8acbe2d0353a36ac3a54d644916371d9d
refs/heads/master
2021-11-30T02:35:45.744875
2021-11-14T07:08:02
2021-11-14T07:08:02
150,183,684
0
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
import os, glob import subprocess, sys, stat def find_folders(topdir): possible = glob.glob(os.path.join(topdir,'*')) dirs = [x for x in possible if os.path.isdir(x)] return dirs def pair_names_ttests(curdir): ttests = glob.glob(os.path.join(curdir,'*.HEAD')) ttests = [x for x in ttests if "anat"...
[ "mlko53@stanford.edu" ]
mlko53@stanford.edu
3c7e62a6c66c81cb67ff59aea32164ad5a60a0b9
03bab1898e74de03b7fa4666ffc9aafd061f091d
/pegasusio/citeseq_data.py
54711f148a6c0d2af1a0d37d62ab2b86f7340c37
[ "BSD-3-Clause" ]
permissive
slowkow/pegasusio
e289dea8ca4faefeec9662982d4af1654094d0e0
4531e0c6b4e4e42e689fbb652141b0428bb55c8c
refs/heads/master
2022-11-19T05:21:21.870520
2020-06-25T01:56:22
2020-06-25T01:56:22
279,089,575
0
0
null
2020-07-12T15:10:48
2020-07-12T15:10:47
null
UTF-8
Python
false
false
8,068
py
import numpy as np import pandas as pd from scipy.sparse import csr_matrix, hstack from typing import List, Dict, Union import logging logger = logging.getLogger(__name__) import anndata from pegasusio import UnimodalData from .views import INDEX, _parse_index, UnimodalDataView class CITESeqData(UnimodalData): ...
[ "bli28@mgh.harvard.edu" ]
bli28@mgh.harvard.edu
34a633497e3a44d758897514e1b6958fd30f03ad
68904e9046a7752d8e2dc298c89c0a91acbce2c6
/Scripts/PasswordGen.py
498baee01e0d95b6a6374873601ac9f590f0a857
[]
no_license
jernkalv/PythonScripts
ed05f71a29bedf6e17996b4fa1af2a7ade8cbf50
7364ab002a31a84b0e0be5b0b36cef4fcd5fcf76
refs/heads/master
2020-06-16T12:20:34.469764
2019-07-06T18:34:43
2019-07-06T18:34:43
195,571,678
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
import string import random def randompassword(): chars = string.ascii_uppercase + string.ascii_lowercase + string.digits + string.punctuation size = random.randint(16, 16) return ''.join(random.choice(chars) for x in range(size)) print(randompassword())
[ "noreply@github.com" ]
jernkalv.noreply@github.com
a9ec02750c300b803142d6a698722a631793409d
ce0e6ddde201fbd92a63d9c227caac42be134495
/1037.py
58746c89a4e26a56ca3d9ad2af0f5550bb2f2b51
[]
no_license
whlg0501/2018_PAT
40a961885cc528f6542558da3bb642ae6c08e5fa
3a9c7af5f98e92fcb47fec1bd879f5679cea83b1
refs/heads/master
2020-03-22T15:21:57.612376
2018-07-30T14:57:23
2018-07-30T14:57:23
140,247,315
0
0
null
null
null
null
UTF-8
Python
false
false
1,799
py
""" 1037 在霍格沃茨找零钱(20)(20 分)提问 如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon), 二十九个纳特(Knut)兑一个西可,很容易。” 现在,给定哈利应付的价钱P和他实付的钱A,你的任务是写一个程序来计算他应该被找的零钱。 输入格式: 输入在1行中分别给出P和A,格式为“Galleon.Sickle.Knut”, 其间用1个空格分隔。这里Galleon是[0, 10^7^]区间内的整数,Sickle是[0, 17)区间内的整数,Knut是[0, 29)区间内的整数。 输出格式: 在一行中用与输入同样的格式输...
[ "314905605@qq.com" ]
314905605@qq.com
3bd92e1102046ab3d54741f341c1a6b9dce8bb83
9bb9bbc258f04c2493ecac1e7111119dc96e42ab
/PythonDatabaseProject/ClientTest.py
96cb0e993f8bd534dae31afc17ffa1c54b8d507a
[]
no_license
MahoneyH/SchoolWorkPython
ecd622324c5a857aa234fa2f762c2d8fa4c1094d
9192ccca17a7b21b809a2346d58f952f15e05268
refs/heads/master
2020-12-27T22:10:49.115279
2020-02-03T23:01:33
2020-02-03T23:01:33
238,078,195
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# Author Hunter Mahoney/Erika Tix # Created 4/9/19 Updated 4/10/19 # Test file to connect MongoDB Atlas and Pycharm import MenuCreations import AdminLogin def main(): client = AdminLogin.loginDatabase() MenuCreations.loginSignup(client) if __name__ == '__main__': main()
[ "noreply@github.com" ]
MahoneyH.noreply@github.com
f038bc2b9a17df1850673d6ae03947a746749459
00f795bc3dba31a599a14a9eaace3285393fc041
/w3school/7.python_strings/3.py
3382bf4700a393d60f2b1bc258194d4f6677caa8
[]
no_license
Khalida02/Week1
fa02bb9dccdd62303f3f997153775d06877df33b
f8d5bb37b7d5c95fb1047afed639bf1df88aa40a
refs/heads/main
2023-02-26T02:40:19.048797
2021-02-04T12:07:52
2021-02-04T12:07:52
334,925,634
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
#looping through a string ("for") for x in "banana": print(x)
[ "khamitovakhalida@gmail.com" ]
khamitovakhalida@gmail.com
438dfdf0b19a083bd9b1157b53d2919d688c2a8a
958b0471c52eff93415216cdd1a2b2ad3947a89b
/blueoil/templates/lmnet/object_detection.tpl.py
cf5170303d51745396007741b7ffa0160df7ae0d
[ "Apache-2.0" ]
permissive
fumihwh/blueoil
4deb606e334b8456e7ace41e3f091ad6dc41afb6
acb5a270f201f34fe5a5b27a4b395d9c3a838b27
refs/heads/master
2020-04-01T22:29:27.525697
2018-10-18T09:23:37
2018-10-18T09:23:37
153,711,347
1
0
null
2018-10-19T01:49:02
2018-10-19T01:49:02
null
UTF-8
Python
false
false
4,402
py
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil 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 # # Unles...
[ "matsuda@leapmind.io" ]
matsuda@leapmind.io
84f8614af6501e9950112b91d35c5dbf1e89981f
2f22609355aa0f2bf69a26b24fa80d818ecc7cbe
/PYHcsc/字典.py
de054a51744ace71046d97aed4a979cbc717c482
[]
no_license
mgGummy/PYH
d5c809ca9dfa408fbafd6f03c4fdf2dec5f78de0
5dbb367126504d532bca95850261d44a474867e3
refs/heads/master
2023-04-21T17:58:31.739241
2021-04-20T03:41:19
2021-04-20T03:41:19
343,682,555
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
#-*- codeing = utf-8 -*- #@Time : 2021/3/3 9:31 #@Author : cscnb #@File : 字典.py #@Software : PyCharm '''字典的创建方式''' #{} l={'张三':40,'大哥':70,'csc':66} # print(l) # #dict函数 # li=dict(name='李四',age=50) # print(li) # '''获取字典的元素 # ''' # #第一种,使用[] # print(l['张三']) # #第二种,用get函数 # print(l.get('张三')) # print(l.get('牛逼',99))#99是没...
[ "74232718+mgGummy@users.noreply.github.com" ]
74232718+mgGummy@users.noreply.github.com
96906e376a4af7963a035409f8261f16fadf899b
90882544c78d7bc5eb603a75dfdd711d79c817d4
/blockfinder.py
583065509ce628fa44fd32daa493ccfa8059fd11
[]
no_license
phishing-factory/tools
783457eb4cda1dae425faaa78e787a157bd0aa61
36c52d2cbe0211a2b98fecb5751d8bad8340b0a8
refs/heads/master
2021-01-22T18:28:59.406868
2016-04-07T18:15:43
2016-04-07T18:15:43
55,841,042
2
1
null
2016-04-09T11:36:18
2016-04-09T11:36:18
null
UTF-8
Python
false
false
474
py
#!/usr/bin/env python2 #author: mp #comment: pull a list of IPv4 address for a given country import urllib2 from BeautifulSoup import BeautifulSoup as Soup import sys soup = Soup( urllib2.urlopen( "http://www.nirsoft.net/countryip/" ).read() ) for i in soup.findAll( "a" ): if sys.argv[1] in i.text: csv = ...
[ "mikepicard01@gmail.com" ]
mikepicard01@gmail.com
a09aed9f91b719c1f98b95de09433e1fabe666fd
d8d0aff23cd7784889f7024d542c71c52fc1ef87
/travello/urls.py
28e05178c7f6a74937bf25ce3d1f8b2db1f3d6f5
[]
no_license
AkibSamir/Travellobd
bd6232c49c5309556407a6d9dd4142cb3e2f8d00
2a458fc90c605f6bd51a1b4696e3d3373bb8a1ad
refs/heads/master
2023-06-19T04:09:59.727302
2021-06-22T14:53:41
2021-06-22T14:53:41
379,306,843
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
from . import views from django.urls import path urlpatterns = [ path('', views.index), ]
[ "akibsamir@gmail.com" ]
akibsamir@gmail.com
0a353c72cd5ac4e94f92a45c266db3301dd4e75d
55550afe1c18aacba9a481c690755cb7395d35f1
/Week_02/G20190343020265/LeetCode_429_0265.py
8c27174ae38c6a831080ec3ed80dc81bc566fcc5
[]
no_license
algorithm005-class02/algorithm005-class02
eb5c0865fbb2c58362fddcd4fc8f8b9d02bb208c
1a1abf5aabdd23755769efaa6c33579bc5b0917b
refs/heads/master
2020-09-22T11:48:20.613692
2020-03-02T05:31:11
2020-03-02T05:31:11
225,177,649
45
153
null
2020-03-02T05:31:13
2019-12-01T14:47:06
Java
UTF-8
Python
false
false
2,476
py
# # @lc app=leetcode.cn id=429 lang=python3 # # [429] N叉树的层序遍历 # # @lc code=start """ # Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children """ # 同理采用层序遍历 BFS遍历算法,同 102题的二叉树层序遍历 # 将左右固定子节点,改为从左到右遍历不定子节点,其余逻辑这里不再赘述 ...
[ "noreply@github.com" ]
algorithm005-class02.noreply@github.com
288b78324fb141293f276b8450ce623a37c75a11
56e91fa45e87b265510239e27e50de7e2b83962d
/CustomUsers/migrations/0002_auto_20190714_0249.py
da3a5bbfd1b27995d3063aa3e258ea52055aba83
[]
no_license
CheloVek0116/Hackaton2019_HACKU
9a55f86708fc5f4787c679169c61d19f1352477c
7f7f851a3b508a4b48df719b22c9c17c624750c2
refs/heads/master
2020-06-19T17:14:19.328835
2019-07-14T05:34:37
2019-07-14T05:34:37
196,797,460
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
# Generated by Django 2.2.1 on 2019-07-14 02:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('CustomUsers', '0001_initial'), ] operations = [ migrations.AlterField( model_name='customuser', name='Biology', ...
[ "megabalabol@mail.ru" ]
megabalabol@mail.ru
e6b58d96f7f155d934cca84b30951a45f3b3a1ef
39b46908c644092202261589e0a571b5e46cfc64
/Serial/Change.spec
e354af158ab7f13231c413c705b5cb1fec68a930
[]
no_license
rhkdrod12/python_practice
7d66f31d5a3e0c707722f5434275e3fe4f5c0df2
40709ae98afd3d81c7a1353e887926f54524ba60
refs/heads/master
2023-02-17T06:48:56.897390
2021-01-06T07:24:07
2021-01-06T07:24:07
327,233,016
0
0
null
null
null
null
UTF-8
Python
false
false
991
spec
# -*- mode: python ; coding: utf-8 -*- block_cipher = None a = Analysis(['Change.py'], pathex=['C:\\Users\\Kim\\PycharmProjects\\Serial'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], ...
[ "rhkdrod12@gmail.com" ]
rhkdrod12@gmail.com
928ee73b547edff31da465fab745ca2942961c31
178082c190f58c8e6346350c08875a0292fc143b
/v1.0/aaa.py
cd6760335b54996689e1aa098f71ddd061e46548
[]
no_license
Engy-22/CFBBettingModel
ae9ff28f76a35de941ae463156315472d3fa0f1e
a5b64eb4eafb7becef9f9ec1cebf227bb7f8ceee
refs/heads/master
2023-07-17T20:52:40.841416
2021-08-30T17:54:32
2021-08-30T17:54:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
from evalPredictions import testFitAlt import pandas as pd bigboy = pd.read_csv('./csv_Data/test_predictionsAlt.csv', encoding = "ISO-8859-1") testFitAlt(bigboy,5,5,100)
[ "jjmittenthal@crimson.ua.edu" ]
jjmittenthal@crimson.ua.edu
c0eb4bc8412ecaaaa4487ae33bba16b07ed34654
0b5ab7349485da4ea40ca343bc50f4cab74c917c
/week06/c11_02.py
6f2b70e99e3507ef95e9e833368280cb7b5ebef7
[]
no_license
workherd/Python006-006
9bf2782ccda037de9af98eb7daa87fd1edeb3caf
7aa176c3cf4effd015802b550edfb70f859e94d9
refs/heads/main
2023-04-29T14:37:43.545376
2021-05-16T04:13:08
2021-05-16T04:13:08
323,247,475
1
0
null
2020-12-21T06:13:42
2020-12-21T06:13:42
null
UTF-8
Python
false
false
712
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Time : 2021/1/30 21:06 # @Author : john # @File : c11.py # 使用type元类创建类 def pop_value(self, dict_value): for key in self.keys(): if self.__getitem__(key) == dict_value: self.pop(key) break # 元类要求,必须继承自type class DelVal...
[ "1330430077@qq.com" ]
1330430077@qq.com
593cbafcc033ef79c8b89434a564675e136ba5cc
e3d30ac7d5a9efb63ed3e0c258b13da0f7797f3e
/lab4-topo2.py
cf9a0fab87eb88592db9da15919c73af19dc3099
[]
no_license
abhinav3008/3_Enforcing_Policies_in_Open_Virtual_Switches
3830b51e15f5d43f18232cdf53f7cacb5de4e91f
fda8eceaccc164a6d71cc22a6e20ec549c5965ba
refs/heads/master
2020-04-05T22:41:57.596178
2016-06-26T21:23:19
2016-06-26T21:23:19
62,008,581
0
0
null
null
null
null
UTF-8
Python
false
false
1,188
py
"""Custom topology example Two directly connected switches plus a host for each switch: host --- switch --- switch --- host Adding the 'topos' dict with a key/value pair to generate our newly defined topology enables one to pass in '--topo=mytopo' from the command line. """ from mininet.topo import Topo from min...
[ "ak5011@nyu.edu" ]
ak5011@nyu.edu
30d160a89cb021b89ffa3a81257339d90f223c24
b44df2be270793884ca5bd5e79d22c991edae001
/app/auth/views.py
9ac180988110a27bb0106dfd45b959fc130d2335
[]
no_license
Wakarende/Blog
d45c423be8a86227ad4106bbdae429a79ef3dcf2
2e2d2f89c55c4f5dbe0cf6fe09f83212bf905f5c
refs/heads/master
2023-04-23T00:18:47.343723
2021-05-05T06:46:51
2021-05-05T06:46:51
363,127,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
from flask import render_template,redirect,url_for,flash,request from . import auth from flask_login import login_required,login_user,logout_user from ..models import User from .forms import RegistrationForm,LoginForm from .. import db from ..email import mail_message @auth.route('/login', methods=['GET','POST']) def...
[ "joykirii@gmail.com" ]
joykirii@gmail.com
b999c383916b930e91d7b80e6d994ad36fa45cf8
f10e846f65e0d8edaa08dfae9d6701ac3fba9310
/kohakucc_hostus/asgi.py
2d87d296993552da5624fc0ad02fbc0b999b3e0d
[]
no_license
VincentGau/kohaku.cc
a4d3cb52b1bcc0001405b9d7a1dd207ce8cbadd4
972b4e501bacb492fb96e0cc9c5eb46e0e0b0c9d
refs/heads/master
2021-01-19T14:59:44.820221
2018-01-17T06:45:57
2018-01-17T06:45:57
100,926,362
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from channels.asgi import get_channel_layer os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kohakucc_hostus.settings") channel_layer = get_channel_layer()
[ "g@kohaku.cc" ]
g@kohaku.cc
55a0afdfef929aa72333e614132af2476104a1b4
c9f58e8fdc44b7eaee56519afd626e704a5bbf94
/simulation/part6_qwi_vccl/qwi_gain.py
12abfe123e37dea4464cab998d35254363a9daeb
[]
no_license
waakaakaa/mythesis
9bec2a8a14c7ff89e501a1106cfb621f6212016d
edc86ad4aa2f46265410d2a53b1969f310e5fff8
refs/heads/master
2021-01-02T09:08:45.375701
2015-12-26T08:26:36
2015-12-26T08:26:36
11,283,156
4
1
null
null
null
null
UTF-8
Python
false
false
8,282
py
# -*- coding: utf-8 -*- ''' Created on 2013-11-19 @author: Xin Zhang ''' import math from matplotlib import pyplot from numpy import linalg import numpy from numpy.lib.function_base import trapz from numpy.ma.core import exp PI = 3.1415926 H_BAR = 1.0545887e-34 SPEED_OF_LIGHT = 2.99792458e8 ELECTR...
[ "zju.zhangxin@gmail.com" ]
zju.zhangxin@gmail.com
ffce63d94730102d0599826ce2ea7e70963a22c9
0c9ec5d4bafca45505f77cbd3961f4aff5c10238
/openapi-python-client/openapi_client/models/process_instance_modification_dto.py
a2247513acf2154c0228b1c01bcedaba8beea8c1
[ "Apache-2.0" ]
permissive
yanavasileva/camunda-bpm-examples
98cd2930f5c8df11a56bf04845a8ada5b3bb542d
051f8f28c62845e68ce4059ab64264c5a0bdc009
refs/heads/master
2022-10-19T20:07:21.278160
2020-05-27T15:28:27
2020-05-27T15:28:27
267,320,400
0
0
Apache-2.0
2020-05-27T14:35:22
2020-05-27T13:00:01
null
UTF-8
Python
false
false
7,337
py
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration clas...
[ "noreply@github.com" ]
yanavasileva.noreply@github.com
d3b9028eaf77fa86a0f7717bc3955468cf7d093a
cd55982889d04b5954526e64687ff74349b4d860
/pics/scripts/03_05_fig3e.py
b2041f4d98add3c9c519cb90c3f8c6a1d731aeaf
[]
no_license
ba29534/chira2018
6b9211004db2c7722bd22b3d1822e63eb382904c
99d240ae9dcc505557751296a019bca62b7a5980
refs/heads/master
2020-03-11T16:02:28.736847
2019-09-27T18:18:55
2019-09-27T18:18:55
130,104,085
1
0
null
2018-06-06T17:27:34
2018-04-18T18:17:34
Jupyter Notebook
UTF-8
Python
false
false
3,786
py
############################################################################## ## This script reproduces Fig. 3e of Chira et al. (2019). ## ############################################################################## # import required python packages import numpy as np import matplotlib.pyplot as ...
[ "roxanachira@roxanas-mbp.speedport.ip" ]
roxanachira@roxanas-mbp.speedport.ip
2b381525fefdeac0ef1e5cd6af040849d7ab9e4e
99b0631baa2fd9ab2455d848b47febf581916272
/zhijieketang/chapter11/ch11.3.6.py
5ed6d9e5c1c618b89767775b7f3df937094f87bb
[]
no_license
seceast/PyProjects
a934e366cb619f2610d75b9a0fb47d818814a4de
7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1
refs/heads/master
2023-03-07T22:23:21.229489
2021-02-25T05:37:58
2021-02-25T05:37:58
265,480,151
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# coding=utf-8 # 代码文件:chapter11/ch11.3.6.py class Animal(object): """定义动物类""" def __init__(self, age, sex=1, weight=0.0): self.age = age # 定义年龄实例变量 self.sex = sex # 定义性别实例变量 self.weight = weight # 定义体重实例变量 def eat(self): self.weight += 0.05 print('eat...') ...
[ "yangyadong25@163.com" ]
yangyadong25@163.com
71f210792e7bb560ed5a7e5db4e79a338bba1c63
ba15fac9fbe53578d3823ceeac67fc338e2312e9
/tests/functional/filters/e2e_filtering.py
2980783ed05dd42c1c343efb2ed74a65e966af43
[ "Apache-2.0" ]
permissive
dblenkus/resolwe-bio-py
0694dcc32f485ccdd5ad43496ccef985c83819c7
b6610ef26625492f39fdeef846d3e5a89a0009b3
refs/heads/master
2021-01-21T03:33:39.831803
2020-05-25T14:29:46
2020-05-26T07:48:34
55,721,959
0
0
null
2016-04-07T19:26:12
2016-04-07T19:26:12
null
UTF-8
Python
false
false
3,627
py
from __future__ import absolute_import, division, print_function, unicode_literals import os import unittest import six from ..base import FILES_PATH, BaseResdkFunctionalTest class BaseResdkFilteringTest(BaseResdkFunctionalTest): def setUp(self): super().setUp() self.endpoint = self.res.data ...
[ "zmrzlikar.jure@gmail.com" ]
zmrzlikar.jure@gmail.com
717763b7957bea7c4c518391943e5fb6c44747b2
157fd6b404d179dbe47793e52d68c8337fbc35f0
/savage/matOp.py
2293770b30ec57c8836c829ad911d134395f54f7
[]
no_license
DWFry/cltcodeninjas
ef808b50340b93eed6e28ed414ccee1b2f76de95
d65f8143fca1f717d86c873f9971289844a63929
refs/heads/master
2016-08-04T04:53:51.734421
2014-02-05T01:23:06
2014-02-05T01:23:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
## module for adding math functions. ## may move over a lot of function from particleObj to be called from here ## Operations to be added: scalar and vector products, inner and outer, trig functions, etc.
[ "savagedogg38@gmail.com" ]
savagedogg38@gmail.com
5ed0b6b208ac17a24cc617228c1a4002832a38f1
72aa80b1ea757fdd7e2a15038b7b46853690e396
/exercises/exercises01/common/searchmethod.py
dc1888963b2f030d69505da47d1003c75efd424f
[]
no_license
chipbuster/SDS385
4e4da0bcfcae5583ab9314595be9ded0e0b83513
319125885cf8bcee612ecb3da7fe3eb4d4b88698
refs/heads/master
2021-01-18T02:18:20.849302
2017-05-14T22:23:47
2017-05-14T22:23:47
66,695,049
0
0
null
2016-08-27T04:02:20
2016-08-27T04:02:19
null
UTF-8
Python
false
false
1,413
py
import numpy as np def backtracking_search(grad_func, obj_func, guess, searchDir): """ Uses backtracking search to find a good step size. grad_func: (function) calculates the gradient obj_func: (function) calculates the objective value guess: (cvector) current guess (beta) searchDir: ...
[ "chipbuster@gmail.com" ]
chipbuster@gmail.com
1c6b5467cecb01f1ce0b31daf841a086b27f5729
2305ce053d16652d31823bd07faf38553b4f9b63
/books/CrackingCodesWithPython/Chapter07/PracticeQuestions/Question2.py
8a2180532dbdb37385f07898cf49f7569908be5b
[ "MIT" ]
permissive
leihuagh/python-tutorials
cff3c5e250a152252d4b725bca19f55721483249
33831b983d7bd1491e367b6c7654e687d5ba709b
refs/heads/master
2020-03-29T17:59:31.226400
2018-09-24T08:41:26
2018-09-24T08:41:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
# Is each spam a global or local variable? spam = 42 # global/local def foo(): global spam spam = 99 # global/local print(spam) foo() # mind == blown
[ "jose@JoseALerma.com" ]
jose@JoseALerma.com
1bbbaa5b1cb7d67aa224ebb323fbcbfada3f51e8
66826173fb307ae6777723c546cf19654500f5c2
/todoList/settings.py
9d400dd03fbe4c631e4a7afad2fa0c5be9cb28ec
[]
no_license
anol390/todoList
bc640380052ae055995aa4d98eb08c980d457846
992aba786631cc2e64aefd7493dafc9f54b4de84
refs/heads/master
2023-03-10T21:05:55.936129
2021-02-20T05:11:22
2021-02-20T05:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,068
py
""" Django settings for todoList project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathli...
[ "anol390@aucklanduni.ac.nz" ]
anol390@aucklanduni.ac.nz
a11c5f527cc9e3679e318cc73c87300a85e7b1c0
f86490b83b14d3679a0eccb944716967f76e137f
/Django/08_django_form_axios/articles/views.py
ac292734e9780eab8f7cee739bdd7c199f5d673a
[]
no_license
Sunaaaa/TIL
63ba35b2995ac25d57c340f329b37079f21276a7
86b1d1881fff74f0d63976278213b65d4380e6c0
refs/heads/master
2022-12-06T07:02:36.748105
2020-02-18T14:29:03
2020-02-18T14:29:03
216,502,919
3
3
null
2022-12-04T18:30:28
2019-10-21T07:21:36
Python
UTF-8
Python
false
false
9,066
py
from django.views.decorators.http import require_POST from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import get_user_model from .models import Article, Comment, Hashtag from .forms import ArticleForm, CommentForm from I...
[ "glglthssla@naver.com" ]
glglthssla@naver.com
477f6768361db49f12efc9b40192ff00dd8077a5
1f2860bf84fa87e2d6c3b5e5b1a62e76879a642a
/q41_50/049.py
5ff4e3fbd4c56fc5ad1ac2c8c1db93e208b34745
[]
no_license
Vegctrp/pic100knock
222dc4c981e7d20180a2338184109987f56d1518
134a41c9a3fcfc49667a26625cfeaf7bc4a91899
refs/heads/master
2020-07-08T17:17:43.869124
2019-09-23T15:23:08
2019-09-23T15:23:08
203,730,580
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
import cv2 import numpy as np import lib4150 import matplotlib.pyplot as plt import sys,os sys.path.append(os.getcwd()) from q01_10 import lib0110 if __name__ == '__main__': img = cv2.imread("Gasyori100knock/Question_41_50/imori.jpg") img2 = lib0110.OTSU_binarization(lib0110.BGR2GRAY(img)) out =...
[ "kem.altair@gmail.com" ]
kem.altair@gmail.com
abd4dcd7d9bd766a65bd55657ec3921e53ed071c
f926f749c0c8cf9b30c649e11cd97ce047c5f85a
/settings.py
7a7b9c3f9844e4634ff1398c773df0b4afa005b4
[]
no_license
leocabralweb/welcometothedjango
b3780839e5c319d8e9d5018d169403708853179c
1f21212cd03b7288e9e117d9f4720d8fc4feb2fe
refs/heads/master
2016-09-05T09:07:40.252889
2011-08-14T19:55:12
2011-08-14T19:55:12
2,205,864
0
0
null
null
null
null
UTF-8
Python
false
false
5,234
py
# Django settings for eventex project. import os PROJECT_DIR = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'pos...
[ "leonardo.cabral@stormsec.com.br" ]
leonardo.cabral@stormsec.com.br
835ca98173120362129fb06185e42175a34c08b0
e6f5ace07bd7e4f2cdae2a9f1991a131b526fffc
/simulation-rtt-studio-arm2d/gcc-arm-none-eabi-10.3-2021.07/arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libstdc++.a-gdb.py
783b8951ad10d5efdf575212723fc695f77bc325
[]
no_license
easyzoom/mimiscript-demo-stm32
58fc64c87688026af6ab3cfa73dab0ca4d9caa8e
55b0fe1e3bebb08fb1aec3eb7e6369fd80840e86
refs/heads/main
2023-07-15T17:15:42.651764
2021-08-25T02:16:07
2021-08-25T02:16:07
393,065,997
1
0
null
2021-08-15T09:00:24
2021-08-05T14:09:04
C
UTF-8
Python
false
false
2,613
py
# -*- python -*- # Copyright (C) 2009-2020 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later versio...
[ "graduateDesign@example.com" ]
graduateDesign@example.com
36f87e0a8ac36a95aeb15b9d53c4c2cb84ba6d22
ab0081f4c52ba6c91e4f666e6c2c480c23934a5d
/Mira/chatbot.py
51b287a59550697278b3d75fef24c0473eda3616
[]
no_license
purinaqa/FP-STKI
be866d50dbdcf93c9802e5b1f0c318d6ce488807
54c452b955d9f7769b88acdbcca8203316d45cdb
refs/heads/master
2021-10-08T13:21:03.138486
2018-12-12T18:38:23
2018-12-12T18:38:23
156,947,071
0
0
null
null
null
null
UTF-8
Python
false
false
2,748
py
import os import re import unicodedata import mysql.connector import numpy as np import errno import sys import tempfile import random import json from keras.models import load_model static_tmp_path = os.path.join(os.path.dirname(__file__), 'static', 'tmp') db = mysql.connector.connect(user="root", password='', databa...
[ "mutia15@mhs.if.its.ac.id" ]
mutia15@mhs.if.its.ac.id
c0635b042204a094d688857bc7d4ba9f4f33a426
ad16b7166ebe5aced4d9f91fc09d4ee30c0a83da
/files/mongoose_detect.py
d2f1f9d2fdae2f6a6e1d449adda7340f35e640d6
[]
no_license
SDU-Embedded/object_detectors
f814f2390fab153fbf2ff1675956e797c4f5cdb4
71b1d91e11649d439cfc5189ffb65c14091aac9f
refs/heads/master
2020-04-18T22:20:59.732524
2019-01-30T14:06:57
2019-01-30T14:32:41
167,791,094
0
0
null
null
null
null
UTF-8
Python
false
false
13,088
py
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile import time import copy import re from collections import defaultdict from io import StringIO from PIL import Image from utils import label_map_util from utils import visualization_utils as ...
[ "lelar09@student.sdu.dk" ]
lelar09@student.sdu.dk
53f4a27e87fb3addf97d4d78878621ac3a3a110b
3c99f7ca498798b0865c18003c56d97c2327457c
/back_end/src/main/venueobjects/LambdaGetVenues.py
40fc057994eaf742c85cfd1c83063aa90b5d17f0
[]
no_license
alma957/Campus-Collect
95d7d856c03c72960c03c1150c6dc559863b47bd
8a33650273b5af6e1964dbda1ce8f16e7ff3aa8a
refs/heads/master
2023-01-01T21:20:22.826501
2020-10-26T18:43:39
2020-10-26T18:43:39
307,471,486
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
# actual lambda function to be used for getting venues by price, location, tags,.. from main.venueobjects.getVenues import GetVenuesHandler from main.lambdautils.DBConnection import DynamoConn def lambda_handler(event, context): handler = GetVenuesHandler(DynamoConn("Venues")) return handler.handle_request(e...
[ "a.marzetta19@gmail.com" ]
a.marzetta19@gmail.com
394523d7bb019d8ca4af4992d2c5ef47409c3c40
88a02059cbf16303dad9745a774230b2e078410f
/1163.py
4ea1e789406c0eacec92cc075cfdac006f318799
[]
no_license
nekoTheShadow/my_answers_of_yukicoder
2e3a94b6dab214fda1ae3c53f879190e6eedc31f
d607dee056a84f08305a51d6eb0bac9faa5d74ed
refs/heads/master
2022-01-16T06:31:48.776630
2022-01-04T08:11:27
2022-01-04T08:11:27
132,351,091
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
n, x = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) for i in range(n): a[i] -= x m = sum(a) if m >= 0: print(0) exit() if max(a) < 0: print(-1) exit() dp = [{} for _ in range(n+1)] dp[0][m] = 0 for i in range(n): for k in dp[i]: if...
[ "h.nakamura0903@gmail.com" ]
h.nakamura0903@gmail.com
42aef09dfae4828b46e66f859a13a2d8268af3ac
304dbd92a676dbb86234f98aa76d08bed227e634
/cypher.py
c1f083174282a271da39d33cdca9463cf5d430b0
[]
no_license
cruemartin/Ceasar-Cypher
220682ede6e16cd5da673d2f47c47f4f217bc743
4a855e0df8a38590f0e17bc1294307137a552b89
refs/heads/master
2022-05-07T05:50:03.389544
2019-11-21T01:05:22
2019-11-21T01:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
#Create a simple Ceaser Cypher import encoder import decoder print("Welcome to the message encypter!") key = int(input("\nPlease enter an offset: ")) x = input("Enter a phrase to be encoded: ").lower() unencoded_message = list(x) message = encoder.Encoder(key, unencoded_message) message.encode_message() encoded_...
[ "crue.c.martin@wmich.edu" ]
crue.c.martin@wmich.edu
cfef9023f320a0d729b547e59ca935ad54379639
e3b261c2a79ecefdd9fc19c17308874dfb3c82ed
/Cosine Similarity Analysis/PortfolioAnalysis/paperMethod.py
4feb3d0aa82467f06c6bc839ff7d5d2065f75f7d
[]
no_license
jptree/SEC-Analytics
0339acc439f5c05880423e531144906f82ec6e35
eddc346428d769a4c029b55795935748a182abdc
refs/heads/main
2023-06-19T14:05:09.179470
2021-07-21T14:08:58
2021-07-21T14:08:58
360,916,346
0
1
null
null
null
null
UTF-8
Python
false
false
16,728
py
import pandas as pd import numpy as np import os from PetriProgramming.PortfolioHelper import plot_cumulative_returns, summary_statistics import matplotlib.pyplot as plt pd.set_option('display.max_columns', 80) pd.set_option('display.max_rows', 25) pd.set_option('display.min_rows', 25) pd.options.display.width = 150 ...
[ "jasonfpetri@outlook.com" ]
jasonfpetri@outlook.com
96ea774d03c563f4d521a7284d56912681fc110b
10d98fecb882d4c84595364f715f4e8b8309a66f
/genomics_ood/images_ood/eval.py
af9737b30f6b5e2487d99c451162174c16c47aad
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
11,626
py
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
19db869411ab8dc827d95cbb935496b96d12d95d
c3e78a867d7ffd98573713287c92d5aa51f8d9e1
/models/logistic_regression_model.py
0e0249ddd7a0b2def30265d92ca02d51c4409378
[]
no_license
panthap2/AssociatingNLCommentCodeEntities
d41dc695f791ff7ae7308d5f7344f661c752ce3c
c34f8294e5119a39452dde42968b9af1d9373dc6
refs/heads/master
2021-07-19T16:05:40.457426
2020-10-24T17:10:31
2020-10-24T17:10:31
221,307,426
19
11
null
null
null
null
UTF-8
Python
false
false
1,787
py
from model_utils import * import os import numpy as np import sys import tensorflow as tf parentPath = os.path.abspath("..") if parentPath not in sys.path: sys.path.insert(0, parentPath) import utils import random from sklearn.linear_model import LogisticRegression class LogisticRegressionModel: def __init__...
[ "spantha@cs.utexas.edu" ]
spantha@cs.utexas.edu
9375ac379d9e628b7e3443a2979108c2d4b929d6
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/sieve/e7fe59df2209451392330ca4b6e3a767.py
92ce912956b69c6858c7563937f5b3852a638d3c
[]
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
408
py
def sieve(lim): rng = range(2,lim+1) output = range(2,lim+1) for i in range(len(rng)): count = 0 for j in range(len(output)): if output[count] != rng[i]: if not output[count] % rng[i]: output.remove(output[count]) ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
ec56f03acce102e0f9d823035f633bf669caaa28
c7001f818fe7a3b55a1840a8c14f020aa664dc43
/util/NodePair.py
fd2a8ac6323a2e8c33b39d9ac94739292a0937b9
[]
no_license
andimultazam/linkprediction
2cb1381fa01d378688ce1da2985650b5a072657f
f1226ebef9766096f694b2c0725f85123f95b15b
refs/heads/main
2022-12-25T14:27:50.264052
2020-10-06T00:32:56
2020-10-06T00:32:56
301,456,054
1
0
null
null
null
null
UTF-8
Python
false
false
957
py
import math class NodePair: def __init__(self, id1, id2, commonNeighbors): self.id1 = id1 self.id2 = id2 self.commonNeighbors = commonNeighbors def getId1(self): return self.id1 def getId2(self): return self.id2 def getCommonNeighbors(self): return self...
[ "andi.multazam@gmail.com" ]
andi.multazam@gmail.com
97af03ac6a2aa5e5942722a06b8dfc39002989bd
3a666566a1ca340f88bce3a5bb11b22b12ec77c3
/StockWatch/main/management/commands/reset_database.py
a7f8fc682047ded9b77ca8f640353ddaf1b78cf3
[]
no_license
tomhamiltonstubber/stock-watch
7bb108d02de21bdfd24786e00a03244a7314b1c3
d280af91119033921bd387700dd08a86c0ca7dcf
refs/heads/master
2022-01-25T04:55:07.658083
2020-11-16T20:56:33
2020-11-16T20:56:33
179,542,531
0
1
null
2022-01-21T19:00:34
2019-04-04T17:14:32
SCSS
UTF-8
Python
false
false
1,030
py
import shutil from django.conf import settings from django.core.management import BaseCommand, call_command from django.db import DEFAULT_DB_ALIAS, connections class Command(BaseCommand): help = 'Recreates database schema' def add_arguments(self, parser): parser.add_argument('--demo-data', action='s...
[ "tomhamiltonstubber@gmail.com" ]
tomhamiltonstubber@gmail.com
e2ae156f3dbbda6b5112f41ce492607a2a6f8cb7
7081156e214e4554bba3a6abb82f23c6e1ae5a1a
/Code/ml/04. 模型选择_hyperopt.py
248f0aaef8e55cea4444351ebe414fd14f378bbf
[]
no_license
ManSsssuper/MyNotes
e917f7ebdae5f2c4c688b902b11e915822cdbba9
9fbce10c2ac5a7056f0e5fdafd39530441841e27
refs/heads/master
2020-09-07T09:51:14.894320
2020-08-01T12:57:24
2020-08-01T12:57:24
220,742,360
1
0
null
null
null
null
UTF-8
Python
false
false
4,665
py
# -*- coding: utf-8 -*- """ Created on Tue Jun 9 14:41:21 2020 @author: ManSsssuper fmin:最小化函数 fn:函数 space:调整的参数 algo:参数搜索算法 随机搜索 Tree of Parzen Estimators(TPE) Adaptive TPE max_evals:搜索次数 trials/STATUS_OK用来记录每一次搜索的结果,可以利用trials进行可视化 xgbo...
[ "1335735422@qq.com" ]
1335735422@qq.com
26fc233f2b35fe5e01e482ae9f48810aeda773dd
89784727cbb3c51d380dbc678cc892edf0e861e3
/analyze.py
c50b8abbde84e054c33e9388b48b0ff0d48349b4
[]
no_license
larsks/k8s-storage-profiler
6ee1c10ac9cfa0d3381f941cefeecc788725c271
dedf25f2f3f495e62414f0660ba33aa4f7d0e386
refs/heads/master
2023-08-25T07:16:17.585675
2021-11-01T13:52:31
2021-11-01T13:58:52
423,446,663
0
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
import json import matplotlib.pyplot as plt import numpy as np import os import requests import sys width = 0.25 def plot_one_job(ax, targets, jobname, metric): selected = [] for name, data in targets.items(): selected.append((name, [job['write'] for job in data['jobs'] ...
[ "lars@oddbit.com" ]
lars@oddbit.com
0f0f5d0b1c85ad0e5682d38e9cb7c54b8cbd0dd4
6c29a72dfe9eed38f4667babf74c3ae98983be6f
/tests/test_fixtures.py
445ff550251b679e46e044775df9352aed857bb4
[ "Apache-2.0" ]
permissive
ryan-rs/pytest-examples
0149f79a069a2fb272486d3bf25a756c341f38e8
9ca2368c5e86f651497e42bb304415cf2ae3a0df
refs/heads/master
2020-03-26T15:04:17.374972
2018-11-27T16:38:47
2018-11-27T16:38:47
145,020,977
0
0
NOASSERTION
2018-11-12T19:14:40
2018-08-16T17:43:30
Python
UTF-8
Python
false
false
3,540
py
# -*- coding: utf-8 -*- # ====================================================================================================================== # Imports # ====================================================================================================================== import os import pytest # ===============...
[ "ryan.gard@rackspace.com" ]
ryan.gard@rackspace.com