hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
3b63d95f8ee5f617b3035015f0897ae4868cbabe
1,756
py
Python
contracts/interfaces/event_manager.py
iconation/ICONSafe-SCORE
a3dcea7fa182152e66f5cddaacebef8a7350c332
[ "Apache-2.0" ]
2
2020-08-17T10:39:42.000Z
2020-09-07T14:10:39.000Z
contracts/interfaces/event_manager.py
iconation/MultiSigWallet
a3dcea7fa182152e66f5cddaacebef8a7350c332
[ "Apache-2.0" ]
null
null
null
contracts/interfaces/event_manager.py
iconation/MultiSigWallet
a3dcea7fa182152e66f5cddaacebef8a7350c332
[ "Apache-2.0" ]
2
2021-02-07T11:30:53.000Z
2021-04-17T19:52:21.000Z
# -*- coding: utf-8 -*- # Copyright 2021 ICONation # # 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 agr...
26.606061
74
0.642938
318c0abdd34aaee963e3e12f60d4d2cd2cf965b4
72,353
py
Python
hydrus/client/gui/QtPorting.py
thatfuckingbird/hydrus-websocket-server
b55454740dca5101448bf92224432f8bdbec7e77
[ "WTFPL" ]
null
null
null
hydrus/client/gui/QtPorting.py
thatfuckingbird/hydrus-websocket-server
b55454740dca5101448bf92224432f8bdbec7e77
[ "WTFPL" ]
null
null
null
hydrus/client/gui/QtPorting.py
thatfuckingbird/hydrus-websocket-server
b55454740dca5101448bf92224432f8bdbec7e77
[ "WTFPL" ]
null
null
null
#This file is licensed under the Do What the Fuck You Want To Public License aka WTFPL import os # If not explicitely set, prefer PySide2 instead of the qtpy default which is PyQt5 # It is important that this runs on startup *before* anything is imported from qtpy. # Since test.py, client.py and client.pyw all import...
27.354631
226
0.531312
0795baa0013fdf8fe20c1fc4e8f1156afb059328
223
py
Python
code.py
hiteshvvr/SiPINEfficiency_PENELOPE
ce213799fd622318b6aa4b8700e871773af7bd62
[ "MIT" ]
null
null
null
code.py
hiteshvvr/SiPINEfficiency_PENELOPE
ce213799fd622318b6aa4b8700e871773af7bd62
[ "MIT" ]
null
null
null
code.py
hiteshvvr/SiPINEfficiency_PENELOPE
ce213799fd622318b6aa4b8700e871773af7bd62
[ "MIT" ]
null
null
null
fhand=open('answer.txt') output=open('graphdatauvw.dat','w') for line in fhand: word=line[59:72] energy=float(word) output.write(word) next='\n' output.write(next) print (word) fhand.close() output.close()
18.583333
36
0.672646
7a581b9432edcef76954c40ab6fef3901cd4f91d
4,257
py
Python
muddery/web/website/views.py
noahzaozao/muddery
294da6fb73cb04c62e5ba6eefe49b595ca76832a
[ "BSD-3-Clause" ]
null
null
null
muddery/web/website/views.py
noahzaozao/muddery
294da6fb73cb04c62e5ba6eefe49b595ca76832a
[ "BSD-3-Clause" ]
null
null
null
muddery/web/website/views.py
noahzaozao/muddery
294da6fb73cb04c62e5ba6eefe49b595ca76832a
[ "BSD-3-Clause" ]
null
null
null
""" This file contains the generic, assorted views that don't fall under one of the other applications. Views are django's way of processing e.g. html templates on the fly. """ from django.contrib.admin.sites import site from django.conf import settings from django.contrib.admin.views.decorators import staff_member_r...
31.301471
118
0.693916
554245a8804a01f7d6f838a7f91b43b18d8f52e8
1,361
py
Python
ml/rl/core/registry_meta.py
badrinarayan/ReAgent
d49b02dce53d9a5d5ee077cea7efded507677641
[ "BSD-3-Clause" ]
null
null
null
ml/rl/core/registry_meta.py
badrinarayan/ReAgent
d49b02dce53d9a5d5ee077cea7efded507677641
[ "BSD-3-Clause" ]
null
null
null
ml/rl/core/registry_meta.py
badrinarayan/ReAgent
d49b02dce53d9a5d5ee077cea7efded507677641
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import abc import logging from typing import Dict, Type logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) class RegistryMeta(abc.ABCMeta): def __init__(cls, name, bases, attrs): if not hasattr(cls, "REGISTRY"): # Put REGISTRY on cls. This only happens...
34.897436
83
0.618663
5491d61e1d977c0e9e2fe51a1a0835e3e3a5555e
1,734
py
Python
data/somethingv1.py
ZhangHerman/R-S-R
d6a9260e078c49bb94ce7dbf794d61ab13731dd1
[ "Apache-2.0" ]
null
null
null
data/somethingv1.py
ZhangHerman/R-S-R
d6a9260e078c49bb94ce7dbf794d61ab13731dd1
[ "Apache-2.0" ]
null
null
null
data/somethingv1.py
ZhangHerman/R-S-R
d6a9260e078c49bb94ce7dbf794d61ab13731dd1
[ "Apache-2.0" ]
null
null
null
import os if __name__ == '__main__': dataset_name = '/raid/ZYK-something-v1/something-v1/something-something-v1' # 'jester-v1' with open('%s-labels.csv' % dataset_name) as f: lines = f.readlines() categories = [] for line in lines: line = line.rstrip() categories.appen...
43.35
145
0.593426
7c2b00af366ac16f0579764bb79782a4264f7ce7
47,630
py
Python
manim/mobject/types/vectorized_mobject.py
naveen521kk/manimce-deprecated
52a0cb0e49f79cb48f78b51c724f049d522fc465
[ "MIT" ]
1
2021-10-17T16:28:16.000Z
2021-10-17T16:28:16.000Z
manim/mobject/types/vectorized_mobject.py
naveen521kk/manimce-deprecated
52a0cb0e49f79cb48f78b51c724f049d522fc465
[ "MIT" ]
1
2020-11-01T03:27:09.000Z
2020-11-01T03:27:09.000Z
manim/mobject/types/vectorized_mobject.py
naveen521kk/manimce-deprecated
52a0cb0e49f79cb48f78b51c724f049d522fc465
[ "MIT" ]
null
null
null
"""Mobjects that use vector graphics.""" __all__ = [ "VMobject", "VGroup", "VDict", "VectorizedPoint", "CurvesAsSubmobjects", "DashedVMobject", ] import itertools as it import sys import colour from ...constants import * from ...mobject.mobject import Mobject from ...mobject.three_d_utils i...
34.0701
111
0.586962
9eaa5daf469df91d3fb440a9e36c6dd007657e59
1,374
py
Python
examples/server_example.py
gcollic/ffai
bb3f6707f86d3c540dca47caf4c594a93f5eac43
[ "Apache-2.0" ]
null
null
null
examples/server_example.py
gcollic/ffai
bb3f6707f86d3c540dca47caf4c594a93f5eac43
[ "Apache-2.0" ]
null
null
null
examples/server_example.py
gcollic/ffai
bb3f6707f86d3c540dca47caf4c594a93f5eac43
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import ffai.web.server as server import ffai.web.api as api from ffai.ai.registry import make_bot from ffai.core.model import Agent # Import this to register bots import examples.scripted_bot_example import examples.grodbot # Create some games api.new_game(home_team_id="orc-1", aw...
31.227273
54
0.639738
ed0c554ac9aaee8eda59f6c806f6a05792190b97
1,047
py
Python
news_recommendation_service/click_log_processor_test.py
XinxinTang/News_Recommendation_System-AWS_version
315bd5616c58a2762c01fbb20b163db5e792b5b5
[ "Apache-2.0" ]
4
2018-05-08T10:56:19.000Z
2018-08-17T17:03:09.000Z
news_recommendation_service/click_log_processor_test.py
XinxinTang/News_Recommendation_System-AWS_version
315bd5616c58a2762c01fbb20b163db5e792b5b5
[ "Apache-2.0" ]
null
null
null
news_recommendation_service/click_log_processor_test.py
XinxinTang/News_Recommendation_System-AWS_version
315bd5616c58a2762c01fbb20b163db5e792b5b5
[ "Apache-2.0" ]
2
2018-09-18T10:27:56.000Z
2020-07-28T14:42:01.000Z
from news_recommendation_service import click_log_processor import os import sys from datetime import datetime # from sets import Set import parameters # import common package in parent directory sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common')) from common import AWS_mongodb_client MONGODB_P...
26.175
84
0.748806
92520ee9c05fe7c9adfca4755217156ca6340dd3
32,868
py
Python
s2e_env/execution_trace/trace_entries.py
shijunjing/s2e-env
ba72dac30a6db65f87fea13f275003791fcf4052
[ "BSD-3-Clause" ]
1
2022-01-27T15:27:30.000Z
2022-01-27T15:27:30.000Z
s2e_env/execution_trace/trace_entries.py
weizhou-chaojixx/s2e-env
ba72dac30a6db65f87fea13f275003791fcf4052
[ "BSD-3-Clause" ]
null
null
null
s2e_env/execution_trace/trace_entries.py
weizhou-chaojixx/s2e-env
ba72dac30a6db65f87fea13f275003791fcf4052
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2017 Dependable Systems Laboratory, EPFL Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
26.765472
114
0.590635
c1043155b28251fcef01fdd8b447b9d8d2c6ac1b
944
py
Python
practice/20210310.py
yanghao2013/algo
d1173f7582b64f9154acb30e852dc3f0d0d6ba5e
[ "Apache-2.0" ]
null
null
null
practice/20210310.py
yanghao2013/algo
d1173f7582b64f9154acb30e852dc3f0d0d6ba5e
[ "Apache-2.0" ]
null
null
null
practice/20210310.py
yanghao2013/algo
d1173f7582b64f9154acb30e852dc3f0d0d6ba5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time : 2021-03-10 00:00 @Author : Hao """ class Solution: """ URL化。编写一种方法,将字符串中的空格全部替换为%20。假定该字符串尾部有足够的空间存放新增字符,并且知道字符串的“真实”长度。(注:用Java实现的话,请使用字符数组实现,以便直接在数组上操作。) 链接:https://leetcode-cn.com/problems/string-to-url-lcci """ def replaceSpaces(self, S: str, length: int) ...
26.971429
104
0.509534
2142198902ade5f3c5567e1e06e42c646acf667e
434
py
Python
ex2/admin.py
pjdufour/ex2
d1ef05a2e0b59c76266dc0a809be74af2618a154
[ "BSD-3-Clause" ]
null
null
null
ex2/admin.py
pjdufour/ex2
d1ef05a2e0b59c76266dc0a809be74af2618a154
[ "BSD-3-Clause" ]
null
null
null
ex2/admin.py
pjdufour/ex2
d1ef05a2e0b59c76266dc0a809be74af2618a154
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Country, HotSpot class CountryAdmin(admin.ModelAdmin): model = Country list_display_links = ('id',) list_display = ('id', 'name', 'iso2', 'iso3', 'pop2005') class HotSpotAdmin(admin.ModelAdmin): model = HotSpot list_display_links = ('id', ) ...
22.842105
60
0.702765
5fe6b8b2f37d03e29245f1688021e694d98d340f
3,055
py
Python
tests/test_wrap.py
dhirschfeld/pyfilesystem2
b2c0d96f55d4dfe777b4f9476676b77d01f36bf7
[ "MIT" ]
null
null
null
tests/test_wrap.py
dhirschfeld/pyfilesystem2
b2c0d96f55d4dfe777b4f9476676b77d01f36bf7
[ "MIT" ]
null
null
null
tests/test_wrap.py
dhirschfeld/pyfilesystem2
b2c0d96f55d4dfe777b4f9476676b77d01f36bf7
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import unittest from fs import errors from fs import open_fs from fs import wrap class TestWrap(unittest.TestCase): def test_readonly(self): mem_fs = open_fs("mem://") fs = wrap.read_only(mem_fs) with self.assertRaises(errors.ResourceReadOnly): ...
31.173469
66
0.608838
1e1cee0b187e7b1fd449bbfeec90105ed7d19af6
38,019
py
Python
plexlibrary/recipe.py
mza921/python-plexlibrary
f111966cd4532755d91e3c6f181114ee46639309
[ "BSD-3-Clause" ]
5
2020-02-03T16:22:29.000Z
2021-05-22T01:21:12.000Z
plexlibrary/recipe.py
mza921/python-plexlibrary
f111966cd4532755d91e3c6f181114ee46639309
[ "BSD-3-Clause" ]
5
2020-10-26T01:44:36.000Z
2021-02-12T10:08:42.000Z
plexlibrary/recipe.py
mza921/python-plexlibrary
f111966cd4532755d91e3c6f181114ee46639309
[ "BSD-3-Clause" ]
2
2020-01-16T18:34:31.000Z
2020-02-07T17:41:28.000Z
# -*- coding: utf-8 -*- """recipe """ import datetime import errno import os import random import subprocess import sys import time import logs import plexapi import plexutils import tmdb import traktutils import imdbutils import tvdb from config import ConfigParser from recipes import RecipeParser from utils import...
46.64908
119
0.467082
3710574f81ec7fa29060ad195b3e399695809658
641
py
Python
math/Gaussian_Elimination.py
vincentclaes/algorithms
91626190c3b26c7eb41742a58f96c4bc371ddea9
[ "MIT" ]
2
2021-07-27T19:20:40.000Z
2021-08-22T03:39:21.000Z
math/Gaussian_Elimination.py
UKVeteran/algorithms
6b664bdb8b672143e9906fc7ec7870eac1fd4ba6
[ "MIT" ]
null
null
null
math/Gaussian_Elimination.py
UKVeteran/algorithms
6b664bdb8b672143e9906fc7ec7870eac1fd4ba6
[ "MIT" ]
1
2021-07-13T20:38:45.000Z
2021-07-13T20:38:45.000Z
from numpy import array, column_stack, zeros from sys import exit n=3 X= array((3,2,1), dtype="f") Y= array((2,3,2), dtype="f") Z= array((1,1,3), dtype="f") C= array((90,77,46), dtype="f") a=column_stack((X,Y,Z,C)) x=zeros(n) for i in range(n): if a[i][i]==0: sys.exit("No Solution") ...
19.424242
45
0.447738
10247675fd22b89643a6f01d546bf6ff5c4c47f9
5,099
py
Python
test/jpypetest/test_jmethod.py
fuz-woo/jpype
3ffb1e7a75402545c1d669f4bc5836b08b76b6ae
[ "Apache-2.0" ]
1
2020-01-03T06:03:14.000Z
2020-01-03T06:03:14.000Z
test/jpypetest/test_jmethod.py
fuz-woo/jpype
3ffb1e7a75402545c1d669f4bc5836b08b76b6ae
[ "Apache-2.0" ]
null
null
null
test/jpypetest/test_jmethod.py
fuz-woo/jpype
3ffb1e7a75402545c1d669f4bc5836b08b76b6ae
[ "Apache-2.0" ]
null
null
null
# ***************************************************************************** # Copyright 2017 Karl Einar Nelson # # 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...
39.527132
97
0.669739
1ece54baf6c04d628124f3878a28c50766d0559d
12,867
py
Python
simulator1.py
vyshnavigutta369/minitictactoebot
1037b08cafcfc2bb70cbfddf98a17be6f21568e7
[ "MIT" ]
null
null
null
simulator1.py
vyshnavigutta369/minitictactoebot
1037b08cafcfc2bb70cbfddf98a17be6f21568e7
[ "MIT" ]
null
null
null
simulator1.py
vyshnavigutta369/minitictactoebot
1037b08cafcfc2bb70cbfddf98a17be6f21568e7
[ "MIT" ]
null
null
null
''' This is the engine for the Ultimate TicTacToe Tournament. The code in this file is not for reproduction. @author: Devansh Shah The structure of the code is as below: 1. Header Files 2. Sample implementations of your class (Player and ManualPlayer) 3. Game Logic 4. Game simulator In case of any queries, please p...
29.376712
210
0.642885
af3abc72ee85ce95b6ae25a25bd288a46daa3db3
3,999
py
Python
tools/inference.py
UniBester/AGE
a9844fcbb88a268fd3743a3bc346767e8e4114fe
[ "MIT" ]
17
2022-03-22T03:10:39.000Z
2022-03-29T13:54:09.000Z
tools/inference.py
UniBester/AGE
a9844fcbb88a268fd3743a3bc346767e8e4114fe
[ "MIT" ]
2
2022-03-24T14:08:34.000Z
2022-03-26T04:25:52.000Z
tools/inference.py
UniBester/AGE
a9844fcbb88a268fd3743a3bc346767e8e4114fe
[ "MIT" ]
2
2022-03-26T02:34:44.000Z
2022-03-31T13:50:37.000Z
import torch import os from argparse import Namespace from tqdm import tqdm import numpy as np from PIL import Image import torch import sys import random sys.path.append(".") sys.path.append("..") from configs import data_configs from utils.common import tensor2im from options.test_options import TestOptions from m...
34.773913
119
0.662666
0aed884ea99152634c395c1e2fcfe04a932262d1
1,198
py
Python
agents/agent_module_dqn/features/test.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
agents/agent_module_dqn/features/test.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
agents/agent_module_dqn/features/test.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
#!/usr/bin/hfo_env python3 # encoding utf-8 import argparse from agents.agent_module_dqn.deep_agent import DQNAgent from actions_levels.action_module import DiscreteActionsModule from agents.agent_module_dqn.features.discrete_features import \ DiscreteFeatures1Teammate if __name__ == '__main__': parser = argp...
36.30303
76
0.740401
2a1e3015eece50a07be45855c2adfbb99e3b84d9
5,840
py
Python
third_party/learn_joint_bpe_and_vocab.py
YinghuaHuang/daguan-2019
b0f6b36dba6467fcb1b26c92c78c6be3bd3063b1
[ "MIT" ]
null
null
null
third_party/learn_joint_bpe_and_vocab.py
YinghuaHuang/daguan-2019
b0f6b36dba6467fcb1b26c92c78c6be3bd3063b1
[ "MIT" ]
null
null
null
third_party/learn_joint_bpe_and_vocab.py
YinghuaHuang/daguan-2019
b0f6b36dba6467fcb1b26c92c78c6be3bd3063b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Rico Sennrich # The MIT License (MIT) # Copyright (c) 2015 University of Edinburgh # 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 w...
39.727891
128
0.688699
769d917ac3520b44fdc9bfd610144abf7e2c272c
1,150
py
Python
XGBoost_201805/XGBoost_one/skitlearn_baseline.py
yishantao/DailyPractice
ee26859af3faf48e63d6c2850db1d895a8a88fb1
[ "MIT" ]
null
null
null
XGBoost_201805/XGBoost_one/skitlearn_baseline.py
yishantao/DailyPractice
ee26859af3faf48e63d6c2850db1d895a8a88fb1
[ "MIT" ]
null
null
null
XGBoost_201805/XGBoost_one/skitlearn_baseline.py
yishantao/DailyPractice
ee26859af3faf48e63d6c2850db1d895a8a88fb1
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """This module is used to bulid the model using a mixed XGBoost and skit-learn""" from xgboost import XGBClassifier # 加载LibSVM格式数据模块 from sklearn.datasets import load_svmlight_file from sklearn.metrics import accuracy_score from matplotlib import pyplot # read in data my_workpath = './data/' x...
31.944444
115
0.770435
9b2c3f005071a808a38ffabe85c6c667c84569d6
475
py
Python
students/migrations/0004_auto_20160916_0638.py
SoftwareSecureGroup/students_website
79403878a0158f56e168ec8d5f43bfa6af1ec86a
[ "MIT" ]
null
null
null
students/migrations/0004_auto_20160916_0638.py
SoftwareSecureGroup/students_website
79403878a0158f56e168ec8d5f43bfa6af1ec86a
[ "MIT" ]
1
2016-09-17T15:45:35.000Z
2016-09-17T15:45:35.000Z
students/migrations/0004_auto_20160916_0638.py
SoftwareSecureGroup/students_website
79403878a0158f56e168ec8d5f43bfa6af1ec86a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-16 06:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('students', '0003_auto_20160916_0638'), ] operations = [ migrations.AlterFiel...
23.75
74
0.625263
81afd6a36c441c0efa4c56376b6737da2a8cc722
10,438
py
Python
venv/lib/python3.6/site-packages/werkzeug/contrib/wrappers.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/werkzeug/contrib/wrappers.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/werkzeug/contrib/wrappers.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ werkzeug.contrib.wrappers ~~~~~~~~~~~~~~~~~~~~~~~~~ Extra wrappers or mixins contributed by the community. These wrappers can be mixed in into request objects to add extra functionality. Example:: from werkzeug.wrappers import Request as RequestBase fr...
34.448845
93
0.635754
c2f24a6d41e3356251a2b31e0e67eb529c0c5bc8
2,667
py
Python
desktop/core/ext-py/django_celery_results-1.0.4/django_celery_results/migrations/0001_initial.py
maulikjs/hue
59ac879b55bb6fb26ecb4e85f4c70836fc21173f
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/django_celery_results-1.0.4/django_celery_results/migrations/0001_initial.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/django_celery_results-1.0.4/django_celery_results/migrations/0001_initial.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TaskR...
42.333333
78
0.40045
57414f600167f9f0c7b034cf8675f805b5389349
8,570
py
Python
padthai/gpt_neo/__init__.py
titipata/padthai
60848659cd78cf0adaf957f958ebcfc366f4447f
[ "Apache-2.0" ]
3
2017-05-01T10:25:02.000Z
2017-06-05T16:40:43.000Z
padthai/gpt_neo/__init__.py
titipata/padthai
60848659cd78cf0adaf957f958ebcfc366f4447f
[ "Apache-2.0" ]
3
2017-04-30T09:54:11.000Z
2017-06-27T20:56:18.000Z
padthai/gpt_neo/__init__.py
titipata/padthai
60848659cd78cf0adaf957f958ebcfc366f4447f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from typing import List import torch from torch.utils.data import Dataset, random_split from transformers import ( GPT2Tokenizer, TrainingArguments, Trainer, GPTNeoForCausalLM ) import os torch.manual_seed(42) class ListDataset(Dataset): """ Thank you code from https:/...
32.097378
89
0.570595
51cfbb6822fb6d71d3f8a03cb25dfea0ccb5c29d
369
py
Python
other/dingding/dingtalk/api/rest/OapiDingtalkImpaasMessageCrossdomainReadRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiDingtalkImpaasMessageCrossdomainReadRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiDingtalkImpaasMessageCrossdomainReadRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2020.09.08 ''' from dingtalk.api.base import RestApi class OapiDingtalkImpaasMessageCrossdomainReadRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.message_read_model = None def getHttpMethod(self): return 'POST' def getapiname(self): return 'dingtal...
24.6
65
0.783198
5a870413b2697f6fd73a6644bebfeaea8876411c
765
py
Python
setup.py
geyang/memory
c6f13249f5427fe49ca2db42cc2b6a8574a25638
[ "MIT" ]
1
2020-11-19T06:55:14.000Z
2020-11-19T06:55:14.000Z
setup.py
geyang/memory
c6f13249f5427fe49ca2db42cc2b6a8574a25638
[ "MIT" ]
null
null
null
setup.py
geyang/memory
c6f13249f5427fe49ca2db42cc2b6a8574a25638
[ "MIT" ]
null
null
null
from os import path from setuptools import setup, find_packages with open(path.join(path.abspath(path.dirname(__file__)), 'VERSION'), encoding='utf-8') as f: version = f.read() with open(path.join(path.abspath(path.dirname(__file__)), 'README'), encoding='utf-8') as f: long_description = f.read() setup(name=...
38.25
93
0.695425
b497a8c12ddba39fc83a26695de52688de07bb7a
1,538
py
Python
games/migrations/0006_new_translated_fields.py
unawe/spaceawe
adac8311d6bd7d024a87cd5f977a5a0aafedd51d
[ "MIT" ]
null
null
null
games/migrations/0006_new_translated_fields.py
unawe/spaceawe
adac8311d6bd7d024a87cd5f977a5a0aafedd51d
[ "MIT" ]
103
2016-04-14T05:54:48.000Z
2022-03-11T23:13:47.000Z
games/migrations/0006_new_translated_fields.py
unawe/spaceawe
adac8311d6bd7d024a87cd5f977a5a0aafedd51d
[ "MIT" ]
2
2016-11-02T15:57:31.000Z
2017-01-06T14:03:43.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from parler.utils.context import switch_language def copy_en_fields(apps, schema_editor): Game = apps.get_model("games", "Game") GameTranslation = apps.get_model("games", "GameTranslation") for game ...
27.963636
176
0.622887
08c3916548eeeef05d3787e37342bc6cea54b580
7,189
py
Python
test/test_parsing_primitives.py
chenliangomc/pymap
42581712631e9e9787e9dd094a22f5cc607f804d
[ "MIT" ]
null
null
null
test/test_parsing_primitives.py
chenliangomc/pymap
42581712631e9e9787e9dd094a22f5cc607f804d
[ "MIT" ]
null
null
null
test/test_parsing_primitives.py
chenliangomc/pymap
42581712631e9e9787e9dd094a22f5cc607f804d
[ "MIT" ]
null
null
null
import unittest from pymap.parsing import Params from pymap.parsing.exceptions import NotParseable, RequiresContinuation from pymap.parsing.primitives import Nil, Number, Atom, String, QuotedString, \ LiteralString, ListP class TestNil(unittest.TestCase): def test_parse(self): ret, buf = Nil.parse(...
36.492386
79
0.618584
3fc100d004f12d64ef519d51e4ae3a3169e88cec
3,102
py
Python
armus1/db_model/db_handle.py
lizewei-681/Test-master
feaa48d341340ba985b7f0505ca64cc0b837f123
[ "MIT" ]
null
null
null
armus1/db_model/db_handle.py
lizewei-681/Test-master
feaa48d341340ba985b7f0505ca64cc0b837f123
[ "MIT" ]
null
null
null
armus1/db_model/db_handle.py
lizewei-681/Test-master
feaa48d341340ba985b7f0505ca64cc0b837f123
[ "MIT" ]
null
null
null
from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import * import datetime from datetime import timedelta # 初始化数据库连接: engine = create_engine('mysql+pymysql://root:12345678@localhost:3306/notice_information') #=create_engine('sqlite:///universitys.db') # 创建DBSession类型: DBSession = se...
39.769231
217
0.630561
e18eca866cd0dbbb01bbb41e8ff5ecb05c51ace3
36
py
Python
tests/proc_basic.py
farisachugthai/pyuv
39342fc2fd688f2fb2120d3092dd9cf52f537de2
[ "MIT" ]
826
2015-01-02T15:03:20.000Z
2022-03-28T01:32:43.000Z
tests/proc_basic.py
farisachugthai/pyuv
39342fc2fd688f2fb2120d3092dd9cf52f537de2
[ "MIT" ]
70
2015-01-09T13:55:03.000Z
2022-03-31T11:00:16.000Z
tests/proc_basic.py
farisachugthai/pyuv
39342fc2fd688f2fb2120d3092dd9cf52f537de2
[ "MIT" ]
98
2015-01-27T08:30:21.000Z
2021-12-13T08:12:51.000Z
#!/usr/bin/env python test = None
7.2
21
0.638889
ea453d299385b098e914c3eaa0dcac96f41d0749
8,575
py
Python
ccxtbt/ccxtstore.py
eapfel/bt-ccxt-store
64e261ef943269d7ae0735e82f91c0f3a2f9b277
[ "MIT" ]
null
null
null
ccxtbt/ccxtstore.py
eapfel/bt-ccxt-store
64e261ef943269d7ae0735e82f91c0f3a2f9b277
[ "MIT" ]
null
null
null
ccxtbt/ccxtstore.py
eapfel/bt-ccxt-store
64e261ef943269d7ae0735e82f91c0f3a2f9b277
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2017 Ed Bartosh <bartosh@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public ...
37.609649
116
0.605714
0b99962ae25dee9fc030e4bd560e6d756d00d326
22,593
py
Python
my_vim_files/python27/Lib/test/test_asyncore.py
satsaeid/dotfiles
401c3213b31dd941b44e553c6f0441187b01c19a
[ "MIT" ]
null
null
null
my_vim_files/python27/Lib/test/test_asyncore.py
satsaeid/dotfiles
401c3213b31dd941b44e553c6f0441187b01c19a
[ "MIT" ]
null
null
null
my_vim_files/python27/Lib/test/test_asyncore.py
satsaeid/dotfiles
401c3213b31dd941b44e553c6f0441187b01c19a
[ "MIT" ]
null
null
null
import asyncore import unittest import select import os import socket import sys import time import warnings import errno from test import test_support from test.test_support import TESTFN, run_unittest, unlink from StringIO import StringIO try: import threading except ImportError: threading ...
31.821127
83
0.571991
95147749aa22783f7c7a54a1ca202e95dd5f3bfc
1,430
py
Python
Code/viusalize.py
prasys/textanalyzer
fd14454d073c8571ddaa40f6ac668842e8aef726
[ "MIT" ]
null
null
null
Code/viusalize.py
prasys/textanalyzer
fd14454d073c8571ddaa40f6ac668842e8aef726
[ "MIT" ]
null
null
null
Code/viusalize.py
prasys/textanalyzer
fd14454d073c8571ddaa40f6ac668842e8aef726
[ "MIT" ]
null
null
null
#https://www.kaggle.com/ceshine/tag-visualization-with-universal-sentence-encoder import os import re import html as ihtml import warnings import random warnings.filterwarnings('ignore') os.environ["TFHUB_CACHE_DIR"] = "/tmp/" from bs4 import BeautifulSoup import pandas as pd import numpy as np import scipy import um...
26.481481
112
0.782517
2c4fb2fd0ec1dd34c21131dc7bb2179368abd6f5
11,624
py
Python
pyclient/confluo/rpc/client.py
louishust/confluo
55377acf19bd468015fb2c98cad737b264346110
[ "Apache-2.0" ]
null
null
null
pyclient/confluo/rpc/client.py
louishust/confluo
55377acf19bd468015fb2c98cad737b264346110
[ "Apache-2.0" ]
null
null
null
pyclient/confluo/rpc/client.py
louishust/confluo
55377acf19bd468015fb2c98cad737b264346110
[ "Apache-2.0" ]
null
null
null
import logging from thrift.protocol.TBinaryProtocol import TBinaryProtocol from thrift.transport import TTransport, TSocket import rpc_service import type_conversions from batch import RecordBatchBuilder from schema import make_schema from stream import RecordStream, AlertStream class RpcClient: """ Client for C...
35.224242
114
0.617085
16f17a6b328b2526f5a940d209a40ecd87db655c
33,127
py
Python
syft/workers/base.py
mukira/PySyft
94595008e8326d3111406ae143099b311fc3f2e6
[ "Apache-2.0" ]
1
2021-04-25T08:55:43.000Z
2021-04-25T08:55:43.000Z
syft/workers/base.py
mukira/PySyft
94595008e8326d3111406ae143099b311fc3f2e6
[ "Apache-2.0" ]
null
null
null
syft/workers/base.py
mukira/PySyft
94595008e8326d3111406ae143099b311fc3f2e6
[ "Apache-2.0" ]
null
null
null
import logging from abc import abstractmethod import syft as sy from syft.frameworks.torch.tensors.interpreters import AbstractTensor from syft.generic import ObjectStorage from syft.exceptions import GetNotPermittedError from syft.exceptions import WorkerNotFoundException from syft.exceptions import ResponseSignatur...
38.033295
112
0.603767
6f177ea8473ede5b654d83e9e773587d3af49901
364
py
Python
Python/array_duplicates.py
thefool76/hacktoberfest2021
237751e17a4fc325ded29fca013fb9f5853cd27c
[ "CC0-1.0" ]
448
2021-10-01T04:24:14.000Z
2022-03-06T14:34:20.000Z
Python/array_duplicates.py
Chanaka-Madushan-Herath/hacktoberfest2021
8473df9e058ccb6049720dd372342e0ea60f0e59
[ "CC0-1.0" ]
282
2021-10-01T04:29:06.000Z
2022-03-07T12:42:57.000Z
Python/array_duplicates.py
Chanaka-Madushan-Herath/hacktoberfest2021
8473df9e058ccb6049720dd372342e0ea60f0e59
[ "CC0-1.0" ]
1,807
2021-10-01T04:24:02.000Z
2022-03-28T04:51:25.000Z
# Find duplicates in an array def findDup(liArr): liArr.sort() liDuplicate=[] for i in range(0, len(liArr)-1): if liArr[i]==liArr[i+1]: liDuplicate.append(liArr[i]) return liDuplicate print("enter array elements: ") sample = list(map(int, input().split())) print(findDup(sa...
22.75
40
0.604396
742d21f4a9cdd89a76f8266e9b93d01eab209245
15,496
py
Python
python/ccxt/async_support/bit2c.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
4
2021-01-10T09:14:17.000Z
2022-02-15T19:09:52.000Z
python/ccxt/async_support/bit2c.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
2
2020-05-12T12:53:48.000Z
2020-07-05T12:59:52.000Z
python/ccxt/async_support/bit2c.py
z-brain/ccxt
dde32cfb5e0e2e2889ead60687d6fd0fdf5e3f02
[ "MIT" ]
4
2021-06-02T16:40:35.000Z
2022-03-14T04:50:31.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
39.329949
137
0.475607
fec18d288eb9381938b3ede83b8a9070c59665e7
381
py
Python
src/migrations/0014_courier_fcm_token.py
AgnosticMe/swiftly
1fc5fed6e90b8cbdcb6038303537aa0f82ae70d7
[ "MIT" ]
null
null
null
src/migrations/0014_courier_fcm_token.py
AgnosticMe/swiftly
1fc5fed6e90b8cbdcb6038303537aa0f82ae70d7
[ "MIT" ]
null
null
null
src/migrations/0014_courier_fcm_token.py
AgnosticMe/swiftly
1fc5fed6e90b8cbdcb6038303537aa0f82ae70d7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-29 10:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('src', '0013_transaction_status'), ] operations = [ migrations.AddField( model_name='courier', name='fcm_token', ...
20.052632
47
0.593176
4b52ae4625affef5671c97c7282bae5ad2b80aca
857
py
Python
valleydeight/base.py
benkrikler/valedictory
36968f4da5bb5a6c4e85bd7f02fdc32db08e9579
[ "MIT" ]
1
2019-02-22T17:12:48.000Z
2019-02-22T17:12:48.000Z
valleydeight/base.py
benkrikler/valedictory
36968f4da5bb5a6c4e85bd7f02fdc32db08e9579
[ "MIT" ]
1
2019-02-22T16:40:36.000Z
2019-02-22T16:40:36.000Z
valleydeight/base.py
benkrikler/valleydeight
36968f4da5bb5a6c4e85bd7f02fdc32db08e9579
[ "MIT" ]
null
null
null
from .exceptions import ValidatorException __all__ = ["Pass"] class BaseValidator(object): def __init__(self, node=""): self.__name = node @property def node(self): return self.__name @property def options(self): return tuple() def __call__(self, instance): ...
21.425
91
0.613769
b443139196fe6b693102b2d777e546131399ae94
773
py
Python
base/test_views.py
tosp/ProjectProto
5e2c73d401da9c48088cbe573723e224d29f2c1a
[ "MIT" ]
null
null
null
base/test_views.py
tosp/ProjectProto
5e2c73d401da9c48088cbe573723e224d29f2c1a
[ "MIT" ]
null
null
null
base/test_views.py
tosp/ProjectProto
5e2c73d401da9c48088cbe573723e224d29f2c1a
[ "MIT" ]
null
null
null
from django.test import TestCase from splinter import Browser class TestBaseViews(TestCase): def setUp(self): self.browser = Browser('chrome') def tearDown(self): self.browser.quit() def test_home(self): self.browser.visit('http://localhost:8000') test_string = 'Hello, w...
27.607143
62
0.649418
c42fd12761fcc8e0e3abacdb1ba550904e829133
817
py
Python
pypal/geometry/capsule.py
code-forger/PyPal
f880f2bc9a4aa01e1c9aa2cfc956202e91ab1a69
[ "BSD-2-Clause" ]
null
null
null
pypal/geometry/capsule.py
code-forger/PyPal
f880f2bc9a4aa01e1c9aa2cfc956202e91ab1a69
[ "BSD-2-Clause" ]
null
null
null
pypal/geometry/capsule.py
code-forger/PyPal
f880f2bc9a4aa01e1c9aa2cfc956202e91ab1a69
[ "BSD-2-Clause" ]
null
null
null
from pypal import private_globals as _pal import ctypes as c import weakref from geometry import Geometry class Capsule(Geometry): """ A Capsule Geometry. """ def __init__(self, pos, size, rotation=[0,0,0], mass=1): """ Parameters: pos: ``float[3]`` The x, y, z, position of the Capsule...
51.0625
229
0.645043
dbd95dfd2c90383b40aca29c847bdede8dbd8317
10,493
py
Python
src/train_and_run_model.py
bithikajain/House-Number-Detection
15dc4dadc54e00e04fdabc6c136777767c538b08
[ "MIT" ]
null
null
null
src/train_and_run_model.py
bithikajain/House-Number-Detection
15dc4dadc54e00e04fdabc6c136777767c538b08
[ "MIT" ]
null
null
null
src/train_and_run_model.py
bithikajain/House-Number-Detection
15dc4dadc54e00e04fdabc6c136777767c538b08
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import os import sys sys.path.append('/home/bithika/src/House-Number-Detection') import time from datetime import timedelta import numpy as np import matplotlib.pyplot as plt import seaborn as sns from scipy.io import loadmat from skimage imp...
35.093645
127
0.606404
83ca928bd90ba6e0929177e0ce7574aa39898e7f
9,791
py
Python
implementations/acgan/acgan.py
jasonlai777/Pytorch_GAN
b2fc44a38400b58c2efd359afb5ec74960881263
[ "MIT" ]
null
null
null
implementations/acgan/acgan.py
jasonlai777/Pytorch_GAN
b2fc44a38400b58c2efd359afb5ec74960881263
[ "MIT" ]
null
null
null
implementations/acgan/acgan.py
jasonlai777/Pytorch_GAN
b2fc44a38400b58c2efd359afb5ec74960881263
[ "MIT" ]
null
null
null
import argparse import os import numpy as np import math import torchvision.transforms as transforms from torchvision.utils import save_image #import torchvision.datasets.ImageFolder as IF from torch.utils.data import DataLoader from torchvision import datasets from torch.autograd import Variable from dataset import D...
35.474638
128
0.639771
6c76591f8d36153f2174bfb66c8fe0ffbe22c3d7
280
py
Python
re_charset_dot.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
1
2018-07-02T03:37:03.000Z
2018-07-02T03:37:03.000Z
re_charset_dot.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
re_charset_dot.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
from re_testpattern import test_patterns test_patterns( 'abbaabbba', [('a.', 'a followed by any one character'), ('b.', 'b followed by any one character '), ('a.*b', 'a followed by anything , ending in b'), ('a.*?b', 'a followed by anything, ending in b')], )
31.111111
54
0.617857
d19edaedc7388a04c21d37131129ea623a85f82f
30,922
py
Python
test/functional/swift_test_client.py
tsg-/swift-ec
d5cc4d274696b587e820050774db4ca2c3d9c85c
[ "Apache-2.0" ]
null
null
null
test/functional/swift_test_client.py
tsg-/swift-ec
d5cc4d274696b587e820050774db4ca2c3d9c85c
[ "Apache-2.0" ]
null
null
null
test/functional/swift_test_client.py
tsg-/swift-ec
d5cc4d274696b587e820050774db4ca2c3d9c85c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
32.447009
78
0.522185
8aa25ff80f7e23538661eaa4cfc31ce525d81fdd
1,698
py
Python
storops_comptest/vnx/conftest.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
60
2016-04-18T23:42:10.000Z
2022-03-23T02:26:03.000Z
storops_comptest/vnx/conftest.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
317
2016-05-25T06:45:37.000Z
2022-03-25T13:22:38.000Z
storops_comptest/vnx/conftest.py
tunaruraul/storops
7092c516c55b4c2f00c7c22383e1ad46ecfec091
[ "Apache-2.0" ]
34
2016-03-18T02:39:12.000Z
2022-01-07T12:54:14.000Z
# coding=utf-8 # Copyright (c) 2015 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
29.275862
78
0.703769
68120999699e51ef50d16d206ced479bced05baf
2,968
py
Python
scripts/go_to_goal.py
VeryHardBit/control_turtebot2
5158574f9f7eb76bee19f16b7e11f6f72853fd43
[ "Apache-2.0" ]
null
null
null
scripts/go_to_goal.py
VeryHardBit/control_turtebot2
5158574f9f7eb76bee19f16b7e11f6f72853fd43
[ "Apache-2.0" ]
null
null
null
scripts/go_to_goal.py
VeryHardBit/control_turtebot2
5158574f9f7eb76bee19f16b7e11f6f72853fd43
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from nav_msgs.msg import Odometry from tf.transformations import euler_from_quaternion from math import cos, sin, sqrt class GoToGoal(): def __init__(self): rospy.init_node('go_to_goal_node', anonymous=False, log_level=rospy.DEBUG) ...
41.802817
104
0.648922
28bc9bd6f5ff37af153078e086bf406fb61f1190
1,209
py
Python
coursera/python_database/week2/emaildb.py
concongo/pythonSamples
683a570b068ca76ba0ed1d9d42c90b03ed8e4553
[ "MIT" ]
null
null
null
coursera/python_database/week2/emaildb.py
concongo/pythonSamples
683a570b068ca76ba0ed1d9d42c90b03ed8e4553
[ "MIT" ]
null
null
null
coursera/python_database/week2/emaildb.py
concongo/pythonSamples
683a570b068ca76ba0ed1d9d42c90b03ed8e4553
[ "MIT" ]
null
null
null
import sqlite3, re conn = sqlite3.connect('emaildb.sqlite') cur = conn.cursor() cur.execute(''' DROP TABLE IF EXISTS Counts''') cur.execute(''' CREATE TABLE Counts (org TEXT, count INTEGER)''') fname = raw_input('Enter file name: ') if ( len(fname) < 1 ) : fname = 'mbox.txt' fh = open(fname) for line in fh: if ...
26.282609
69
0.623656
e7fd8e36fecf752de25e9bff4c7878ecccb24dbf
1,960
py
Python
tests/integration/dashboard/test_voucher_form.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
tests/integration/dashboard/test_voucher_form.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
tests/integration/dashboard/test_voucher_form.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta import pytest from django import test from django.utils import timezone from oscar.apps.dashboard.vouchers import forms from oscar.test.factories.offer import RangeFactory class TestVoucherForm(test.TestCase): def test_doesnt_crash_on_empty_date_fields(self): ...
31.111111
79
0.561224
c6ada70fb8253a88213f16cfdb59e911dd57ed44
5,273
py
Python
OP/conf.py
daserzw/oidc-swamid-federation
2f97eac2d63186848c4984b4fb9559cb9029b6a9
[ "Apache-2.0" ]
null
null
null
OP/conf.py
daserzw/oidc-swamid-federation
2f97eac2d63186848c4984b4fb9559cb9029b6a9
[ "Apache-2.0" ]
null
null
null
OP/conf.py
daserzw/oidc-swamid-federation
2f97eac2d63186848c4984b4fb9559cb9029b6a9
[ "Apache-2.0" ]
null
null
null
from fedoidcendpoint.oidc import provider_config from fedoidcendpoint.oidc import registration from oidcendpoint import user_info from oidcendpoint.oidc.authorization import Authorization from oidcendpoint.oidc.discovery import Discovery from oidcendpoint.oidc.token import AccessToken from oidcendpoint.oidc.userinfo i...
37.133803
80
0.460838
b215d3d0dd455544cdab0768ecd298e1fda591dd
2,812
py
Python
softlearning/policies/utils.py
abhishekunique/RND-ashwin
f8bcf3c593df2dacc0efba0875533be71ccb5011
[ "MIT" ]
5
2021-09-23T07:35:58.000Z
2022-01-07T21:23:06.000Z
MTRF/algorithms/softlearning/policies/utils.py
facebookresearch/MTRF
2fee8f3f1c2150fcecc2db2fa9e122a664a72d72
[ "Apache-2.0" ]
7
2020-09-25T22:41:46.000Z
2022-03-12T00:37:25.000Z
softlearning/policies/utils.py
abhishekunique/RND-ashwin
f8bcf3c593df2dacc0efba0875533be71ccb5011
[ "MIT" ]
1
2021-12-10T20:01:16.000Z
2021-12-10T20:01:16.000Z
from collections import OrderedDict from copy import deepcopy from softlearning.preprocessors.utils import get_preprocessor_from_params def get_gaussian_policy(*args, **kwargs): from .gaussian_policy import FeedforwardGaussianPolicy policy = FeedforwardGaussianPolicy(*args, **kwargs) return policy de...
29.291667
78
0.728307
3d1999eede0bdf62081dd568481ba0babaa9f546
1,582
py
Python
conjureup/models/addon.py
stefb965/conjure-up
62d272ce82645109899c7e2a7a7ece0cc2bd3fc6
[ "MIT" ]
null
null
null
conjureup/models/addon.py
stefb965/conjure-up
62d272ce82645109899c7e2a7a7ece0cc2bd3fc6
[ "MIT" ]
null
null
null
conjureup/models/addon.py
stefb965/conjure-up
62d272ce82645109899c7e2a7a7ece0cc2bd3fc6
[ "MIT" ]
null
null
null
from itertools import chain from pathlib import Path import yaml from conjureup.app_config import app from conjureup.models.step import StepModel class AddonModel: @classmethod def load_spell_addons(cls): """ Return a list of all add-ons available for the current spell. """ a...
30.423077
73
0.627054
f78a6a3ec4dee0c4b194df08968179a27b24c642
3,443
py
Python
meta/migrations/0001_initial.py
josl/COMPARE-Uploader-Docker
56e41005cfe71f4245854e4f0211fa2757b46e93
[ "Apache-2.0" ]
null
null
null
meta/migrations/0001_initial.py
josl/COMPARE-Uploader-Docker
56e41005cfe71f4245854e4f0211fa2757b46e93
[ "Apache-2.0" ]
null
null
null
meta/migrations/0001_initial.py
josl/COMPARE-Uploader-Docker
56e41005cfe71f4245854e4f0211fa2757b46e93
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-07 13:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import meta.models class Migration(migrations.Migration): initial = True dependencies = ...
59.362069
223
0.60761
1115d9587b2562ce0ecc23423330073935ee9784
397
py
Python
jumboSmash/jumboSmash/asgi.py
wolfep15/arith
14e628210e54d8f171dff796e7c71d3ea1574067
[ "MIT" ]
1
2020-08-04T01:10:56.000Z
2020-08-04T01:10:56.000Z
jumboSmash/jumboSmash/asgi.py
wolfep15/arith
14e628210e54d8f171dff796e7c71d3ea1574067
[ "MIT" ]
null
null
null
jumboSmash/jumboSmash/asgi.py
wolfep15/arith
14e628210e54d8f171dff796e7c71d3ea1574067
[ "MIT" ]
null
null
null
""" ASGI config for jumboSmash project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
5030752a559e0fb9d6e60b5c8be0a92f81280fe8
6,254
py
Python
google_appengine/google/appengine/api/logservice/logsutil.py
iTrollYou/WEB_Spotify_Youtube
5315cdf78361942bba0b52daa8b65d74998d2db5
[ "MIT" ]
26
2015-01-20T08:02:38.000Z
2020-06-10T04:57:41.000Z
google_appengine/google/appengine/api/logservice/logsutil.py
iTrollYou/WEB_Spotify_Youtube
5315cdf78361942bba0b52daa8b65d74998d2db5
[ "MIT" ]
4
2016-02-28T05:53:54.000Z
2017-01-03T07:39:50.000Z
google/appengine/api/logservice/logsutil.py
fullstorydev/goappengine
a508ebb77930bef26785baf2f3278c95e6b63ffc
[ "Apache-2.0" ]
13
2016-02-28T00:14:23.000Z
2021-05-03T15:47:36.000Z
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
25.217742
80
0.709946
0e9e2e8429e51a328e397f9e2a05ab7209c9c1a2
6,644
py
Python
python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py
hshen14/Paddle
0962be9c800d29e0804fc3135163bdfba1564c61
[ "Apache-2.0" ]
2
2019-04-03T05:36:17.000Z
2020-04-29T03:38:54.000Z
python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py
hshen14/Paddle
0962be9c800d29e0804fc3135163bdfba1564c61
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_lstm_cudnn_op.py
hshen14/Paddle
0962be9c800d29e0804fc3135163bdfba1564c61
[ "Apache-2.0" ]
3
2019-01-07T06:50:29.000Z
2019-03-13T08:48:23.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
34.42487
75
0.604154
8e9db82fa14a4a923f84e8c28045f18725ee4e6d
2,206
py
Python
google-cloud-sdk/lib/surface/pubsub/topics/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/pubsub/topics/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/pubsub/topics/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# 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 required by applicable law or ag...
33.938462
80
0.719402
fec922ddaec07a638062872503e9bcf797201956
642
py
Python
scrapeSites.py
MuSystemsAnalysis/craigslist_area_search
636ce7220ec65c346d3e20121e2312a98e39028f
[ "MIT" ]
null
null
null
scrapeSites.py
MuSystemsAnalysis/craigslist_area_search
636ce7220ec65c346d3e20121e2312a98e39028f
[ "MIT" ]
1
2015-10-19T01:00:28.000Z
2015-10-19T01:00:28.000Z
scrapeSites.py
MuSystemsAnalysis/craigslist_area_search
636ce7220ec65c346d3e20121e2312a98e39028f
[ "MIT" ]
null
null
null
#!/usr/bin/python3.4 # Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design # Returns dictionary of 'city name string' : 'site url' # for all American cities in states/territories @ CL from bs4 import BeautifulSoup import re def getCities(): with open("sites.htm") as sites: fh...
22.137931
62
0.669782
8c7763a9c8ff2543bc7a6b4d88b0dc6b8243468b
1,904
py
Python
senlin-7.0.0/senlin/api/openstack/versions.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
senlin-7.0.0/senlin/api/openstack/versions.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
senlin-7.0.0/senlin/api/openstack/versions.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.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 # ...
31.733333
78
0.672269
a3b2dba4452e82984a6464eb2d85143399185379
5,983
py
Python
DataConnector/AppIdentifier.py
twatteynelinear/dustlink_sierra
9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b
[ "BSD-3-Clause" ]
4
2016-09-07T05:46:20.000Z
2020-05-31T21:34:27.000Z
DataConnector/AppIdentifier.py
twatteynelinear/dustlink_sierra
9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b
[ "BSD-3-Clause" ]
null
null
null
DataConnector/AppIdentifier.py
twatteynelinear/dustlink_sierra
9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b
[ "BSD-3-Clause" ]
6
2015-01-22T10:14:24.000Z
2020-05-31T21:34:30.000Z
#!/usr/bin/python import logging class NullHandler(logging.Handler): def emit(self, record): pass log = logging.getLogger('AppIdentifier') log.setLevel(logging.ERROR) log.addHandler(NullHandler()) import time import struct from DustLinkData import DustLinkData from EventBus ...
36.705521
106
0.467826
02832badad95488e9a747c2273893b9f18ee657a
156
py
Python
src/utils.py
trankhavy/capstone_demo
c3264a8dd4e64e065019673f8f880327906a992b
[ "MIT" ]
null
null
null
src/utils.py
trankhavy/capstone_demo
c3264a8dd4e64e065019673f8f880327906a992b
[ "MIT" ]
null
null
null
src/utils.py
trankhavy/capstone_demo
c3264a8dd4e64e065019673f8f880327906a992b
[ "MIT" ]
null
null
null
import os ROOT = os.getcwd() class JSONConfig(object): def __init__(self, **args): for key in args: setattr(self, key, args[key])
17.333333
41
0.596154
d41947510c1bb0c87fc2837a91f3fe028516a1a3
22,273
py
Python
pandas/core/sorting.py
aa-182758/pandas
53b3dd53c7f2c3d24aa77d5a1bc531b1fcd45d70
[ "BSD-3-Clause" ]
1
2022-03-05T02:14:02.000Z
2022-03-05T02:14:02.000Z
pandas/core/sorting.py
aa-182758/pandas
53b3dd53c7f2c3d24aa77d5a1bc531b1fcd45d70
[ "BSD-3-Clause" ]
1
2022-03-08T02:15:07.000Z
2022-03-08T02:15:07.000Z
pandas/core/sorting.py
aa-182758/pandas
53b3dd53c7f2c3d24aa77d5a1bc531b1fcd45d70
[ "BSD-3-Clause" ]
1
2022-03-22T11:50:25.000Z
2022-03-22T11:50:25.000Z
""" miscellaneous sorting / groupby utilities """ from __future__ import annotations from collections import defaultdict from typing import ( TYPE_CHECKING, Callable, DefaultDict, Hashable, Iterable, Sequence, ) import warnings import numpy as np from pandas._libs import ( algos, hash...
30.721379
88
0.633098
6e28ea1651e603a824b236666ddda0fdc4e1e949
18,105
py
Python
c2cgeoportal/views/layers.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/views/layers.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/views/layers.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2012-2016, Camptocamp SA # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this #...
41.909722
88
0.646065
36b54ce6e976ba04021dea69a438033c123627a4
60
py
Python
lang/py/cookbook/v2/source/cb2_19_7_exm_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_19_7_exm_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_19_7_exm_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
weekly_sales = itertools.imap(sum, windows(daily_sales, 7))
30
59
0.783333
bcfd35594b162f609aa7c9d98f9a4ecde89e6195
4,876
py
Python
grading_module/notes/was_the_original_ag/grader.py
minneapolis-edu/web-autograder
96e8e976166576a396ac7b6f6fb978d62c20d665
[ "Unlicense" ]
1
2019-02-27T00:38:08.000Z
2019-02-27T00:38:08.000Z
grading_module/notes/was_the_original_ag/grader.py
minneapolis-edu/web-autograder
96e8e976166576a396ac7b6f6fb978d62c20d665
[ "Unlicense" ]
5
2020-02-11T23:32:47.000Z
2022-03-02T02:54:52.000Z
grading_module/notes/was_the_original_ag/grader.py
minneapolis-edu/web-autograder
96e8e976166576a396ac7b6f6fb978d62c20d665
[ "Unlicense" ]
null
null
null
# Read the JSON file with grades # Assume test and grades/file are correct # import json import os import re ''' Example schema: test_file might be an array OR single string (barf, fixme) { "week" : 9 , "questions" : [ { "question" : 1, "java_file": "TicketProgram.java", "test_file": "Ticket...
32.291391
188
0.596185
bfcb86bfe4ee14dd7f4eb8ae0edc5e0090f9080e
5,766
py
Python
FusionIIIT/applications/programme_curriculum/models.py
Draco-D/Fusion
065f5f9939d6f736b6b42c2650e5a05aef5dab52
[ "bzip2-1.0.6" ]
1
2021-08-05T10:31:35.000Z
2021-08-05T10:31:35.000Z
FusionIIIT/applications/programme_curriculum/models.py
Draco-D/Fusion
065f5f9939d6f736b6b42c2650e5a05aef5dab52
[ "bzip2-1.0.6" ]
null
null
null
FusionIIIT/applications/programme_curriculum/models.py
Draco-D/Fusion
065f5f9939d6f736b6b42c2650e5a05aef5dab52
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models import datetime from django.db.models.fields import IntegerField, PositiveIntegerField # Create your models here. PROGRAMME_CATEGORY_CHOICES = [ ('UG', 'Undergraduate'), ('PG', 'Postgraduate'), ('PHD', 'Doctor of Philosophy') ] COURSESLOT_TYPE_CHOICES = [ ('Professional ...
35.813665
106
0.709157
0b67729a11d24d8a8956e32f2e65e6a2e9329971
1,787
py
Python
django_semantic_ui/templatetags/dsu.py
franklintiel/django-semantic-ui
2403fda64c71f31028a8db769cc92e8a7f0cb8f8
[ "MIT" ]
5
2018-12-16T23:40:40.000Z
2021-06-13T23:37:10.000Z
django_semantic_ui/templatetags/dsu.py
franklintiel/django-semantic-ui
2403fda64c71f31028a8db769cc92e8a7f0cb8f8
[ "MIT" ]
3
2019-04-08T07:56:49.000Z
2021-02-01T13:34:24.000Z
django_semantic_ui/templatetags/dsu.py
franklintiel/django-semantic-ui
2403fda64c71f31028a8db769cc92e8a7f0cb8f8
[ "MIT" ]
1
2019-01-08T10:02:16.000Z
2019-01-08T10:02:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import template from django_semantic_ui.utils import Utils, Constant from django_semantic_ui.models import SemanticUI register = template.Library() dsu = SemanticUI() @register.simple_tag() def dsu_javascript_url(): """ Template tag...
28.365079
113
0.643537
d2dd41e7ca7833b188816ed599bbf417544df047
5,978
py
Python
userprofile/views.py
aneumeier/userprofile
065f24b4cad82a4281a2e05968861d236b5d05ef
[ "MIT" ]
null
null
null
userprofile/views.py
aneumeier/userprofile
065f24b4cad82a4281a2e05968861d236b5d05ef
[ "MIT" ]
null
null
null
userprofile/views.py
aneumeier/userprofile
065f24b4cad82a4281a2e05968861d236b5d05ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- """ Views """ from django.views.generic import TemplateView from django.views.generic import FormView from django.views.generic.detail import DetailView from django.utils.decorators import method_decorator from django.views.decorators.cache import never_cache from dj...
30.5
74
0.65624
80587ec6d4d72f3c63807d07dbaea35fac808aa8
822
py
Python
main/GOLD/gold_rates.py
TSG405/Unit-Converter
98bdedc8130614ef41ba775b67488fb93df4b2da
[ "BSD-3-Clause" ]
1
2021-04-25T05:33:53.000Z
2021-04-25T05:33:53.000Z
main/GOLD/gold_rates.py
TSG405/Unit-Converter
98bdedc8130614ef41ba775b67488fb93df4b2da
[ "BSD-3-Clause" ]
null
null
null
main/GOLD/gold_rates.py
TSG405/Unit-Converter
98bdedc8130614ef41ba775b67488fb93df4b2da
[ "BSD-3-Clause" ]
null
null
null
import http.client import json import time API = input("BOT: ENTER YOUR GOLD-API TOKEN :--- \t") print("\n") # API-ACCESS FUNCTION def gold_api(API): payload = '' headers = { 'x-access-token': API, 'Content-Type': 'application/json' } url = "www.goldapi.io" try: conn = http.client.H...
17.489362
77
0.607056
3274af8195107628875f00052f449102daa241f4
12,183
py
Python
graphene_django_extras/utils.py
ZuluPro/graphene-django-extras
184ceea7c4807b4db5e9ae81077f09e251cff80d
[ "MIT" ]
null
null
null
graphene_django_extras/utils.py
ZuluPro/graphene-django-extras
184ceea7c4807b4db5e9ae81077f09e251cff80d
[ "MIT" ]
null
null
null
graphene_django_extras/utils.py
ZuluPro/graphene-django-extras
184ceea7c4807b4db5e9ae81077f09e251cff80d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import inspect import re import six from collections import OrderedDict from django import VERSION as DJANGO_VERSION from django.apps import apps from django.contrib.contenttypes.fields import GenericForeignKey, GenericRel from django.core.exceptions import ValidationError from django.db.models...
32.75
98
0.649183
a9292306679f05b64d4fd33f4afff7871ce39192
18,412
py
Python
Lib/site-packages/google/cloud/language_v1/services/language_service/transports/grpc_asyncio.py
AbdelrahmanG/google_nl_api
3252c1b6a24a5d763543efd15a799e97653a6cf3
[ "0BSD" ]
null
null
null
Lib/site-packages/google/cloud/language_v1/services/language_service/transports/grpc_asyncio.py
AbdelrahmanG/google_nl_api
3252c1b6a24a5d763543efd15a799e97653a6cf3
[ "0BSD" ]
null
null
null
Lib/site-packages/google/cloud/language_v1/services/language_service/transports/grpc_asyncio.py
AbdelrahmanG/google_nl_api
3252c1b6a24a5d763543efd15a799e97653a6cf3
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
43.838095
98
0.643222
9d79d8938ac10c77c73544f7f3a7cc305eaab842
1,019
py
Python
zendesk/komand_zendesk/actions/show_user/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
zendesk/komand_zendesk/actions/show_user/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
zendesk/komand_zendesk/actions/show_user/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Retrieve user information" class Input: USER_ID = "user_id" class Output: USER = "user" class ShowUserInput(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variab...
16.435484
59
0.554465
7bab07a547f268e4e48f7f00cddec1af2abd0ead
975
py
Python
tests/sentry/api/endpoints/test_project_stats.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_stats.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
tests/sentry/api/endpoints/test_project_stats.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry import tsdb from sentry.testutils import APITestCase class ProjectStatsTest(APITestCase): def test_simple(self): self.login_as(user=self.user) project1 = self.create_project(name='foo') proje...
32.5
75
0.670769
1847781855d5cfa00a0b56ec8fb66cffb60b6f9a
502
py
Python
src/element_generation.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
5
2015-09-11T04:13:01.000Z
2021-11-17T14:35:28.000Z
src/element_generation.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
null
null
null
src/element_generation.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
1
2021-03-15T17:31:27.000Z
2021-03-15T17:31:27.000Z
from Input import * import combinational_element_factory import addition_element_factory def generate_element(equation, use_input_color_key = None, use_output_color_key = None): if type(equation) is SumOfProductsEquation: return combinational_element_factory.generate(equation, use_input_co...
45.636364
106
0.796813
7ee5eed4b383fcb1fb617a103fdd258e4d14c512
707
py
Python
src/openbiolink/graph_creation/file_processor/onto_mapping/ontoMapDoUmlsProcessor.py
jerryhluo/OpenBioLink
6fc073af978daec0b0db5938b73beed37f57f495
[ "MIT" ]
97
2019-11-26T09:53:18.000Z
2022-03-19T10:33:10.000Z
src/openbiolink/graph_creation/file_processor/onto_mapping/ontoMapDoUmlsProcessor.py
jerryhluo/OpenBioLink
6fc073af978daec0b0db5938b73beed37f57f495
[ "MIT" ]
67
2019-12-09T21:01:52.000Z
2021-12-21T15:19:41.000Z
src/openbiolink/graph_creation/file_processor/onto_mapping/ontoMapDoUmlsProcessor.py
jerryhluo/OpenBioLink
6fc073af978daec0b0db5938b73beed37f57f495
[ "MIT" ]
20
2020-01-13T23:02:25.000Z
2022-03-16T21:43:31.000Z
from openbiolink.graph_creation.file_processor.fileProcessor import FileProcessor from openbiolink.graph_creation.metadata_infile.mapping.inMetaMapOntoDoUmls import InMetaMapOntoDoUmls from openbiolink.graph_creation.types.infileType import InfileType from openbiolink.graph_creation.types.readerType import ReaderType ...
39.277778
102
0.779349
96b3f3dda7fe13ed5ef2f34c83781613614f91a7
5,055
py
Python
fjarrsyn/tests/test_agent_fsimulate_sample_1.py
anderzzz/fjarrsyn
742f86d727634e3612cf0b4e1ca78af9d0ccf525
[ "BSD-3-Clause" ]
null
null
null
fjarrsyn/tests/test_agent_fsimulate_sample_1.py
anderzzz/fjarrsyn
742f86d727634e3612cf0b4e1ca78af9d0ccf525
[ "BSD-3-Clause" ]
null
null
null
fjarrsyn/tests/test_agent_fsimulate_sample_1.py
anderzzz/fjarrsyn
742f86d727634e3612cf0b4e1ca78af9d0ccf525
[ "BSD-3-Clause" ]
null
null
null
'''Integration test of finite simulation of a system ''' import pytest import os from fjarrsyn.simulation.simulator import FiniteSystemRunner from fjarrsyn.simulation.sampler import AgentSampler, SystemIO from fjarrsyn.core.agent import Agent from fjarrsyn.core.agent_ms import AgentManagementSystem from fjarrsyn.co...
38.007519
91
0.618991
34f8a5dda0eae9b0d615bc3080ed246f99472dbb
3,905
py
Python
scrape_mars.py
rashhola/mission-to-mars
ca05299e45a67fb69f7b152c930dee4500c98464
[ "Apache-2.0" ]
null
null
null
scrape_mars.py
rashhola/mission-to-mars
ca05299e45a67fb69f7b152c930dee4500c98464
[ "Apache-2.0" ]
null
null
null
scrape_mars.py
rashhola/mission-to-mars
ca05299e45a67fb69f7b152c930dee4500c98464
[ "Apache-2.0" ]
null
null
null
# Define a function called `scrape` that will execute all of your scraping code from the `mission_to_mars.ipynb` notebook and return one Python dictionary containing all of the scraped data. from splinter import Browser from bs4 import BeautifulSoup from webdriver_manager.chrome import ChromeDriverManager import pand...
34.557522
191
0.708323
5254a9becec456d5b8305f823f8626cba71191bc
25,431
py
Python
desktop/core/ext-py/future-0.16.0/tests/test_future/test_bytes.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
3
2018-01-29T14:16:02.000Z
2019-02-05T21:33:05.000Z
desktop/core/ext-py/future-0.16.0/tests/test_future/test_bytes.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
7
2019-11-28T21:48:38.000Z
2020-08-02T18:06:40.000Z
desktop/core/ext-py/future-0.16.0/tests/test_future/test_bytes.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
6
2020-05-29T21:46:30.000Z
2020-12-15T20:32:19.000Z
# -*- coding: utf-8 -*- """ Tests for the backported bytes object """ from __future__ import absolute_import, unicode_literals, print_function from future.builtins import * from future import utils from numbers import Integral from future.tests.base import unittest, expectedFailurePY2 TEST_UNICODE_STR = u'ℝεα∂@ßʟ℮ ...
35.667602
765
0.56789
5b45fb614c1426a29b5b74a46fc5d163a74a8862
566
py
Python
T04/ex06.py
mariogarcc/comphy
3ab05a07dfa2eb8a1165fca1bdfd9bda6c8e27d3
[ "CC0-1.0" ]
null
null
null
T04/ex06.py
mariogarcc/comphy
3ab05a07dfa2eb8a1165fca1bdfd9bda6c8e27d3
[ "CC0-1.0" ]
null
null
null
T04/ex06.py
mariogarcc/comphy
3ab05a07dfa2eb8a1165fca1bdfd9bda6c8e27d3
[ "CC0-1.0" ]
null
null
null
from package import redact_ex from package import romberg_integrate import numpy as np EXERCISE_06 = """\ Make a program that computes the integral of a function f(x) in an interval [a, b] using the Romberg's rule for integration. Apply that to the case f(x) = (x**2 + x + 1) * cos(x) and a = 0, b = pi/2\ """ redac...
22.64
74
0.667845
1e55b592bb5296c5292f8039866703ae268c4af3
592
py
Python
raytorch/texture/metal.py
bostonrwalker/raytorch
75cafa976e00cd59ff2be25959931acea6367fb7
[ "MIT" ]
2
2020-10-19T13:55:40.000Z
2021-01-08T12:53:45.000Z
raytorch/texture/metal.py
bostonrwalker/raytorch
75cafa976e00cd59ff2be25959931acea6367fb7
[ "MIT" ]
null
null
null
raytorch/texture/metal.py
bostonrwalker/raytorch
75cafa976e00cd59ff2be25959931acea6367fb7
[ "MIT" ]
null
null
null
from raytorch.texture.fresnel_texture import FresnelTexture from raytorch.core import RGB import math class Metal(FresnelTexture): def __init__(self, surface_col=None, normal_map_path=None): if surface_col is None: surface_col = RGB(.3, .3, .3) def reflectivity(theta): p...
29.6
114
0.614865
940305ae286296a1d5507aa4e2fdc0ee38d78046
14,649
py
Python
ambari-agent/src/main/python/ambari_agent/HostInfo.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-agent/src/main/python/ambari_agent/HostInfo.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/HostInfo.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
31.503226
110
0.666598
47d4a8cdde1da0995d14e7c745c60edb626725bf
7,615
py
Python
phaseblock.py
ding-lab/SomaticHaplotype
1cec343d1129c4f5052e5f5250bb7d3e7ff25a36
[ "MIT" ]
null
null
null
phaseblock.py
ding-lab/SomaticHaplotype
1cec343d1129c4f5052e5f5250bb7d3e7ff25a36
[ "MIT" ]
null
null
null
phaseblock.py
ding-lab/SomaticHaplotype
1cec343d1129c4f5052e5f5250bb7d3e7ff25a36
[ "MIT" ]
null
null
null
import os import pickle import pysam import vcf from SomaticHaplotype import * ################################################################################ # bam functions ################################################################################ def extract_read_info(read): # Given a read from a bam, ex...
42.541899
116
0.65371
ab758462490f700ba63d9b9af639c9ecfd167433
12,006
py
Python
tpRigToolkit/tools/controlrig/dccs/maya/server.py
tpRigToolkit/tpRigToolkit-tools-controlrig
46e15377d64418bcc4bc8944c3f9537603fa0e9d
[ "MIT" ]
null
null
null
tpRigToolkit/tools/controlrig/dccs/maya/server.py
tpRigToolkit/tpRigToolkit-tools-controlrig
46e15377d64418bcc4bc8944c3f9537603fa0e9d
[ "MIT" ]
null
null
null
tpRigToolkit/tools/controlrig/dccs/maya/server.py
tpRigToolkit/tpRigToolkit-tools-controlrig
46e15377d64418bcc4bc8944c3f9537603fa0e9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains control rig server implementation for Maya """ from __future__ import print_function, division, absolute_import from tpDcc import dcc from tpDcc.core import server from tpDcc.libs.curves.core import lib from tpDcc.dccs.maya.core import filtertyp...
37.285714
113
0.589872
e0bbf24236d6f5d82917dffb2c364cefc8c0b80a
807
py
Python
manage.py
samsoluoch/Instagram
ea6305c0592c8efe173cf3e6b5f1c477650678db
[ "MIT" ]
1
2019-10-02T04:22:23.000Z
2019-10-02T04:22:23.000Z
manage.py
samsoluoch/Instagram
ea6305c0592c8efe173cf3e6b5f1c477650678db
[ "MIT" ]
8
2020-06-05T20:52:19.000Z
2022-03-12T00:15:13.000Z
manage.py
samsoluoch/Instagram
ea6305c0592c8efe173cf3e6b5f1c477650678db
[ "MIT" ]
2
2021-12-07T02:51:32.000Z
2021-12-13T13:30:27.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Instagram.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
35.086957
77
0.643123
289ae5733586fbf0ef57bf8e2acbe2591a6d3ec3
2,647
py
Python
yt_dlp/extractor/musescore.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
11
2022-01-06T22:09:50.000Z
2022-03-12T22:26:22.000Z
yt_dlp/extractor/musescore.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
4
2022-02-25T08:20:18.000Z
2022-03-17T16:16:20.000Z
yt_dlp/extractor/musescore.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
3
2022-02-19T08:59:13.000Z
2022-03-06T16:11:21.000Z
from .common import InfoExtractor class MuseScoreIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?musescore\.com/(?:user/\d+|[^/]+)(?:/scores)?/(?P<id>[^#&?]+)' _TESTS = [{ 'url': 'https://musescore.com/user/73797/scores/142975', 'info_dict': { 'id': '142975', 'ext'...
40.723077
123
0.529656
4f422b32c89c55d43e7e102db2c9453f8b38dfb1
11,164
py
Python
colour/utilities/tests/test_data_structures.py
timgates42/colour
cea486394e3925718a0f3dd427edc9dd5b674f0c
[ "BSD-3-Clause" ]
null
null
null
colour/utilities/tests/test_data_structures.py
timgates42/colour
cea486394e3925718a0f3dd427edc9dd5b674f0c
[ "BSD-3-Clause" ]
null
null
null
colour/utilities/tests/test_data_structures.py
timgates42/colour
cea486394e3925718a0f3dd427edc9dd5b674f0c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.utilities.data_structures` module. """ import numpy as np import operator import pickle import unittest from colour.utilities import (Structure, Lookup, CaseInsensitiveMapping, LazyCaseInsensitiveMapping) __author__...
29.148825
79
0.609549
47fe8bc2edff88cb2c56cb18378a398a0b47fffb
38,444
py
Python
python/ray/tests/test_autoscaler.py
eisber/ray
94a286ef1d8ad5a3093b7f996a811727fa0e2d3e
[ "Apache-2.0" ]
4
2019-10-18T17:44:58.000Z
2021-04-14T14:37:21.000Z
python/ray/tests/test_autoscaler.py
eisber/ray
94a286ef1d8ad5a3093b7f996a811727fa0e2d3e
[ "Apache-2.0" ]
1
2022-03-30T17:52:44.000Z
2022-03-30T17:52:44.000Z
python/ray/tests/test_autoscaler.py
eisber/ray
94a286ef1d8ad5a3093b7f996a811727fa0e2d3e
[ "Apache-2.0" ]
1
2020-06-26T07:54:25.000Z
2020-06-26T07:54:25.000Z
import shutil import tempfile import threading import time import unittest import yaml import copy import ray import ray.services as services from ray.autoscaler.autoscaler import StandardAutoscaler, LoadMetrics, \ fillout_defaults, validate_config from ray.autoscaler.tags import TAG_RAY_NODE_TYPE, TAG_RAY_NODE_ST...
35.432258
79
0.593747
f42bc4f14eaca63acf32f55b3a6569ad713a864a
934
py
Python
isi_sdk_8_1_0/test/test_storagepool_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_0/test/test_storagepool_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_0/test/test_storagepool_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 5 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_0 from i...
22.780488
95
0.715203
25bb443283b1f8f77d50cc47c69d6fa49d4d43fd
5,322
py
Python
test/integration/029_docs_generate_tests/test_docs_generate.py
lewish/dbt
fa7f5070c4288d79daa7b196a408eb6853ee6385
[ "Apache-2.0" ]
null
null
null
test/integration/029_docs_generate_tests/test_docs_generate.py
lewish/dbt
fa7f5070c4288d79daa7b196a408eb6853ee6385
[ "Apache-2.0" ]
null
null
null
test/integration/029_docs_generate_tests/test_docs_generate.py
lewish/dbt
fa7f5070c4288d79daa7b196a408eb6853ee6385
[ "Apache-2.0" ]
null
null
null
import json import os from nose.plugins.attrib import attr from test.integration.base import DBTIntegrationTest class TestDocsGenerate(DBTIntegrationTest): def setUp(self): super(TestDocsGenerate, self).setUp() self.run_sql_file("test/integration/029_docs_generate_tests/seed.sql") @property...
32.060241
79
0.316986
cc3b0a33b25c1739cce23e2ee1d4d68117b05f00
1,234
py
Python
warp/data/dependencies.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/data/dependencies.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/data/dependencies.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
# std from copy import deepcopy # extern # warp import warp from warp.data.decorator import Decorator # types from typing import Dict __all__ = ['dependencies'] def dependencies(**kwargs: Dict[str, warp.Product]): """Link [`Product`](../../pipes/attributes/#Product) instances as dependencies of a [`Pipe`](.....
28.697674
132
0.641005
353fb424255985eea9309daacb9affcd9ccc8b92
561
py
Python
app/logic/benchmark/models/__init__.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
10
2017-01-13T06:28:04.000Z
2020-11-18T13:00:26.000Z
app/logic/benchmark/models/__init__.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
null
null
null
app/logic/benchmark/models/__init__.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
2
2018-03-29T14:10:53.000Z
2019-11-20T08:21:57.000Z
""" Automatic file """ # Duplicate code # pylint: disable=R0801 from app.logic.benchmark.models.BenchmarkDefinitionModel import BenchmarkDefinitionEntry from app.logic.benchmark.models.BenchmarkDefinitionWorkerPassModel import BenchmarkDefinitionWorkerPassEntry from app.logic.benchmark.models.BenchmarkExecutionModel ...
51
108
0.889483
9954afda5fd1aeb8109da8d05c956ec4e0a9ec8f
597
py
Python
oops_fhir/r4/value_set/identifier_type_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/identifier_type_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/identifier_type_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet __all__ = ["IdentifierTypeCodes"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class IdentifierTypeCodes(ValueSet): """ IdentifierType A coded type for an ...
19.9
70
0.721943
7980276d769f09c612b7ced93fce87a17c909077
1,525
py
Python
mailtorpedo/sender.py
abm-saeid/torpedo
3cfb571bfbc7b991312e04354d5773d7dc3b19a2
[ "MIT" ]
1
2021-09-01T05:55:44.000Z
2021-09-01T05:55:44.000Z
mailtorpedo/sender.py
abm-saeid/torpedo
3cfb571bfbc7b991312e04354d5773d7dc3b19a2
[ "MIT" ]
null
null
null
mailtorpedo/sender.py
abm-saeid/torpedo
3cfb571bfbc7b991312e04354d5773d7dc3b19a2
[ "MIT" ]
null
null
null
from os.path import exists import json import smtplib from .binder import Binder class Sender(): def __init__(self, creds, reader, template): if not exists(creds): raise FileNotFoundError("Credential file not found.") else: with open(creds, 'r', encoding='utf-8') as credfile...
31.122449
76
0.56
3c62771578f7b519ec81bcdb24a02b3b40606d9f
138
py
Python
API/rate/config.py
amitt001/Analytics-App
4e8568321d456afdd2e0689c160567fa1c1e60be
[ "MIT" ]
1
2015-12-09T16:38:57.000Z
2015-12-09T16:38:57.000Z
API/rate/config.py
amitt001/Analytics-App
4e8568321d456afdd2e0689c160567fa1c1e60be
[ "MIT" ]
null
null
null
API/rate/config.py
amitt001/Analytics-App
4e8568321d456afdd2e0689c160567fa1c1e60be
[ "MIT" ]
null
null
null
################## ######PYMONGO##### ################## REVIEW_DB = 'playDB' REVIEW_COLLECTION = 'snapv2_0' RATED_COLLECTION = 'test'
19.714286
30
0.485507
708330e0d3c3c4474f03c53e366e439c3fe5433a
5,649
py
Python
kernel_matrix_benchmarks/algorithms/base.py
PierreMarchand20/kernel-matrix-benchmarks
d31eac1b226358abd2e018493f5671b5a303d9dd
[ "MIT" ]
null
null
null
kernel_matrix_benchmarks/algorithms/base.py
PierreMarchand20/kernel-matrix-benchmarks
d31eac1b226358abd2e018493f5671b5a303d9dd
[ "MIT" ]
null
null
null
kernel_matrix_benchmarks/algorithms/base.py
PierreMarchand20/kernel-matrix-benchmarks
d31eac1b226358abd2e018493f5671b5a303d9dd
[ "MIT" ]
null
null
null
from __future__ import absolute_import from multiprocessing.pool import ThreadPool import psutil import numpy as np class BaseAlgorithm(object): def __init__( self, *, kernel, dimension, normalize_rows=False, precision=np.float64 ): """Sets up some of the basic attributes of our algorithm. ...
33.426036
110
0.61179
85d880fe1f9b1e80915ffaa86dcbded62681b73a
297
py
Python
Chapter09_code/ch09_05_config/__openerp__.py
PacktPublishing/Odoo-Development-Cookbook
5553110c0bc352c4541f11904e236cad3c443b8b
[ "MIT" ]
55
2016-05-23T16:05:50.000Z
2021-07-19T00:16:46.000Z
Chapter09_code/ch09_05_config/__openerp__.py
kogkog098/Odoo-Development-Cookbook
166c9b98efbc9108b30d719213689afb1f1c294d
[ "MIT" ]
1
2016-12-09T02:14:21.000Z
2018-07-02T09:02:20.000Z
Chapter09_code/ch09_05_config/__openerp__.py
kogkog098/Odoo-Development-Cookbook
166c9b98efbc9108b30d719213689afb1f1c294d
[ "MIT" ]
52
2016-06-01T20:03:59.000Z
2020-10-31T23:58:25.000Z
# -*- coding: utf-8 -*- { 'name': 'Cookbook Ch09 code', 'depends': ['base_setup'], 'category': 'Library', 'data': [ 'security/ir.model.access.csv', 'security/library_security.xml', 'views/library_book.xml', 'views/res_config_settings.xml', ], }
22.846154
40
0.552189
3001a4228981ed5edc9b96c32f54fd48c043ec8e
6,047
py
Python
posthog/helpers/dashboard_templates.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
58
2020-08-26T16:26:18.000Z
2022-03-30T05:32:23.000Z
posthog/helpers/dashboard_templates.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
15
2021-11-09T10:49:34.000Z
2021-11-09T16:11:01.000Z
posthog/helpers/dashboard_templates.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
13
2020-09-08T13:27:07.000Z
2022-03-19T17:27:10.000Z
import random from typing import Callable, Dict, List from django.utils.timezone import now from posthog.constants import ( BREAKDOWN, BREAKDOWN_TYPE, DATE_FROM, DISPLAY, ENTITY_ID, ENTITY_TYPE, INSIGHT, INSIGHT_TRENDS, INTERVAL, PROPERTIES, SHOWN_AS, TREND_FILTER_TYPE_...
34.953757
126
0.574004
21017d7d6694150e80921cb8ea5abbefcf1db5fa
6,055
py
Python
nokia7seg.py
mcauser/MicroPython-ESP8266-Nokia-5110-Quad-7-segment
369dc3c675e0dd770762beee6ea0dbfcdcf58127
[ "MIT" ]
3
2018-02-08T19:07:09.000Z
2018-12-07T00:04:32.000Z
nokia7seg.py
mcauser/MicroPython-ESP8266-Nokia-5110-Quad-7-segment
369dc3c675e0dd770762beee6ea0dbfcdcf58127
[ "MIT" ]
null
null
null
nokia7seg.py
mcauser/MicroPython-ESP8266-Nokia-5110-Quad-7-segment
369dc3c675e0dd770762beee6ea0dbfcdcf58127
[ "MIT" ]
null
null
null
""" MicroPython Nokia 5110 7-segment PCD8544 84x48 LCD driver https://github.com/mcauser/MicroPython-ESP8266-Nokia-5110-Quad-7-segment MIT License Copyright (c) 2016 Mike Causer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
33.269231
182
0.671346
120ea7653e523c8247e9c9be45c1102aea30813f
8,635
py
Python
tests/test_algorithm.py
adu461386118/PyRate
0428dba9e2b3d4b6807f8c62d55c161c0dd4d75a
[ "Apache-2.0" ]
1
2020-09-12T00:01:33.000Z
2020-09-12T00:01:33.000Z
tests/test_algorithm.py
adu461386118/PyRate
0428dba9e2b3d4b6807f8c62d55c161c0dd4d75a
[ "Apache-2.0" ]
null
null
null
tests/test_algorithm.py
adu461386118/PyRate
0428dba9e2b3d4b6807f8c62d55c161c0dd4d75a
[ "Apache-2.0" ]
null
null
null
# This Python module is part of the PyRate software package. # # Copyright 2020 Geoscience Australia # # 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/...
36.901709
79
0.600232