hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a222f92ec445d5938034f74c1ec399f735f6e4e
730
py
Python
saas/web/page.py
nattvara/saas
766b538ac90daa8f8eadce8a1fd43f83413610de
[ "MIT" ]
2
2019-01-18T16:14:03.000Z
2019-04-12T13:27:50.000Z
saas/web/page.py
nattvara/saas
766b538ac90daa8f8eadce8a1fd43f83413610de
[ "MIT" ]
null
null
null
saas/web/page.py
nattvara/saas
766b538ac90daa8f8eadce8a1fd43f83413610de
[ "MIT" ]
null
null
null
"""Page module.""" from __future__ import annotations from saas.web.url import Url class Page: """Page class.""" def __init__(self): """Create new page.""" self.urls = [] self.status_code = None self.content_type = '' def add_url(self, url: Url): """Add url. ...
20.857143
55
0.527397
4a2232f4eef7580109caa54742166aaeb0e94d30
7,651
py
Python
elpis/engines/common/input/elan_to_json.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
118
2018-11-25T22:00:11.000Z
2022-03-18T10:18:33.000Z
elpis/engines/common/input/elan_to_json.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
189
2019-01-25T01:37:59.000Z
2022-02-16T02:31:23.000Z
elpis/engines/common/input/elan_to_json.py
guillaume-wisniewski/elpis
550c350fd0098751b9a502a253bc4066f15c47db
[ "Apache-2.0" ]
34
2018-11-28T20:31:38.000Z
2022-01-27T12:20:59.000Z
#!/usr/bin/python3 """ Get all files in the repository can use recursive atm as long as we don't need numpy pass in corpus path throw an error if matching file wav isn't found in the corpus directory Usage: python3 elan_to_json.py [-h] [-i INPUT_DIR] [-o OUTPUT_DIR] [-t TIER] [-j OUTPUT_JSON] Copyright: University o...
39.642487
109
0.640047
4a223451bf9c345df19c6f5ae9b3a4d81a51fdf4
18,579
py
Python
Lib/wave.py
deadsnakes/python3.3
4faaf44cd5478410ac3b977351c1965fa054b5e9
[ "PSF-2.0" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
Lib/wave.py
deadsnakes/python3.3
4faaf44cd5478410ac3b977351c1965fa054b5e9
[ "PSF-2.0" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
check-python33-manual/samples/standard_library_337/Lib/wave.py
DaveKaretnyk/parsing-utils2
40085bbd399fa605f2f2a4708d385a64ffc907de
[ "MIT" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
"""Stuff to parse WAVE files. Usage. Reading WAVE files: f = wave.open(file, 'r') where file is either the name of a file or an open file pointer. The open file pointer must have methods read(), seek(), and close(). When the setpos() and rewind() methods are not used, the seek() method is not necessary. This ...
36.005814
130
0.609452
4a2234d0d209f36820a470401f8a2a8e1fed1045
581
py
Python
densities/keops_base.py
willwhitney/exploration-reimplementation
5e2ca54119529b8bf9235bfbad92e38a6781fbd5
[ "Apache-2.0" ]
2
2020-08-24T15:59:59.000Z
2020-08-24T17:03:30.000Z
densities/keops_base.py
willwhitney/exploration-reimplementation
5e2ca54119529b8bf9235bfbad92e38a6781fbd5
[ "Apache-2.0" ]
null
null
null
densities/keops_base.py
willwhitney/exploration-reimplementation
5e2ca54119529b8bf9235bfbad92e38a6781fbd5
[ "Apache-2.0" ]
null
null
null
import torch from matplotlib import pyplot as plt from pykeops.torch import LazyTensor use_cuda = torch.cuda.is_available() tensor = torch.cuda.FloatTensor if use_cuda else torch.FloatTensor def new(dim): return None def update_batch(index, data): data = tensor(data) X_j = LazyTensor(data[None, :, :])...
20.034483
66
0.690189
4a22369444402ccb3f23f36de36bc390898f245c
10,844
py
Python
tensorflow_probability/python/optimizer/variational_sgd.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
2
2019-10-30T04:45:07.000Z
2019-10-30T04:45:08.000Z
tensorflow_probability/python/optimizer/variational_sgd.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/optimizer/variational_sgd.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
# 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...
41.707692
80
0.690612
4a2236d3a5fd5706a6d4ec78fb894a870d6ba414
4,395
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import re import six from azure.core.credentials import AzureKeyCredential from azure.core.pipeline.policies import AzureKeyCredentialPolicy from azure.c...
30.10274
111
0.653925
4a2236e719a3fd346780287adc40f8382ce37b5c
563
py
Python
flaskFlieBrow/app2.py
shivampip/FrontEnd
b43e5088baaa3accb9210a3093e982035c58cff1
[ "MIT" ]
null
null
null
flaskFlieBrow/app2.py
shivampip/FrontEnd
b43e5088baaa3accb9210a3093e982035c58cff1
[ "MIT" ]
null
null
null
flaskFlieBrow/app2.py
shivampip/FrontEnd
b43e5088baaa3accb9210a3093e982035c58cff1
[ "MIT" ]
null
null
null
@app.route('/', defaults={'req_path': ''}) @app.route('/<path:req_path>') def dir_listing(req_path): BASE_DIR = '/Users/vivek/Desktop' # Joining the base and the requested path abs_path = os.path.join(BASE_DIR, req_path) # Return 404 if path doesn't exist if not os.path.exists(abs_path): r...
29.631579
53
0.669627
4a22387fe03d8a0a7204d1a2bab53edba7734244
10,139
py
Python
src/compiler/parser.py
tsellam/syllabus
112d9d47715a85181bd4afb19acfdd17a895eaad
[ "MIT" ]
null
null
null
src/compiler/parser.py
tsellam/syllabus
112d9d47715a85181bd4afb19acfdd17a895eaad
[ "MIT" ]
null
null
null
src/compiler/parser.py
tsellam/syllabus
112d9d47715a85181bd4afb19acfdd17a895eaad
[ "MIT" ]
1
2021-04-15T04:51:05.000Z
2021-04-15T04:51:05.000Z
import re import math import numpy as np from ops import * from parsimonious.grammar import Grammar from parsimonious.nodes import NodeVisitor exprgrammar = Grammar( r""" expr = biexpr / unexpr / value biexpr = value ws binaryop ws expr unexpr = unaryop expr value = parenval / ...
25.284289
93
0.58921
4a2238f98b11015eaf5cb776cdf0edc09d2e691b
391
py
Python
quizzes/asgi.py
TheShubhendra/quizzes-backend
90e161281ec02599b17c6f0a9fdd20bddf25bfe7
[ "MIT" ]
null
null
null
quizzes/asgi.py
TheShubhendra/quizzes-backend
90e161281ec02599b17c6f0a9fdd20bddf25bfe7
[ "MIT" ]
null
null
null
quizzes/asgi.py
TheShubhendra/quizzes-backend
90e161281ec02599b17c6f0a9fdd20bddf25bfe7
[ "MIT" ]
null
null
null
""" ASGI config for quizzes project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
4a2239408e9639e65017c52bb225820757c22afa
490
py
Python
tests/r/test_npk.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_npk.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_npk.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.npk import npk def test_npk(): """Test module npk.py by downloading npk.csv and testing shape of extracted data has 24 rows and 5 columns ...
20.416667
43
0.740816
4a223a944a3e6d66d1e0a33f254a78f60c00f6ec
1,079
py
Python
GTApack/GTA_tester.py
marctimjen/Deep_final
ca4de1e04e00706b53c356e1ccc57c7bdfe715f5
[ "MIT" ]
null
null
null
GTApack/GTA_tester.py
marctimjen/Deep_final
ca4de1e04e00706b53c356e1ccc57c7bdfe715f5
[ "MIT" ]
null
null
null
GTApack/GTA_tester.py
marctimjen/Deep_final
ca4de1e04e00706b53c356e1ccc57c7bdfe715f5
[ "MIT" ]
null
null
null
import torch import numpy as np def GTA_tester(model, testloader, p = True): """ This function calculates the accuarcy of a model (network) given an input and target. Note that this testor only works for the networks with onehot encoding. Args: model: The model (network) we want to test th...
29.972222
80
0.60241
4a223aa466773121ab82dcf320eff6e156a7b619
4,771
py
Python
dojo/importers/utils.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
1
2021-12-14T14:46:42.000Z
2021-12-14T14:46:42.000Z
dojo/importers/utils.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
562
2019-06-21T18:44:38.000Z
2022-03-28T18:09:08.000Z
dojo/importers/utils.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
2
2021-09-16T18:30:17.000Z
2021-09-17T00:46:38.000Z
from dojo.utils import max_safe from dojo.tools.factory import import_parser_factory from dojo.models import IMPORT_CLOSED_FINDING, IMPORT_CREATED_FINDING, IMPORT_REACTIVATED_FINDING, Test_Import, Test_Import_Finding_Action import logging logger = logging.getLogger(__name__) def parse_findings(scan, test, active, ve...
43.770642
168
0.70174
4a223b25a4666a8d0945829170ab34b6ba745d1f
3,405
py
Python
preprocessing.py
Mamxlam/legumeRecognition
ddf00edecb6f2527134842e2ff7f118747882dde
[ "Apache-2.0" ]
null
null
null
preprocessing.py
Mamxlam/legumeRecognition
ddf00edecb6f2527134842e2ff7f118747882dde
[ "Apache-2.0" ]
null
null
null
preprocessing.py
Mamxlam/legumeRecognition
ddf00edecb6f2527134842e2ff7f118747882dde
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import glob from skimage import feature from sklearn.preprocessing import MinMaxScaler,LabelEncoder from matplotlib import pyplot as plt import csv import pandas as pd import h5py def importing_images(): images = [] beans_files = sorted(glob.glob ("beans\\*.jpg")) ...
25.795455
87
0.664611
4a223bd3ee9cc6269445fd36f2b8841abb241359
27,025
py
Python
syss_crc.py
quartiq/ai9
edb406594d1eafe844f6aa3ce9159bef42717d73
[ "MIT" ]
null
null
null
syss_crc.py
quartiq/ai9
edb406594d1eafe844f6aa3ce9159bef42717d73
[ "MIT" ]
null
null
null
syss_crc.py
quartiq/ai9
edb406594d1eafe844f6aa3ce9159bef42717d73
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ SySS CRC Simple Python CRC implementation for playing around with cyclic redundancy checks, for instance when analyzing undocumented protocols or file formats by Matthias Deeg <matthias.deeg@syss.de> inspired by Online CRC Calculator by Anton Isakov (https...
40.885023
159
0.530768
4a223c1968ac215bcd594b0e934ebb68c4ca89e0
1,078
py
Python
ravens/ravens/models/__init__.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
ravens/ravens/models/__init__.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
ravens/ravens/models/__init__.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# 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...
39.925926
74
0.805195
4a223e129e82d540a0761ed5df9907573ab06e48
3,368
py
Python
submarine-sdk/pysubmarine/submarine/tracking/utils.py
RamakrishnaChilaka/submarine
e8104e5935a0b15d7ccbb000650f2bfe90525ba0
[ "Apache-2.0" ]
2
2020-02-07T07:12:56.000Z
2021-08-29T10:47:20.000Z
submarine-sdk/pysubmarine/submarine/tracking/utils.py
RamakrishnaChilaka/submarine
e8104e5935a0b15d7ccbb000650f2bfe90525ba0
[ "Apache-2.0" ]
null
null
null
submarine-sdk/pysubmarine/submarine/tracking/utils.py
RamakrishnaChilaka/submarine
e8104e5935a0b15d7ccbb000650f2bfe90525ba0
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use t...
33.68
81
0.731295
4a223eaef059d9d8e3ce203f05e60215ef44885b
5,130
py
Python
mars/serialization/tests/test_serial.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
1
2021-09-03T18:52:06.000Z
2021-09-03T18:52:06.000Z
mars/serialization/tests/test_serial.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
null
null
null
mars/serialization/tests/test_serial.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
28.186813
78
0.659259
4a2240f91e63b384458174f96a243f5159a1e5c2
1,153
py
Python
doc/source/cookbook/streamlines.py
kastalpes/yt
b1e197ca84433fbd61eaf44b28ff5cdb37981d4c
[ "BSD-3-Clause-Clear" ]
2
2021-03-02T18:59:49.000Z
2021-03-02T18:59:50.000Z
doc/source/cookbook/streamlines.py
kastalpes/yt
b1e197ca84433fbd61eaf44b28ff5cdb37981d4c
[ "BSD-3-Clause-Clear" ]
4
2018-04-13T23:03:42.000Z
2018-05-08T17:50:43.000Z
doc/source/cookbook/streamlines.py
kastalpes/yt
b1e197ca84433fbd61eaf44b28ff5cdb37981d4c
[ "BSD-3-Clause-Clear" ]
2
2020-05-16T15:29:37.000Z
2020-06-22T10:17:08.000Z
import yt import numpy as np import matplotlib.pylab as pl from yt.visualization.api import Streamlines from yt.units import Mpc from mpl_toolkits.mplot3d import Axes3D # Load the dataset ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030') # Define c: the center of the box, N: the number of streamlines, # scale: th...
32.027778
76
0.734605
4a22426b2433024a3241522215535731b0567900
8,580
py
Python
test/test_app_directory.py
eric-famiglietti/slack-apps-python
33aebebe7b63152f8cf47e6580aa81b21c31c4bf
[ "MIT" ]
null
null
null
test/test_app_directory.py
eric-famiglietti/slack-apps-python
33aebebe7b63152f8cf47e6580aa81b21c31c4bf
[ "MIT" ]
1
2021-06-01T22:02:37.000Z
2021-06-01T22:02:37.000Z
test/test_app_directory.py
eric-famiglietti/slack-apps-python
33aebebe7b63152f8cf47e6580aa81b21c31c4bf
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import responses import unittest import app_directory class GetApplicationTest(unittest.TestCase): @responses.activate def test_it_returns_an_application(self): url = app_directory.BASE_URL + 'A15KDN02Y-must-read' with open('test/resources/A15KDN...
46.378378
179
0.706643
4a2243dd7367394515055b2fb484f4593299d54e
67
py
Python
speechbrain/processing/__init__.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
3,913
2021-03-14T13:54:52.000Z
2022-03-30T05:09:55.000Z
speechbrain/processing/__init__.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
667
2021-03-14T20:11:17.000Z
2022-03-31T04:07:17.000Z
speechbrain/processing/__init__.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
785
2021-03-14T13:20:57.000Z
2022-03-31T03:26:03.000Z
""" Package containing various techniques of speech processing """
22.333333
62
0.776119
4a22444916aedda53cbb504613b51e95db265a25
4,987
py
Python
qiniu/rpc.py
Yong-Lee/liyong
9a7898099eedf37db41c459b4b52f334fbaa091a
[ "MIT" ]
68
2015-01-13T03:40:11.000Z
2020-06-16T11:37:03.000Z
qiniu/rpc.py
lepture/python-sdk
b9e2a048a40e0aed1e3bad3bf2ae7b46ff1523b1
[ "MIT" ]
1
2018-04-03T04:40:01.000Z
2018-04-03T04:40:01.000Z
qiniu/rpc.py
lepture/python-sdk
b9e2a048a40e0aed1e3bad3bf2ae7b46ff1523b1
[ "MIT" ]
36
2015-01-12T13:47:24.000Z
2018-12-02T15:07:50.000Z
# -*- coding: utf-8 -*- import httplib_chunk as httplib import json import cStringIO import conf class Client(object): _conn = None _header = None def __init__(self, host): self._conn = httplib.HTTPConnection(host) self._header = {} def round_tripper(self, method, path, body): self._conn.request(method, p...
24.566502
91
0.647283
4a2245680f7b11f08f3aeeeeda73818b3b97e90e
6,371
py
Python
checkerista/.env/Lib/site-packages/django/contrib/gis/db/backends/base/operations.py
LybaFatimaNasir/CS311S20PID02
bc29a8c4c9ee508c74d231c015a57b1ca4dfcb39
[ "MIT" ]
15
2020-06-04T05:22:47.000Z
2021-07-06T01:37:57.000Z
checkerista/.env/Lib/site-packages/django/contrib/gis/db/backends/base/operations.py
LybaFatimaNasir/CS311S20PID02
bc29a8c4c9ee508c74d231c015a57b1ca4dfcb39
[ "MIT" ]
51
2019-10-08T01:53:02.000Z
2021-06-04T22:02:21.000Z
checkerista/.env/Lib/site-packages/django/contrib/gis/db/backends/base/operations.py
LybaFatimaNasir/CS311S20PID02
bc29a8c4c9ee508c74d231c015a57b1ca4dfcb39
[ "MIT" ]
11
2019-09-14T20:57:30.000Z
2022-01-19T17:59:26.000Z
from django.contrib.gis.db.models import GeometryField from django.contrib.gis.db.models.functions import Distance from django.contrib.gis.measure import ( Area as AreaMeasure, Distance as DistanceMeasure, ) from django.db.utils import NotSupportedError from django.utils.functional import cached_property class Ba...
39.08589
114
0.66583
4a2246d4483e8c4c03b5622cb94c683b4e0abaad
171
py
Python
toughio/_io/input/toughreact_solute/__init__.py
keurfonluu/ToughMeshio
9f374f5c72df4d76bf63ae4f87f2f2d4e52c81e0
[ "BSD-3-Clause-LBNL" ]
null
null
null
toughio/_io/input/toughreact_solute/__init__.py
keurfonluu/ToughMeshio
9f374f5c72df4d76bf63ae4f87f2f2d4e52c81e0
[ "BSD-3-Clause-LBNL" ]
null
null
null
toughio/_io/input/toughreact_solute/__init__.py
keurfonluu/ToughMeshio
9f374f5c72df4d76bf63ae4f87f2f2d4e52c81e0
[ "BSD-3-Clause-LBNL" ]
null
null
null
from .._helpers import register from ._read import read from ._write import write __all__ = [ "read", "write", ] register("toughreact-solute", [], read, write)
14.25
46
0.672515
4a2246e2485b6e28efc996f076e5ec21f0bf48b9
11,776
py
Python
Analysis/src/logistic_reg.py
Columbia-CRIS/violation-data-analysis
2d7b7128a61527ce392905f961b6f1d31ce2ba49
[ "Apache-2.0" ]
1
2018-02-22T22:31:20.000Z
2018-02-22T22:31:20.000Z
Analysis/src/logistic_reg.py
Columbia-CRIS/violation-data-analysis
2d7b7128a61527ce392905f961b6f1d31ce2ba49
[ "Apache-2.0" ]
null
null
null
Analysis/src/logistic_reg.py
Columbia-CRIS/violation-data-analysis
2d7b7128a61527ce392905f961b6f1d31ce2ba49
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env ipython """Load MSHA data and run a logistic regression. @author: Albert @version: 0.0.2 @date: 10/17/16 Note: data file path is relative, use your own data file path """ import pandas as pd import numpy as np from sklearn import cross_validation from sklearn.linear_model import LogisticRegressio...
29.58794
79
0.617018
4a224a702c24d5ae3665a2283c7b1faeabf33c33
666
py
Python
496-next-greater-element-i/496-next-greater-element-i.py
yuzhengcuhk/MyLeetcodeRecord
bd516c6f2946b922da53e587fc186935c6a8819c
[ "MIT" ]
3
2022-02-07T12:47:43.000Z
2022-03-13T16:40:12.000Z
496-next-greater-element-i/496-next-greater-element-i.py
yuzhengcuhk/MyLeetcodeRecord
bd516c6f2946b922da53e587fc186935c6a8819c
[ "MIT" ]
null
null
null
496-next-greater-element-i/496-next-greater-element-i.py
yuzhengcuhk/MyLeetcodeRecord
bd516c6f2946b922da53e587fc186935c6a8819c
[ "MIT" ]
null
null
null
class Solution: def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]: result = [] for item in nums1: if item in nums2: indexItem = nums2.index(item) indexNext = indexItem + 1 while indexNext < len(nums2): ...
37
82
0.427928
4a224b6d84907c774a7d7e2536758387a23e7795
1,417
py
Python
binx/exceptions.py
bsnacks000/bds
e5b358d7183fc604234fc8e571bbceeda37c09e8
[ "MIT" ]
null
null
null
binx/exceptions.py
bsnacks000/bds
e5b358d7183fc604234fc8e571bbceeda37c09e8
[ "MIT" ]
17
2018-07-03T19:04:55.000Z
2019-08-24T15:12:52.000Z
binx/exceptions.py
bsnacks000/bds
e5b358d7183fc604234fc8e571bbceeda37c09e8
[ "MIT" ]
1
2019-10-10T19:39:28.000Z
2019-10-10T19:39:28.000Z
""" Custom exceptions for binx """ from marshmallow.exceptions import ValidationError class BinxError(Exception): """ A base exception for the library """ class InternalNotDefinedError(BinxError): """ used for development - thrown if an Internal class is improperly declared on a Collection""" class Coll...
29.520833
139
0.736768
4a224cf3522cdd805904fd04297a44fa94e48756
55,625
py
Python
deploy/views.py
wxmgcs/devops
7b0daf6121139c8bec80ec58c119d04d8aeadfe8
[ "MIT" ]
3
2019-05-06T06:44:43.000Z
2020-06-10T00:54:43.000Z
deploy/views.py
wxmgcs/devops
7b0daf6121139c8bec80ec58c119d04d8aeadfe8
[ "MIT" ]
1
2017-07-11T11:36:54.000Z
2017-07-11T11:42:23.000Z
deploy/views.py
wxmgcs/devops
7b0daf6121139c8bec80ec58c119d04d8aeadfe8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf8 ''' @author: qitan @contact: qqing_lai@hotmail.com @file: views.py @time: 2017/3/30 15:28 @desc: ''' from django.shortcuts import render, get_object_or_404, redirect from django.http import Http404, HttpResponse from django.http import StreamingHttpResponse from django.contrib.au...
41.697901
172
0.482912
4a224d4e6ee7f15865aea6aa55b6a7268427fdde
44,284
py
Python
pandas/core/indexes/period.py
mapehe/pandas
8ddc0fd801d794fcd7735816790dff66d1c678e2
[ "BSD-3-Clause" ]
2
2021-01-13T09:40:44.000Z
2021-01-13T09:40:52.000Z
pandas/core/indexes/period.py
mapehe/pandas
8ddc0fd801d794fcd7735816790dff66d1c678e2
[ "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/period.py
mapehe/pandas
8ddc0fd801d794fcd7735816790dff66d1c678e2
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101,E1103,W0232 from datetime import datetime, timedelta import numpy as np import warnings from pandas.core import common as com from pandas.core.dtypes.common import ( is_integer, is_float, is_integer_dtype, is_float_dtype, is_scalar, is_datetime64_dtype, is_datetime64...
34.462257
84
0.583213
4a224ece89facd012619a2773268fec5a79a92a7
223
py
Python
scripts/run_docs.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
55
2019-02-28T23:58:42.000Z
2020-07-14T22:01:45.000Z
scripts/run_docs.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
72
2019-04-04T18:46:30.000Z
2020-06-24T02:47:57.000Z
scripts/run_docs.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
7
2019-04-02T17:53:30.000Z
2020-06-23T16:17:58.000Z
import os import sys # all scripts should be run from the repository root so we need to insert cwd to path # to import docs sys.path.insert(0, os.getcwd()) if __name__ == "__main__": from docs import run run()
15.928571
85
0.699552
4a224edb492c51ccd21b3750224bbc772b1a912e
747
py
Python
core/fileparsers/stockidnamemapfile.py
vewe-richard/moneysea
c72bc8d4c973a9793849c38f620f4ca715e26b10
[ "Apache-2.0" ]
null
null
null
core/fileparsers/stockidnamemapfile.py
vewe-richard/moneysea
c72bc8d4c973a9793849c38f620f4ca715e26b10
[ "Apache-2.0" ]
null
null
null
core/fileparsers/stockidnamemapfile.py
vewe-richard/moneysea
c72bc8d4c973a9793849c38f620f4ca715e26b10
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from baseparser import BaseParser from config import Config class StockIdNameMapFile(BaseParser): def __init__(self, filepath): BaseParser.__init__(self, filepath) self._map = {} pass def doparse(self): with open(self._filepath) as f: for line in f: ...
24.096774
71
0.551539
4a224f6998f945cb15486608b7627b542f6ce82b
1,354
py
Python
var/spack/repos/builtin/packages/apfel/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/apfel/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/apfel/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Apfel(AutotoolsPackage): """APFEL is a library able to perform DGLAP evolution up to NNLO ...
35.631579
95
0.674298
4a225007f34592685ca413e49a1138f533fcf479
17,660
py
Python
varcode/vcf.py
carnivorouspeanut/varcode_comp
4181a3eceeaa76fc47f877ddd15fc188133911f9
[ "Apache-2.0" ]
2
2021-05-24T12:33:13.000Z
2022-02-28T04:39:53.000Z
varcode/vcf.py
carnivorouspeanut/varcode_comp
4181a3eceeaa76fc47f877ddd15fc188133911f9
[ "Apache-2.0" ]
null
null
null
varcode/vcf.py
carnivorouspeanut/varcode_comp
4181a3eceeaa76fc47f877ddd15fc188133911f9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016. Mount Sinai School of Medicine # # 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...
35.604839
79
0.611268
4a2250b698c50b645fb80d2a694a0b983bc706a9
4,367
py
Python
19_gui_development_tkinter/lectures/17_adding_permanent_scrollbar/app.py
gdia/The-Complete-Python-Course
ed375b65242249bc749c3e292a6149f8528b9dcf
[ "MIT" ]
29
2019-09-02T21:15:59.000Z
2022-01-14T02:20:05.000Z
19_gui_development_tkinter/lectures/17_adding_permanent_scrollbar/app.py
gdia/The-Complete-Python-Course
ed375b65242249bc749c3e292a6149f8528b9dcf
[ "MIT" ]
2
2020-08-20T05:48:36.000Z
2021-06-02T03:16:31.000Z
19_gui_development_tkinter/lectures/17_adding_permanent_scrollbar/app.py
gdia/The-Complete-Python-Course
ed375b65242249bc749c3e292a6149f8528b9dcf
[ "MIT" ]
38
2019-10-20T14:29:12.000Z
2022-03-27T19:50:05.000Z
import tkinter as tk from tkinter import ttk, filedialog, messagebox text_contents = dict() def check_for_changes(): current = get_text_widget() content = current.get("1.0", "end-1c") name = notebook.tab("current")["text"] if hash(content) != text_contents[str(current)]: if name[-1] != "*": ...
26.149701
109
0.672544
4a22516d2e24493c290c24853c4acadea66a3dd1
4,882
py
Python
src/tests/rezchain_test.py
Webjet/RezchainCSV
36642689f179c56be724cab3a136574a61518048
[ "Apache-2.0" ]
null
null
null
src/tests/rezchain_test.py
Webjet/RezchainCSV
36642689f179c56be724cab3a136574a61518048
[ "Apache-2.0" ]
null
null
null
src/tests/rezchain_test.py
Webjet/RezchainCSV
36642689f179c56be724cab3a136574a61518048
[ "Apache-2.0" ]
1
2021-03-18T12:38:36.000Z
2021-03-18T12:38:36.000Z
from numbers import Number import tempfile import unittest from datetime import date, datetime from context import * # from rezchaincsv.exceptions import ItemWrong, MapWrong REQUIRED = { "reference": "Common Reference ID", "amount": "Amount", "currency": "Currency", "status": "Booking Status", "la...
29.768293
85
0.491602
4a225173dc61db3e7e2bc7ccebd039d4c61c1126
31,130
py
Python
sdk/python/pulumi_cloudflare/rate_limit.py
pulumi/pulumi-cloudflare
d444af2fab6101b388a15cf2e3933e45e9935cc6
[ "ECL-2.0", "Apache-2.0" ]
35
2019-03-14T21:29:29.000Z
2022-03-30T00:00:59.000Z
sdk/python/pulumi_cloudflare/rate_limit.py
pulumi/pulumi-cloudflare
d444af2fab6101b388a15cf2e3933e45e9935cc6
[ "ECL-2.0", "Apache-2.0" ]
128
2019-03-08T23:45:58.000Z
2022-03-31T21:05:22.000Z
sdk/python/pulumi_cloudflare/rate_limit.py
pulumi/pulumi-cloudflare
d444af2fab6101b388a15cf2e3933e45e9935cc6
[ "ECL-2.0", "Apache-2.0" ]
6
2019-05-10T12:52:56.000Z
2020-03-24T15:02:14.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
45.645161
210
0.615291
4a225188ac14f1aaa3308ff887b40de15c1d1978
1,474
py
Python
wiki_allatra_club/users/views.py
skhalymon/wiki-and-reader
9a585170a0d62641a6d71b0696a777e12c7d0546
[ "BSD-3-Clause" ]
null
null
null
wiki_allatra_club/users/views.py
skhalymon/wiki-and-reader
9a585170a0d62641a6d71b0696a777e12c7d0546
[ "BSD-3-Clause" ]
null
null
null
wiki_allatra_club/users/views.py
skhalymon/wiki-and-reader
9a585170a0d62641a6d71b0696a777e12c7d0546
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.core.urlresolvers import reverse from django.views.generic import DetailView, ListView, RedirectView, UpdateView from braces.views import LoginRequiredMixin from .forms import UserForm from .models import User class UserDe...
30.081633
79
0.719132
4a2251e44295aae19eca24e92d5d6bf7ac80602f
30,917
py
Python
lib/galaxy/config/config_manage.py
NordicESMhub/galaxy
ec3ffb7d8ec5dac9b179f4c9d39b8060b69d5492
[ "CC-BY-3.0" ]
1
2021-02-27T19:54:49.000Z
2021-02-27T19:54:49.000Z
lib/galaxy/config/config_manage.py
NordicESMhub/galaxy
ec3ffb7d8ec5dac9b179f4c9d39b8060b69d5492
[ "CC-BY-3.0" ]
78
2019-01-18T08:12:49.000Z
2022-03-13T08:56:41.000Z
lib/galaxy/config/config_manage.py
NordicESMhub/galaxy
ec3ffb7d8ec5dac9b179f4c9d39b8060b69d5492
[ "CC-BY-3.0" ]
9
2019-01-18T07:49:12.000Z
2021-06-26T22:21:09.000Z
import argparse import os import shutil import string import sys import tempfile from io import StringIO from textwrap import TextWrapper from typing import Any, List, NamedTuple import requests import yaml from boltons.iterutils import remap try: from pykwalify.core import Core except ImportError: Core = Non...
37.070743
335
0.651486
4a2252420746a170f170b96ea1728172c00445a9
562
py
Python
tests/core/testing-module/test_testing_mine.py
pjryan93/web3.py
e066452a7b0e78d6cb8a9462532d169de901ef99
[ "MIT" ]
326
2016-04-29T21:51:06.000Z
2022-03-31T03:20:54.000Z
tests/core/testing-module/test_testing_mine.py
pjryan93/web3.py
e066452a7b0e78d6cb8a9462532d169de901ef99
[ "MIT" ]
283
2016-04-15T16:41:31.000Z
2017-11-28T16:41:36.000Z
tests/core/testing-module/test_testing_mine.py
pjryan93/web3.py
e066452a7b0e78d6cb8a9462532d169de901ef99
[ "MIT" ]
146
2016-04-14T16:27:54.000Z
2021-10-03T13:31:07.000Z
def test_testing_mine_single_block(web3): web3.testing.mine() before_mining_block = web3.eth.getBlock("latest") web3.testing.mine() after_mining_block = web3.eth.getBlock("latest") assert after_mining_block['number'] - before_mining_block['number'] == 1 def test_testing_mine_multiple_blocks(we...
24.434783
76
0.725979
4a2252b18cda01ae784a7a8137bb4a8c0f912163
1,108
py
Python
python/cm/migrations/0044_auto_20200115_1058.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
16
2019-11-28T18:05:21.000Z
2021-12-08T18:09:18.000Z
python/cm/migrations/0044_auto_20200115_1058.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
1,127
2019-11-29T08:57:25.000Z
2022-03-31T20:21:32.000Z
python/cm/migrations/0044_auto_20200115_1058.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
10
2019-11-28T18:05:06.000Z
2022-01-13T06:16:40.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
31.657143
74
0.675993
4a22538efb683f33e27cff8de2582765825a9b9f
364
py
Python
AITRexRush/Algorithm_1/VisLoss.py
2360673637/AIGames
7d149cc2cff8fa626ee1c9e1ad7c39e1a724a5bb
[ "MIT" ]
2
2019-03-23T13:58:34.000Z
2019-03-23T13:59:07.000Z
AITRexRush/Algorithm_1/VisLoss.py
2360673637/AIGames
7d149cc2cff8fa626ee1c9e1ad7c39e1a724a5bb
[ "MIT" ]
null
null
null
AITRexRush/Algorithm_1/VisLoss.py
2360673637/AIGames
7d149cc2cff8fa626ee1c9e1ad7c39e1a724a5bb
[ "MIT" ]
1
2018-10-25T07:51:52.000Z
2018-10-25T07:51:52.000Z
# Loss可视化 # 作者: Charles # 公众号: Charles的皮卡丘 import pickle from matplotlib import pyplot as plt with open('./logger/loss.pkl', 'rb') as f: loss_dict = pickle.load(f) times = [] losses = [] for time, loss in loss_dict.items(): times.append(time) losses.append(loss) plt.title('Loss trend') plt.xlabel('Time') plt.ylabe...
19.157895
42
0.703297
4a225510a2083489b5b4a196ea4848288cb81e65
7,299
py
Python
ngix.py
CodingLi/test2
0e5c0047ee6cbc96e66a2e96fe32477ffb8a8a08
[ "Apache-2.0" ]
null
null
null
ngix.py
CodingLi/test2
0e5c0047ee6cbc96e66a2e96fe32477ffb8a8a08
[ "Apache-2.0" ]
null
null
null
ngix.py
CodingLi/test2
0e5c0047ee6cbc96e66a2e96fe32477ffb8a8a08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Exploit Title: nginx heap corruption # Date: 08/26/2010 # Author: aaron conole <apconole@yahoo.com> # Software Link: http://nginx.org/download/nginx-0.6.38.tar.gz # Version: <= 0.6.38, <= 0.7.61 # Tested on: BT4R1 running nginx 0.6.38 locally # CVE: 2009-2629 # # note: this was written and tes...
36.133663
360
0.626113
4a225571c986c2773d4f8f6f88b6bc0f58dfe090
2,198
py
Python
kh-kim models/main.py
dudtjakdl/OpenNMT-Korean-To-English
32fcdb860906f40f84375ec17a23ae32cb90baa0
[ "Apache-2.0" ]
11
2020-01-27T02:17:07.000Z
2021-06-29T08:58:08.000Z
kh-kim models/main.py
dudtjakdl/OpenNMT-Korean-To-English
32fcdb860906f40f84375ec17a23ae32cb90baa0
[ "Apache-2.0" ]
null
null
null
kh-kim models/main.py
dudtjakdl/OpenNMT-Korean-To-English
32fcdb860906f40f84375ec17a23ae32cb90baa0
[ "Apache-2.0" ]
4
2020-02-10T05:32:22.000Z
2022-02-04T13:14:11.000Z
import torch import torch.nn as nn import torch.optim as optim from simple_nmt.encoder import Encoder from simple_nmt.decoder import Decoder from simple_nmt.seq2seq import Seq2Seq from data_loader import DataLoader #from train import from hyperparams import Hyperparams if __name__ == "__main__": hparams = Hyperpa...
36.633333
114
0.686078
4a2256158e0fa6c67b89a68c724977dcd068a741
1,921
py
Python
pyzoo/test/zoo/zouwu/preprocessing/test_util.py
GZHoffie/analytics-zoo
d0258aa113ffd1a5c4927376fb32b09fb0baf73c
[ "Apache-2.0" ]
4
2018-06-19T05:38:30.000Z
2020-06-22T14:26:26.000Z
pyzoo/test/zoo/zouwu/preprocessing/test_util.py
GZHoffie/analytics-zoo
d0258aa113ffd1a5c4927376fb32b09fb0baf73c
[ "Apache-2.0" ]
5
2021-06-08T23:28:18.000Z
2022-02-10T05:31:27.000Z
pyzoo/test/zoo/zouwu/preprocessing/test_util.py
GZHoffie/analytics-zoo
d0258aa113ffd1a5c4927376fb32b09fb0baf73c
[ "Apache-2.0" ]
1
2018-09-05T02:16:10.000Z
2018-09-05T02:16:10.000Z
# # Copyright 2018 Analytics Zoo 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 or agreed to...
39.204082
77
0.624154
4a2257367ccec7fb16591c5c83cf03d4bbfec444
3,183
py
Python
simple_sentence_segment/model.py
OmarSayedMostafa/clinical_concept_extraction
495581e2e8ec034c2a5ab985779cc4750a797875
[ "MIT" ]
null
null
null
simple_sentence_segment/model.py
OmarSayedMostafa/clinical_concept_extraction
495581e2e8ec034c2a5ab985779cc4750a797875
[ "MIT" ]
null
null
null
simple_sentence_segment/model.py
OmarSayedMostafa/clinical_concept_extraction
495581e2e8ec034c2a5ab985779cc4750a797875
[ "MIT" ]
null
null
null
from six.moves import range from six.moves import cPickle import six import os import re import numpy as np dir_path = os.path.dirname(os.path.realpath(__file__)) if six.PY3: cls = cPickle.load(open(os.path.join(dir_path, 'model/cls.pkl'), 'rb'), encoding='latin1') elif six.PY2: cls = cPickle.load(open(os.path.j...
23.753731
92
0.606346
4a2257d565e2e8986a305018096faf5375d183b2
3,381
py
Python
lightedge/managers/servicemanager/servicehandler.py
davitharutyunyan1990/lightedge-runtime
8e5a1a2c507afe46bf8ef0e1731db16440af374a
[ "Apache-2.0" ]
null
null
null
lightedge/managers/servicemanager/servicehandler.py
davitharutyunyan1990/lightedge-runtime
8e5a1a2c507afe46bf8ef0e1731db16440af374a
[ "Apache-2.0" ]
null
null
null
lightedge/managers/servicemanager/servicehandler.py
davitharutyunyan1990/lightedge-runtime
8e5a1a2c507afe46bf8ef0e1731db16440af374a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Giovanni Baggio # # 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...
31.896226
68
0.55102
4a225815208b7b5241a3aa2f60c6a689126c7177
25,909
py
Python
lib/tfflat/.ipynb_checkpoints/base_multi_gpu-checkpoint.py
Ascend-Huawei/PoseFix
9b287934879beadc71daa3a642cbbb4a0feb1db5
[ "Apache-2.0" ]
null
null
null
lib/tfflat/.ipynb_checkpoints/base_multi_gpu-checkpoint.py
Ascend-Huawei/PoseFix
9b287934879beadc71daa3a642cbbb4a0feb1db5
[ "Apache-2.0" ]
null
null
null
lib/tfflat/.ipynb_checkpoints/base_multi_gpu-checkpoint.py
Ascend-Huawei/PoseFix
9b287934879beadc71daa3a642cbbb4a0feb1db5
[ "Apache-2.0" ]
1
2021-08-19T09:51:25.000Z
2021-08-19T09:51:25.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.93049
124
0.569416
4a22583d63596ec8b6e4c7edb5fd76a3870d6ce5
2,557
py
Python
sandbox/bradly/third_person/envs/reacher.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
81
2016-11-21T03:27:16.000Z
2021-10-04T02:07:07.000Z
sandbox/bradly/third_person/envs/reacher.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
2
2018-01-01T17:39:56.000Z
2019-07-24T04:49:08.000Z
sandbox/bradly/third_person/envs/reacher.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
21
2016-11-29T08:59:10.000Z
2020-08-13T11:24:57.000Z
from rllab.envs.base import Step from rllab.core.serializable import Serializable import numpy as np from rllab.envs.mujoco.mujoco_env import MujocoEnv from rllab.mujoco_py import MjViewer class ReacherEnv(MujocoEnv, Serializable): FILE = 'reacher.xml' def __init__(self, *args, **kwargs): super(Rea...
36.014085
96
0.626124
4a22586bd6d4f40838214208cd261632d1d5f227
22,617
py
Python
mbdata/tools/genmodels.py
acoustid/mbdata
bbe303865e4cec3f83a65ce29f0d3468c729173e
[ "MIT" ]
3
2022-01-30T09:38:16.000Z
2022-03-04T10:35:32.000Z
mbdata/tools/genmodels.py
acoustid/mbdata
bbe303865e4cec3f83a65ce29f0d3468c729173e
[ "MIT" ]
5
2022-01-09T22:19:09.000Z
2022-03-27T13:41:54.000Z
mbdata/tools/genmodels.py
acoustid/mbdata
bbe303865e4cec3f83a65ce29f0d3468c729173e
[ "MIT" ]
2
2022-01-18T03:01:39.000Z
2022-02-19T18:15:59.000Z
# Copyright (C) 2013 Lukas Lalinsky # Distributed under the MIT license, see the LICENSE file for details. from __future__ import print_function import os import re import sqlparse import six import sys from sqlparse import tokens as T from sqlparse.sql import TokenList, Parenthesis from typing import List from mbdata...
40.678058
218
0.572401
4a225982af231461df5dfc017bd675af50f8888b
14,379
py
Python
test/functional/wallet_basic.py
robinadaptor/chronon
630b3945824c1b1cd2ea67ca80835a9f669b9124
[ "MIT" ]
null
null
null
test/functional/wallet_basic.py
robinadaptor/chronon
630b3945824c1b1cd2ea67ca80835a9f669b9124
[ "MIT" ]
null
null
null
test/functional/wallet_basic.py
robinadaptor/chronon
630b3945824c1b1cd2ea67ca80835a9f669b9124
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet.""" from test_framework.test_framework import BitcoinTestFramework from test_framework.util...
44.934375
170
0.635023
4a2259b126b8242be28484e3c2efa79be4496c66
15,053
py
Python
ROAR/control_module/mpc_controller.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
18
2020-10-16T00:38:55.000Z
2022-03-03T06:01:49.000Z
ROAR/control_module/mpc_controller.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
20
2020-07-23T03:50:50.000Z
2021-11-09T04:00:26.000Z
ROAR/control_module/mpc_controller.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
140
2019-11-20T22:46:02.000Z
2022-03-29T13:26:17.000Z
# References: # https://github.com/asap-report/carla/blob/racetrack/PythonClient/racetrack # /model_predictive_control.py import logging import numpy as np import pandas as pd import random import sympy as sym from pathlib import Path from scipy.interpolate import splprep, splev from scipy.optimize import minimize fr...
36.804401
77
0.558095
4a2259c12397fcbfe2aec9fa7ba9fa424dc96457
48
py
Python
wikitables/__init__.py
AlexImmer/WikitablesToTriples
5d86489483ca32d19fc11c48707b671fb9dbfcb1
[ "MIT" ]
3
2015-09-10T15:18:53.000Z
2016-06-18T14:12:36.000Z
wikitables/__init__.py
AlexImmer/WikitablesToTriples
5d86489483ca32d19fc11c48707b671fb9dbfcb1
[ "MIT" ]
2
2020-05-28T11:08:30.000Z
2021-03-31T18:40:30.000Z
wikitables/__init__.py
AlexImmer/WikitablesToTriples
5d86489483ca32d19fc11c48707b671fb9dbfcb1
[ "MIT" ]
1
2020-01-29T09:20:11.000Z
2020-01-29T09:20:11.000Z
from .page import Page from .table import Table
16
24
0.791667
4a225afe7fa62e4f02d032e68a96825610ae27a7
844
py
Python
settings/constants.py
spirovskib/proto_app
3051d89e636286a1aeb2bb815e890ac6ff920582
[ "MIT" ]
1
2020-08-06T16:54:55.000Z
2020-08-06T16:54:55.000Z
settings/constants.py
spirovskib/proto_app
3051d89e636286a1aeb2bb815e890ac6ff920582
[ "MIT" ]
77
2020-09-03T09:05:10.000Z
2022-03-17T10:04:09.000Z
settings/constants.py
spirovskib/proto_app
3051d89e636286a1aeb2bb815e890ac6ff920582
[ "MIT" ]
null
null
null
# File Validation for the Attachments """ * valid_extensions - list containing allowed file extensions. Example: ['.pdf', '.jpg'] * valid_mime_types - list containing allowed content_types. Example: ['application/pdf', 'image/jpeg'] * max_size - a number indicating the maximum file size allowed for upload. 2.5MB ...
30.142857
102
0.728673
4a225c855191c0d64b279524c5d97f542e2ed5af
1,738
py
Python
test/conftest.py
chadrik/txaio
a99d2c82aac2abea5172bfd661324b6c5bd1a4ab
[ "MIT" ]
10
2016-09-14T22:00:02.000Z
2019-01-28T21:58:42.000Z
test/conftest.py
chadrik/txaio
a99d2c82aac2abea5172bfd661324b6c5bd1a4ab
[ "MIT" ]
null
null
null
test/conftest.py
chadrik/txaio
a99d2c82aac2abea5172bfd661324b6c5bd1a4ab
[ "MIT" ]
null
null
null
import pytest # here's a little voodoo -- any generic tests depend on this 'framework' # fixture, which (sneakily using internal-only APIs) ensures that each # tests runs twice: once enabled for Twisted and once enabled for # asyncio. # # ...but there's a catch: not all environments support both, so we # catch ImportE...
25.558824
72
0.665708
4a225cdfadeae0dacb1354c2e8e826ad47fb0bb5
635
py
Python
predict/eye_cropper_fake.py
antonin-lfv/Deep-PoC
fa216c2255ed898c78e0e1334b835cc8232e1a28
[ "MIT" ]
8
2021-09-15T15:17:38.000Z
2022-03-18T14:11:58.000Z
predict/eye_cropper_fake.py
antonin-lfv/Deep-PoC
fa216c2255ed898c78e0e1334b835cc8232e1a28
[ "MIT" ]
null
null
null
predict/eye_cropper_fake.py
antonin-lfv/Deep-PoC
fa216c2255ed898c78e0e1334b835cc8232e1a28
[ "MIT" ]
2
2021-09-16T14:22:45.000Z
2021-09-20T18:55:05.000Z
from PIL import Image import PIL from os import listdir from os.path import isfile, join ##fake mypath = './face_fake_predict/' folder_save = './eye_corpped_fake_predict/' left = 287 top = 440 right = left + 450 bottom = top + 100 def get_all_file(): file_list = [mypath + f for f in listdir(mypath) if ('.jpeg' ...
20.483871
71
0.672441
4a225d35fd7aeb0b44ad803dcaca2fdb51f0d8e9
685
py
Python
Nov-2021-Leetcode-Challenge/single_numbers_iii.py
smsrikanthreddy/Data-Structures-and-Algorithms
ce588112f128510df3108ce671bb4864d35ee301
[ "Apache-2.0" ]
null
null
null
Nov-2021-Leetcode-Challenge/single_numbers_iii.py
smsrikanthreddy/Data-Structures-and-Algorithms
ce588112f128510df3108ce671bb4864d35ee301
[ "Apache-2.0" ]
null
null
null
Nov-2021-Leetcode-Challenge/single_numbers_iii.py
smsrikanthreddy/Data-Structures-and-Algorithms
ce588112f128510df3108ce671bb4864d35ee301
[ "Apache-2.0" ]
null
null
null
class Solution: def singleNumber(self, nums: List[int]) -> List[int]: dict_val = {} result1 = [] result2 = [] for val in nums: dict_val[val] = dict_val.get(val, 0) + 1 if dict_val[val] > 1: result1.append(val) else: ...
29.782609
85
0.510949
4a225daf881b4e60b1ee50ce5dd32bca4c0927e4
1,272
py
Python
ee250/lab08/http_client_example.py
lyashley/GrovePi-EE250
d337d6c5dea7f9c1548d75e6ac3f66e7883e315d
[ "MIT" ]
null
null
null
ee250/lab08/http_client_example.py
lyashley/GrovePi-EE250
d337d6c5dea7f9c1548d75e6ac3f66e7883e315d
[ "MIT" ]
null
null
null
ee250/lab08/http_client_example.py
lyashley/GrovePi-EE250
d337d6c5dea7f9c1548d75e6ac3f66e7883e315d
[ "MIT" ]
null
null
null
import requests import json from datetime import datetime import time """This file illustrates the typical calls you need from an http client. More specifically, in your signal_processing.py code, you should have a request.post() call everytime a movement is classified by your algorithm.""" if __name__ == '__main__'...
33.473684
81
0.654874
4a225e335db7cc764d86099e881896e4083e6576
981
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/DigitGroupingAmount.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/DigitGroupingAmount.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/DigitGroupingAmount.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class DigitGroupingAmount(Enum,IComparable,IFormattable,IConvertible): """ The number of digits in each group when numbers are formatted with digit grouping. enum DigitGroupingAmount,values: Three (1),Two (0) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x=...
28.852941
215
0.667686
4a225e7671a95988f6f9452c6d26d5f01d3da1ad
48
py
Python
01-Lesson-Plans/06-Python-APIs/3/Extra_Content/01-Stu_Wrapper_Recap/Unsolved/config.py
anirudhmungre/sneaky-lessons
8e48015c50865059db96f8cd369bcc15365d66c7
[ "ADSL" ]
null
null
null
01-Lesson-Plans/06-Python-APIs/3/Extra_Content/01-Stu_Wrapper_Recap/Unsolved/config.py
anirudhmungre/sneaky-lessons
8e48015c50865059db96f8cd369bcc15365d66c7
[ "ADSL" ]
null
null
null
01-Lesson-Plans/06-Python-APIs/3/Extra_Content/01-Stu_Wrapper_Recap/Unsolved/config.py
anirudhmungre/sneaky-lessons
8e48015c50865059db96f8cd369bcc15365d66c7
[ "ADSL" ]
null
null
null
# Enter your API key api_key = "YOUR KEY HERE!"
16
26
0.6875
4a225eba0223eda7bb3b9a28af9d49e1e8db94cf
380
py
Python
bkrv/main/migrations/0020_review_rating.py
vuduc153/Restaurants-Review-Django
08caf2fde8f169436de916ad73a037b891e6735d
[ "MIT" ]
null
null
null
bkrv/main/migrations/0020_review_rating.py
vuduc153/Restaurants-Review-Django
08caf2fde8f169436de916ad73a037b891e6735d
[ "MIT" ]
8
2019-06-22T09:20:38.000Z
2022-02-10T11:35:45.000Z
bkrv/main/migrations/0020_review_rating.py
vuduc153/Restaurants-Review-Django
08caf2fde8f169436de916ad73a037b891e6735d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-26 17:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0019_auto_20190626_1735'), ] operations = [ migrations.AddField( model_name='review', name='rating', ...
20
49
0.592105
4a225ee588dd34c73a8181d6955fda284df5b3c3
1,234
py
Python
Codejam/Codejam 2022/Round1A/DoubleOrOne.py
patricklee90/CompetitiveProgramming
422068dbbbd2f1593e965288514cc3956724b2e8
[ "MIT" ]
null
null
null
Codejam/Codejam 2022/Round1A/DoubleOrOne.py
patricklee90/CompetitiveProgramming
422068dbbbd2f1593e965288514cc3956724b2e8
[ "MIT" ]
null
null
null
Codejam/Codejam 2022/Round1A/DoubleOrOne.py
patricklee90/CompetitiveProgramming
422068dbbbd2f1593e965288514cc3956724b2e8
[ "MIT" ]
null
null
null
''' Question Link: https://codingcompetitions.withgoogle.com/codejam/round/0000000000877ba5/0000000000aa8e9c Solution Explanation: 1. https://www.youtube.com/watch?v=ZdpSR4L09NI&ab_channel=HappyCoding ''' from multiprocessing import pool import copy import sys class Solution: def doubleOrOne(self, stringExp): ...
26.255319
113
0.497569
4a225f6e3f5144c86a172bb65bf0969cbe8df0af
1,987
py
Python
bh20sequploader/main.py
heuermh/bh20-seq-resource
fc872f15da426926414fb7629bf6660d9880ed1e
[ "Apache-2.0" ]
null
null
null
bh20sequploader/main.py
heuermh/bh20-seq-resource
fc872f15da426926414fb7629bf6660d9880ed1e
[ "Apache-2.0" ]
null
null
null
bh20sequploader/main.py
heuermh/bh20-seq-resource
fc872f15da426926414fb7629bf6660d9880ed1e
[ "Apache-2.0" ]
null
null
null
import argparse import time import arvados import arvados.collection import json import magic from pathlib import Path import urllib.request import socket import getpass from .qc_metadata import qc_metadata from .qc_fasta import qc_fasta ARVADOS_API_HOST='lugli.arvadosapi.com' ARVADOS_API_TOKEN='2fbebpmbo3rw3x05ueu2i6...
29.656716
95
0.672874
4a225f76ea45b9976d450cb7f5c1422b03db903e
26,875
py
Python
cms/tests/test_management.py
Mario-Kart-Felix/django-cms
6d68439fe7fd59d000f99e27c1f2135a3f9c816a
[ "BSD-3-Clause" ]
1
2021-02-11T16:20:01.000Z
2021-02-11T16:20:01.000Z
cms/tests/test_management.py
vlctt/django-cms
eeb86fd70c86b0cdac5f3959995b92de8d100771
[ "BSD-3-Clause" ]
2
2020-10-28T13:48:53.000Z
2020-10-28T13:52:48.000Z
cms/tests/test_management.py
vlctt/django-cms
eeb86fd70c86b0cdac5f3959995b92de8d100771
[ "BSD-3-Clause" ]
1
2021-07-26T14:43:54.000Z
2021-07-26T14:43:54.000Z
import io import uuid from cms.test_utils.project.sampleapp.cms_apps import SampleApp from cms.test_utils.util.context_managers import apphooks from django.conf import settings from django.contrib.sites.models import Site from django.core import management from django.core.management import CommandError from django.t...
40.905632
140
0.63814
4a22604ed87eb6f35778b15756b9a5526a8c95d4
3,503
py
Python
venv/lib/python3.6/site-packages/ansible_collections/openstack/cloud/plugins/modules/os_object.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/openstack/cloud/plugins/modules/os_object.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/openstack/cloud/plugins/modules/os_object.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy <benno@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = ''' --- module: object short_description: Create or Delete objects and conta...
28.950413
94
0.632601
4a22611b96edc8fb81f01c74380c74116cf63516
5,600
py
Python
collectd_openstack/common/keystone_light.py
ChameleonCloud/collectd-ceilometer-plugin
37b700647f71786e08d54e898ef8f26e22a7e127
[ "Apache-2.0" ]
null
null
null
collectd_openstack/common/keystone_light.py
ChameleonCloud/collectd-ceilometer-plugin
37b700647f71786e08d54e898ef8f26e22a7e127
[ "Apache-2.0" ]
null
null
null
collectd_openstack/common/keystone_light.py
ChameleonCloud/collectd-ceilometer-plugin
37b700647f71786e08d54e898ef8f26e22a7e127
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
34.782609
104
0.56625
4a22628247779703738791c3c4f80f1f3c33c23b
977
py
Python
Anime-hash-checker.py
liamnoone/Python
999cf3c2be622a736ffa61c83096eeda13d79bd4
[ "MIT" ]
2
2015-06-13T17:52:28.000Z
2015-06-14T05:46:51.000Z
Anime-hash-checker.py
liamnoone/Python
999cf3c2be622a736ffa61c83096eeda13d79bd4
[ "MIT" ]
null
null
null
Anime-hash-checker.py
liamnoone/Python
999cf3c2be622a736ffa61c83096eeda13d79bd4
[ "MIT" ]
null
null
null
import re import os from CRC import CRC def Process(folder): total = 0 if (os.path.exists(folder)): for file in os.listdir(folder): hash = "" try: providedHash = re.search("\[([A-Z0-9]{8})\]", file).group(1) except AttributeError: con...
27.138889
76
0.474923
4a2262d6e81a87833f9ca9fa63cf045efe87f758
5,266
py
Python
adafruit_focaltouch.py
dsudduth/Adafruit_CircuitPython_FocalTouch
3b4bf5246ecea9d88a5143ef7a3805fbae395819
[ "MIT" ]
null
null
null
adafruit_focaltouch.py
dsudduth/Adafruit_CircuitPython_FocalTouch
3b4bf5246ecea9d88a5143ef7a3805fbae395819
[ "MIT" ]
null
null
null
adafruit_focaltouch.py
dsudduth/Adafruit_CircuitPython_FocalTouch
3b4bf5246ecea9d88a5143ef7a3805fbae395819
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2017 ladyada for adafruit industries # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights #...
33.974194
90
0.653437
4a22643a123a0ad95ad0de98cef1d01003682e37
13,361
py
Python
abr_control/arms/jaco2/config.py
cambel/abr_control
85c116dfc3f1561a85d6b915beb75d8a2b3980d2
[ "BSD-3-Clause" ]
null
null
null
abr_control/arms/jaco2/config.py
cambel/abr_control
85c116dfc3f1561a85d6b915beb75d8a2b3980d2
[ "BSD-3-Clause" ]
null
null
null
abr_control/arms/jaco2/config.py
cambel/abr_control
85c116dfc3f1561a85d6b915beb75d8a2b3980d2
[ "BSD-3-Clause" ]
null
null
null
# Config file for Jaco 2 in VREP import numpy as np import sympy as sp import abr_control from ..base_config import BaseConfig class Config(BaseConfig): """ Robot config file for the Kinova Jaco^2 V2 Parameters ---------- hand_attached : boolean, optional (Default: False) if false will set t...
41.365325
78
0.502058
4a226564cbad6fffee8dcadb0db744869fbbc7a9
4,857
py
Python
stats.py
marcottebear/excalidraw-libraries
b812c95129f88474d3e0da4a0b51f135f8cc05f8
[ "MIT" ]
null
null
null
stats.py
marcottebear/excalidraw-libraries
b812c95129f88474d3e0da4a0b51f135f8cc05f8
[ "MIT" ]
null
null
null
stats.py
marcottebear/excalidraw-libraries
b812c95129f88474d3e0da4a0b51f135f8cc05f8
[ "MIT" ]
null
null
null
from apiclient.discovery import build from datetime import date from datetime import timedelta from oauth2client.service_account import ServiceAccountCredentials import os import json SCOPES = ["https://www.googleapis.com/auth/analytics.readonly"] VIEW_ID = "208661610" THRESSHOLD = 10 ROOT_DIR = os.path.dirname(os....
32.817568
84
0.544781
4a22656657f832889f8bd514330480dfa1fe4cc4
5,190
py
Python
tests/queries/test_explain.py
agarwalutkarsh554/django
5ea9254530831bcdbf3af694f7cf08584fc8c051
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
7
2015-09-08T22:23:36.000Z
2022-03-08T09:24:40.000Z
tests/queries/test_explain.py
agarwalutkarsh554/django
5ea9254530831bcdbf3af694f7cf08584fc8c051
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8
2017-04-19T16:20:47.000Z
2022-03-28T14:40:11.000Z
tests/queries/test_explain.py
agarwalutkarsh554/django
5ea9254530831bcdbf3af694f7cf08584fc8c051
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
3
2020-07-13T04:49:16.000Z
2021-12-22T21:15:14.000Z
import unittest from django.db import NotSupportedError, connection, transaction from django.db.models import Count from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature from django.test.utils import CaptureQueriesContext from .models import Tag @skipUnlessDBFeature('supports_explaining_query_execu...
49.903846
109
0.658382
4a22659903f929a46406799eb3d235789cf304f2
162
py
Python
modulo6/herencia_website/models/product.py
odooerpdevelopers/cuso-odoo12-frontend
e93c23d79465565b8f297c4702aeb3698d15d9e7
[ "MIT" ]
1
2021-07-23T22:02:27.000Z
2021-07-23T22:02:27.000Z
modulo6/herencia_website/models/product.py
odooerpdevelopers/curso-odoo12-frontend
e93c23d79465565b8f297c4702aeb3698d15d9e7
[ "MIT" ]
null
null
null
modulo6/herencia_website/models/product.py
odooerpdevelopers/curso-odoo12-frontend
e93c23d79465565b8f297c4702aeb3698d15d9e7
[ "MIT" ]
null
null
null
from odoo import fields, models class Product(models.Model): _inherit = "product.template" description_2 = fields.Html(string="Descripcion Extendida")
20.25
63
0.746914
4a226633275f2886da747bd74f650f2fbd8d1c42
2,657
py
Python
train/train_SBMs_node_classification.py
ChaofanTao/litegt
65c8d9ee9a2b9dcc1de9f39df7e9a8af5b69c1d8
[ "MIT" ]
5
2021-10-04T07:35:15.000Z
2022-03-28T05:38:38.000Z
train/train_SBMs_node_classification.py
ChaofanTao/litegt
65c8d9ee9a2b9dcc1de9f39df7e9a8af5b69c1d8
[ "MIT" ]
null
null
null
train/train_SBMs_node_classification.py
ChaofanTao/litegt
65c8d9ee9a2b9dcc1de9f39df7e9a8af5b69c1d8
[ "MIT" ]
null
null
null
""" Utility functions for training one epoch and evaluating one epoch """ import torch import torch.nn as nn import math import dgl from tqdm import tqdm from train.metrics import accuracy_SBM as accuracy def train_epoch(model, optimizer, device, data_loader, epoch): model.train() epoch_loss = 0 ...
34.506494
91
0.640572
4a2266d4966e2f5531f84dfc82c89d1efe85ff5c
657
py
Python
core.py
DilipA/BanditPlayground
10b16d87c379655bf54a82a79939c71dbf0eb839
[ "MIT" ]
713
2015-01-03T03:50:35.000Z
2022-03-22T11:11:44.000Z
python/core.py
levylll/BanditsBook
67962387b55172a7edeb492f5ae3eaf0061edd38
[ "MIT" ]
8
2016-01-07T18:58:35.000Z
2022-02-28T14:27:06.000Z
python/core.py
levylll/BanditsBook
67962387b55172a7edeb492f5ae3eaf0061edd38
[ "MIT" ]
226
2015-01-02T11:27:38.000Z
2022-03-09T04:09:43.000Z
# Convenience functions def ind_max(x): m = max(x) return x.index(m) # Need access to random numbers import random # Definitions of bandit arms from arms.adversarial import * from arms.bernoulli import * from arms.normal import * # Definitions of bandit algorithms from algorithms.epsilon_greedy.standard import *...
25.269231
49
0.794521
4a2267cae487b86e6e79031b848458e4d278e6e6
2,655
py
Python
third-party/mcrouter/src/mcrouter/test/test_lease_pairing.py
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
4
2015-10-02T13:45:18.000Z
2020-07-31T13:01:34.000Z
third-party/mcrouter/src/mcrouter/test/test_lease_pairing.py
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
3
2015-11-19T07:34:27.000Z
2016-07-28T23:25:45.000Z
third-party/mcrouter/src/mcrouter/test/test_lease_pairing.py
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
8
2015-10-24T00:07:59.000Z
2021-04-08T10:58:30.000Z
# Copyright (c) 2015, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from __future__ import absolute_...
36.369863
77
0.666667
4a2267ecc091949cd34ae5cd72f472d52faa414e
763
py
Python
src/com/python/demo/helloPython.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
src/com/python/demo/helloPython.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
src/com/python/demo/helloPython.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
#输出 print('hello python!') print(100 + 200 + 300) print('100 + 200 =', 100 + 200) print("adfa") print('The quick brown fox', 'jumps over', 'the lazy dog') #输入 #name = input('please enter your name: ') #print('hello',name) #用r''表示''内部的字符串默认不转义 print(r'\\\t\\') #用'''...'''的格式表示多行内容 print('''line1 line2 line3''') prin...
16.955556
58
0.639581
4a2268d7e47266c1c75147e12ce9280313ad0ac6
1,730
py
Python
modules/click.py
justdanofficial/Ghost
a95f166a6bb706a39fb0f2f5689a364bca47e78b
[ "MIT" ]
1
2021-06-20T23:43:25.000Z
2021-06-20T23:43:25.000Z
modules/click.py
justdanofficial/Ghost
a95f166a6bb706a39fb0f2f5689a364bca47e78b
[ "MIT" ]
null
null
null
modules/click.py
justdanofficial/Ghost
a95f166a6bb706a39fb0f2f5689a364bca47e78b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020 EntySec # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use,...
35.306122
80
0.672254
4a22690f71f3c3746f35f7c9dd5681070c9875ce
54,761
py
Python
tensorflow_estimator/python/estimator/canned/baseline_test.py
tirkarthi/estimator
5d962124f1c2ad5b2886ada53d5c604257b660b6
[ "Apache-2.0" ]
null
null
null
tensorflow_estimator/python/estimator/canned/baseline_test.py
tirkarthi/estimator
5d962124f1c2ad5b2886ada53d5c604257b660b6
[ "Apache-2.0" ]
null
null
null
tensorflow_estimator/python/estimator/canned/baseline_test.py
tirkarthi/estimator
5d962124f1c2ad5b2886ada53d5c604257b660b6
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.51297
88
0.673089
4a226a6340a329ba5eaf5f09d74f2c382ff19cfe
516
py
Python
tests/r/test_swahili.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_swahili.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_swahili.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.swahili import swahili def test_swahili(): """Test module swahili.py by downloading swahili.csv and testing shape of extracted data has 48...
21.5
44
0.753876
4a226a66ab50608c545fc92284572a25b14e351d
7,845
py
Python
iperflexer/tests/steps/binaryunitconverter.py
rsnakamura/iperflexer
68f6ac5b3833e0053d6a5ca87bdb605ebbe6e665
[ "MIT" ]
null
null
null
iperflexer/tests/steps/binaryunitconverter.py
rsnakamura/iperflexer
68f6ac5b3833e0053d6a5ca87bdb605ebbe6e665
[ "MIT" ]
null
null
null
iperflexer/tests/steps/binaryunitconverter.py
rsnakamura/iperflexer
68f6ac5b3833e0053d6a5ca87bdb605ebbe6e665
[ "MIT" ]
null
null
null
# python standard library import random # third party from behave import given, when, then from hamcrest import assert_that, is_, close_to # this package from iperflexer.unitconverter import BinaryUnitconverter, BinaryUnitNames BYTE = 8 BASE = 2 DELTA = 0.0001 @given('a BinaryUnitconverter') def binaryunitconver...
41.951872
114
0.758445
4a226b098fa9492ca56b1c0f1dfd5acbcaef70b3
73
py
Python
packages/jet_django/jet_django/__init__.py
loftwah/jet-bridge
b352d6514b1cc44d4d870966fa9f94afdf446096
[ "MIT" ]
null
null
null
packages/jet_django/jet_django/__init__.py
loftwah/jet-bridge
b352d6514b1cc44d4d870966fa9f94afdf446096
[ "MIT" ]
null
null
null
packages/jet_django/jet_django/__init__.py
loftwah/jet-bridge
b352d6514b1cc44d4d870966fa9f94afdf446096
[ "MIT" ]
null
null
null
VERSION = '0.9.1' default_app_config = 'jet_django.apps.JetDjangoConfig'
24.333333
54
0.780822
4a226b2d01ca2b7063b231bc711ca451eec7e5d2
3,199
py
Python
hy/model_patterns.py
datschy/hy
2c5c7d657648d65c59f045d10a53773eba1a5d76
[ "MIT" ]
null
null
null
hy/model_patterns.py
datschy/hy
2c5c7d657648d65c59f045d10a53773eba1a5d76
[ "MIT" ]
null
null
null
hy/model_patterns.py
datschy/hy
2c5c7d657648d65c59f045d10a53773eba1a5d76
[ "MIT" ]
null
null
null
# Copyright 2021 the authors. # This file is part of Hy, which is free software licensed under the Expat # license. See the LICENSE. "Parser combinators for pattern-matching Hy model trees." from hy.models import HyExpression, HySymbol, HyKeyword, HyString, HyList from funcparserlib.parser import ( some, skip, ma...
33.673684
80
0.649265
4a226b4f5f239385de995bd2182b5d25a9b2d7fc
8,764
py
Python
sherlock/sites.py
Ahzaam/sherlock
e8c638d0ad48baa858927e7ed9614cf2f6ca9d1d
[ "MIT" ]
null
null
null
sherlock/sites.py
Ahzaam/sherlock
e8c638d0ad48baa858927e7ed9614cf2f6ca9d1d
[ "MIT" ]
null
null
null
sherlock/sites.py
Ahzaam/sherlock
e8c638d0ad48baa858927e7ed9614cf2f6ca9d1d
[ "MIT" ]
null
null
null
"""Sherlock Sites Information Module This module supports storing information about web sites. This is the raw data that will be used to search for usernames. """ import os import json import operator import requests import sys class SiteInformation(): def __init__(self, name, url_home, url_username_format, user...
40.762791
116
0.469991
4a226bbf840600d6206f548fa474a3d10e01d1af
49,005
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/module_utils/napi.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/module_utils/napi.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/module_utils/napi.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
48.091266
151
0.58088
4a226bfd1bfe962ebbdf611286781edcfe44c34f
305
py
Python
2016/10/asian-support-20161007/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/10/asian-support-20161007/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/10/asian-support-20161007/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1wFUxIo3otpDWH1pMC1R8D_finHQDqHsDPueQ3QuGRbg' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.819672
4a226ca4af057fb89923ee9b7f5eae3b1731e11c
2,076
py
Python
module.py
carrier-io/security_scanner_w3af
f54ba99c46e00bfc861327b2e6c976c0e722f253
[ "Apache-2.0" ]
null
null
null
module.py
carrier-io/security_scanner_w3af
f54ba99c46e00bfc861327b2e6c976c0e722f253
[ "Apache-2.0" ]
null
null
null
module.py
carrier-io/security_scanner_w3af
f54ba99c46e00bfc861327b2e6c976c0e722f253
[ "Apache-2.0" ]
2
2021-07-13T10:14:05.000Z
2021-07-21T09:08:11.000Z
#!/usr/bin/python3 # coding=utf-8 # Copyright 2021 getcarrier.io # # 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 req...
35.186441
90
0.689788
4a226d5a5cac389aabfefe959ec12be35fc3e213
5,777
py
Python
src/writer/worker.py
el-yurchito/home-assignment
9995187aab3ceef0389c5635d13c6cc78560fd07
[ "MIT" ]
null
null
null
src/writer/worker.py
el-yurchito/home-assignment
9995187aab3ceef0389c5635d13c6cc78560fd07
[ "MIT" ]
null
null
null
src/writer/worker.py
el-yurchito/home-assignment
9995187aab3ceef0389c5635d13c6cc78560fd07
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import concurrent.futures import json import typing import time from kafka import KafkaConsumer from psycopg2 import connect from psycopg2.extras import execute_values from shared.models import CheckResult from writer.models import WriterSettings class Worker(object): """ Worker is check...
38.771812
112
0.606543
4a226d8eb9dbce86aedcb71be5b943f9a4422a4f
8,141
py
Python
Chapter08/Emotion Prediction/CNN_for_Emotion_Detection.py
retwal/Predictive
57c3cb64901b7a0629b70053ecf01dac5be66d6f
[ "MIT" ]
73
2017-10-27T22:44:32.000Z
2021-12-25T18:37:51.000Z
Chapter08/Emotion Prediction/CNN_for_Emotion_Detection.py
retwal/Predictive
57c3cb64901b7a0629b70053ecf01dac5be66d6f
[ "MIT" ]
3
2018-09-20T21:47:21.000Z
2021-03-14T05:32:41.000Z
Chapter08/Emotion Prediction/CNN_for_Emotion_Detection.py
retwal/Predictive
57c3cb64901b7a0629b70053ecf01dac5be66d6f
[ "MIT" ]
72
2017-11-06T07:08:01.000Z
2021-11-25T09:00:28.000Z
import tensorflow as tf import numpy as np import os, sys, inspect from datetime import datetime import Utility import matplotlib.pyplot as plt from tensorflow.python.framework import ops from sklearn.metrics.classification import accuracy_score from sklearn.metrics import precision_recall_fscore_support import warning...
37.689815
116
0.666871
4a2272dcc0584b4c01ecc64f1c36237865f5d890
2,502
py
Python
commands/helpp.py
Waves-rgb/promerator
2206bec22ace93768eb766999f7542af606ba8c0
[ "MIT" ]
null
null
null
commands/helpp.py
Waves-rgb/promerator
2206bec22ace93768eb766999f7542af606ba8c0
[ "MIT" ]
null
null
null
commands/helpp.py
Waves-rgb/promerator
2206bec22ace93768eb766999f7542af606ba8c0
[ "MIT" ]
null
null
null
import discord import asyncio import os import json import requests from discord.ext import commands from discord.ext.commands import has_permissions import random from keep_alive import keepAlive green = discord.Color.green() class helpp(commands.Cog): def __init__(self,client): self.client=client @commands.com...
50.04
264
0.751399
4a2272fe94d63227dfe0635d4dc7bb3b70dd533e
1,338
py
Python
install.py
emekoi/aria
0c1dea022cf578a2175a2510cf160221b6dd6b0e
[ "MIT" ]
null
null
null
install.py
emekoi/aria
0c1dea022cf578a2175a2510cf160221b6dd6b0e
[ "MIT" ]
null
null
null
install.py
emekoi/aria
0c1dea022cf578a2175a2510cf160221b6dd6b0e
[ "MIT" ]
1
2018-10-31T01:47:28.000Z
2018-10-31T01:47:28.000Z
#!/usr/bin/python2.7 import os, sys, shutil, platform, time OUTPUT = "bin/aria" INSTALL = "install" # EXECUTABLE 755 # REGULAR 644 INSTALLS = [ ["bin/aria", 755, "/usr/local/bin"], ["src/aria.h", 644, "/usr/local/include/aria"], # ["src/util.h", 644, "usr/local/include.aria"], ] if platform.system() == "Win...
19.114286
66
0.539611
4a22734e15ab8143dc7a61c04b39b1dc34d2e5ea
2,226
py
Python
test/matchers/test_any_matcher.py
colinta/chomsky
1c618f02a8e4b573e9c13860181ffeec0f49ccd9
[ "BSD-2-Clause-FreeBSD" ]
3
2015-07-30T14:58:46.000Z
2021-07-09T15:29:52.000Z
test/matchers/test_any_matcher.py
colinta/chomsky
1c618f02a8e4b573e9c13860181ffeec0f49ccd9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
test/matchers/test_any_matcher.py
colinta/chomsky
1c618f02a8e4b573e9c13860181ffeec0f49ccd9
[ "BSD-2-Clause-FreeBSD" ]
1
2017-01-27T13:09:01.000Z
2017-01-27T13:09:01.000Z
from pytest import raises from chomsky import * any_matcher = Any(Literal('Joey'), Literal('Bob'), Literal('Billy')) autoany_matcher = Literal('Joey') | Literal('Bob') | Literal('Billy') any_number_matcher = Any(Number | String) def test_any_repr(): assert repr(Any(Literal('Joey'), Literal('Bob'), Literal('Bill...
35.333333
161
0.624888
4a22741e812c01a3414201d00bc9629668cdcf34
5,746
py
Python
case2.py
krishnaiitd/LogisticRegression
bfd5967521baa222aea0df5255354e5248f23b98
[ "Apache-2.0" ]
null
null
null
case2.py
krishnaiitd/LogisticRegression
bfd5967521baa222aea0df5255354e5248f23b98
[ "Apache-2.0" ]
null
null
null
case2.py
krishnaiitd/LogisticRegression
bfd5967521baa222aea0df5255354e5248f23b98
[ "Apache-2.0" ]
null
null
null
#>>>>>> Random Forest Classification on AWS reviews datasets, with Cross Validation taking equally from rating datasets, i.e dataset is based towards rating 5 <<<<< # Import the Basic libraries import sys import json import string import random import timeit # Import the Spark context and config from pyspark import Sp...
41.042857
358
0.739297
4a22750de6369701cdb7b4806d226f5e36322842
210
py
Python
leetCode/algorithms/easy/keyboard_row.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/keyboard_row.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/keyboard_row.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
class Solution(object): def findWords(self, words): rows = [set("qwertyuiop"), set("asdfghjkl"), set("zxcvbnm")] return [w for w in words if sum(set(w.lower()) <= row for row in rows) == 1]
42
84
0.604762
4a2275403d1c338668a1327f31ba33f2cce46823
23,308
py
Python
src/tests/test_pagure_lib_git_auth.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_pagure_lib_git_auth.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_pagure_lib_git_auth.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ (c) 2015-2018 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> Patrick Uiterwijk <patrick@puiterwijk.org> """ from __future__ import unicode_literals, absolute_import import datetime import os import shutil import sys import tempfile import time import u...
35.693721
92
0.53857
4a22754faa4739ea57aea8d5f0f0dead5c675d3e
7,895
py
Python
src/robot/parsing/lexer/lexer.py
zavatoni/pyStudy_test_robotframework
fbf43aefea694a8404f5870b8c92f42165b10667
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/parsing/lexer/lexer.py
zavatoni/pyStudy_test_robotframework
fbf43aefea694a8404f5870b8c92f42165b10667
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/parsing/lexer/lexer.py
zavatoni/pyStudy_test_robotframework
fbf43aefea694a8404f5870b8c92f42165b10667
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
37.595238
78
0.615326
4a22767117fd56e2dd92fcb330eed7ea6c329b17
1,445
py
Python
theano/sandbox/minimal.py
michaelosthege/aesara
55c88832ba71f87c9612d573ede74a4c042ef570
[ "BSD-3-Clause" ]
1
2020-12-30T19:12:52.000Z
2020-12-30T19:12:52.000Z
theano/sandbox/minimal.py
luke14free/Theano-PyMC
511c778f8a595444e009bcad738d552413b16f2c
[ "BSD-3-Clause" ]
null
null
null
theano/sandbox/minimal.py
luke14free/Theano-PyMC
511c778f8a595444e009bcad738d552413b16f2c
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from theano import tensor from theano.gof.graph import Apply from theano.gof.op import Op class Minimal(Op): # TODO : need description for class # if the Op has any attributes, consider using them in the eq function. # If two Apply nodes have the same inputs and the ops compare equal....
30.744681
79
0.636678
4a2277040c23e3f0a6c45560a469e691667eb95f
5,284
py
Python
task/pose.py
crockwell/pytorch_stacked-hourglass-cutout
35c97d1e3515e9c2fad78c4c666c4a9cc4a77055
[ "BSD-3-Clause" ]
4
2020-01-01T12:27:59.000Z
2022-03-04T15:59:36.000Z
task/pose.py
crockwell/pytorch_stacked-hourglass-cutout
35c97d1e3515e9c2fad78c4c666c4a9cc4a77055
[ "BSD-3-Clause" ]
null
null
null
task/pose.py
crockwell/pytorch_stacked-hourglass-cutout
35c97d1e3515e9c2fad78c4c666c4a9cc4a77055
[ "BSD-3-Clause" ]
null
null
null
""" __config__ contains the options for training and testing Basically all of the variables related to training are put in __config__['train'] """ import torch import numpy as np from torch import nn import os from torch.nn import DataParallel from utils.misc import make_input, make_output, importNet __config__ = { ...
33.443038
135
0.539364
4a22776ae7502680bb7d4e9c9dfbe014a66ed10b
2,382
py
Python
vae/vae_train.py
Brikwerk/vocals-generation
36fff07698aa8d8de12d4478968081347a444cb6
[ "MIT" ]
null
null
null
vae/vae_train.py
Brikwerk/vocals-generation
36fff07698aa8d8de12d4478968081347a444cb6
[ "MIT" ]
null
null
null
vae/vae_train.py
Brikwerk/vocals-generation
36fff07698aa8d8de12d4478968081347a444cb6
[ "MIT" ]
null
null
null
from asyncio.log import logger import random from src.dataset import StemsDataset from src.vae_models import LitVAE import torch import torch.nn as nn from torch.utils.data import DataLoader, random_split import pytorch_lightning as pl from pytorch_lightning import loggers as pl_loggers from pl_bolts.models.autoenco...
25.340426
80
0.652813
4a22782ebf57053095ec5f6c86c144e6d695062d
2,155
py
Python
should_test/collections.py
kzawisto/should_test
fb0bff80ba9de44654c53b4b8164d90036359b77
[ "MIT" ]
null
null
null
should_test/collections.py
kzawisto/should_test
fb0bff80ba9de44654c53b4b8164d90036359b77
[ "MIT" ]
null
null
null
should_test/collections.py
kzawisto/should_test
fb0bff80ba9de44654c53b4b8164d90036359b77
[ "MIT" ]
null
null
null
from .core import Matching class ADict(Matching): def __init__(self, value): super(ADict, self).__init__() self.value = value @property def should(self): val = ADict(self.value) val.trace = self.trace return val class ADictShould(Matching): def __init__(self, ...
32.164179
85
0.563805
4a2279d946415c55c4b7a4775061a916b5591f4f
1,588
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/SplitterCancelEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/SplitterCancelEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/SplitterCancelEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class SplitterCancelEventArgs(CancelEventArgs): """ Provides data for splitter events. SplitterCancelEventArgs(mouseCursorX: int,mouseCursorY: int,splitX: int,splitY: int) """ @staticmethod def __new__(self, mouseCursorX, mouseCursorY, splitX, splitY): """ __new__(cls: type,mouseC...
24.060606
128
0.678212
4a227b3b4f8a1ac0d68e241322b2f367068550bf
2,327
py
Python
test/functional/feature_config_args.py
CoinBitCore/temp
a2ebefc861aa979b441286a203d574197459b0d6
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
CoinBitCore/temp
a2ebefc861aa979b441286a203d574197459b0d6
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
CoinBitCore/temp
a2ebefc861aa979b441286a203d574197459b0d6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Coinbit Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various command line arguments and configuration file parameters.""" import os from test_framework.te...
46.54
169
0.694027
4a227bf75eb031a5b8e9bdde6107eea80a26c4ad
24,617
py
Python
plugins/trezor/qt_generic.py
namuyan/electrum-fjc
1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2
[ "MIT" ]
1
2017-07-06T03:03:25.000Z
2017-07-06T03:03:25.000Z
plugins/trezor/qt_generic.py
namuyan/electrum-fjc
1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2
[ "MIT" ]
null
null
null
plugins/trezor/qt_generic.py
namuyan/electrum-fjc
1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2
[ "MIT" ]
null
null
null
from functools import partial import threading from PyQt4.Qt import Qt from PyQt4.Qt import QGridLayout, QInputDialog, QPushButton from PyQt4.Qt import QVBoxLayout, QLabel, SIGNAL from electrum_ltc_gui.qt.util import * from .plugin import TIM_NEW, TIM_RECOVER, TIM_MNEMONIC from ..hw_wallet.qt import QtHandlerBase, QtP...
41.794567
81
0.613966