hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5428e994e57c10ab2c09314300ce7a8811d9aba0
1,013
py
Python
vega_datasets/tests/test_errors.py
datadesk/vega_datasets
89d990da5a8732bdcb553f170a0ec407652fa71b
[ "MIT" ]
null
null
null
vega_datasets/tests/test_errors.py
datadesk/vega_datasets
89d990da5a8732bdcb553f170a0ec407652fa71b
[ "MIT" ]
null
null
null
vega_datasets/tests/test_errors.py
datadesk/vega_datasets
89d990da5a8732bdcb553f170a0ec407652fa71b
[ "MIT" ]
null
null
null
import pytest from vega_datasets import data, local_data from vega_datasets.core import Dataset def test_undefined_dataset(): with pytest.raises(AttributeError) as err: data('blahblahblah') assert str(err.value) == "No dataset named 'blahblahblah'" with pytest.raises(AttributeError) as err: ...
34.931034
77
0.671273
e4e1ce16cc79bb0a0d6a875fdf22fffe7d5d1f1c
1,765
py
Python
bitey/cpu/instruction/dec.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
bitey/cpu/instruction/dec.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
bitey/cpu/instruction/dec.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
from bitey.cpu.instruction.instruction import ( Instruction, IncompleteInstruction, ) class DE(Instruction): "Generic register decrement instruction" def __init__(self, name, opcode, description, options, register): "Initialize with the register" super().__init__(name, opcode, descrip...
29.416667
80
0.633994
bd81afd164c45d9a7f6c90286c07e2ec8e061598
10,156
py
Python
toontown/cogdominium/CogdoMazeGameGuis.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
1
2020-09-27T22:12:47.000Z
2020-09-27T22:12:47.000Z
toontown/cogdominium/CogdoMazeGameGuis.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
null
null
null
toontown/cogdominium/CogdoMazeGameGuis.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
2
2020-09-26T20:37:18.000Z
2020-11-15T20:55:33.000Z
from direct.gui.DirectLabel import DirectLabel from direct.gui.DirectGui import * from direct.task.Task import Task from direct.interval.MetaInterval import Sequence, Parallel from direct.interval.FunctionInterval import Wait, Func from pandac.PandaModules import TextNode, NodePath, Point3, CardMaker from toontown.toon...
37.895522
291
0.662466
b78bf3a2589851470fee11bdb8300852a533b84a
1,027
py
Python
ultros_site/routes/news_view.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
2
2017-06-25T20:57:40.000Z
2017-11-27T15:13:35.000Z
ultros_site/routes/news_view.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
5
2017-06-23T12:05:57.000Z
2021-06-30T05:46:44.000Z
ultros_site/routes/news_view.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
3
2018-01-08T04:57:12.000Z
2020-01-22T08:03:56.000Z
# coding=utf-8 import re from falcon.errors import HTTPNotFound from sqlalchemy.orm.exc import NoResultFound from ultros_site.base_sink import BaseSink from ultros_site.database.schema.news_post import NewsPost from ultros_site.markdown import Markdown __author__ = "Gareth Coles" class NewsViewRoute(BaseSink): ...
29.342857
111
0.681597
7f1d20ab240eeca067614c3df366d983ba7b220d
11,634
py
Python
anima/rig/utilityFuncs.py
MehmetErer/anima
f92ae599b5a4c181fc8e131a9ccdde537e635303
[ "MIT" ]
101
2015-02-08T22:20:11.000Z
2022-03-21T18:56:42.000Z
anima/rig/utilityFuncs.py
Khosiyat/anima
f631c08400547f49ac5f1feeb730f22c255eb771
[ "MIT" ]
23
2016-11-30T08:33:21.000Z
2021-01-26T12:11:12.000Z
anima/rig/utilityFuncs.py
Khosiyat/anima
f631c08400547f49ac5f1feeb730f22c255eb771
[ "MIT" ]
27
2015-01-03T06:49:45.000Z
2021-12-28T03:30:54.000Z
# -*- coding: utf-8 -*- import pymel.core as pm from pymel.all import mel class UtilityFuncs(): #selects the hiearachy @staticmethod def selHierarchy(root): pm.select(root, hi=1) return pm.ls(sl = 1) @staticmethod def renameHierarchy(hierarchy, name): #rename the hiea...
66.48
124
0.372271
a82e1f47cd99904ce91095f8a47d678591b71b20
1,020
py
Python
sample/web/app/databases.py
hdknr/django-mautic
aa2e5304936541c9266215df00469576142ee906
[ "BSD-2-Clause-FreeBSD" ]
1
2021-02-20T08:48:05.000Z
2021-02-20T08:48:05.000Z
sample/web/app/databases.py
hdknr/django-mautic
aa2e5304936541c9266215df00469576142ee906
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
sample/web/app/databases.py
hdknr/django-mautic
aa2e5304936541c9266215df00469576142ee906
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
''' DatabaseRouter ''' class DatabaseRouter(object): _maps = { 'mautic': { 'apps': ['mautic'], }, } def get_database(self, model, **hints): for db, conf in self._maps.items(): if model._meta.app_label in conf['apps']: return db retur...
24.878049
69
0.557843
c32db957456b92631f4b713bc8ac53548a179f3d
367
py
Python
performStringShifts.py
Dhawal-Modi/30_Days_Of_LeetCode
472d36dec04576e1ecd4aa7f7609464c99e2f6ba
[ "CNRI-Python" ]
null
null
null
performStringShifts.py
Dhawal-Modi/30_Days_Of_LeetCode
472d36dec04576e1ecd4aa7f7609464c99e2f6ba
[ "CNRI-Python" ]
null
null
null
performStringShifts.py
Dhawal-Modi/30_Days_Of_LeetCode
472d36dec04576e1ecd4aa7f7609464c99e2f6ba
[ "CNRI-Python" ]
null
null
null
class Solution: def stringShift(self, s: str, shift: List[List[int]]) -> str: move_l = 0 length = len(s) for direction,amount in shift: if direction == 0: move_l = move_l + amount else: move_l = move_l - amount move_l = move_l %...
30.583333
65
0.506812
fdb29efb431d47920d61ea375cf064d7ca0c5bfd
3,235
py
Python
profiles_project/settings.py
sindylpy/profiles-rest-api
72516064d9ad16fdafcf893ab6343475e6ecdc27
[ "MIT" ]
null
null
null
profiles_project/settings.py
sindylpy/profiles-rest-api
72516064d9ad16fdafcf893ab6343475e6ecdc27
[ "MIT" ]
5
2021-03-19T11:38:44.000Z
2022-02-10T11:42:58.000Z
profiles_project/settings.py
sindylpy/profiles-rest-api
72516064d9ad16fdafcf893ab6343475e6ecdc27
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.674603
91
0.699536
0614995142f3a41d0af3cd8cc070c5a2563e0b12
1,744
py
Python
tools/patch.py
mheinzler/z-sublime-plugins
7ab235c025003206c3250d1de9907081eccb2dfb
[ "MIT" ]
null
null
null
tools/patch.py
mheinzler/z-sublime-plugins
7ab235c025003206c3250d1de9907081eccb2dfb
[ "MIT" ]
null
null
null
tools/patch.py
mheinzler/z-sublime-plugins
7ab235c025003206c3250d1de9907081eccb2dfb
[ "MIT" ]
null
null
null
"""Patch functions with a replacement.""" from collections import namedtuple # a patch object containing information about a replaced function Patch = namedtuple('Patch', [ 'cls', 'name', 'original', 'replacement' ]) # the list of patched functions (do not overwrite the previous patches when the # mo...
26.029851
79
0.638188
e31273a31b362b993c01c799283e5b2ad7889958
184
py
Python
w2020/w10/w10_9/app/apps/main.py
abrance/mine
d4067bf6fb158ebaea3eb7a516ae372dcb8cf419
[ "MIT" ]
null
null
null
w2020/w10/w10_9/app/apps/main.py
abrance/mine
d4067bf6fb158ebaea3eb7a516ae372dcb8cf419
[ "MIT" ]
null
null
null
w2020/w10/w10_9/app/apps/main.py
abrance/mine
d4067bf6fb158ebaea3eb7a516ae372dcb8cf419
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/") def index(): return "<h1> index </h1>" def run(): app.run(debug=True) if __name__ == "__main__": run()
10.823529
29
0.592391
43e3a67c69e530a1ba128045bd80e196783a5b90
320
py
Python
DataTransformation.py
rohandatta/Web-App
20a22f93932550c76306ee933bed34c770ae450c
[ "BSD-2-Clause" ]
null
null
null
DataTransformation.py
rohandatta/Web-App
20a22f93932550c76306ee933bed34c770ae450c
[ "BSD-2-Clause" ]
null
null
null
DataTransformation.py
rohandatta/Web-App
20a22f93932550c76306ee933bed34c770ae450c
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd from sklearn.preprocessing import StandardScaler def scaler(X_test): df = pd.read_csv('C:/Users/acer/Desktop/Web App/data/heart.csv') X = df.iloc[:,:-1] scaler = StandardScaler() X_scale = scaler.fit_transform(X) X_test_scale = scaler.transform(X_test) return X_test
21.333333
68
0.69375
2295e43ee6b4221d86ce9b821cb1117aeaa81a26
22,262
py
Python
blink/main_dense.py
JimXiongGM/BLINK
4668bf0f1d25d9f3db4aae5fda0e8d00c7275a4d
[ "MIT" ]
null
null
null
blink/main_dense.py
JimXiongGM/BLINK
4668bf0f1d25d9f3db4aae5fda0e8d00c7275a4d
[ "MIT" ]
null
null
null
blink/main_dense.py
JimXiongGM/BLINK
4668bf0f1d25d9f3db4aae5fda0e8d00c7275a4d
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import argparse import json import sys from tqdm import tqdm import logging import torch import numpy as np from colorama...
30.833795
99
0.574656
64bb0529b8dc6be179a44d4aae2be312c12e5984
270
py
Python
app/app.py
PaulRedmond94/Lab6Repo
1ed8398fac97c3272003f5179ecd93ae9f2bbde1
[ "MIT" ]
null
null
null
app/app.py
PaulRedmond94/Lab6Repo
1ed8398fac97c3272003f5179ecd93ae9f2bbde1
[ "MIT" ]
null
null
null
app/app.py
PaulRedmond94/Lab6Repo
1ed8398fac97c3272003f5179ecd93ae9f2bbde1
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello bubx" @app.route("/user/<username>") def show_user(username): return "Hello user %s" % username if __name__ == "__main__": app.run(host="0.0.0.0", port=3000, debug=True)
18
48
0.666667
6c2f11f457d18010a30c62eae76b67b334cd255c
1,136
py
Python
endpoints/json.py
Kuzj/simple_rest
12f622bc7265471a0000aecdb505202921d4cb0e
[ "MIT" ]
null
null
null
endpoints/json.py
Kuzj/simple_rest
12f622bc7265471a0000aecdb505202921d4cb0e
[ "MIT" ]
null
null
null
endpoints/json.py
Kuzj/simple_rest
12f622bc7265471a0000aecdb505202921d4cb0e
[ "MIT" ]
null
null
null
import logging import json from aiohttp.web_response import Response from aiohttp.web import Request import actions from simple_rest import RestEndpoint class JSONError(Exception): """Base class for exceptions in GrafanaEndpoint.""" pass class NoActionInMessage(JSONError): pass class Endpoint(RestEndpoi...
28.4
142
0.62412
c6099f7f465a6902ff1c782af444ad33a806b14f
1,001
py
Python
trac/mimeview/tests/__init__.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
trac/mimeview/tests/__init__.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
trac/mimeview/tests/__init__.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This soft...
31.28125
68
0.723277
b2fa40332c1d5d9ff89c9d4f4ab8147f4183b21d
619
py
Python
quick_model.py
tfriedel/neural-image-assessment
b35e667e78ba9be01ef38e3d08983386851a8902
[ "MIT" ]
25
2018-02-01T00:26:27.000Z
2021-06-07T09:21:47.000Z
quick_model.py
tfriedel/neural-image-assessment
b35e667e78ba9be01ef38e3d08983386851a8902
[ "MIT" ]
2
2018-12-12T11:32:40.000Z
2019-07-02T12:33:40.000Z
quick_model.py
tfriedel/neural-image-assessment
b35e667e78ba9be01ef38e3d08983386851a8902
[ "MIT" ]
6
2018-02-19T14:42:22.000Z
2021-04-01T06:35:30.000Z
from keras.layers import Conv2D, Dense, Dropout, Input, MaxPooling2D, Flatten from keras.models import Model class NimaModel(object): def __init__(self): inputs = Input(shape=(224, 224, 3)) x = Conv2D(16, kernel_size=(3, 3), activation='relu')(inputs) x = Conv2D(8, (3, 3...
34.388889
77
0.583199
49b6dd754564e68dae38a03815f713bb57286919
4,958
py
Python
JMDE/scripts/unpackClass.py
yarbroughw/JMDE
198a6bd3854d0b51998c7512765c5e6c23901648
[ "MIT" ]
1
2015-08-04T23:22:53.000Z
2015-08-04T23:22:53.000Z
JMDE/scripts/unpackClass.py
yarbroughw/JMDE
198a6bd3854d0b51998c7512765c5e6c23901648
[ "MIT" ]
3
2015-08-07T06:15:45.000Z
2015-08-15T05:12:34.000Z
JMDE/scripts/unpackClass.py
yarbroughw/ontologyproj
198a6bd3854d0b51998c7512765c5e6c23901648
[ "MIT" ]
null
null
null
''' takes dbpedia CSV class file and splits it into separate, cleaned entity files ''' from __future__ import print_function import json import csv import glob from itertools import count ontologyprefix = "http://dbpedia.org/ontology/" resourceprefix = "http://dbpedia.org/resource/" itemprefix = "http://www.w3.or...
29.86747
69
0.615571
db3a2bf39741a8b7f008ae419d2a1cdcacec977f
9,814
py
Python
reports/configs/only_logds_dmpnn4_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2021-10-18T03:44:53.000Z
2021-10-18T03:44:53.000Z
reports/configs/only_logds_dmpnn4_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
null
null
null
reports/configs/only_logds_dmpnn4_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2022-02-22T08:32:01.000Z
2022-02-22T08:32:01.000Z
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN4_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN4_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: """ Config for model1/2/3 run file. ...
44.008969
169
0.669757
6b85943d3878dee3ba60cc43d6bfc670d3c293e6
773
py
Python
Dataset/Leetcode/train/2/134.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/2/134.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/2/134.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, l1: ListNode, l2: ListNode) -> ListNode: ans = ListNode(0) node = ans lastnode = None while True: if not l1 and not l2: if node.val == 0: lastnode.next = None return ans if l1 an...
27.607143
58
0.38163
a0057275d901efdf1f16044a43243443707eecd0
129,606
py
Python
pandas/plotting/_core.py
kimsey0/pandas
7fafb356549f1c52a9896429ce0241487f42bea9
[ "BSD-3-Clause" ]
null
null
null
pandas/plotting/_core.py
kimsey0/pandas
7fafb356549f1c52a9896429ce0241487f42bea9
[ "BSD-3-Clause" ]
null
null
null
pandas/plotting/_core.py
kimsey0/pandas
7fafb356549f1c52a9896429ce0241487f42bea9
[ "BSD-3-Clause" ]
null
null
null
# being a bit too dynamic from collections import namedtuple import re from typing import List, Optional, Type import warnings import numpy as np from pandas._config import get_option from pandas.compat import lrange from pandas.errors import AbstractMethodError from pandas.util._decorators import Appender, cache_re...
35.606044
84
0.557883
acb68663901a1662fc8f7e996e8515259d2bd885
2,055
py
Python
src/command_modules/azure-cli-network/setup.py
noelbundick/azure-cli
b56636230e3fd3162b9b144f969175641dc230a8
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-network/setup.py
noelbundick/azure-cli
b56636230e3fd3162b9b144f969175641dc230a8
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-network/setup.py
noelbundick/azure-cli
b56636230e3fd3162b9b144f969175641dc230a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
32.109375
94
0.603893
9beb0ca3bf10bbeac168a78470d246a4f8efb35a
933
bzl
Python
build/test.bzl
ktprime/quiche-1
abf85ce22e1409a870b1bf470cb5a68cbdb28e50
[ "BSD-3-Clause" ]
null
null
null
build/test.bzl
ktprime/quiche-1
abf85ce22e1409a870b1bf470cb5a68cbdb28e50
[ "BSD-3-Clause" ]
null
null
null
build/test.bzl
ktprime/quiche-1
abf85ce22e1409a870b1bf470cb5a68cbdb28e50
[ "BSD-3-Clause" ]
null
null
null
"""Tools for building QUICHE tests.""" load("@bazel_skylib//lib:paths.bzl", "paths") def test_suite_from_source_list(name, srcs, **kwargs): """ Generates a test target for every individual test source file specified. Args: name: the name of the resulting test_suite target. srcs: the list ...
34.555556
99
0.647374
adc6027c9a744d04f2e4c92374e9d436a2fbda60
3,642
py
Python
st2common/st2common/util/greenpooldispatch.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
2
2021-08-04T01:04:06.000Z
2021-08-04T01:04:08.000Z
st2common/st2common/util/greenpooldispatch.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2022-03-31T03:53:22.000Z
2022-03-31T03:53:22.000Z
st2common/st2common/util/greenpooldispatch.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2019-10-11T14:42:28.000Z
2019-10-11T14:42:28.000Z
# Copyright 2019 Extreme Networks, Inc. # # 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 i...
37.546392
100
0.711148
a59828de93da069fd168af5f100521e3706399f6
1,753
py
Python
eva.py
Ashwin1934/eva
53c1172a0f8a7409cf0ef97efea957979a8290a0
[ "Apache-2.0" ]
1
2019-12-08T03:48:44.000Z
2019-12-08T03:48:44.000Z
eva.py
Ashwin1934/eva
53c1172a0f8a7409cf0ef97efea957979a8290a0
[ "Apache-2.0" ]
null
null
null
eva.py
Ashwin1934/eva
53c1172a0f8a7409cf0ef97efea957979a8290a0
[ "Apache-2.0" ]
1
2019-12-04T17:09:40.000Z
2019-12-04T17:09:40.000Z
# coding=utf-8 # Copyright 2018-2020 EVA # # 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 ...
31.872727
74
0.676554
e7359dd4de93861222dfee6c80a75b22e88ba56d
969
py
Python
grow/translators/translators.py
denmojo/pygrow
95d32eed8c13a6beb900effa4d18d9fe1e37d2b4
[ "MIT" ]
null
null
null
grow/translators/translators.py
denmojo/pygrow
95d32eed8c13a6beb900effa4d18d9fe1e37d2b4
[ "MIT" ]
null
null
null
grow/translators/translators.py
denmojo/pygrow
95d32eed8c13a6beb900effa4d18d9fe1e37d2b4
[ "MIT" ]
null
null
null
from . import google_translator_toolkit from grow.common import utils _kinds_to_classes = {} _builtins = ( google_translator_toolkit.GoogleTranslatorToolkitTranslator, ) def install_translator(translator): _kinds_to_classes[translator.KIND] = translator def install_builtins(): global _destination_kind...
27.685714
74
0.729618
bdcb8d1d2038561088859d056b6818ac7bf9c196
1,374
py
Python
AnalyzeDatabase.py
AdamRSterling/USS_StatsBot
c715fa2282eb3a2b9005096a642b08bbc92b1900
[ "MIT" ]
1
2015-01-04T02:12:27.000Z
2015-01-04T02:12:27.000Z
AnalyzeDatabase.py
AdamRSterling/USS_StatsBot
c715fa2282eb3a2b9005096a642b08bbc92b1900
[ "MIT" ]
null
null
null
AnalyzeDatabase.py
AdamRSterling/USS_StatsBot
c715fa2282eb3a2b9005096a642b08bbc92b1900
[ "MIT" ]
null
null
null
import unicodecsv import FileDetails import os from bokeh.charts import TimeSeries import datetime def analyze_databases(): analyze_USS_database() # analyze_channel_database() def analyze_USS_database(): file_path = FileDetails.DATA_DIR + '/' + FileDetails.USS_DATABASE_FILENAME if not os.path.exists(fi...
29.234043
82
0.684134
2fa205d163d1e9e7722cbe86305217b589d77d0d
2,439
py
Python
azkv/main.py
undp/azkv
8099380b6e1972f6f6c4982c2f1da87538fec24d
[ "MIT" ]
1
2021-05-23T17:20:38.000Z
2021-05-23T17:20:38.000Z
azkv/main.py
undp/azkv
8099380b6e1972f6f6c4982c2f1da87538fec24d
[ "MIT" ]
1
2020-10-20T02:57:08.000Z
2020-10-20T07:26:54.000Z
azkv/main.py
undp/azkv
8099380b6e1972f6f6c4982c2f1da87538fec24d
[ "MIT" ]
2
2021-05-23T17:20:44.000Z
2022-03-25T01:18:11.000Z
"""Main app module.""" from cement import App, TestApp, init_defaults from cement.core.exc import CaughtSignal from .controllers.base import Base from .controllers.keyvaults import Keyvaults from .controllers.secrets import Secrets from .core.exc import AzKVError from .core.hooks import extend_vault_creds, log_app_ver...
23.911765
79
0.586306
8b57a787b0b1b4a2208d9ee6b1acdef6b26dcac0
208,098
py
Python
lib/pwiki/customtreectrl.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
16
2015-02-05T17:32:04.000Z
2022-01-14T13:46:36.000Z
lib/pwiki/customtreectrl.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
8
2015-06-20T20:02:41.000Z
2016-02-23T14:52:32.000Z
lib/pwiki/customtreectrl.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
11
2015-05-19T09:17:16.000Z
2017-09-14T00:43:13.000Z
# --------------------------------------------------------------------------------- # # CUSTOMTREECTRL wxPython IMPLEMENTATION # Inspired By And Heavily Based On wxGenericTreeCtrl. # # Andrea Gavana, @ 17 May 2006 # Latest Revision: 16 Apr 2007, 11.00 CET # # # TODO List # # Almost All The Features Of wx.Tree...
34.305638
176
0.549462
958f3426c0591400e09c20a6c87ddc9089a3eb71
618
py
Python
part03/part03-e05_correlation/src/correlation.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
part03/part03-e05_correlation/src/correlation.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
part03/part03-e05_correlation/src/correlation.py
davide-butera/data-analysis-with-python
78ba3d3d060ddb305bfd84b9a122409c15c47006
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import scipy.stats import numpy as np def load2(): """This loads the data from the internet. Does not work well on the TMC server.""" import seaborn as sns return sns.load_dataset('iris').drop('species', axis=1).values def load(): import pandas as pd return pd.read_csv("sr...
21.310345
86
0.660194
6a53c5af61b07b29d543bbd1654cc8429660c496
13,059
py
Python
config/settings/base.py
bogolla/mfl_api
c5dff1857a94e1272d0663804c2339fa88cb7be3
[ "MIT" ]
null
null
null
config/settings/base.py
bogolla/mfl_api
c5dff1857a94e1272d0663804c2339fa88cb7be3
[ "MIT" ]
null
null
null
config/settings/base.py
bogolla/mfl_api
c5dff1857a94e1272d0663804c2339fa88cb7be3
[ "MIT" ]
1
2019-02-06T19:23:49.000Z
2019-02-06T19:23:49.000Z
import os import environ BASE_DIR = os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # Override in production via env env = environ.Env( DATABASE_URL=(str, 'postgres://mfl:mfl@localhost:5432/mfl'), DEBUG=(bool, True), FRONTEND_URL=(str, "http://localhost:8062"), REALT...
28.701099
83
0.536182
0ea010c743dbf9b5c6e3948920b4ac0cdc19ac0b
699
py
Python
pyspeechkit/tts.py
pystorage/pyspeechkit
6ce5c91dfccfadd0f6ab8e997cf26b3e3c8ac43f
[ "MIT" ]
1
2020-04-23T16:41:20.000Z
2020-04-23T16:41:20.000Z
pyspeechkit/tts.py
pystorage/pyspeechkit
6ce5c91dfccfadd0f6ab8e997cf26b3e3c8ac43f
[ "MIT" ]
null
null
null
pyspeechkit/tts.py
pystorage/pyspeechkit
6ce5c91dfccfadd0f6ab8e997cf26b3e3c8ac43f
[ "MIT" ]
null
null
null
from .api import API from .utils import create_voice_file class TTS(API): def __init__(self, oauth_token: str, folder_id: str): super().__init__(oauth_token) self.folder_id = folder_id def synthesize(self, **parameters: str): try: parameters.update({'folderId': ...
27.96
63
0.606581
7c6376fcc5e6bc6f7678b4c213d616413a8d52b0
1,440
py
Python
setup.py
OpenVoiceOS/ovos-bus
c170fc8acdfa78ceaf8483626dac45b6a791860d
[ "Apache-2.0" ]
null
null
null
setup.py
OpenVoiceOS/ovos-bus
c170fc8acdfa78ceaf8483626dac45b6a791860d
[ "Apache-2.0" ]
null
null
null
setup.py
OpenVoiceOS/ovos-bus
c170fc8acdfa78ceaf8483626dac45b6a791860d
[ "Apache-2.0" ]
null
null
null
# 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...
35.121951
92
0.697222
16e7f024ea6284c3ffcf0c05041191cdf8688c67
18,121
py
Python
project_automation/licenses/gnu2.py
Guigui14460/project-automation
98f9b73be2000b0ecb07b1cca758693c29032947
[ "Apache-2.0" ]
null
null
null
project_automation/licenses/gnu2.py
Guigui14460/project-automation
98f9b73be2000b0ecb07b1cca758693c29032947
[ "Apache-2.0" ]
2
2021-01-17T16:04:03.000Z
2021-08-13T13:00:49.000Z
project_automation/licenses/gnu2.py
Guigui14460/project-automation
98f9b73be2000b0ecb07b1cca758693c29032947
[ "Apache-2.0" ]
null
null
null
CONTENT = """ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but chan...
53.140762
77
0.785773
634efbe66a6f4ddc1f51c545036850c6482ca709
10,178
py
Python
api/python/SSDB.py
qwang2505/ssdb-source-comments
0ee33b7305656581190e2971f9185f612c258ea0
[ "BSD-3-Clause" ]
null
null
null
api/python/SSDB.py
qwang2505/ssdb-source-comments
0ee33b7305656581190e2971f9185f612c258ea0
[ "BSD-3-Clause" ]
null
null
null
api/python/SSDB.py
qwang2505/ssdb-source-comments
0ee33b7305656581190e2971f9185f612c258ea0
[ "BSD-3-Clause" ]
null
null
null
# encoding=utf-8 # Generated by cpy # 2015-04-15 20:07:01.541685 import os, sys from sys import stdin, stdout import socket class SSDB_Response(object): pass def __init__(this, code='', data_or_message=None): pass this.code = code this.data = None this.message = None if code=='ok': pass this.data ...
21.609342
812
0.524366
9228ef62976493d0b7958bdc07021a695d980bb1
1,887
py
Python
config/urls.py
abought/locuszoom-hosted
5cb635b18287d15610df0da6c85b477a3eaaaabb
[ "MIT" ]
null
null
null
config/urls.py
abought/locuszoom-hosted
5cb635b18287d15610df0da6c85b477a3eaaaabb
[ "MIT" ]
null
null
null
config/urls.py
abought/locuszoom-hosted
5cb635b18287d15610df0da6c85b477a3eaaaabb
[ "MIT" ]
null
null
null
from django.conf import settings from django.urls import include, path from django.conf.urls.static import static from django.contrib import admin from django.views import defaults as default_views from rest_framework.documentation import include_docs_urls from . import basic_views urlpatterns = [ path("", basic...
31.45
85
0.6354
0e1c7b9deb8e01c7ee06831d00dde92c8482143b
2,229
py
Python
examples/ad_manager/v201902/base_rate_service/create_product_template_base_rates.py
nlynch504/googleads-python-lib
8f7bd7f987498c4651c969a7dc73e1d5fc965be2
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201902/base_rate_service/create_product_template_base_rates.py
nlynch504/googleads-python-lib
8f7bd7f987498c4651c969a7dc73e1d5fc965be2
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201902/base_rate_service/create_product_template_base_rates.py
nlynch504/googleads-python-lib
8f7bd7f987498c4651c969a7dc73e1d5fc965be2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015 Google Inc. 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 requir...
33.772727
77
0.705698
38af833578d49c06a32edbf7663ddc6a1bc9ee05
20,084
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/consul.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/consul.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/consul.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # (c) 2015, Steve Gargan <steve.gargan@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', '...
34.868056
136
0.620345
3d0901302eca67449cd5b8e4e8da93f2e0fca26d
3,752
py
Python
velruse/providers/identica_.py
maparent/velruse
07c600afc6408ce7e5de1045b2bc8a682f3b3631
[ "MIT" ]
null
null
null
velruse/providers/identica_.py
maparent/velruse
07c600afc6408ce7e5de1045b2bc8a682f3b3631
[ "MIT" ]
null
null
null
velruse/providers/identica_.py
maparent/velruse
07c600afc6408ce7e5de1045b2bc8a682f3b3631
[ "MIT" ]
null
null
null
#XXX This module needs updating to use the patterns in e.g. the 'facebook' # provider. import urlparse from routes import Mapper import httplib2 import oauth2 as oauth import webob.exc as exc import velruse.utils as utils log = __import__('logging').getLogger(__name__) REQUEST_URL = 'https://identi.ca/api/oauth/...
38.680412
100
0.665778
421277f835132c156213a4565837357ef3e31441
113
py
Python
mmdet/version.py
FinalFlowers/pedestrian_tracking
8eb2c330f26a1cf030e535aa29a38288ff031f11
[ "MIT" ]
6
2020-05-21T07:33:48.000Z
2022-03-12T14:30:10.000Z
mmdet/version.py
FinalFlowers/pedestrian_tracking
8eb2c330f26a1cf030e535aa29a38288ff031f11
[ "MIT" ]
4
2020-10-10T13:23:35.000Z
2022-01-13T03:25:31.000Z
mmdet/version.py
FinalFlowers/pedestrian_tracking
8eb2c330f26a1cf030e535aa29a38288ff031f11
[ "MIT" ]
1
2020-09-25T04:08:45.000Z
2020-09-25T04:08:45.000Z
# GENERATED VERSION FILE # TIME: Tue May 5 22:34:46 2020 __version__ = '1.1.0+5cbe3a1' short_version = '1.1.0'
18.833333
32
0.690265
0233ca889667f61a88e6f5a1adfc8057a2011f90
103
py
Python
others/car/test3.py
dongmeng168/raspi_robot_car
893698cd8649ec7d51a4716f5acf415fe2f2d2f5
[ "BSD-2-Clause" ]
null
null
null
others/car/test3.py
dongmeng168/raspi_robot_car
893698cd8649ec7d51a4716f5acf415fe2f2d2f5
[ "BSD-2-Clause" ]
null
null
null
others/car/test3.py
dongmeng168/raspi_robot_car
893698cd8649ec7d51a4716f5acf415fe2f2d2f5
[ "BSD-2-Clause" ]
null
null
null
import wificar,time wc=wificar.WifiCar() for i in range(50): print wc.distance time.sleep(0.2)
10.3
20
0.699029
bfb6f0fd2818bbc2d76ee9d2ade34d12a18ef47f
1,603
py
Python
tcex/pleb/env_path.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/pleb/env_path.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/pleb/env_path.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
"""ENV Str""" # standard library import os import re from pathlib import Path from typing import Any, Dict, Union class _EnvPath(type(Path()), Path): # pylint: disable=E0241 """A stub of Path with additional attribute.""" # store for the original value passed to EnvPath original_value = None class Env...
29.685185
84
0.583281
3f87ad2df121561161142a648b2afc185ade6aa8
6,786
py
Python
pybt/position.py
izzudinhafiz/trade-ml
db5d263a9a9e4bf3376068977df23c4ba3679a0b
[ "MIT" ]
1
2021-03-12T13:39:36.000Z
2021-03-12T13:39:36.000Z
pybt/position.py
webclinic017/pybt
db5d263a9a9e4bf3376068977df23c4ba3679a0b
[ "MIT" ]
3
2021-01-12T17:52:55.000Z
2021-01-21T18:16:37.000Z
pybt/position.py
webclinic017/pybt
db5d263a9a9e4bf3376068977df23c4ba3679a0b
[ "MIT" ]
1
2021-11-08T02:51:07.000Z
2021-11-08T02:51:07.000Z
from pybt.commons import Money from pybt.commons.helper import get_caller import inspect import warnings class Position: commission_rate = 0.01 def __init__(self, portfolio): self.portfolio = portfolio self.debug_mode = self.portfolio.debug_mode self.symbol = None self.size = ...
39.453488
163
0.62349
b0c51a6c48c089459a20d5d037d8a6e11e732ed8
951
py
Python
data/hhess_full_2nm/prediction_inputr2.py
DerThorsten/pc
41d7474ceff8de7b95be5d4fbc42a40e89799e34
[ "MIT" ]
null
null
null
data/hhess_full_2nm/prediction_inputr2.py
DerThorsten/pc
41d7474ceff8de7b95be5d4fbc42a40e89799e34
[ "MIT" ]
null
null
null
data/hhess_full_2nm/prediction_inputr2.py
DerThorsten/pc
41d7474ceff8de7b95be5d4fbc42a40e89799e34
[ "MIT" ]
null
null
null
predictionSettingsDict = { "predictionInput" : { "hhess" : { "data":{ "raw" : { "file" : [ "/home/tbeier/raw_sub.h5", "data" ] }, "pmap" : { ...
28.818182
116
0.345952
1bbf400a8b5568ff33e8101db7d96e0b17af8885
2,637
bzl
Python
go/private/rules/wrappers.bzl
hiro511/rules_go
a9a8548ceb9abdd7293df1a77e3917238ddfdccd
[ "Apache-2.0" ]
null
null
null
go/private/rules/wrappers.bzl
hiro511/rules_go
a9a8548ceb9abdd7293df1a77e3917238ddfdccd
[ "Apache-2.0" ]
null
null
null
go/private/rules/wrappers.bzl
hiro511/rules_go
a9a8548ceb9abdd7293df1a77e3917238ddfdccd
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Bazel 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 applicable la...
37.140845
138
0.712552
1b77bacb5b5171916c0a1302185e4c5ac6d6bd90
2,532
py
Python
test_image_augmentation.py
vonholst/traq-deep-learning2
9191363091ce9c304022e00ff168868d31fb42b9
[ "MIT" ]
null
null
null
test_image_augmentation.py
vonholst/traq-deep-learning2
9191363091ce9c304022e00ff168868d31fb42b9
[ "MIT" ]
null
null
null
test_image_augmentation.py
vonholst/traq-deep-learning2
9191363091ce9c304022e00ff168868d31fb42b9
[ "MIT" ]
null
null
null
from preprocessing import BatchGenerator, parse_annotation from backend import MobileNetFeature import json import cv2 import numpy as np import matplotlib.pyplot as plt with open("config.json") as config_buffer: config = json.loads(config_buffer.read()) train_imgs, train_labels = parse_annotation(config['train']...
31.259259
120
0.545024
db87f88648144ccb3b21a98635080936846adbe3
945
py
Python
src/app/migrations/0033_auto_20190708_2016.py
deadlock-delegate/arkdelegates
8a5262f51b519ba3bc10094756c8866fc550df65
[ "MIT" ]
2
2018-05-22T13:47:09.000Z
2018-05-23T12:45:05.000Z
src/app/migrations/0033_auto_20190708_2016.py
deadlock-delegate/arkdelegates
8a5262f51b519ba3bc10094756c8866fc550df65
[ "MIT" ]
21
2018-05-08T12:56:46.000Z
2020-06-05T18:59:38.000Z
src/app/migrations/0033_auto_20190708_2016.py
deadlock-delegate/arkdelegates
8a5262f51b519ba3bc10094756c8866fc550df65
[ "MIT" ]
4
2018-05-04T15:00:59.000Z
2019-02-13T02:39:07.000Z
# Generated by Django 2.2.2 on 2019-07-08 20:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0032_auto_20190708_1932'), ] operations = [ migrations.AlterModelOptions( name='delegate', options={'permissi...
28.636364
101
0.596825
3ce8ad1c73402d628c21dd86a073c7a635e98ecf
486
py
Python
jquant/config/__init__.py
thlynn/Jquant
44d9f36a8b06d9f7cc8870258360d3fed3e27cae
[ "MIT" ]
null
null
null
jquant/config/__init__.py
thlynn/Jquant
44d9f36a8b06d9f7cc8870258360d3fed3e27cae
[ "MIT" ]
8
2020-03-31T03:27:28.000Z
2020-03-31T03:51:28.000Z
jquant/config/__init__.py
thlynn/Jquant
44d9f36a8b06d9f7cc8870258360d3fed3e27cae
[ "MIT" ]
null
null
null
import configparser import os class Keys: def __init__(self): self.config = configparser.ConfigParser() self.config.read(os.path.dirname(os.path.abspath(__file__)) + '/key.ini', encoding='utf-8') def get_key(self, name): access_key = self.config[name]['ACCESS_KEY'] secret_key...
25.578947
99
0.646091
42b325bd1446fcc90111131b5b0f449956c2f273
26,668
py
Python
django/test/client.py
vincepandolfo/django
67cf5efa31acb2916034afb15610b700695dfcb0
[ "PSF-2.0", "BSD-3-Clause" ]
1
2017-01-11T06:27:15.000Z
2017-01-11T06:27:15.000Z
django/test/client.py
vincepandolfo/django
67cf5efa31acb2916034afb15610b700695dfcb0
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/test/client.py
vincepandolfo/django
67cf5efa31acb2916034afb15610b700695dfcb0
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import json import mimetypes import os import re import sys from copy import copy from importlib import import_module from io import BytesIO from django.apps import apps from django.conf import settings from django.core.handlers.base import BaseHandler from django.core.handlers...
38.316092
112
0.606607
0cd699a785ea53f97ebd67455b27c3ad2e9d8764
3,164
py
Python
audioguide/routebuilder/tests.py
daveclifton/audioguide
cb23e5f5f022d8bc86bd23e0361a07accf727341
[ "MIT" ]
null
null
null
audioguide/routebuilder/tests.py
daveclifton/audioguide
cb23e5f5f022d8bc86bd23e0361a07accf727341
[ "MIT" ]
null
null
null
audioguide/routebuilder/tests.py
daveclifton/audioguide
cb23e5f5f022d8bc86bd23e0361a07accf727341
[ "MIT" ]
null
null
null
import datetime from django.utils import timezone from django.test import TestCase from django.core.urlresolvers import reverse from .models import * class ReverseUrlTests(TestCase): def test_reverse_url(self): self.assertEqual( reverse('index'), "/routebuilder/" ) def test_re...
37.666667
100
0.676991
c0c50146890830978ab1d51b0e4d2bc5fc60aeca
965
py
Python
questionnaire/urls.py
affan2/ed-questionnaire
d210b5784c30c238dd17a351ace8848025fff936
[ "BSD-3-Clause" ]
null
null
null
questionnaire/urls.py
affan2/ed-questionnaire
d210b5784c30c238dd17a351ace8848025fff936
[ "BSD-3-Clause" ]
null
null
null
questionnaire/urls.py
affan2/ed-questionnaire
d210b5784c30c238dd17a351ace8848025fff936
[ "BSD-3-Clause" ]
1
2020-01-08T09:08:12.000Z
2020-01-08T09:08:12.000Z
# vim: set fileencoding=utf-8 from django.conf.urls import patterns, url from views import questionnaire, export_csv, get_async_progress, use_session, redirect_to_prev_questionnaire urlpatterns = patterns( '', url(r'^$', questionnaire, name='questionnaire_noargs'), url(r'^csv/(?P<qid>\d+)/(?P<onl...
28.382353
108
0.587565
bfe65e04c281479a75fbae37521f244718e2a910
1,804
py
Python
setup.py
jaryP/ContinualAI
7d9b7614066d219ebd72049692da23ad6ec132b0
[ "MIT" ]
null
null
null
setup.py
jaryP/ContinualAI
7d9b7614066d219ebd72049692da23ad6ec132b0
[ "MIT" ]
null
null
null
setup.py
jaryP/ContinualAI
7d9b7614066d219ebd72049692da23ad6ec132b0
[ "MIT" ]
null
null
null
import os import setuptools import codecs def read(rel_path): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, rel_path), 'r') as fp: return fp.read() def get_version(rel_path): print(rel_path) for line in read(rel_path).splitlines(): if line.sta...
29.096774
92
0.640798
461b16ea59f595be8d448442b5da0dff45df3d59
106,683
py
Python
FusionIIIT/applications/eis/views.py
ssaksham9/Fusion
f1e405b457dba399411a2ddb79a9068746c05057
[ "bzip2-1.0.6" ]
2
2020-01-24T16:34:54.000Z
2020-08-01T05:09:24.000Z
FusionIIIT/applications/eis/views.py
ssaksham9/Fusion
f1e405b457dba399411a2ddb79a9068746c05057
[ "bzip2-1.0.6" ]
null
null
null
FusionIIIT/applications/eis/views.py
ssaksham9/Fusion
f1e405b457dba399411a2ddb79a9068746c05057
[ "bzip2-1.0.6" ]
5
2020-01-21T11:27:06.000Z
2020-02-07T13:53:49.000Z
import csv from cgi import escape from io import BytesIO from django.contrib.auth.models import User from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import (get_object_or_404, redirect, render, render_to_response) from django.template import loader from dj...
35.87189
182
0.520645
a32f4da1f9b1689cca2d18bb438fe08e642adc1c
14,560
py
Python
acq4/devices/MockCamera/mock_camera.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/devices/MockCamera/mock_camera.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/devices/MockCamera/mock_camera.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import with_statement from acq4.devices.Camera import Camera, CameraTask from acq4.util import Qt import six from six.moves import range import time, sys, traceback import acq4.util.ptime as ptime from acq4.util.Mutex import Mutex from acq4.u...
36.860759
159
0.495536
eb4d1b093256384ce66a5b5a202ee0f8bfc64c8a
3,486
py
Python
bindings/python/ensmallen/datasets/string/helicobactermuridarum.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/helicobactermuridarum.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/helicobactermuridarum.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Helicobacter muridarum. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein...
33.2
223
0.679002
504bbd7c3e47a9eadb3d8fcd7e14476065c11d37
21,454
py
Python
ece2cmor3/postproc.py
EC-Earth/ece2cmor3
8df8584563d16827785d0f31e58316ba3aebba96
[ "Apache-2.0" ]
9
2018-11-09T11:28:50.000Z
2022-01-17T21:28:33.000Z
ece2cmor3/postproc.py
EC-Earth/ece2cmor3
8df8584563d16827785d0f31e58316ba3aebba96
[ "Apache-2.0" ]
502
2018-05-11T11:14:15.000Z
2022-03-30T10:04:37.000Z
ece2cmor3/postproc.py
EC-Earth/ece2cmor3
8df8584563d16827785d0f31e58316ba3aebba96
[ "Apache-2.0" ]
4
2019-01-21T13:11:19.000Z
2022-03-31T13:22:32.000Z
import logging import threading import re import Queue import os from ece2cmor3 import cmor_task import grib_file import cdoapi import cmor_source import cmor_target # Log object log = logging.getLogger(__name__) # Threading parameters cdo_threads = 4 # Flags to control whether to execute cdo. skip = 1 append = 2 ...
51.080952
120
0.649856
d3cfd1faedfc4fe51ceadd6272e31a25fd66d037
23,786
py
Python
tests/wallet/cc_wallet/test_cc_wallet.py
CallMeBrado/cunt-blockchain
9b140b7e5541f3baffabe02a55b75d9aeb889999
[ "Apache-2.0" ]
7
2021-08-09T19:01:51.000Z
2021-12-09T04:32:09.000Z
tests/wallet/cc_wallet/test_cc_wallet.py
CallMeBrado/cunt-blockchain
9b140b7e5541f3baffabe02a55b75d9aeb889999
[ "Apache-2.0" ]
22
2021-08-17T04:12:11.000Z
2022-03-29T04:10:38.000Z
tests/wallet/cc_wallet/test_cc_wallet.py
CallMeBrado/cunt-blockchain
9b140b7e5541f3baffabe02a55b75d9aeb889999
[ "Apache-2.0" ]
4
2021-09-05T12:04:51.000Z
2022-03-15T08:44:32.000Z
import asyncio from typing import List import pytest from cunt.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward from cunt.full_node.mempool_manager import MempoolManager from cunt.simulator.simulator_protocol import FarmNewBlockProtocol from cunt.types.blockchain_format.coin import C...
43.247273
120
0.701715
031f580fa9b928ecaa058cf3731b1f0f7a510ce7
18,004
py
Python
Software/STNeuroNet/application_driver.py
looooongChen/STNeuroNet
6537096d8b2c05858320703418e2a3e2897be928
[ "Apache-2.0" ]
1
2019-09-10T21:28:25.000Z
2019-09-10T21:28:25.000Z
Software/STNeuroNet/application_driver.py
looooongChen/STNeuroNet
6537096d8b2c05858320703418e2a3e2897be928
[ "Apache-2.0" ]
null
null
null
Software/STNeuroNet/application_driver.py
looooongChen/STNeuroNet
6537096d8b2c05858320703418e2a3e2897be928
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This module defines a general procedure for running applications Example usage: app_driver = ApplicationDriver() app_driver.initialise_application(system_param, input_data_param) app_driver.run_application() system_param and input_data_param should be generated using: niftynet.u...
41.293578
79
0.612142
203cba017e9464fdeee0e4647c552ae7f9d28d68
1,477
py
Python
redisext/queue.py
mylokin/redisext
b49c2699183d795ec462f0288bb3fb7110936a89
[ "MIT" ]
null
null
null
redisext/queue.py
mylokin/redisext
b49c2699183d795ec462f0288bb3fb7110936a89
[ "MIT" ]
5
2015-02-15T11:03:29.000Z
2018-03-05T19:11:20.000Z
redisext/queue.py
mylokin/redisext
b49c2699183d795ec462f0288bb3fb7110936a89
[ "MIT" ]
2
2018-03-05T19:06:34.000Z
2020-07-01T09:18:40.000Z
from __future__ import absolute_import import redisext.models.abc class Queue(redisext.models.abc.Model): def pop(self): ''' Pop item from queue. :returns: item from queue ''' item = self.connect_to_master().rpop(self.key) return self.decode(item) def push(se...
24.213115
67
0.570752
7a4d36333dd35763c1d629a72391c50412b63ebb
18,648
py
Python
dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/numpy/core/tests/test_half.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
145
2017-01-19T23:33:03.000Z
2021-06-05T05:34:55.000Z
dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/numpy/core/tests/test_half.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
17
2017-02-03T20:51:39.000Z
2020-05-21T11:33:52.000Z
dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/numpy/core/tests/test_half.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
44
2017-02-04T19:40:03.000Z
2020-10-01T19:24:19.000Z
from __future__ import division, absolute_import, print_function import platform import numpy as np from numpy import uint16, float16, float32, float64 from numpy.testing import TestCase, run_module_suite, assert_, assert_equal, \ dec def assert_raises_fpe(strmatch, callable, *args, **kwargs): try: ...
42.47836
90
0.5429
824032d999f4f646f18c1336ba8d22774a338d9c
2,654
py
Python
pycharm2020.1.3/script/server_entity/LoadReporter.py
LaudateCorpus1/realtime-server
25cb1d92dff3eb820e7a38d427538c0397199675
[ "MIT" ]
465
2018-06-21T02:50:56.000Z
2022-03-27T11:51:46.000Z
pycharm2020.1.3/script/server_entity/LoadReporter.py
Dango1992/realtime-server
25cb1d92dff3eb820e7a38d427538c0397199675
[ "MIT" ]
8
2018-08-09T09:25:00.000Z
2022-03-10T14:54:51.000Z
pycharm2020.1.3/script/server_entity/LoadReporter.py
Dango1992/realtime-server
25cb1d92dff3eb820e7a38d427538c0397199675
[ "MIT" ]
113
2018-06-25T01:42:20.000Z
2022-03-23T11:27:56.000Z
import random from RpcHandler import rpc_func from common import service_const, gv # from common.service_const import ETCD_TAG_DISPATCHER_SERVICE from core.util import UtilApi from core.util.UtilApi import Singleton from core.util.performance.cpu_load_handler import AvgCpuLoad from server_entity.ServerEntity import Se...
43.508197
110
0.680482
8b1fc7beb00f3030d5763cd013104bd93ef5fc4d
716
py
Python
ex099.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
1
2021-11-23T21:41:25.000Z
2021-11-23T21:41:25.000Z
ex099.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
ex099.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
# Faça um programa que tenha uma função chamada maior(), que receba vários parâmetros com valores inteiros. # Seu programa tem que analisar todos os valores e dizer qual deles é o maior. from time import sleep def maior(*num): cont = bigger = 0 print('=-' * 30) print('Analisando os valores passados...') ...
22.375
107
0.606145
103c310c77dd7142644cfbf0ad38e18eb52a189f
22,448
py
Python
phi/math/backend/_profile.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
556
2019-12-04T16:48:54.000Z
2022-03-31T16:31:59.000Z
phi/math/backend/_profile.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
26
2019-12-12T16:54:06.000Z
2022-03-14T19:44:36.000Z
phi/math/backend/_profile.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
93
2019-12-08T14:38:27.000Z
2022-03-29T16:38:37.000Z
import inspect import json from contextlib import contextmanager from time import perf_counter from typing import Optional, Callable from ._backend import Backend, BACKENDS, _DEFAULT class BackendCall: def __init__(self, start: float, stop: float, backend: 'ProfilingBackend', function_name): self._start...
39.801418
252
0.595599
ae0574762077630d502f1dce7dff5ac51655520c
3,714
py
Python
geninv.py
manticode/wow-inventory-offline
5d0e1cb4ce8344522188b102be0f1be6491f9813
[ "Apache-2.0" ]
1
2021-06-07T15:36:36.000Z
2021-06-07T15:36:36.000Z
geninv.py
manticode/wow-inventory-offline
5d0e1cb4ce8344522188b102be0f1be6491f9813
[ "Apache-2.0" ]
null
null
null
geninv.py
manticode/wow-inventory-offline
5d0e1cb4ce8344522188b102be0f1be6491f9813
[ "Apache-2.0" ]
null
null
null
import argparse import re import csv from slpp import slpp as lua def prerun(): """ Check input args are valid. """ argparser = argparse.ArgumentParser(description="Inventory database file.") argparser.add_argument("-i", help="the lua datafile", dest="infilename") argparser.add_argument("-o", help="Ou...
38.28866
117
0.687668
04cbd8c73c9161c901ae2c415a2a602d9f2c0fa0
567
py
Python
2.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
2.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
2.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
# # Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: # # 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... # # By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued ter...
23.625
142
0.638448
303a078cc9697f943d9468e24217a221244dad88
11,022
py
Python
test-src/gen-ovs-info.py
call518/virtual-network-visualizer
dfa10c249768a82125e901f2c3357e0278b8b4ea
[ "Apache-2.0" ]
3
2019-04-02T14:22:26.000Z
2021-03-16T06:52:54.000Z
test-src/gen-ovs-info.py
call518/OpenStack-Network-Visualizer
dfa10c249768a82125e901f2c3357e0278b8b4ea
[ "Apache-2.0" ]
null
null
null
test-src/gen-ovs-info.py
call518/OpenStack-Network-Visualizer
dfa10c249768a82125e901f2c3357e0278b8b4ea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- mode:python; coding:utf-8 -*- import paramiko import time import sys import json import socket import networkx as nx import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import pandas as pd def exec_ssh(ssh_hostname, ssh_cmd): SSH_USERNAME = "root" SSH_PASSWORD = "pas...
37.746575
171
0.721829
3784efafee0beb9eca270def82573cfe3464f358
6,485
py
Python
timeout_decorator/timeout_decorator.py
woipot/timeout-decorator
0a707dab52b5711eb8cea18afc9441b38f6e07fd
[ "MIT" ]
null
null
null
timeout_decorator/timeout_decorator.py
woipot/timeout-decorator
0a707dab52b5711eb8cea18afc9441b38f6e07fd
[ "MIT" ]
null
null
null
timeout_decorator/timeout_decorator.py
woipot/timeout-decorator
0a707dab52b5711eb8cea18afc9441b38f6e07fd
[ "MIT" ]
null
null
null
""" Timeout decorator. :copyright: (c) 2012-2013 by PN. :license: MIT, see LICENSE for more details. """ from __future__ import print_function from __future__ import unicode_literals from __future__ import division import sys import time import multiprocessing import signal from functools import wraps #####...
36.432584
118
0.638551
220cf547f0f0491a2f74b9ce8738039febb777bb
2,092
py
Python
monasca_api/v2/reference/versions.py
swen-ttc/monasca_api
dae51730fc887b862a7a7e1b51b9ac7190584dcf
[ "Apache-2.0" ]
null
null
null
monasca_api/v2/reference/versions.py
swen-ttc/monasca_api
dae51730fc887b862a7a7e1b51b9ac7190584dcf
[ "Apache-2.0" ]
null
null
null
monasca_api/v2/reference/versions.py
swen-ttc/monasca_api
dae51730fc887b862a7a7e1b51b9ac7190584dcf
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Hewlett-Packard # # 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, ...
32.184615
94
0.580784
4516e376795f887baedceadbfbf96ae2b80ae773
8,372
py
Python
third_party/BraTS2018_tumor/train.py
zwxu064/RANP
92135583e0ced21fa5634823b289c5aea366de21
[ "MIT" ]
9
2020-11-17T08:44:55.000Z
2022-02-14T12:02:32.000Z
third_party/BraTS2018_tumor/train.py
zwxu064/RANP
92135583e0ced21fa5634823b289c5aea366de21
[ "MIT" ]
null
null
null
third_party/BraTS2018_tumor/train.py
zwxu064/RANP
92135583e0ced21fa5634823b289c5aea366de21
[ "MIT" ]
1
2021-03-17T02:34:12.000Z
2021-03-17T02:34:12.000Z
import argparse import os import shutil import time import logging import random import torch import torch.nn.functional as F import torch.backends.cudnn as cudnn import torch.optim from torch.utils.data import DataLoader cudnn.benchmark = True import numpy as np import models from models import criterions from data...
36.086207
125
0.634496
0330bd09d3a297ed0c7910e21e972c3fe53af434
2,525
py
Python
kafka/cruise-control/cruise-control-client/cruisecontrolclient/client/CCParameter/PositiveIntegerParameter.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/client/CCParameter/PositiveIntegerParameter.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
93
2019-07-18T20:04:31.000Z
2021-04-03T01:02:01.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/client/CCParameter/PositiveIntegerParameter.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
from cruisecontrolclient.client.CCParameter.Parameter import AbstractParameter class AbstractPositiveIntegerParameter(AbstractParameter): def __init__(self, value: int): AbstractParameter.__init__(self, value) def validate_value(self): if type(self.value) != int: raise ValueError(...
40.079365
102
0.709307
e94d42fb8f8db7b361a557a5fb488e243fbf6a08
5,238
py
Python
dex-net/src/dexnet/visualization/visualizer2d.py
peter0749/PointNetGPD
5e2be543057657f1faaef87e80074d392823e5df
[ "MIT" ]
193
2018-11-02T20:37:18.000Z
2022-03-18T05:11:16.000Z
dex-net/src/dexnet/visualization/visualizer2d.py
peter0749/PointNetGPD
5e2be543057657f1faaef87e80074d392823e5df
[ "MIT" ]
48
2019-02-14T01:44:10.000Z
2022-03-20T08:35:16.000Z
dex-net/src/dexnet/visualization/visualizer2d.py
peter0749/PointNetGPD
5e2be543057657f1faaef87e80074d392823e5df
[ "MIT" ]
65
2018-11-04T05:13:46.000Z
2022-02-09T13:08:55.000Z
# -*- coding: utf-8 -*- """ Copyright ©2017. The Regents of the University of California (Regents). All Rights Reserved. Permission to use, copy, modify, and distribute this software and its documentation for educational, research, and not-for-profit purposes, without fee and without a signed licensing agreement, is he...
42.934426
110
0.655212
649ee74e6feec0840c517ef1bc181dad34cecedf
21,095
py
Python
fhirbug/Fhir/Resources/valueset.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
8
2019-01-06T18:11:20.000Z
2022-02-24T02:06:55.000Z
fhirbug/Fhir/Resources/valueset.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
5
2019-01-25T14:15:35.000Z
2021-06-01T23:22:41.000Z
fhirbug/Fhir/Resources/valueset.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
3
2020-10-14T23:09:29.000Z
2021-08-09T19:27:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ValueSet) on 2019-01-25. # 2019, SMART Health IT. ## from . import domainresource class ValueSet(domainresource.DomainResource): """ A set of codes drawn from one or more code systems...
37.204586
114
0.627826
adcb6caf86db69c14dc99f4220ce97ea60157a09
15,291
py
Python
grr/client/grr_response_client/vfs_handlers/sleuthkit.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
1
2020-06-25T14:25:51.000Z
2020-06-25T14:25:51.000Z
grr/client/grr_response_client/vfs_handlers/sleuthkit.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
3
2020-06-18T15:33:21.000Z
2022-03-02T08:51:18.000Z
grr/client/grr_response_client/vfs_handlers/sleuthkit.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
1
2020-06-25T14:25:54.000Z
2020-06-25T14:25:54.000Z
#!/usr/bin/env python # Lint as: python3 """Implement low level disk access using the sleuthkit.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import logging import stat from typing import Text import pytsk3 from grr_response_client import client_ut...
35.314088
80
0.68197
e9befac2eb34a2f0cb8c4d6e4f5c274c4304ee9e
42,801
py
Python
src/sage/combinat/root_system/pieri_factors.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/combinat/root_system/pieri_factors.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/combinat/root_system/pieri_factors.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
r""" Pieri Factors """ # **************************************************************************** # Copyright (C) 2009-2010 Steven Pon <spon at math.ucdavis.edu> # Anne Schilling < anne at math.ucdavis.edu> # Nicolas M. Thiery <nthiery at users.sf.net> # # Distrib...
37.348168
196
0.572674
e4de6e264c985eb4695d1f9c17c31e9517aa55ad
835
py
Python
scripts/ooki-token/ooki-migration/stop-farming-deploy-migrator-polygon.py
bZxNetwork/contractsV2
e249e73ae6618593633d474236c3a2d45c394ad5
[ "Apache-2.0" ]
177
2020-06-13T01:41:04.000Z
2022-03-28T06:26:53.000Z
scripts/ooki-token/ooki-migration/stop-farming-deploy-migrator-polygon.py
MitchellTesla/contractsV2
dea0fa3b86bd14616b98f72aa5233e71f7334a63
[ "Apache-2.0" ]
31
2020-08-14T14:30:37.000Z
2022-03-15T15:36:25.000Z
scripts/ooki-token/ooki-migration/stop-farming-deploy-migrator-polygon.py
MitchellTesla/contractsV2
dea0fa3b86bd14616b98f72aa5233e71f7334a63
[ "Apache-2.0" ]
38
2020-06-24T22:24:40.000Z
2022-03-26T00:27:14.000Z
exec(open("./scripts/env/set-matic.py").read()) deployer = CHEF.owner(); masterChefProxy = Contract.from_abi("masterChefProxy", address=CHEF, abi=Proxy.abi) masterChefImpl = MasterChef_Polygon.deploy({'from': deployer}) masterChefProxy.replaceImplementation(masterChefImpl, {'from': deployer}) CHEF.setInitialAltRewards...
32.115385
111
0.735329
417f1473ccefecb5baa2651d74ca337f7e5d22ca
360
py
Python
examples/text-classification/run_ipython_with_args.py
mithunpaul08/transformers
55d5e0a1d88f0922dc2af3be140e077850c66fee
[ "Apache-2.0" ]
null
null
null
examples/text-classification/run_ipython_with_args.py
mithunpaul08/transformers
55d5e0a1d88f0922dc2af3be140e077850c66fee
[ "Apache-2.0" ]
null
null
null
examples/text-classification/run_ipython_with_args.py
mithunpaul08/transformers
55d5e0a1d88f0922dc2af3be140e077850c66fee
[ "Apache-2.0" ]
null
null
null
import sys,os IPYNB_FILENAME = 'load_trained_model_visualize_student_teacher_delex.ipynb' CONFIG_FILENAME = 'x.config_ipynb' def main(argv): with open(CONFIG_FILENAME,'w') as f: f.write(' '.join(argv)) os.system('jupyter nbconvert --execute {:s} --to html'.format(IPYNB_FILENAME)) return None if __...
30
82
0.713889
6c4f13c5749d14ffd8979d0de9b4339d69718bf3
7,723
py
Python
python/test/grammar_translator/kernelgen/testAdaptiveCufKernel.py
ROCmSoftwarePlatform/gpufort
b3d392cf28200cd9b3b2f77689d5a81176b3ec42
[ "MIT" ]
57
2021-10-04T19:52:55.000Z
2022-03-29T17:41:36.000Z
python/test/grammar_translator/kernelgen/testAdaptiveCufKernel.py
mjklemm/gpufort
b3d392cf28200cd9b3b2f77689d5a81176b3ec42
[ "MIT" ]
12
2021-09-29T11:32:59.000Z
2021-12-09T11:39:54.000Z
python/test/grammar_translator/kernelgen/testAdaptiveCufKernel.py
ROCmSoftwarePlatform/gpufort
b3d392cf28200cd9b3b2f77689d5a81176b3ec42
[ "MIT" ]
5
2021-10-05T06:16:28.000Z
2022-02-24T14:32:24.000Z
#!/usr/bin/env python3 # SPDX-License-Identifier: MIT # Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. import addtoplevelpath import translator.translator as translator testdata = [] testdata.append("""!$cuf kernel do(3) DO ibnd = 1, n_starting_atomic_wfc ! ...
41.299465
139
0.454357
6f62bda7307f0700e9827c89348978655676d281
146
py
Python
cursoemvideo/python3_mundo1/aula_06/ex003.py
Tiago-Baptista/CursoEmVideo_Python3
381044e66594362a3767a776530c2ba7dc02dcf2
[ "MIT" ]
null
null
null
cursoemvideo/python3_mundo1/aula_06/ex003.py
Tiago-Baptista/CursoEmVideo_Python3
381044e66594362a3767a776530c2ba7dc02dcf2
[ "MIT" ]
null
null
null
cursoemvideo/python3_mundo1/aula_06/ex003.py
Tiago-Baptista/CursoEmVideo_Python3
381044e66594362a3767a776530c2ba7dc02dcf2
[ "MIT" ]
null
null
null
n1 = int(input('Digite um valor')) n2 = int(input('Digite outro valor')) s = n1 + n2 print('A soma entre {} e {} é igual a {}'.format(n1, n2, s))
29.2
60
0.60274
f65467899dcd76a8c51156f0e38d1cb706be979a
2,321
py
Python
project/etl_job/etl.py
JinglinLi/tweet_posting_slackbot
cf9ef1e004093c00a09f4451f89f397459d1f7a0
[ "MIT" ]
null
null
null
project/etl_job/etl.py
JinglinLi/tweet_posting_slackbot
cf9ef1e004093c00a09f4451f89f397459d1f7a0
[ "MIT" ]
null
null
null
project/etl_job/etl.py
JinglinLi/tweet_posting_slackbot
cf9ef1e004093c00a09f4451f89f397459d1f7a0
[ "MIT" ]
null
null
null
import pymongo import time from sqlalchemy import create_engine import pandas as pd import logging from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer # wait until tweets were all collected and writen in MongoDB before starting etl job time.sleep(120) # seconds #----- extract data from MongoDB ----...
36.265625
108
0.673417
997bd754ee89b890260a01e1bafc8b2049478991
7,935
py
Python
yt/frontends/owls_subfind/io.py
munkm/yt
9c92deaa53459762cb35025bdc8b9048a9faac31
[ "BSD-3-Clause-Clear" ]
1
2021-09-15T08:17:43.000Z
2021-09-15T08:17:43.000Z
yt/frontends/owls_subfind/io.py
munkm/yt
9c92deaa53459762cb35025bdc8b9048a9faac31
[ "BSD-3-Clause-Clear" ]
2
2021-09-15T16:10:39.000Z
2021-09-16T14:23:31.000Z
yt/frontends/owls_subfind/io.py
stonnes/yt
aad3cfa3b4ebab7838352ab467275a27c26ff363
[ "BSD-3-Clause-Clear" ]
1
2021-04-21T07:01:51.000Z
2021-04-21T07:01:51.000Z
import numpy as np from yt.funcs import mylog from yt.utilities.io_handler import BaseIOHandler from yt.utilities.on_demand_imports import _h5py as h5py class IOHandlerOWLSSubfindHDF5(BaseIOHandler): _dataset_type = "subfind_hdf5" def __init__(self, ds): super().__init__(ds) self.offset_fiel...
44.578652
86
0.495778
75bbb43361a8ed1571419eb2d324d98ac5ab417b
765
py
Python
server/server/challenges/views.py
Vector35/csaw-2019-pwny-race
28f2f0a9f9cdc037756fd4223852970d83bd171e
[ "MIT" ]
13
2019-11-08T04:26:44.000Z
2020-01-24T14:29:09.000Z
server/server/challenges/views.py
Vector35/csaw-2019-pwny-race
28f2f0a9f9cdc037756fd4223852970d83bd171e
[ "MIT" ]
null
null
null
server/server/challenges/views.py
Vector35/csaw-2019-pwny-race
28f2f0a9f9cdc037756fd4223852970d83bd171e
[ "MIT" ]
1
2019-12-03T15:47:19.000Z
2019-12-03T15:47:19.000Z
from django.http import HttpResponse from django.shortcuts import render from django.views import generic from django.utils import timezone from .models import Challenge def index(request): return render(request, "index.html", ) def challenge_list(request): challenges = Challenge.objects.filter(release_datet...
31.875
104
0.738562
6c697420687e0cb101f53dfc6a430fb50d84c02d
1,419
py
Python
src/mender/scripts/runner.py
lluiscampos/mender-python-client
67b35fa13c4f01a8b2a990c95b65eacfee7879e3
[ "Apache-2.0" ]
null
null
null
src/mender/scripts/runner.py
lluiscampos/mender-python-client
67b35fa13c4f01a8b2a990c95b65eacfee7879e3
[ "Apache-2.0" ]
null
null
null
src/mender/scripts/runner.py
lluiscampos/mender-python-client
67b35fa13c4f01a8b2a990c95b65eacfee7879e3
[ "Apache-2.0" ]
1
2020-12-16T15:05:53.000Z
2020-12-16T15:05:53.000Z
# Copyright 2020 Northern.tech AS # # 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 ag...
37.342105
84
0.675123
888f5fced24763d5415a9933bc9c1cb308d40f95
4,208
py
Python
simscale_sdk/models/fixed_gradient_evbc.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/fixed_gradient_evbc.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/fixed_gradient_evbc.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class FixedGradientEVBC(object): """NOTE: This class is auto generate...
28.432432
106
0.586027
737399c797e1075b127703a183d36e9b4a45ee2b
204
py
Python
miniurl/urls.py
joannawetesko/django-mini-url
5086da1db2db6e8213bc3330fb7a153d206da69f
[ "Apache-2.0" ]
null
null
null
miniurl/urls.py
joannawetesko/django-mini-url
5086da1db2db6e8213bc3330fb7a153d206da69f
[ "Apache-2.0" ]
null
null
null
miniurl/urls.py
joannawetesko/django-mini-url
5086da1db2db6e8213bc3330fb7a153d206da69f
[ "Apache-2.0" ]
null
null
null
from django.urls import path from miniurl import views urlpatterns = [ path('<path:link>', views.RedirectURLView.as_view(), name='redirect_url'), path('', views.MainView.as_view(), name='main') ]
29.142857
78
0.705882
a6b2a574c20a7b8f0d1ce7c155ce37771bcfd593
1,580
py
Python
scripts/tf_cnn_benchmarks/models/overfeat_model.py
MikulasZelinka/benchmarks
23b611b27ecb2927dab647c9d1892f5bdfc24c88
[ "Apache-2.0" ]
null
null
null
scripts/tf_cnn_benchmarks/models/overfeat_model.py
MikulasZelinka/benchmarks
23b611b27ecb2927dab647c9d1892f5bdfc24c88
[ "Apache-2.0" ]
1
2018-11-01T06:20:53.000Z
2018-11-08T16:37:00.000Z
scripts/tf_cnn_benchmarks/models/overfeat_model.py
MikulasZelinka/benchmarks
23b611b27ecb2927dab647c9d1892f5bdfc24c88
[ "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...
31.6
80
0.667089
0424ae5c232828dfc1f65f1828cda9453a2d5060
511
py
Python
ngage/config.py
djeromov/ngage
e816b3cebad6dd6faa1a33e3115136969b44314e
[ "Apache-2.0" ]
8
2016-05-12T20:14:22.000Z
2021-03-10T00:46:07.000Z
ngage/config.py
djeromov/ngage
e816b3cebad6dd6faa1a33e3115136969b44314e
[ "Apache-2.0" ]
5
2016-07-27T03:57:21.000Z
2021-08-06T20:03:53.000Z
ngage/config.py
djeromov/ngage
e816b3cebad6dd6faa1a33e3115136969b44314e
[ "Apache-2.0" ]
3
2016-12-02T08:33:58.000Z
2021-08-06T19:36:49.000Z
import munge class Config(munge.Config): defaults = { "config": { "ngage": { "default": { "user": None, "password": None, "port": None, "type": "eznc", "driver_args": {}, ...
22.217391
38
0.295499
ce236a470ff82094f215095ff4ee55a7385a63e2
78
py
Python
tree_bark_synthesis/ShapeOptimization/__init__.py
laitoch/tree-bark-synthesis
0bd43d6699d2e05f62d144f310874f986bbd91d2
[ "MIT" ]
null
null
null
tree_bark_synthesis/ShapeOptimization/__init__.py
laitoch/tree-bark-synthesis
0bd43d6699d2e05f62d144f310874f986bbd91d2
[ "MIT" ]
null
null
null
tree_bark_synthesis/ShapeOptimization/__init__.py
laitoch/tree-bark-synthesis
0bd43d6699d2e05f62d144f310874f986bbd91d2
[ "MIT" ]
null
null
null
import sys sys.path.insert(0,'..') from control_map import shape_optimization
19.5
42
0.794872
89ecc35c24d61e15f09a21ec46ae3a9fa394eeeb
5,407
py
Python
src/systemtest/test_vds.py
Odin-SMR/odin-api
dea75016a6f9e61be0dd64a698b03ded5a6f0f10
[ "MIT" ]
null
null
null
src/systemtest/test_vds.py
Odin-SMR/odin-api
dea75016a6f9e61be0dd64a698b03ded5a6f0f10
[ "MIT" ]
85
2020-04-01T06:24:29.000Z
2022-03-28T04:28:56.000Z
src/systemtest/test_vds.py
Odin-SMR/odin-api
dea75016a6f9e61be0dd64a698b03ded5a6f0f10
[ "MIT" ]
null
null
null
import pytest import requests def test_vds_file4ace_exists(odinapi_service): url = '{}/rest_api/v4/config_data/data_files/'.format(odinapi_service) data = requests.get(url).json() assert ( data['data']['vds-files']['ace']['example-file'] == '/vds-data/ACE_Level2/v2/2004-03/ss2969.nc' )...
34.883871
124
0.666358
31d1e81fab7c319539a6c6775d0fcc2a842ffcca
17,994
py
Python
pepper_teleoperation/pepper_gui_old.py
FraPorta/pepper_openpose_teloperation
a327b717ae11ff84e22a0744b96c72b998a25c84
[ "Apache-2.0" ]
6
2021-05-12T02:22:24.000Z
2022-03-08T14:08:10.000Z
pepper_teleoperation/pepper_gui_old.py
elggem/pepper_openpose_teleoperation
e31bc0b12bd8511dbce9e4449610a08ebe32c184
[ "Apache-2.0" ]
null
null
null
pepper_teleoperation/pepper_gui_old.py
elggem/pepper_openpose_teleoperation
e31bc0b12bd8511dbce9e4449610a08ebe32c184
[ "Apache-2.0" ]
3
2021-11-24T12:37:43.000Z
2022-03-08T07:38:12.000Z
import Tkinter as tk import ttk import argparse import qi # import time import sys import pyglet from PIL import ImageTk, Image from GUI_material.image_label import ImageLabel from speech_thread import SpeechThread from pepper_approach_control_thread import PepperApproachControl from Queue import Queue # Colors red =...
39.460526
139
0.477826
8b098c9f6456f77e720af387ec3a31ddb4ff2947
1,735
py
Python
official/vision/detection/modeling/optimizers.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
official/vision/detection/modeling/optimizers.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
official/vision/detection/modeling/optimizers.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# Copyright 2021 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...
34.019608
78
0.726225
f1ba63c108b25b95b8afd3a7d1769da745ad7e48
19,333
py
Python
scripts/choose_subclusters.py
jmeppley/np_read_clustering
88a23c729f42f2249926d2e3420f3c30e01bfddd
[ "MIT" ]
null
null
null
scripts/choose_subclusters.py
jmeppley/np_read_clustering
88a23c729f42f2249926d2e3420f3c30e01bfddd
[ "MIT" ]
null
null
null
scripts/choose_subclusters.py
jmeppley/np_read_clustering
88a23c729f42f2249926d2e3420f3c30e01bfddd
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Given: * cluster reads fasta * cluster reads faa * cluster reads faa PFAM hits (non-overlapping) * cluster lastal results (aggregated) * subcluster mcl results * output locations (fasta dir + pdf file names) * params: * min_sub_size (10) * sigma_cutoff (None) * max_colored_genes (...
36.965583
126
0.572286
7319717d99ce8aa3bc9380e3dcd1cd81a55cd0fc
771
py
Python
code.py
mohrobati/HiddenMessageInSignal
9da4b557074b45def54ef265e0357930d6a39943
[ "MIT" ]
null
null
null
code.py
mohrobati/HiddenMessageInSignal
9da4b557074b45def54ef265e0357930d6a39943
[ "MIT" ]
null
null
null
code.py
mohrobati/HiddenMessageInSignal
9da4b557074b45def54ef265e0357930d6a39943
[ "MIT" ]
null
null
null
from scipy.io import wavfile from scipy.fftpack import fft, ifft from matplotlib import pyplot as plt import numpy as np power = 0.02e7 def string_to_binary_ascii(string): binary = [] for char in string: binary.append("{:08b}".format(ord(char))) return "".join(binary) def put_code_in_signal(dat...
26.586207
74
0.609598
f5f048a414581dd9355e9537829032572ba44e48
763
py
Python
dy08/__main__.py
Funcoil/SolightDY08-PythonRpi
dfe841bee5d52844fd62ff0e466b464523bd70b1
[ "MITNFA" ]
1
2019-07-03T20:35:30.000Z
2019-07-03T20:35:30.000Z
dy08/__main__.py
Funcoil/SolightDY08-PythonRpi
dfe841bee5d52844fd62ff0e466b464523bd70b1
[ "MITNFA" ]
null
null
null
dy08/__main__.py
Funcoil/SolightDY08-PythonRpi
dfe841bee5d52844fd62ff0e466b464523bd70b1
[ "MITNFA" ]
null
null
null
#!/usr/bin/python3 import sys import pigpio from dy08 import DY08 def main(): if len(sys.argv) < 3: print("Error: insufficient number of arguments", file=sys.stderr) print("Usage: dy08 ADDRESS on|off", file=sys.stderr) sys.exit(1) address = int(sys.argv[1]) if address < 0 or addr...
23.121212
89
0.591088
40ca5237e96dc873763236aa9841dd0c6bdd29bb
5,301
py
Python
syn_net/models/rt2.py
wenhao-gao/SynNet
3a452af123f87c266e3d4dbc7e1bda85886e3c30
[ "MIT" ]
14
2021-10-18T06:56:49.000Z
2022-03-01T01:32:10.000Z
syn_net/models/rt2.py
wenhao-gao/SynNet
3a452af123f87c266e3d4dbc7e1bda85886e3c30
[ "MIT" ]
3
2021-10-19T20:58:09.000Z
2022-02-07T18:02:04.000Z
syn_net/models/rt2.py
wenhao-gao/SynNet
3a452af123f87c266e3d4dbc7e1bda85886e3c30
[ "MIT" ]
4
2021-10-20T03:02:59.000Z
2022-01-25T22:12:47.000Z
""" Reactant2 network (for predicting 2nd reactant). """ import time import numpy as np import torch import pytorch_lightning as pl from pytorch_lightning import loggers as pl_loggers from syn_net.models.mlp import MLP, load_array from scipy import sparse if __name__ == '__main__': import argparse parser = a...
39.559701
139
0.528391
faedb7593b3fda8461621c6c98b5de97e2ad88e0
1,064
py
Python
test/integration/test_natural_language_understanding_v1.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
1,579
2015-10-08T14:02:17.000Z
2022-02-28T10:49:21.000Z
test/integration/test_natural_language_understanding_v1.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
749
2015-10-08T20:00:24.000Z
2022-03-21T21:33:17.000Z
test/integration/test_natural_language_understanding_v1.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
1,006
2015-10-24T06:30:58.000Z
2022-03-23T07:10:04.000Z
# coding: utf-8 from unittest import TestCase import os import ibm_watson import pytest import json import time from ibm_watson.natural_language_understanding_v1 import Features, EntitiesOptions, KeywordsOptions @pytest.mark.skipif(os.getenv('NATURAL_LANGUAGE_UNDERSTANDING_APIKEY') is None, reason=...
39.407407
109
0.727444
fa29d119d7f86b87cac76097e1a7d655170eb3b1
776
py
Python
gnes/__init__.py
awesome-archive/gnes
21311f05747303d0acdc303f2ade830ef971f47d
[ "Apache-2.0" ]
null
null
null
gnes/__init__.py
awesome-archive/gnes
21311f05747303d0acdc303f2ade830ef971f47d
[ "Apache-2.0" ]
null
null
null
gnes/__init__.py
awesome-archive/gnes
21311f05747303d0acdc303f2ade830ef971f47d
[ "Apache-2.0" ]
null
null
null
# Tencent is pleased to support the open source community by making GNES available. # # Copyright (C) 2019 THL A29 Limited, a Tencent company. 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...
40.842105
84
0.755155
f3d825b207f414ebc58ce7daba6b823336f53418
3,531
py
Python
sentence_transformers/models/T5.py
danielperezr88/sentence-transformers
56a7990c56c484e7948cf6400b54f27114bb267c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/models/T5.py
danielperezr88/sentence-transformers
56a7990c56c484e7948cf6400b54f27114bb267c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/models/T5.py
danielperezr88/sentence-transformers
56a7990c56c484e7948cf6400b54f27114bb267c
[ "Apache-2.0" ]
null
null
null
from torch import nn from transformers import T5Model, T5Tokenizer import json from typing import List, Dict, Optional import os import numpy as np import logging logger = logging.getLogger(__name__) class T5(nn.Module): """DEPRECATED: Please use models.Transformer instead. T5 model to generat...
38.380435
207
0.672897
1766e80508f634c0df0f5cfd10c2addefd79f650
2,735
py
Python
settings.py
zz7a5pe4/webvirtmgr
92d6bbd2d05073fd3a9535f9b7c0d41b45efb41c
[ "Apache-2.0" ]
1
2019-05-29T00:21:56.000Z
2019-05-29T00:21:56.000Z
settings.py
zz7a5pe4/webvirtmgr
92d6bbd2d05073fd3a9535f9b7c0d41b45efb41c
[ "Apache-2.0" ]
null
null
null
settings.py
zz7a5pe4/webvirtmgr
92d6bbd2d05073fd3a9535f9b7c0d41b45efb41c
[ "Apache-2.0" ]
null
null
null
# Django settings for webvirtmgr project. import os import sys ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) if ROOT_PATH not in sys.path: sys.path.append(ROOT_PATH) DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Admin', 'root@localhost'), ) MANAGERS = ADMINS DB_PATH = os.path.join(ROOT_PATH, 'w...
32.176471
123
0.632907
be5d998c76f0fff251398d19d59e59da810c3324
2,064
py
Python
Baselines/OLTR/Codes/algorithms/baselines/pairwise.py
nju-websoft/TRAVERS
54b58e29bebc3cd9c01a2d47efcc25b2d2b98876
[ "Apache-2.0" ]
55
2018-08-31T13:13:08.000Z
2021-12-09T06:12:04.000Z
Baselines/OLTR/Codes/algorithms/baselines/pairwise.py
nju-websoft/TRAVERS
54b58e29bebc3cd9c01a2d47efcc25b2d2b98876
[ "Apache-2.0" ]
1
2018-10-03T12:52:10.000Z
2020-09-10T12:57:57.000Z
Baselines/OLTR/Codes/algorithms/baselines/pairwise.py
nju-websoft/TRAVERS
54b58e29bebc3cd9c01a2d47efcc25b2d2b98876
[ "Apache-2.0" ]
7
2018-11-28T13:34:47.000Z
2021-02-12T23:45:48.000Z
# -*- coding: utf-8 -*- import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) import numpy as np import utils.rankings as rnk from algorithms.PDGD.pdgd import PDGD # Pairwise Baseline from Hofmann class Pairwise(PDGD): def __init__(self, epsilon, *args, **kargs): ...
28.273973
74
0.643411
b6dc91367413d82ed1b9a693482d683ef17943e5
36
py
Python
src/JenkinsLibrary/__init__.py
okgolove/robotframework-jenkins
11882bea09dd29875b9a3df4591c7e4c43a188e4
[ "MIT" ]
8
2018-03-02T21:43:10.000Z
2020-08-25T01:37:22.000Z
src/JenkinsLibrary/__init__.py
okgolove/robotframework-jenkins
11882bea09dd29875b9a3df4591c7e4c43a188e4
[ "MIT" ]
6
2018-03-06T19:18:45.000Z
2021-06-02T04:35:15.000Z
src/JenkinsLibrary/__init__.py
okgolove/robotframework-jenkins
11882bea09dd29875b9a3df4591c7e4c43a188e4
[ "MIT" ]
9
2019-02-12T16:55:47.000Z
2022-01-30T02:42:49.000Z
from .library import JenkinsLibrary
18
35
0.861111
f9662e0fc1e34d2cc8fc5de9416b7db1ca54ef52
8,858
py
Python
app/controllers/dns/zones.py
white8086/SnitchDNS
e4fd92bd06f5ad7a9a514f11ab29817b8be5c415
[ "MIT" ]
1
2021-04-14T12:06:40.000Z
2021-04-14T12:06:40.000Z
app/controllers/dns/zones.py
rosscdh/SnitchDNS
e4fd92bd06f5ad7a9a514f11ab29817b8be5c415
[ "MIT" ]
null
null
null
app/controllers/dns/zones.py
rosscdh/SnitchDNS
e4fd92bd06f5ad7a9a514f11ab29817b8be5c415
[ "MIT" ]
null
null
null
from . import bp from flask_login import current_user, login_required from flask import render_template, redirect, url_for, flash, request, send_file from app.lib.base.provider import Provider @bp.route('/', methods=['GET']) @login_required def index(): results_per_page = 20 provider = Provider() zones =...
33.80916
145
0.666968