hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
70286ba80aa0dcbcd5927cc49e7eaf9282e97eb5
11,998
py
Python
examples/virsim/heatmap_PO.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
1
2020-06-26T10:37:56.000Z
2020-06-26T10:37:56.000Z
examples/virsim/heatmap_PO.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
null
null
null
examples/virsim/heatmap_PO.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
2
2020-04-20T12:50:11.000Z
2020-04-24T10:35:13.000Z
""" @author: Federica Gugole __license__= "LGPL" """ import numpy as np import easyvvuq as uq import os import pandas as pd from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib.ticker import ScalarFormatter, NullFormatter plt.rcParams.update({'font.size': 20}) plt.rcParams['figure.f...
44.60223
138
0.699783
702871323b08cb3d0bde41f82365acd11a63fda1
715
py
Python
util/FeatureExtractor.py
GaoZiqiang/Multiview-ObjectDetection
41d28bc15622b4d3a863ba4c8b53b06f6b3b1568
[ "MIT" ]
370
2018-05-22T06:46:35.000Z
2022-03-18T07:20:21.000Z
util/FeatureExtractor.py
GaoZiqiang/Multiview-ObjectDetection
41d28bc15622b4d3a863ba4c8b53b06f6b3b1568
[ "MIT" ]
51
2018-06-21T02:04:07.000Z
2022-03-22T08:25:03.000Z
util/FeatureExtractor.py
GaoZiqiang/Multiview-ObjectDetection
41d28bc15622b4d3a863ba4c8b53b06f6b3b1568
[ "MIT" ]
107
2018-06-04T21:03:04.000Z
2022-03-26T13:38:29.000Z
import torch.nn as nn from IPython import embed
35.75
69
0.586014
702ab5d14dffadaaaf35c2b6190c43a4011cbf37
2,758
py
Python
075_sort_colors.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
075_sort_colors.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
075_sort_colors.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# -*- coding: utf-8 -*- """ 75. Sort Colors Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively. Note: ...
28.142857
79
0.533358
702be8919da263b06d997a50b76d2360b8199c9d
3,004
py
Python
BioClients/lincs/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
10
2020-05-26T07:29:14.000Z
2021-12-06T21:33:40.000Z
BioClients/lincs/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
1
2021-10-05T12:25:30.000Z
2021-10-05T17:05:56.000Z
BioClients/lincs/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
2
2021-03-16T03:20:24.000Z
2021-08-08T20:17:10.000Z
#!/usr/bin/env python3 """ LINCS REST API client New (2019) iLINCS: http://www.ilincs.org/ilincs/APIinfo http://www.ilincs.org/ilincs/APIdocumentation (http://lincsportal.ccs.miami.edu/dcic/api/ DEPRECATED?) """ ### import sys,os,argparse,re,time,json,logging # from .. import lincs # ##################################...
34.528736
116
0.689414
702d9230949781af5e800d83e6baff01ebc0e462
85
py
Python
app/snyk/config.py
snyk-schmidtty/snyk-watcher
e9dc94389e0aaaba3d2b6b3a03b23d5224aabfa9
[ "MIT" ]
18
2021-02-18T04:31:20.000Z
2022-03-26T02:22:47.000Z
app/snyk/config.py
snyk-schmidtty/snyk-watcher
e9dc94389e0aaaba3d2b6b3a03b23d5224aabfa9
[ "MIT" ]
1
2022-02-16T22:43:49.000Z
2022-02-16T22:43:49.000Z
app/snyk/config.py
snyk-schmidtty/snyk-watcher
e9dc94389e0aaaba3d2b6b3a03b23d5224aabfa9
[ "MIT" ]
6
2021-02-25T18:10:38.000Z
2022-02-16T22:52:41.000Z
import os
14.166667
50
0.752941
702deac53a6f7eec5736db9cd85faf43d09eb46d
117
py
Python
tests/m3u/__init__.py
kyleheyne/mopidy
3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca
[ "Apache-2.0" ]
2
2019-02-13T15:16:55.000Z
2019-02-18T08:47:29.000Z
tests/m3u/__init__.py
kyleheyne/mopidy
3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca
[ "Apache-2.0" ]
40
2019-02-13T09:33:00.000Z
2019-02-19T13:21:12.000Z
tests/m3u/__init__.py
kyleheyne/mopidy
3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca
[ "Apache-2.0" ]
1
2021-10-01T17:26:30.000Z
2021-10-01T17:26:30.000Z
from __future__ import absolute_import, unicode_literals
19.5
56
0.769231
702ffbf7e8d1d0ad0ebb44737dc759a0391e4cba
13,693
py
Python
datagrid_gtk3/utils/transformations.py
nowsecure/datagrid-gtk3
28083a4b9b4e2e0c7fbe2755d8464d2b02163086
[ "MIT" ]
17
2015-07-02T20:02:42.000Z
2021-05-06T06:08:13.000Z
datagrid_gtk3/utils/transformations.py
esosaja/datagrid-gtk3
28083a4b9b4e2e0c7fbe2755d8464d2b02163086
[ "MIT" ]
32
2015-04-27T16:49:10.000Z
2015-08-25T16:07:29.000Z
datagrid_gtk3/utils/transformations.py
esosaja/datagrid-gtk3
28083a4b9b4e2e0c7fbe2755d8464d2b02163086
[ "MIT" ]
8
2015-04-28T10:45:03.000Z
2016-10-06T08:22:39.000Z
"""Data transformation utils.""" import datetime import logging import HTMLParser from decimal import Decimal import dateutil.parser from gi.repository import Gtk from datagrid_gtk3.utils import imageutils from datagrid_gtk3.utils import dateutils from datagrid_gtk3.utils import stringutils logger = logging.getLog...
30.028509
79
0.682027
70308c9bdc16492685bb5f8a040a5a606edea463
3,974
py
Python
src/models/kmeans.py
stevieg3/when-do-reading-comprehension-models-learn
22d348bb9b340ee84ecd135670890c1b1fe0db18
[ "MIT" ]
null
null
null
src/models/kmeans.py
stevieg3/when-do-reading-comprehension-models-learn
22d348bb9b340ee84ecd135670890c1b1fe0db18
[ "MIT" ]
null
null
null
src/models/kmeans.py
stevieg3/when-do-reading-comprehension-models-learn
22d348bb9b340ee84ecd135670890c1b1fe0db18
[ "MIT" ]
null
null
null
import argparse import logging import pandas as pd import numpy as np from tslearn.clustering import TimeSeriesKMeans from tqdm import tqdm logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO) SEEDS = [27, 28, 29] MODELS = ['dbert', 'dbidaf', 'droberta', 'squad'] DEV_DATA_SIZES = { 'dber...
28.797101
118
0.682436
7030f0982bdae2e9f2824ec5016f8698dc386f6c
496
py
Python
omnibot/numeric.py
AunSiro/omnibot
7f95814907c5903c5996c70c22e2342562dedadb
[ "MIT" ]
null
null
null
omnibot/numeric.py
AunSiro/omnibot
7f95814907c5903c5996c70c22e2342562dedadb
[ "MIT" ]
null
null
null
omnibot/numeric.py
AunSiro/omnibot
7f95814907c5903c5996c70c22e2342562dedadb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Oct 22 18:21:32 2020 @author: Siro Moreno """ import numpy as np l = 0.2096 L = 0.2096 L_2 = (L + l) / (2 ** 0.5) l_2 = 0.0 r = 0.0667 m = 15.75 I_w = 0.00266 I_z = 0.461 phi_dot_max = 2 * np.pi * 7000 / (49 * 60) psi_dot_max = phi_dot_max * 0.0667 / (2 ** 0.5 * 0.29642)
17.714286
63
0.566532
7031785a0dfa5b63b843961bc1f7373b3543b899
8,301
py
Python
scripts/analyze_leaderboard.py
VIDA-NYU/alphad3m
db40193a448300d87442c451f9da17fa5cb845fd
[ "Apache-2.0" ]
null
null
null
scripts/analyze_leaderboard.py
VIDA-NYU/alphad3m
db40193a448300d87442c451f9da17fa5cb845fd
[ "Apache-2.0" ]
null
null
null
scripts/analyze_leaderboard.py
VIDA-NYU/alphad3m
db40193a448300d87442c451f9da17fa5cb845fd
[ "Apache-2.0" ]
null
null
null
import os import re import logging import pandas as pd from bs4 import BeautifulSoup from os.path import join, exists, dirname from prettytable import PrettyTable logger = logging.getLogger(__name__) ALL_TA2S = {'NYU-TA2', 'CMU-TA2', 'UCB-TA2', 'Uncharted-TA2', 'SRI-TA2', 'Texas A&M-TA2', 'D3M ENSEMBLE-TA2', 'NEW-NYU...
38.077982
124
0.654499
7031e7b7a07729e1593c15fa18b6a42894035c58
522
py
Python
ArmstrongN.py
JHONATAN9A/Algritmo_num_narcisistas
b40cff2588b41efecf180e932cd7a104974d72c7
[ "MIT" ]
null
null
null
ArmstrongN.py
JHONATAN9A/Algritmo_num_narcisistas
b40cff2588b41efecf180e932cd7a104974d72c7
[ "MIT" ]
null
null
null
ArmstrongN.py
JHONATAN9A/Algritmo_num_narcisistas
b40cff2588b41efecf180e932cd7a104974d72c7
[ "MIT" ]
null
null
null
entrada = input() datos = [] for i in range(int(entrada)): entrada2 = input() datos.append(entrada2) for n in datos: resul1, resul2 = proceso(int(n)) if resul1 == resul2: print("Armstrong") elif resul1 != resul2: print("Not Armstrong")
18
37
0.557471
7032edb61921b45f1c8f0a54a32060e1a5dc7971
683
py
Python
core/urls.py
mburst/burstolio
aa3c89986b600a2c444ed6a39d07e8f2013e1b7e
[ "BSD-2-Clause" ]
2
2015-10-21T09:00:21.000Z
2017-01-19T09:53:05.000Z
core/urls.py
mburst/burstolio
aa3c89986b600a2c444ed6a39d07e8f2013e1b7e
[ "BSD-2-Clause" ]
6
2021-04-08T18:22:12.000Z
2022-02-10T10:50:11.000Z
core/urls.py
mburst/burstolio
aa3c89986b600a2c444ed6a39d07e8f2013e1b7e
[ "BSD-2-Clause" ]
1
2015-08-18T05:20:59.000Z
2015-08-18T05:20:59.000Z
from django.conf.urls import url from django.views.generic import TemplateView from core import views from core.feeds import rss_feed, atom_feed app_name = 'core' urlpatterns = [ url(r'^$', views.blog, name='home'), url(r'^blog/$', views.blog, name='blog'), url(r'^blog/(?P<slug>.*)/$', views.entry, name=...
35.947368
80
0.66325
7032f2619f5d9022162264acdbe5700a7785cd5d
1,110
py
Python
clib/printenv.py
7exe/lostia-professional-dev
148b86286abf7bd89f7ff96ba83b5b629442ebd8
[ "MIT" ]
null
null
null
clib/printenv.py
7exe/lostia-professional-dev
148b86286abf7bd89f7ff96ba83b5b629442ebd8
[ "MIT" ]
null
null
null
clib/printenv.py
7exe/lostia-professional-dev
148b86286abf7bd89f7ff96ba83b5b629442ebd8
[ "MIT" ]
null
null
null
import command import sys count = 0 newEnvVarName = [] newEnvVarValue = [] for I in command.env_var_name: newEnvVarName.append(I.replace("\n","")) for I in command.env_var_value: newEnvVarValue.append(I.replace("\n","")) endPrint = False for I in command.env_var_name: if(command.new_arg_parser("-0") or command....
28.461538
99
0.587387
7036904272e13a83b49efc934453218e894c4ca2
3,050
py
Python
scripts/artifacts/textnowCallLogs.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/textnowCallLogs.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/textnowCallLogs.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
import datetime from scripts.ilapfuncs import timeline, open_sqlite_db_readonly from scripts.plugin_base import ArtefactPlugin from scripts.ilapfuncs import logfunc, tsv from scripts import artifact_report
37.195122
150
0.543934
7036e2c26d71d55c8481efe9233c9812c9f0408e
277
py
Python
medicalboard/users/forms.py
japrogramer/BoardStream
d9d30bf2d873591f3be377e14885fc70e26a74b8
[ "BSD-3-Clause" ]
null
null
null
medicalboard/users/forms.py
japrogramer/BoardStream
d9d30bf2d873591f3be377e14885fc70e26a74b8
[ "BSD-3-Clause" ]
null
null
null
medicalboard/users/forms.py
japrogramer/BoardStream
d9d30bf2d873591f3be377e14885fc70e26a74b8
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from django import forms from django.contrib.auth import get_user_model from .models import Follow # Follow = apps.get_model('Users', 'Follow')
17.3125
46
0.711191
7037e9a6bcb772f5d5c6de5b125d568f1673c72f
2,145
py
Python
omnibot_description/launch/display.launch.py
felipemohr/omniBot
e235b0bf016ecc82a917cb9ec7d86f62accd4e81
[ "Apache-2.0" ]
2
2022-01-06T16:23:49.000Z
2022-02-20T12:10:09.000Z
omnibot_description/launch/display.launch.py
felipemohr/omniBot
e235b0bf016ecc82a917cb9ec7d86f62accd4e81
[ "Apache-2.0" ]
null
null
null
omnibot_description/launch/display.launch.py
felipemohr/omniBot
e235b0bf016ecc82a917cb9ec7d86f62accd4e81
[ "Apache-2.0" ]
1
2022-03-10T01:33:00.000Z
2022-03-10T01:33:00.000Z
import launch from launch.substitutions import Command, LaunchConfiguration from launch_ros.substitutions import FindPackageShare from launch_ros.actions import Node import os
42.058824
100
0.716084
703a9b063f761ade9c2123a1def345dd3a9fc462
138
py
Python
pyplex/gl/__init__.py
pyplex/pyplex
66e19acb3efd1a8a69d28022edcb0b6ad5cb6b11
[ "MIT" ]
5
2018-01-17T09:08:38.000Z
2020-09-20T20:38:51.000Z
pyplex/gl/__init__.py
pyplex/pyplex
66e19acb3efd1a8a69d28022edcb0b6ad5cb6b11
[ "MIT" ]
null
null
null
pyplex/gl/__init__.py
pyplex/pyplex
66e19acb3efd1a8a69d28022edcb0b6ad5cb6b11
[ "MIT" ]
null
null
null
from .gl import GL20, GL21, GL30, GL31, GL32, GL33, GL40, GL41, GL42, GL43, GL44, GL45, GL_ANY from .enum import * from .constant import *
46
94
0.710145
703aacd66e46deed1090e868e263e907aa004b9c
78
py
Python
metaL/core/__init__.py
ponyatov/metaLmin
6634b67465ea448c4a763d7c035b851579378ffd
[ "MIT" ]
null
null
null
metaL/core/__init__.py
ponyatov/metaLmin
6634b67465ea448c4a763d7c035b851579378ffd
[ "MIT" ]
null
null
null
metaL/core/__init__.py
ponyatov/metaLmin
6634b67465ea448c4a763d7c035b851579378ffd
[ "MIT" ]
null
null
null
from .object import * from .ns import * from .io import * from .time import *
15.6
21
0.692308
703b0d817daf3c22ee84731783d61b246681b5da
13,307
py
Python
db_adapter/curw_obs/timeseries/timeseries.py
CUrW-SL/curw_db_adapter
9d9ef24f42080910e0bd251bc7f001b0a4b0ab31
[ "MIT" ]
2
2019-04-26T07:50:33.000Z
2019-09-28T20:15:33.000Z
db_adapter/curw_obs/timeseries/timeseries.py
CUrW-SL/curw_db_adapter
9d9ef24f42080910e0bd251bc7f001b0a4b0ab31
[ "MIT" ]
1
2019-04-03T09:30:38.000Z
2019-04-20T18:11:59.000Z
db_adapter/curw_obs/timeseries/timeseries.py
shadhini/curw_db_adapter
4db8e1ea8794ffbd0dce29ac954a13315e83d843
[ "MIT" ]
null
null
null
import pandas as pd import hashlib import json import traceback from pymysql import IntegrityError from datetime import datetime, timedelta from db_adapter.logger import logger from db_adapter.exceptions import DatabaseAdapterError, DuplicateEntryError from db_adapter.curw_obs.station import StationEnum from db_adapte...
39.841317
128
0.559931
703d952afd1d46ba74ddbc33b7e1cb8c8c05aa16
1,148
py
Python
apps/sales/urls.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
apps/sales/urls.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
5
2021-03-19T10:16:00.000Z
2022-02-10T09:16:32.000Z
apps/sales/urls.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
"""Sales app URLs.""" # Django from django.urls import path, include # Views from .views import customers as customers_views from .views import sales as sales_views urlpatterns = [ path('customers/', customers_views.CustomerFilterListViev.as_view(), name='customers'), path('customers/create/', ...
45.92
110
0.708188
703da8b7398940bbb0b6d9ff84c7efd2ef81c2cf
671
py
Python
python3/learn-python/Loops and Iterations - For-While Loops.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/learn-python/Loops and Iterations - For-While Loops.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/learn-python/Loops and Iterations - For-While Loops.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
############### for ################### nums = [1, 2, 3, 4, 5] # simple loop for num in nums: print(num) # break keyword for num in nums: if num == 3: print("found") break print(num) # continue keyword for num in nums: if num == 3: print("found") continue print(num...
14.586957
39
0.463487
703e4e98ab16c2be1441e85c762d949e4c5d97f4
1,704
py
Python
4_Median-of-Two-Sorted-Arrays.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
4_Median-of-Two-Sorted-Arrays.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
4_Median-of-Two-Sorted-Arrays.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Method I: # Accepted while the time complexity equals to O(nlogn) due to the sort function. # 66.68%; 144ms. # Method II: # Accepted while the time complexity equals to O(n) due to while circulation. # 86.20%; 124ms. # Method III: # Target time complexity: O(logn) # To be continued...
28.881356
81
0.508803
703eb8f1a89f48d0c52579466960933c96dd59e6
7,830
py
Python
python_scripts/extract.py
Sessa93/continuous-auth-service
c4131521a7960ab709c0eeaf43686ddea9bd8ba2
[ "MIT" ]
9
2018-09-17T07:33:05.000Z
2022-02-13T12:41:03.000Z
python_scripts/extract.py
mykola-nec/keystroke-
e045bbbae1205629a4cc4bd369c0a0b5dd6fd93f
[ "MIT" ]
1
2018-10-24T05:32:08.000Z
2018-10-24T05:32:08.000Z
python_scripts/extract.py
mykola-nec/keystroke-
e045bbbae1205629a4cc4bd369c0a0b5dd6fd93f
[ "MIT" ]
3
2018-10-20T14:37:23.000Z
2021-04-19T13:45:00.000Z
# pylint: disable = C0111, C0103, C0411, C0301, W0102, C0330, W0603 """This module is used to extract the key_holds times and digraph up_down times from the raw events of the subjects.""" import read_write import numpy as np import operator import time import general_purpose import sys import py_node_communication a...
40.569948
147
0.627075
7041318399ceaa12c9af5eb0808df75d0fc60902
37,836
py
Python
src/borg/repository.py
musoke/borg
808379921c4a679bb597db42b4412840d66f4fb1
[ "BSD-3-Clause" ]
null
null
null
src/borg/repository.py
musoke/borg
808379921c4a679bb597db42b4412840d66f4fb1
[ "BSD-3-Clause" ]
null
null
null
src/borg/repository.py
musoke/borg
808379921c4a679bb597db42b4412840d66f4fb1
[ "BSD-3-Clause" ]
null
null
null
import errno import os import shutil import struct from binascii import unhexlify from collections import defaultdict from configparser import ConfigParser from datetime import datetime from functools import partial from itertools import islice from zlib import crc32 import msgpack import logging logger = logging.get...
42.086763
130
0.597341
704239be8a576b9afe64abe3d128ac6481c4c3c9
848
py
Python
care/facility/api/serializers/uccbedrequest.py
tncwr/care
97731bfa8371332d898d82152e9cd85bbedea8c5
[ "MIT" ]
null
null
null
care/facility/api/serializers/uccbedrequest.py
tncwr/care
97731bfa8371332d898d82152e9cd85bbedea8c5
[ "MIT" ]
null
null
null
care/facility/api/serializers/uccbedrequest.py
tncwr/care
97731bfa8371332d898d82152e9cd85bbedea8c5
[ "MIT" ]
null
null
null
from django.db.models import F from rest_framework import serializers from care.facility.models.uccbedrequest import UCCBedRequest from care.users.api.serializers.user import UserBaseMinimumSerializer from config.serializers import ChoiceField from care.facility.api.serializers import TIMESTAMP_FIELDS
26.5
85
0.693396
704531b99c3207b1f632a1232fdc5ebbfdf4152e
28,802
py
Python
builder/builder.py
jmcb/murderrl
d5e1e06a16f8a9816e0bd6dcb2fad1738348c62c
[ "Unlicense", "MIT" ]
5
2015-04-16T18:47:05.000Z
2021-11-15T22:56:29.000Z
builder/builder.py
jmcb/murderrl
d5e1e06a16f8a9816e0bd6dcb2fad1738348c62c
[ "Unlicense", "MIT" ]
null
null
null
builder/builder.py
jmcb/murderrl
d5e1e06a16f8a9816e0bd6dcb2fad1738348c62c
[ "Unlicense", "MIT" ]
4
2015-11-11T18:54:30.000Z
2021-08-22T03:59:57.000Z
#!/usr/bin/env python """ Attempt to create a "manor" akin to:: ############################################### #.........#......#........#...........#.......# #.........#......#........#...........#.......# #.........#......#........#...........#.......# #.........#......#........#...........#.......# ###...
36.597205
201
0.619436
70465e9867bb2b388f94f65d7c4303d55318d2bb
1,126
py
Python
mtorch/core/data/data_loaders/vision/cifar10.py
NullConvergence/torch_temp
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
3
2019-08-08T13:23:50.000Z
2019-08-15T15:29:36.000Z
mtorch/core/data/data_loaders/vision/cifar10.py
NullConvergence/torch-template
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
10
2019-09-20T21:25:22.000Z
2019-10-16T10:52:04.000Z
mtorch/core/data/data_loaders/vision/cifar10.py
NullConvergence/mtorch
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
2
2019-08-08T13:23:52.000Z
2019-08-08T19:46:55.000Z
from torchvision import datasets, transforms from core.data.data_loaders.base import BaseDataLoader
36.322581
79
0.601243
7046602c016348dec7c023f79d562d05998a1063
1,751
py
Python
rtutil/content_data.py
yaakiyu/rt-bot
f68bca95c516e08c31ecc846524dcea4c8ba1503
[ "BSD-4-Clause" ]
null
null
null
rtutil/content_data.py
yaakiyu/rt-bot
f68bca95c516e08c31ecc846524dcea4c8ba1503
[ "BSD-4-Clause" ]
null
null
null
rtutil/content_data.py
yaakiyu/rt-bot
f68bca95c516e08c31ecc846524dcea4c8ba1503
[ "BSD-4-Clause" ]
null
null
null
# RT Util - Content Data from typing import TypedDict, Any from textwrap import shorten from discord import Embed from orjson import loads from .utils import is_json __all__ = ( "ContentData", "disable_content_json", "enable_content_json", "convert_content_json", "to_text" ) _acj_check_embeds = lambda...
29.677966
95
0.683038
704714d83f647fd1d63d1eea3b51b21e192ee2bc
1,270
py
Python
simmbse/link.py
tsherburne/ma_sim
4082da1c80401dec4293415bc9e9239a6bb8185d
[ "BSD-3-Clause" ]
null
null
null
simmbse/link.py
tsherburne/ma_sim
4082da1c80401dec4293415bc9e9239a6bb8185d
[ "BSD-3-Clause" ]
null
null
null
simmbse/link.py
tsherburne/ma_sim
4082da1c80401dec4293415bc9e9239a6bb8185d
[ "BSD-3-Clause" ]
null
null
null
import simpy DEF_LINK_CAPACITY = 5 DEF_LINK_DELAY = 5
25.918367
77
0.583465
7047d5cefa65f2e1e003e6c7a82fbac36e8eb44c
2,163
py
Python
dovetail/tests/unit/test_parser.py
hashnfv/hashnfv-dovetail
73f332fc513f184513be483db6a108bd3c7b7d9b
[ "Apache-2.0" ]
null
null
null
dovetail/tests/unit/test_parser.py
hashnfv/hashnfv-dovetail
73f332fc513f184513be483db6a108bd3c7b7d9b
[ "Apache-2.0" ]
null
null
null
dovetail/tests/unit/test_parser.py
hashnfv/hashnfv-dovetail
73f332fc513f184513be483db6a108bd3c7b7d9b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # lingui.zeng@huawei.com # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 # """ Test 'parser' module ...
33.796875
75
0.66343
7049b0e74f2f6f27ca826c944b216b0e20f61a74
1,125
py
Python
backend/mysite/student/serializers.py
sun0225SUN/Student-Data-Vision
94b2fbaef425cb2b51b3295059b1b7acca85cfcd
[ "MIT" ]
2
2022-02-16T12:57:45.000Z
2022-02-24T14:09:00.000Z
backend/mysite/student/serializers.py
sun0225SUN/Student-Data-Vision
94b2fbaef425cb2b51b3295059b1b7acca85cfcd
[ "MIT" ]
null
null
null
backend/mysite/student/serializers.py
sun0225SUN/Student-Data-Vision
94b2fbaef425cb2b51b3295059b1b7acca85cfcd
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import * # Student, StarInfo, SexInfo, GeoInfo, AnhuiGeoInfo, ProvinceInfo # # # #
21.634615
89
0.641778
704bf79ef27daaf63edd9449ba7583e9a752f111
923
py
Python
lib/mongoLib/mongoOperations.py
ronnygeo/YelpSocialEffects
55315af989be97c2785ee50c7accf5372ed06bce
[ "Unlicense", "MIT" ]
null
null
null
lib/mongoLib/mongoOperations.py
ronnygeo/YelpSocialEffects
55315af989be97c2785ee50c7accf5372ed06bce
[ "Unlicense", "MIT" ]
null
null
null
lib/mongoLib/mongoOperations.py
ronnygeo/YelpSocialEffects
55315af989be97c2785ee50c7accf5372ed06bce
[ "Unlicense", "MIT" ]
null
null
null
from pymongo import MongoClient client = MongoClient() db = client['yelp'] movie_collection = db.movies ratings_collection = db.ratings tags_collection = db.tags links_collection = db.links # print ratings_collection.find({"userId": 295}).count() # for rating in ratings_collection.find(): # print rating["movieI...
23.666667
79
0.630553
704c104a01777ddf21029bc89ce3fac781b60738
1,072
py
Python
app/utils/cosineSimilarity.py
P-DOX/MultiModelNLP
9ab93fdc6f90c829d3d63249565df9fc0e45f119
[ "Apache-2.0" ]
null
null
null
app/utils/cosineSimilarity.py
P-DOX/MultiModelNLP
9ab93fdc6f90c829d3d63249565df9fc0e45f119
[ "Apache-2.0" ]
null
null
null
app/utils/cosineSimilarity.py
P-DOX/MultiModelNLP
9ab93fdc6f90c829d3d63249565df9fc0e45f119
[ "Apache-2.0" ]
null
null
null
from nltk.corpus import stopwords from nltk.tokenize import word_tokenize # X = input("Enter first string: ").lower() # Y = input("Enter second string: ").lower() # X ="I love horror movies" # Y ="Lights out is a horror movie"
29.777778
54
0.58209
704d370e7369a707e23ae29b6401b5069afcd189
1,303
py
Python
YANG/001_devnet_yang-netconf-restconf/netconf_intro_get_config.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
1
2021-07-10T09:22:55.000Z
2021-07-10T09:22:55.000Z
YANG/001_devnet_yang-netconf-restconf/netconf_intro_get_config.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
null
null
null
YANG/001_devnet_yang-netconf-restconf/netconf_intro_get_config.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
null
null
null
#!/usr/bin/env python iosxe_hostname = "ios-xe-mgmt.cisco.com" iosxe_netconf_port = 10000 iosxe_username = "developer" iosxe_password = "C1sco12345" from ncclient import manager import xmltodict import xml.dom.minidom # Create an XML filter for targeted NETCONF queries netconf_filter = """ <filter> <interfaces xm...
27.723404
88
0.718342
704ece007cac76b4214891671e52a643444b368a
1,375
py
Python
crawl_movies/pipelines.py
KevinLJJ/crawl_movies
16d03a8a18fee57582ff3fb0b80ba0d12a824f96
[ "MIT" ]
null
null
null
crawl_movies/pipelines.py
KevinLJJ/crawl_movies
16d03a8a18fee57582ff3fb0b80ba0d12a824f96
[ "MIT" ]
null
null
null
crawl_movies/pipelines.py
KevinLJJ/crawl_movies
16d03a8a18fee57582ff3fb0b80ba0d12a824f96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html from crawl_movies.models.mongo import MovieDetail, WorkerDetail
24.122807
66
0.522909
704f9d6253b758f6c2018d25a5de126b3018f3f2
427
py
Python
Algorithms/Easy/1394. Find Lucky Integer in an Array/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/1394. Find Lucky Integer in an Array/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/1394. Find Lucky Integer in an Array/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
from typing import List if __name__ == "__main__": s = Solution() result = s.findLucky([1, 2, 2, 3, 3, 3]) print(result)
20.333333
47
0.468384
704fd7adeafe4b3c7852a5ce2db279a718b6a6db
1,882
py
Python
cauldron/test/cli/server/routes/synchronize/test_sync_open.py
DanMayhew/cauldron
ac41481830fc1a363c145f4b58ce785aac054d10
[ "MIT" ]
null
null
null
cauldron/test/cli/server/routes/synchronize/test_sync_open.py
DanMayhew/cauldron
ac41481830fc1a363c145f4b58ce785aac054d10
[ "MIT" ]
null
null
null
cauldron/test/cli/server/routes/synchronize/test_sync_open.py
DanMayhew/cauldron
ac41481830fc1a363c145f4b58ce785aac054d10
[ "MIT" ]
null
null
null
import json import os import cauldron from cauldron.test import support from cauldron.test.support.flask_scaffolds import FlaskResultsTest EXAMPLE_PROJECTS_DIRECTORY = os.path.realpath(os.path.join( os.path.dirname(os.path.realpath(cauldron.__file__)), 'resources', 'examples' ))
28.953846
75
0.664187
70523f493b7d38b249e11082c64f836106e49316
2,166
py
Python
common/vision/models/digits.py
billzhonggz/Transfer-Learning-Library
d7a6e4298e571d5101e05515a2ab1f171160ef89
[ "MIT" ]
1,474
2020-07-24T02:55:55.000Z
2022-03-31T12:35:56.000Z
common/vision/models/digits.py
mxliu/Transfer-Learning-Library
7b0ccb3a8087ecc65daf4b1e815e5a3f42106641
[ "MIT" ]
70
2020-08-05T10:47:33.000Z
2022-03-31T03:48:54.000Z
common/vision/models/digits.py
mxliu/Transfer-Learning-Library
7b0ccb3a8087ecc65daf4b1e815e5a3f42106641
[ "MIT" ]
312
2020-08-01T11:08:39.000Z
2022-03-30T06:03:47.000Z
""" @author: Junguang Jiang @contact: JiangJunguang1123@outlook.com """ import torch.nn as nn def lenet(pretrained=False, **kwargs): """LeNet model from `"Gradient-based learning applied to document recognition" <http://yann.lecun.com/exdb/publis/pdf/lecun-98.pdf>`_ Args: num_classes (int): nu...
26.096386
117
0.545245
7053994678a4357d47cfc599844f36810176dba3
6,164
py
Python
cviceni10/mind.py
malja/cvut-python
945aa0fefb72c65a97c505e38597881d8433f93b
[ "MIT" ]
null
null
null
cviceni10/mind.py
malja/cvut-python
945aa0fefb72c65a97c505e38597881d8433f93b
[ "MIT" ]
null
null
null
cviceni10/mind.py
malja/cvut-python
945aa0fefb72c65a97c505e38597881d8433f93b
[ "MIT" ]
null
null
null
import itertools
29.21327
85
0.541045
70543f99f9e6f1e388a540a99c2e97732d9e9ee6
3,245
py
Python
fw_test_harness/html_report_generator.py
PX4/fw-test-harness
5c35b2f947c3247d95b54a0fc613bf48fbded7da
[ "MIT" ]
2
2015-09-24T18:14:00.000Z
2015-12-15T03:28:46.000Z
fw_test_harness/html_report_generator.py
PX4/fw-test-harness
5c35b2f947c3247d95b54a0fc613bf48fbded7da
[ "MIT" ]
null
null
null
fw_test_harness/html_report_generator.py
PX4/fw-test-harness
5c35b2f947c3247d95b54a0fc613bf48fbded7da
[ "MIT" ]
2
2016-06-02T01:40:19.000Z
2019-08-09T10:03:48.000Z
#!/usr/bin/env python import argparse from yattag import Doc import matplotlib.pyplot as plt, mpld3 import collections if __name__ == "__main__": parser = argparse.ArgumentParser( description='generates html reports from your results') # parser.add_argument('-a', dest='analysis', nargs=1, metavar='an...
31.504854
81
0.538059
705779fc95331f18047ab12ddb0742f0946134c2
3,055
py
Python
restclients/sws/v5/notice.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
restclients/sws/v5/notice.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
restclients/sws/v5/notice.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
""" Interfaceing with the Student Web Service, for notice resource """ import copy import logging from restclients.models.sws import Notice, NoticeAttribute from restclients.sws import get_resource from dateutil import parser import pytz notice_res_url_prefix = "/student/v5/notice/" logger = logging.getLogger(__name...
33.944444
78
0.60491
705807e28589aed3f29367b0717ee4329f43b530
2,654
py
Python
vulcan/_utils.py
v0idzz/vulcan-api
1ae83d90236e678042a9f85f6c34b6bd82bf279f
[ "MIT" ]
49
2019-01-10T22:10:19.000Z
2022-01-10T17:07:51.000Z
vulcan/_utils.py
v0idzz/vulcan-api
1ae83d90236e678042a9f85f6c34b6bd82bf279f
[ "MIT" ]
47
2019-01-08T21:04:17.000Z
2022-03-21T04:02:37.000Z
vulcan/_utils.py
v0idzz/vulcan-api
1ae83d90236e678042a9f85f6c34b6bd82bf279f
[ "MIT" ]
31
2019-05-04T14:05:33.000Z
2021-11-01T18:51:16.000Z
# -*- coding: utf-8 -*- import asyncio import logging import math import platform import time import urllib import uuid as _uuid from datetime import datetime import aiohttp import requests APP_NAME = "DzienniczekPlus 2.0" APP_VERSION = "1.4.2" APP_OS = "Android" APP_USER_AGENT = "Dart/2.10 (dart:io)" log = logging...
23.280702
87
0.620573
7058092211009357bacdd3e00eaae3ca9bf62a90
518
py
Python
chkuser2.py
YousefAllam221b/QuickStor
59cbbb6e7be358bde0adced49ba3f3ff9a92e6de
[ "Apache-2.0" ]
null
null
null
chkuser2.py
YousefAllam221b/QuickStor
59cbbb6e7be358bde0adced49ba3f3ff9a92e6de
[ "Apache-2.0" ]
null
null
null
chkuser2.py
YousefAllam221b/QuickStor
59cbbb6e7be358bde0adced49ba3f3ff9a92e6de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.6 import sys,etcdget,subprocess,time with open('Data/chkuser2','w') as f: f.write(str(sys.argv)) y=[] z=[] x=etcdget.etcdget('updlogged/'+sys.argv[1]) z.append(sys.argv[2]) y.append(x[0]) cmdline=['./pump.sh','UnixChkUser2']+sys.argv[1:] result=subprocess.run(cmdline,stdout=subprocess.PIPE) while f...
27.263158
53
0.687259
705a3d4ced89bcfa03e85f9fc886f6c3b10c1d03
715
py
Python
blog/migrations/0001_initial.py
AndyBowskill/andybowskill
d3d449e2c44c14cec18c4e5a0ee3970fe1fbb7d6
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
AndyBowskill/andybowskill
d3d449e2c44c14cec18c4e5a0ee3970fe1fbb7d6
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
AndyBowskill/andybowskill
d3d449e2c44c14cec18c4e5a0ee3970fe1fbb7d6
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-04 19:45 from django.db import migrations, models import django.db.models.manager
25.535714
79
0.521678
705a67e947bb08a691c95b9f12624b016023afa5
4,269
py
Python
neural_network.py
harsh020/ml_subpack
d36e97922ec17d84526884555181045ad50e8809
[ "MIT" ]
null
null
null
neural_network.py
harsh020/ml_subpack
d36e97922ec17d84526884555181045ad50e8809
[ "MIT" ]
6
2019-10-06T13:41:55.000Z
2019-10-16T18:14:04.000Z
neural_network.py
harsh020/ml_subpack
d36e97922ec17d84526884555181045ad50e8809
[ "MIT" ]
null
null
null
import numpy as np from scipy.optimize import fmin_cg from utils.optimize import gradient_desc, computeNumericalGradient from utils.utility import sigmoid, sigmoid_grad, ravel, unravel import sys np.set_printoptions(threshold=sys.maxsize) np.seterr(divide = 'ignore')
30.934783
127
0.539236
705b4d5cd84623195126b2771150fa91e444a907
4,597
py
Python
dpsutil/environment/environment.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-19T03:14:42.000Z
2021-01-19T03:14:42.000Z
dpsutil/environment/environment.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-27T09:50:33.000Z
2021-01-27T09:50:33.000Z
dpsutil/environment/environment.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
3
2020-03-24T02:49:47.000Z
2021-02-26T04:05:06.000Z
from dpsutil.attrdict import DefaultDict, AttrDict from dpsutil.attrdict.decorator import _get_vars_cls from os import environ def env_decorator(_cls): """ Decorator create EnvDict base on attribute of class. @environment.env_decorator class CustomEnv: KAFKA_HOST = 'localhost' KAFKA_...
32.373239
111
0.616924
705b8955240faf6cb0cd184dc93e8b934d2a6298
6,192
py
Python
stats.py
glommer/ghstats
bd874a05fb23f75aed0f0675a9929b5afdfd3f52
[ "Apache-2.0" ]
null
null
null
stats.py
glommer/ghstats
bd874a05fb23f75aed0f0675a9929b5afdfd3f52
[ "Apache-2.0" ]
null
null
null
stats.py
glommer/ghstats
bd874a05fb23f75aed0f0675a9929b5afdfd3f52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import requests import sys import datetime from dateutil.parser import parse import argparse def read_all(dummy): return True def getGithubData(url, token, add_criteria = read_all): ret = [] headers = {'Authorization': 'token {}'.format(token)} while True: resp = requ...
32.082902
150
0.580426
705c834021988f2e1ca4df337084e3a2e833583a
1,068
py
Python
day 5/4-normal_dist.py
JackRab/10-days-of-statistics
68ebb74a689e28a2ff225be96a5e9b59c9abe783
[ "MIT" ]
null
null
null
day 5/4-normal_dist.py
JackRab/10-days-of-statistics
68ebb74a689e28a2ff225be96a5e9b59c9abe783
[ "MIT" ]
null
null
null
day 5/4-normal_dist.py
JackRab/10-days-of-statistics
68ebb74a689e28a2ff225be96a5e9b59c9abe783
[ "MIT" ]
null
null
null
""" Objective In this challenge, we go further with normal distributions. Task The final grades for a Physics exam taken by a large group of students have a mean of mu=70 and a standard deviation of sigma=10. If we can approximate the distribution of these grades by a normal distribution, what percentage of the stu...
35.6
115
0.701311
705d1006eed6327deb0841912866c9c9f51e9ab7
418
py
Python
PS2/GroupAss/Trajectories/trajectory_utils.py
MattTurnock/PlanetarySciencesMatt
81954d2182d9577bd7327a98c45963ae42968df4
[ "MIT" ]
null
null
null
PS2/GroupAss/Trajectories/trajectory_utils.py
MattTurnock/PlanetarySciencesMatt
81954d2182d9577bd7327a98c45963ae42968df4
[ "MIT" ]
null
null
null
PS2/GroupAss/Trajectories/trajectory_utils.py
MattTurnock/PlanetarySciencesMatt
81954d2182d9577bd7327a98c45963ae42968df4
[ "MIT" ]
null
null
null
import numpy as np from astropy import units as u def C3toDV(C3, muE, rOrbit, outputUnits=None): """ Assumes all units are SI base if not stated :param C3: :param muE: :param rOrbit: :param outputUnits: :return: """ # print(C3, muE, rOrbit) DV = np.sqrt(C3 + (2*muE/rOrbit)) - n...
20.9
59
0.61244
705da61ca28beb4cbccf634052b516bed03caf59
654
py
Python
setup.py
fksato/vmz_interface
985e7129f4bf266a6226dbc2b7e108dafc8b917a
[ "Apache-2.0" ]
null
null
null
setup.py
fksato/vmz_interface
985e7129f4bf266a6226dbc2b7e108dafc8b917a
[ "Apache-2.0" ]
null
null
null
setup.py
fksato/vmz_interface
985e7129f4bf266a6226dbc2b7e108dafc8b917a
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages requirements = [ "tqdm", ] setup( name='vmz_interface', version='0.1.0', packages=find_packages(exclude=['tests']), url='https://github.com/fksato/vmz_interface', author='Fukushi Sato', author_email='f.kazuo.sato@gmail.com', description='Facebook VMZ interface', in...
26.16
51
0.640673
705de60f199bd5095fe33004172b3313546ce5d4
3,132
py
Python
api/v2/views/parties.py
Davidodari/POLITICO-API
479560f7accc3a6e46a8cec34c4f435ae9284138
[ "MIT" ]
1
2019-09-05T23:20:21.000Z
2019-09-05T23:20:21.000Z
api/v2/views/parties.py
Davidodari/POLITICO-API
479560f7accc3a6e46a8cec34c4f435ae9284138
[ "MIT" ]
4
2019-02-12T10:06:12.000Z
2019-02-20T05:00:40.000Z
api/v2/views/parties.py
Davidodari/POLITICO-API
479560f7accc3a6e46a8cec34c4f435ae9284138
[ "MIT" ]
4
2019-02-08T23:54:24.000Z
2019-02-19T16:26:59.000Z
from flask import Blueprint, request, jsonify, make_response from api.v2.models.parties import PartiesModelDb from flask_jwt_extended import jwt_required from . import check_user, id_conversion, resource_handler parties_api_v2 = Blueprint('parties_v2', __name__, url_prefix="/api/v2")
44.742857
119
0.664112
705e3b446233d2f6c1287b4611d5abe26c570d0a
1,307
py
Python
demo.py
Li-Pro/Clipboard
329be81902d6fc5e29e60c85d660a86055e5c3ac
[ "MIT" ]
2
2020-05-20T06:34:33.000Z
2020-05-30T02:32:37.000Z
demo.py
Li-Pro/Clipboarder
329be81902d6fc5e29e60c85d660a86055e5c3ac
[ "MIT" ]
null
null
null
demo.py
Li-Pro/Clipboarder
329be81902d6fc5e29e60c85d660a86055e5c3ac
[ "MIT" ]
null
null
null
from pathlib import Path import re import time from capture import getClipboardImage, NoImageData PATHNAME_REGEX = re.compile(r'(\w+\.*)*\w') main()
18.671429
54
0.651875
706002b48666a37499861a75991efe6d866c08af
1,288
py
Python
document/code/exo_demo_1/results.py
lebrice/george
14c4c89906c770528dad2b80973aab0320141fe5
[ "MIT" ]
9
2018-01-20T16:51:30.000Z
2020-12-06T22:13:44.000Z
document/code/exo_demo_1/results.py
lebrice/george
14c4c89906c770528dad2b80973aab0320141fe5
[ "MIT" ]
null
null
null
document/code/exo_demo_1/results.py
lebrice/george
14c4c89906c770528dad2b80973aab0320141fe5
[ "MIT" ]
4
2017-08-31T21:59:56.000Z
2022-03-03T20:01:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["results"] import os import triangle import numpy as np import cPickle as pickle import matplotlib.pyplot as pl if __name__ == "__main__": import sys results(sys.argv[1])
27.404255
69
0.632764
706047b9ae6c7b0c95aae34cd316a11a431e74e3
2,681
py
Python
vae/model_torch.py
tpvt99/sbcs5478
56e4a70462691a40252d7f51da7c45d44d9ca822
[ "MIT" ]
null
null
null
vae/model_torch.py
tpvt99/sbcs5478
56e4a70462691a40252d7f51da7c45d44d9ca822
[ "MIT" ]
null
null
null
vae/model_torch.py
tpvt99/sbcs5478
56e4a70462691a40252d7f51da7c45d44d9ca822
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np
35.746667
138
0.603133
70634f2f852c70987a8353d2bd23f6aa46115566
2,277
py
Python
pymetamap/MetaMapLite.py
liquet-ai/pymetamap
05db8f9625cb1f3b8e4b5e2133624ba799b86a1b
[ "Apache-2.0" ]
151
2015-01-26T21:11:07.000Z
2022-03-02T08:16:24.000Z
pymetamap/MetaMapLite.py
liquet-ai/pymetamap
05db8f9625cb1f3b8e4b5e2133624ba799b86a1b
[ "Apache-2.0" ]
47
2016-03-05T11:45:54.000Z
2022-01-25T17:48:14.000Z
pymetamap/MetaMapLite.py
liquet-ai/pymetamap
05db8f9625cb1f3b8e4b5e2133624ba799b86a1b
[ "Apache-2.0" ]
69
2015-07-09T02:56:16.000Z
2021-12-04T17:49:20.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 the Li...
44.647059
131
0.709267
7063fade463f2ff5785707f51f17ad043d668b7e
1,779
py
Python
examples/chi2_fit.py
HDembinski/pyik
fc9e87dec88484458479225c1ec2357ff48b5bb7
[ "BSD-3-Clause" ]
11
2018-04-16T08:07:11.000Z
2022-02-14T15:19:22.000Z
examples/chi2_fit.py
HDembinski/pyik
fc9e87dec88484458479225c1ec2357ff48b5bb7
[ "BSD-3-Clause" ]
10
2018-04-09T13:57:16.000Z
2019-04-28T11:28:55.000Z
examples/chi2_fit.py
HDembinski/pyik
fc9e87dec88484458479225c1ec2357ff48b5bb7
[ "BSD-3-Clause" ]
4
2017-09-22T10:24:57.000Z
2020-11-24T10:24:30.000Z
# -*- coding: utf-8 -*- """ This example demonstrates fitting a model to a (simulated) dataset using numpyext.chi2_fit, which wraps Minuit. """ import numpy as np from matplotlib import pyplot from pyik.fit import ChiSquareFunction from pyik.mplext import cornertext np.random.seed(1) def model(x, pars): """A sli...
25.782609
94
0.649241
70649b12e8177f792e96cdeb6bd72018b6de7576
5,406
py
Python
Python/esys/lsm/doc/Overview.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/doc/Overview.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/doc/Overview.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
############################################################# ## ## ## Copyright (c) 2003-2017 by The University of Queensland ## ## Centre for Geoscience Computing ## ## http://earth.uq.edu.au/centre-geoscience-computing ## ## ...
34.653846
100
0.699593
7066c0de46a9cb6cbb4bbc49dad20327a5f51884
4,483
py
Python
tour5_damage_bond/damage2d_explorer.py
bmcs-group/bmcs_tutorial
4e008e72839fad8820a6b663a20d3f188610525d
[ "MIT" ]
null
null
null
tour5_damage_bond/damage2d_explorer.py
bmcs-group/bmcs_tutorial
4e008e72839fad8820a6b663a20d3f188610525d
[ "MIT" ]
null
null
null
tour5_damage_bond/damage2d_explorer.py
bmcs-group/bmcs_tutorial
4e008e72839fad8820a6b663a20d3f188610525d
[ "MIT" ]
null
null
null
import numpy as np import sympy as sp import bmcs_utils.api as bu from bmcs_cross_section.pullout import MATS1D5BondSlipD s_x, s_y = sp.symbols('s_x, s_y') kappa_ = sp.sqrt( s_x**2 + s_y**2 ) get_kappa = sp.lambdify( (s_x, s_y), kappa_, 'numpy' ) def get_tau_s(s_x_n1, s_y_n1, Eps_n, bs, **kw): '''Get the stress ...
33.706767
89
0.602052
706745eb0046576ce77b57a2d81861de6f37d9a2
2,042
py
Python
plugins/hanime.py
streamlink-plugins/streamlink-plugins
64a3dd5d98a94cf5e61f0faa22821f58c6be9258
[ "Unlicense" ]
1
2021-08-17T07:26:59.000Z
2021-08-17T07:26:59.000Z
plugins/hanime.py
streamlink-plugins/streamlink-plugins
64a3dd5d98a94cf5e61f0faa22821f58c6be9258
[ "Unlicense" ]
1
2021-07-20T05:56:21.000Z
2021-08-05T00:07:45.000Z
plugins/hanime.py
streamlink-plugins/streamlink-plugins
64a3dd5d98a94cf5e61f0faa22821f58c6be9258
[ "Unlicense" ]
null
null
null
import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate from streamlink.stream import HLSStream _post_schema = validate.Schema({ 'hentai_video': validate.Schema({ 'name': validate.text, 'is_visible': bool }), 'videos_...
29.171429
102
0.539667
7069c3bc8265659738e027a9e3bc09e4e52e6f67
558
py
Python
rules/PlaybookExtension.py
dockpack/ansible-lint-rules
794ae9b0c034adee20b677ed26888c508847f507
[ "MIT" ]
null
null
null
rules/PlaybookExtension.py
dockpack/ansible-lint-rules
794ae9b0c034adee20b677ed26888c508847f507
[ "MIT" ]
null
null
null
rules/PlaybookExtension.py
dockpack/ansible-lint-rules
794ae9b0c034adee20b677ed26888c508847f507
[ "MIT" ]
1
2020-08-11T08:32:55.000Z
2020-08-11T08:32:55.000Z
from ansiblelint import AnsibleLintRule import os
25.363636
60
0.589606
706c68208b42d394b8a5aacf46f45e4eb99996af
2,712
py
Python
src/tests/test_pagure_flask_ui_app_index.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_pagure_flask_ui_app_index.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_pagure_flask_ui_app_index.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ (c) 2017 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ from __future__ import unicode_literals, absolute_import import datetime import unittest import shutil import sys import os import six import json import pygit2 from mock import patch, MagicMock...
28.547368
71
0.598451
706c9213e500aaaf1819246602b29a0148ed5c14
3,255
py
Python
src/server/message-distributor/message-distributor.py
fredsongyu/mmitss-az
62fb59a9e5a19f62a1096971f3cc0ecc04599106
[ "Apache-2.0" ]
10
2018-12-05T14:48:59.000Z
2022-02-17T02:10:51.000Z
src/server/message-distributor/message-distributor.py
fredsongyu/mmitss-az
62fb59a9e5a19f62a1096971f3cc0ecc04599106
[ "Apache-2.0" ]
null
null
null
src/server/message-distributor/message-distributor.py
fredsongyu/mmitss-az
62fb59a9e5a19f62a1096971f3cc0ecc04599106
[ "Apache-2.0" ]
8
2018-11-16T06:38:25.000Z
2022-03-09T18:22:59.000Z
''' *************************************************************************************** 2019 Arizona Board of Regents on behalf of the University of Arizona with rights granted for USDOT OSADP distribution with the Apache 2.0 open source license. **********************************************************...
40.6875
115
0.623656
706d7cd8cb065536c3b42bd8a949922e75604f14
7,281
py
Python
digsby/src/gui/pref/noobcontactlayoutpanel.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/gui/pref/noobcontactlayoutpanel.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/gui/pref/noobcontactlayoutpanel.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
import wx from cgui import SimplePanel from gui.pref.prefcontrols import mark_pref,get_pref
36.223881
87
0.441972
706edcd839b842521a152f5c40bd0ec18890c49e
35,466
py
Python
post_optimization_studies/mad_analyses/four_cuts_eff_flow_chart/Output/Histos/MadAnalysis5job_0/selection_7.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/four_cuts_eff_flow_chart/Output/Histos/MadAnalysis5job_0/selection_7.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/four_cuts_eff_flow_chart/Output/Histos/MadAnalysis5job_0/selection_7.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
# Running! if __name__ == '__main__': selection_7()
182.814433
2,022
0.74742
706f77988f356002f78f82f354138db4b26d737c
2,989
py
Python
Section_16 _Orientacao_a_objeto/execicios/ex02.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
Section_16 _Orientacao_a_objeto/execicios/ex02.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
Section_16 _Orientacao_a_objeto/execicios/ex02.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
''' Crie uma classe Agenda que pode armazenar 10 pessoas e seja capaz de realizar as seguintes operaes: * void armazenaPessoa(String nome, int idade, float altura); * void removePessoa(String nome); * int buscaPessoa(String nome); // informa em que posio da agenda est a pessoa * void imprimeAgenda(); /...
27.675926
142
0.641352
706f947075d48d6e639e35f385287b783e8a5945
3,148
py
Python
get_feature.py
1895-art/stock-price-predict
951a632cd397e969229d793e0c23f0575d154240
[ "MIT" ]
95
2018-07-15T10:04:27.000Z
2022-03-24T11:49:18.000Z
get_feature.py
1895-art/stock-price-predict
951a632cd397e969229d793e0c23f0575d154240
[ "MIT" ]
3
2019-01-18T08:09:57.000Z
2020-01-07T13:19:32.000Z
get_feature.py
kaka-lin/stock-price-predict
951a632cd397e969229d793e0c23f0575d154240
[ "MIT" ]
27
2018-08-07T05:17:05.000Z
2021-06-20T01:53:38.000Z
import getopt, sys, os import csv import pandas as pd import locale from locale import atof locale.setlocale(locale.LC_NUMERIC, '') def get_feature_data(filepath, encode=None, **argv): """ input: filepath encode argv: Code,Date,CB,Open,High,Low,Close,Volumn ...
26.233333
101
0.495553
7070b93051b38b982ed7f6d291e2d1ee4d9fa685
811
py
Python
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
1
2022-03-31T16:43:55.000Z
2022-03-31T16:43:55.000Z
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
null
null
null
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import matplotlib.ticker as tkr import os import openmm.unit as unit output_dir = "/home/mbowley/ANI-Peptides/outputs/equilibration_aaa_capped_amber_121250_310322" STATE_DATA_FN = "equilibration_state_data.csv" # Make some graphs report = pd.re...
36.863636
139
0.750925
7070e1e2b4357ac3610eef2cb5402b0e25e73572
13,883
py
Python
resources/lib/api/api_requests.py
sajo84/plugin.video.netflix
757cd2866f2c89c777d12a2772484fe675743543
[ "MIT" ]
null
null
null
resources/lib/api/api_requests.py
sajo84/plugin.video.netflix
757cd2866f2c89c777d12a2772484fe675743543
[ "MIT" ]
null
null
null
resources/lib/api/api_requests.py
sajo84/plugin.video.netflix
757cd2866f2c89c777d12a2772484fe675743543
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) Methods to execute requests to Netflix API SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from __future__ import absolute_imp...
40.832353
119
0.644961
707187b48b45b72042bc1f7d90faf6f81262ae8b
1,138
py
Python
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
1
2019-04-16T18:37:32.000Z
2019-04-16T18:37:32.000Z
# Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.common import ExtractedFeatures from cybox.test import EntityTestCase # Need to do this so the binding class is registered. import cybox.bindings.cybox_common from cybox.bindings.address...
33.470588
77
0.672232
7071e73ce6bf98c0a8ebbcf53ffea1005ca30c0c
5,640
py
Python
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
from django.core.validators import MinValueValidator from openslides.core.config import ConfigVariable from openslides.poll.models import PERCENT_BASE_CHOICES from .models import Workflow def get_workflow_choices(): """ Returns a list of all workflows to be used as choices for the config variable 'motio...
30.989011
98
0.626064
7071f4925611f43a47a55fea91ffd98ac1480e78
22,743
py
Python
spect.py
philips-software/random_forest
5cbc95aa57ac33260720afd3fc779e7d71b5658c
[ "MIT" ]
2
2020-01-09T23:26:30.000Z
2021-01-27T18:34:15.000Z
spect.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
null
null
null
spect.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
2
2020-03-03T18:30:14.000Z
2021-09-06T13:55:06.000Z
from mpyc.runtime import mpc from src.dataset import ObliviousDataset, Sample from src.output import output from src.secint import secint as s from src.forest import train_forest spect_samples = ObliviousDataset.create( sample([1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0], 0), sample([1...
77.357143
83
0.358
70727332781524d67d9e08873ec4e97cf38aa95f
6,578
py
Python
projects/wgan/gaussian_gan.py
niujinshuchong/stochastic_processes
ea2538d2f09c39bec1834df5addd37e0699a88bf
[ "MIT" ]
null
null
null
projects/wgan/gaussian_gan.py
niujinshuchong/stochastic_processes
ea2538d2f09c39bec1834df5addd37e0699a88bf
[ "MIT" ]
null
null
null
projects/wgan/gaussian_gan.py
niujinshuchong/stochastic_processes
ea2538d2f09c39bec1834df5addd37e0699a88bf
[ "MIT" ]
null
null
null
import argparse import os import numpy as np import math import sys import matplotlib.pyplot as plt import torchvision.transforms as transforms from torchvision.utils import save_image import random from math import * from torch.utils.data import DataLoader from torchvision import datasets from torch.autograd import Va...
33.390863
129
0.594862
707383f583ad7bbda06c20e6e87636595bd3dd55
1,302
py
Python
_669.py
elfgzp/leetCode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
3
2019-04-12T06:22:56.000Z
2019-05-04T04:25:01.000Z
_669.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
_669.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'gzp' # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None from utils import Tree if __name__ == '__main__': s = Solution() root = Tree([1, 0, 2]) pr...
22.067797
52
0.523041
7074d22367368afc1491da30cd43502d5330386e
3,895
py
Python
spiders/a85.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
spiders/a85.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
spiders/a85.py
senlyu163/crawler
ecf95f7b356c726922b5e5d90000fda3e16ae90d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from ..utils import extract_CN_from_content from ..items import ScrapySpiderItem import re from scrapy_splash import SplashRequest
44.261364
149
0.567394
7074f909c5703484cedced7916b80fe2527f9870
118
py
Python
src/GUM_Dispenser/__init__.py
jrdnfike/GUM_Dispenser
b2655339445af4b1fb328676e2ec9f239dcd6bfc
[ "MIT" ]
null
null
null
src/GUM_Dispenser/__init__.py
jrdnfike/GUM_Dispenser
b2655339445af4b1fb328676e2ec9f239dcd6bfc
[ "MIT" ]
null
null
null
src/GUM_Dispenser/__init__.py
jrdnfike/GUM_Dispenser
b2655339445af4b1fb328676e2ec9f239dcd6bfc
[ "MIT" ]
null
null
null
__all__ = ['GUM_Dispenser_Main', 'GUM_setup_parser', 'GUM_Describe_Source', 'GUM_Generate_NOMNOML', 'GUM_Exceptions']
59
117
0.79661
70755d5d03c099f6085f0bb0e914a4c7034022e9
2,589
py
Python
skeleton/functional.py
dogoncouch/dogoncouch-misc
46e020cc541cc6cf19edc0114a73f24e96ce15d0
[ "MIT" ]
3
2020-02-05T07:25:01.000Z
2021-12-24T20:08:03.000Z
skeleton/functional.py
dogoncouch/dogoncouch-misc
46e020cc541cc6cf19edc0114a73f24e96ce15d0
[ "MIT" ]
null
null
null
skeleton/functional.py
dogoncouch/dogoncouch-misc
46e020cc541cc6cf19edc0114a73f24e96ce15d0
[ "MIT" ]
2
2018-02-24T18:59:29.000Z
2020-06-14T15:15:19.000Z
#!/usr/bin/env python # MIT License # # Copyright (c) 2017 Dan Persons (dpersonsdev@gmail.com) # # 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 limi...
28.450549
80
0.679413
7076835d176f91ff169e5946974bfd4dbfe39989
14,077
py
Python
src/silx/gui/plot/tools/RadarView.py
rnwatanabe/silx
b0395f4a06c048b7778dc04ada828edd195ef02d
[ "CC0-1.0", "MIT" ]
94
2016-03-04T17:25:53.000Z
2022-03-18T18:05:23.000Z
src/silx/gui/plot/tools/RadarView.py
rnwatanabe/silx
b0395f4a06c048b7778dc04ada828edd195ef02d
[ "CC0-1.0", "MIT" ]
2,841
2016-01-21T09:06:49.000Z
2022-03-18T14:53:56.000Z
src/silx/gui/plot/tools/RadarView.py
rnwatanabe/silx
b0395f4a06c048b7778dc04ada828edd195ef02d
[ "CC0-1.0", "MIT" ]
71
2015-09-30T08:35:35.000Z
2022-03-16T07:16:28.000Z
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2015-2018 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
38.88674
84
0.617674
707748746f67df072b8d127ebd45987c9f4adb01
1,486
py
Python
purly/py/purly/model/client.py
rmorshea/purly
0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7
[ "MIT" ]
2
2018-08-18T05:39:24.000Z
2018-08-21T19:02:16.000Z
purly/py/purly/model/client.py
rmorshea/purly
0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7
[ "MIT" ]
2
2018-07-27T07:14:19.000Z
2018-07-27T07:17:06.000Z
purly/py/purly/model/client.py
rmorshea/purly
0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7
[ "MIT" ]
null
null
null
import json import time import websocket
26.070175
73
0.520188
707a6afb505aab8fb903afd510d0ef10d069c552
1,378
py
Python
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
93
2015-10-28T13:15:45.000Z
2022-03-07T01:16:24.000Z
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
130
2015-11-13T17:41:41.000Z
2022-03-30T16:37:44.000Z
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
88
2015-10-29T09:36:23.000Z
2021-12-13T20:14:08.000Z
import dataiku import glob import pandas as pd import os
32.046512
103
0.621916
707aa505d5a6e2672f86a0292a8b2705393bee85
1,232
py
Python
practice_problems/prog4_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
3
2018-02-08T21:09:27.000Z
2021-06-15T04:48:46.000Z
practice_problems/prog4_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
null
null
null
practice_problems/prog4_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
1
2018-02-08T21:09:31.000Z
2018-02-08T21:09:31.000Z
#!/usr/bin/env python3 # # Author: Vishwas K Singh # Email: vishwasks32@gmail.com # # Script to convert Celcius Temperature to Farenheit def temp_conv(temp_type, temp_val): ''' Function to convert Temperature from Celcius to farenheit and vice versa''' if(temp_type == 'f'): temp_faren = ((9/5)*t...
35.2
98
0.647727
707b95b9e394fd7ccab1823b73b68b69754eb13a
696
py
Python
2020/09/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2020/09/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2020/09/part1.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
import os import sys puzzle_input_path = os.path.join(os.path.dirname(__file__), "input_1.txt") with open(puzzle_input_path) as puzzle_input_file: puzzle_input_raw = puzzle_input_file.read() preamble = 25 numbers = [int(x) for x in puzzle_input_raw.splitlines()] number = next( n for i, n in enumera...
29
81
0.70546
707c819d3655d7f0bad5a54fee02df54610cbc35
4,416
py
Python
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
2
2020-08-03T08:02:48.000Z
2020-11-21T04:11:45.000Z
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
1
2020-09-29T12:58:33.000Z
2020-09-29T12:58:33.000Z
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
null
null
null
"""Base architecture and Siamese Network. """ import tensorflow as tf import dualing.utils.exception as e def step(self, x, y): """Method that performs a single batch optimization step. Note that you need to implement this method directly on its child. Essentially, each type of Siamese...
25.234286
97
0.615942
707ebe5c40335557036acfbcae3d06ae69d50f9a
2,642
py
Python
app/dapp_examples/py/media_analysis/image_quality/App.py
TheAdamBC/AdamBC
e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c
[ "BSD-3-Clause" ]
1
2021-12-14T07:28:46.000Z
2021-12-14T07:28:46.000Z
app/dapp_examples/py/media_analysis/image_quality/App.py
TheAdamBC/AdamBC
e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c
[ "BSD-3-Clause" ]
null
null
null
app/dapp_examples/py/media_analysis/image_quality/App.py
TheAdamBC/AdamBC
e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c
[ "BSD-3-Clause" ]
null
null
null
#** # * The Decentralized App (DApp): # * This is where the App developer writes the decentralized app. # * Make sure the code is written within the specified space region. # * # * IMPORTANT: # * 1. Developer DApp CODE MUST BE WRITTEN WITHIN SPECIFIED SPACE REGION. # * 2. DApp MUST return values through the 'results'...
33.443038
142
0.623391
70811820b7b88435ba6e11176b752f15dc282feb
1,142
py
Python
tests/conftest.py
jmolmo/managed-tenants-cli
fb3dd79f6629884577aa7333fdfe8d78802a79d4
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
jmolmo/managed-tenants-cli
fb3dd79f6629884577aa7333fdfe8d78802a79d4
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
jmolmo/managed-tenants-cli
fb3dd79f6629884577aa7333fdfe8d78802a79d4
[ "Apache-2.0" ]
1
2021-09-02T10:11:52.000Z
2021-09-02T10:11:52.000Z
# Configure different hypothesis profiles import os from hypothesis import HealthCheck, Phase, settings FAST_PROFILE = "fast" CI_PROFILE = "ci" # 'fast' profile for local development settings.register_profile( FAST_PROFILE, # Set to true for test reproducibility # https://hypothesis.readthedocs.io/en/la...
29.282051
95
0.748687
70813d4b3c14a6bf03e7e3ca20a7dd8dc96c4b00
1,859
py
Python
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
2
2017-11-10T18:06:36.000Z
2018-01-25T13:53:10.000Z
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
null
null
null
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
null
null
null
# coding: utf-8 from flask import render_template, redirect, request, url_for, flash, current_app from flask_login import login_user, logout_user, login_required, UserMixin from . import user from .forms import LoginForm from .. import login_manager from config import Config import time users = Config.USER_LIST
24.786667
103
0.661646
70824a33f97bb12dc07fe121ae5ed43e23d5b01c
2,994
py
Python
src/python/exsim3.py
akafael/unb-controle-digital
4c4915eb1c4d070886284c0f79ce3ee26ece8695
[ "MIT" ]
null
null
null
src/python/exsim3.py
akafael/unb-controle-digital
4c4915eb1c4d070886284c0f79ce3ee26ece8695
[ "MIT" ]
null
null
null
src/python/exsim3.py
akafael/unb-controle-digital
4c4915eb1c4d070886284c0f79ce3ee26ece8695
[ "MIT" ]
null
null
null
""" Laboratory Experiment 3 - Script - Rootlocus project @author Rafael Lima """ from sympy import * def simplifyFraction(G,s): """ Expand numerator and denominator from given fraction """ num,den = fraction(G.expand().simplify()) num = Poly(num,s) den = Poly(den,s) return (num/den)...
23.761905
167
0.660655
708280686076f210ca6f326f21e8b919249cc576
5,439
py
Python
chase/test.py
dave2328/chase
9bca01b959ba65f526db993fd03a13eaba294941
[ "MIT" ]
3
2016-02-03T04:04:00.000Z
2020-10-31T02:36:49.000Z
chase/test.py
tecoach/chase
2b5a11cf70f295500f07207e26f26f4391902d08
[ "MIT" ]
1
2016-09-27T18:44:22.000Z
2016-09-27T18:44:22.000Z
chase/test.py
tecoach/chase
2b5a11cf70f295500f07207e26f26f4391902d08
[ "MIT" ]
5
2016-02-03T04:04:13.000Z
2020-03-30T04:46:11.000Z
import os import unittest from chase import Profile, Order, Reversal merchant_id = os.environ.get('TEST_ORBITAL_MERCHANT_ID') username = os.environ.get('TEST_ORBITAL_USERNAME') password = os.environ.get('TEST_ORBITAL_PASSWORD') if __name__ == '__main__': unittest.main()
34.865385
69
0.636882
708413de75cff9f09c32fc7eec77271bf88e6168
2,698
py
Python
model/decoder.py
kefirski/hybrid_rvae
39133e656eeb05c998422e5ad9bfadc913c81b44
[ "MIT" ]
23
2017-10-24T01:30:07.000Z
2021-11-15T04:14:02.000Z
model/decoder.py
analvikingur/hybrid_rvae
39133e656eeb05c998422e5ad9bfadc913c81b44
[ "MIT" ]
1
2017-08-20T00:34:23.000Z
2017-08-21T08:03:30.000Z
model/decoder.py
analvikingur/hybrid_rvae
39133e656eeb05c998422e5ad9bfadc913c81b44
[ "MIT" ]
13
2017-08-22T15:35:00.000Z
2021-11-19T01:24:33.000Z
import torch as t import torch.nn as nn import torch.nn.functional as F
34.589744
99
0.626019
7084359911956e6eb8fcc82cb7baa296e5280584
186
py
Python
main/Models/Circle/Simulation/Circle.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/Models/Circle/Simulation/Circle.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/Models/Circle/Simulation/Circle.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from CircleSteppables import CircleSteppable CompuCellSetup.register_steppable(steppable=CircleSteppable(frequency=1)) CompuCellSetup.run()
16.909091
73
0.817204
7084652e3d8514cf5a87012b67dbfa4aee0e8d9d
15,329
py
Python
web/olga/analytics/models.py
raccoongang/acceptor
fdc1504912b502c8d789d5478eba8cc1a491934b
[ "Apache-2.0" ]
5
2017-10-20T05:52:59.000Z
2020-02-25T10:46:33.000Z
web/olga/analytics/models.py
raccoongang/OLGA
fdc1504912b502c8d789d5478eba8cc1a491934b
[ "Apache-2.0" ]
233
2017-08-14T10:56:16.000Z
2021-04-07T01:09:17.000Z
web/olga/analytics/models.py
raccoongang/acceptor
fdc1504912b502c8d789d5478eba8cc1a491934b
[ "Apache-2.0" ]
2
2018-03-16T22:22:57.000Z
2018-06-15T20:02:56.000Z
""" Models for analytics application. Models used to store and operate all data received from the edx platform. """ from __future__ import division from datetime import date, timedelta import operator import pycountry from django.contrib.postgres.fields import JSONField from django.db import models from django.db.m...
37.296837
116
0.659339
708475a8fdb41ed7fcd4a6f028a2dcd0edaa89ad
20,560
py
Python
pypowervm/tests/tasks/test_cna.py
stephenfin/pypowervm
68f2b586b4f17489f379534ab52fc56a524b6da5
[ "Apache-2.0" ]
24
2015-12-02T19:49:45.000Z
2021-11-17T11:43:51.000Z
pypowervm/tests/tasks/test_cna.py
stephenfin/pypowervm
68f2b586b4f17489f379534ab52fc56a524b6da5
[ "Apache-2.0" ]
18
2017-03-01T05:54:25.000Z
2022-03-14T17:32:47.000Z
pypowervm/tests/tasks/test_cna.py
stephenfin/pypowervm
68f2b586b4f17489f379534ab52fc56a524b6da5
[ "Apache-2.0" ]
17
2016-02-10T22:53:04.000Z
2021-11-10T09:47:10.000Z
# Copyright 2015, 2017 IBM Corp. # # 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 require...
45.286344
79
0.655302
7084a93fe5b577c679276f294fe5764e40d39b1b
390
py
Python
src/dispatch/plugins/dispatch_test/participant_group.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
3,417
2020-02-23T22:54:47.000Z
2022-03-31T13:01:01.000Z
src/dispatch/plugins/dispatch_test/participant_group.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
607
2020-02-24T14:27:02.000Z
2022-03-30T19:15:39.000Z
src/dispatch/plugins/dispatch_test/participant_group.py
roor0/dispatch
12c4f567096411abe62abaf61c7c124496764346
[ "Apache-2.0" ]
359
2020-02-24T19:04:43.000Z
2022-03-29T06:48:12.000Z
from dispatch.plugins.bases import ParticipantGroupPlugin
24.375
57
0.702564
7084e27c49595c6dd313ddb9fd27d9cdb9c9e2f7
17,707
py
Python
tools/stats_gen_lib.py
mtak-/lockfree-stm
00cd5f9a056e999f0cd140106c1d66b321d6fd47
[ "MIT" ]
9
2016-11-14T23:35:30.000Z
2019-01-18T23:21:08.000Z
tools/stats_gen_lib.py
mtak-/lockfree-stm
00cd5f9a056e999f0cd140106c1d66b321d6fd47
[ "MIT" ]
3
2017-01-09T01:22:57.000Z
2017-03-20T04:50:05.000Z
tools/stats_gen_lib.py
mtak-/lockfree-stm
00cd5f9a056e999f0cd140106c1d66b321d6fd47
[ "MIT" ]
null
null
null
#!/usr/bin/python from string import Formatter _STATS_TEMPLATE = '''#ifndef {INCLUDE_GUARD} #define {INCLUDE_GUARD} // clang-format off #ifdef {MACRO_PREFIX}ON {INCLUDES} #include <iomanip> #include <sstream> #include <string> #include <vector> // comment out any stats you don't want, and thing...
39.612975
142
0.550969
7084f8adc7a1f6ea7b5b0235bc00bc3a8d6d415b
3,138
py
Python
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
from . import ingest_tester from whyis_test_case import WhyisTestCase
33.031579
73
0.688655
708607f4e8ad0abd68f63300e62f77ebd76b2725
1,200
py
Python
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
9
2017-05-14T05:12:32.000Z
2022-01-13T08:11:07.000Z
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
null
null
null
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
7
2017-08-28T08:31:43.000Z
2020-03-03T07:18:37.000Z
import copy import ConfigParser import conf_keys from loggingex import LOG_WARNING if __name__ == "__main__": a = mysql_conf_parser() print a.parse("../../conf/mysql_manager.conf") pass
33.333333
77
0.564167
7086ab4940faf1fbffd4020ba41b2d8ad3df6cb7
596
py
Python
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
1
2022-01-18T13:18:58.000Z
2022-01-18T13:18:58.000Z
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
null
null
null
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
null
null
null
import torch.nn as nn from n3 import ExternNode
19.866667
46
0.600671
7086b67b426ff9f8307d4800efd294b1e2f817c3
6,482
py
Python
auto-traveler.py
biomadeira/auto-traveler
38f2c086923925d9819c07bdef297ec24f2ec58f
[ "Apache-2.0" ]
null
null
null
auto-traveler.py
biomadeira/auto-traveler
38f2c086923925d9819c07bdef297ec24f2ec58f
[ "Apache-2.0" ]
null
null
null
auto-traveler.py
biomadeira/auto-traveler
38f2c086923925d9819c07bdef297ec24f2ec58f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Copyright [2009-present] EMBL-European Bioinformatics Institute 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 requ...
34.478723
142
0.67726
7087885e36c0266307dc1789a9c00444a7c21a73
49,994
py
Python
tests/test_make_table.py
kellyjonbrazil/jtbl
9bfc755bc964fbed59a4884bc4be605a5065f3d8
[ "MIT" ]
108
2020-03-10T13:22:03.000Z
2022-03-30T03:09:38.000Z
tests/test_make_table.py
kellyjonbrazil/jtbl
9bfc755bc964fbed59a4884bc4be605a5065f3d8
[ "MIT" ]
9
2020-03-08T00:44:38.000Z
2022-02-15T19:36:04.000Z
tests/test_make_table.py
kellyjonbrazil/jtbl
9bfc755bc964fbed59a4884bc4be605a5065f3d8
[ "MIT" ]
5
2020-03-10T11:34:18.000Z
2021-08-02T10:57:43.000Z
import unittest import textwrap import jtbl.cli if __name__ == '__main__': unittest.main()
116.808411
864
0.173461
7087b1595e41533f5047a1198773514a488662fd
11,862
py
Python
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
""" Autonomous Car Locator This is a program that helps autonomous cars to find out the location and direction of other autonomous cars. It is all based on what is provided by the car and from what the car detects. By David Gameiro """ import random locator()
45.623077
121
0.42986
7087c1f44e1b42fefc6088af0233d3d5c9a7f47d
460
py
Python
jenkins-dashboard.py
jfm/jenkins-dashboard
4dc4cf69f7f6be1f9cfd15b24509a96454c4de09
[ "MIT" ]
null
null
null
jenkins-dashboard.py
jfm/jenkins-dashboard
4dc4cf69f7f6be1f9cfd15b24509a96454c4de09
[ "MIT" ]
3
2021-03-18T20:10:45.000Z
2021-09-07T23:37:52.000Z
jenkins-dashboard.py
jfm/jenkins-dashboard
4dc4cf69f7f6be1f9cfd15b24509a96454c4de09
[ "MIT" ]
null
null
null
from jenkinsdashboard.ci.jenkins import Jenkins from jenkinsdashboard.ui.dashboard import Dashboard import time if __name__ == '__main__': # jenkins = Jenkins('http://10.0.0.102:18081', 'jfm', 'c3po4all') jenkins = Jenkins( 'http://jenkins.onboarding.liquid.int.tdk.dk', 'admin', '0nboarding') das...
28.75
77
0.678261