hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
2d3d4864859ee40632563ce0af32cebdd0937175
32,094
py
Python
scheduler/routes.py
ddiatlov/scheduler
f3343f20a2d104e20ec0031af6f6de2313656212
[ "MIT" ]
null
null
null
scheduler/routes.py
ddiatlov/scheduler
f3343f20a2d104e20ec0031af6f6de2313656212
[ "MIT" ]
null
null
null
scheduler/routes.py
ddiatlov/scheduler
f3343f20a2d104e20ec0031af6f6de2313656212
[ "MIT" ]
null
null
null
import calendar import os from datetime import datetime from dateutil.parser import parse # server side rendering related imports from flask import render_template, url_for, flash, redirect, request, jsonify, send_from_directory # login related imports from flask_login import login_user, logout_user, login_required, c...
39.330882
120
0.593226
2d3e7b2b839bb5d6d6c94bfdbafba9f0cd43ac82
1,248
py
Python
encrypt.py
grkrama/SampleEncryptionProgram
4ac5698d5c0205b2313c1cb9e80e5525f441e7dc
[ "MIT" ]
null
null
null
encrypt.py
grkrama/SampleEncryptionProgram
4ac5698d5c0205b2313c1cb9e80e5525f441e7dc
[ "MIT" ]
null
null
null
encrypt.py
grkrama/SampleEncryptionProgram
4ac5698d5c0205b2313c1cb9e80e5525f441e7dc
[ "MIT" ]
null
null
null
import base64 import os from cryptography.fernet import Fernet from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC #message = b"hello world" #message = "hello world" #password = b"password" #salt = os.urandom(16) #salt = b"hello" #kdf ...
22.690909
73
0.625801
2d3ea1065e8e6914e61c9e8dc14c875d892ae858
6,320
py
Python
projects/mid_atlantic/study/plot_Fig3_storage_potential.py
EnergyModels/caes
7bb3e7f9cfbfcc2e781918333f6be3b718ca0743
[ "MIT" ]
1
2022-03-30T07:40:45.000Z
2022-03-30T07:40:45.000Z
projects/mid_atlantic/study/plot_Fig3_storage_potential.py
EnergyModels/caes
7bb3e7f9cfbfcc2e781918333f6be3b718ca0743
[ "MIT" ]
null
null
null
projects/mid_atlantic/study/plot_Fig3_storage_potential.py
EnergyModels/caes
7bb3e7f9cfbfcc2e781918333f6be3b718ca0743
[ "MIT" ]
1
2021-11-02T17:02:27.000Z
2021-11-02T17:02:27.000Z
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset from math import pi import numpy as np import matplotlib.colors as colors import matplotlib.patches as mpatches df = pd.read_csv('all_analysis.csv') # f, a = plt.su...
36.744186
119
0.637184
2d3ece024c6e3b371b3ce91027eb8030eb483366
508
py
Python
Ene-Jun-2020/lopez-flores-jorge-luis/Practica1/practica1.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2020/lopez-flores-jorge-luis/Practica1/practica1.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2020/lopez-flores-jorge-luis/Practica1/practica1.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
############Con una funcin########################## print('Valor de M:') M = int(input()) print('Valor de N:') N = int(input()) print(M**N) print(pow(M, N)) print(potencia(M,N)) #########################Con un listas comprimidas######################## print('Valor de M:') M = int(input()) print('Valor de N:') N = i...
17.517241
74
0.494094
2d3ffe34f95afc554efd559de389de6e17e5f469
2,353
py
Python
setup.py
diecutter/piecutter
250a90a4cae1b72ff3c141dffb8c58de74dbedfd
[ "BSD-3-Clause" ]
2
2016-05-02T02:22:34.000Z
2021-02-08T18:17:30.000Z
setup.py
diecutter/piecutter
250a90a4cae1b72ff3c141dffb8c58de74dbedfd
[ "BSD-3-Clause" ]
2
2016-03-22T10:09:13.000Z
2016-07-01T08:04:43.000Z
setup.py
diecutter/piecutter
250a90a4cae1b72ff3c141dffb8c58de74dbedfd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Python packaging.""" import os import sys from setuptools import setup from setuptools.command.test import test as TestCommand #: Absolute path to directory containing setup.py file. here = os.path.abspath(os.path.dirname(__file__)) #: Boolean, ``True`` if environmen...
25.576087
76
0.640034
2d40243559b725d753f07723a2dc092564c538dc
12,205
py
Python
energy_demand/plotting/plotting_results.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
14
2018-02-23T10:03:45.000Z
2022-03-03T13:59:30.000Z
energy_demand/plotting/plotting_results.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
59
2017-02-22T15:03:30.000Z
2020-12-16T12:26:17.000Z
energy_demand/plotting/plotting_results.py
nismod/energy_demand
247fcea074a846026710ed9b039b22f8b9835643
[ "MIT" ]
5
2017-08-22T11:31:42.000Z
2020-06-24T18:30:12.000Z
"""Plotting model results and storing as PDF to result folder """ import os import logging from energy_demand.technologies import tech_related from energy_demand.plotting import plotting_styles from energy_demand.plotting import fig_lad_related from energy_demand.plotting import fig_one_fueltype_multiple_regions_peak...
38.140625
118
0.583367
2d40c1c0d41fce2558ee51eafbcd6328fd08433e
2,637
py
Python
models.py
hpaul/iconic_network
f2e4678dd0acd2ccc1fefde9fba34b69c99c7ba7
[ "MIT" ]
null
null
null
models.py
hpaul/iconic_network
f2e4678dd0acd2ccc1fefde9fba34b69c99c7ba7
[ "MIT" ]
5
2021-03-10T00:31:40.000Z
2022-02-26T20:47:30.000Z
models.py
hpaul/iconic_network
f2e4678dd0acd2ccc1fefde9fba34b69c99c7ba7
[ "MIT" ]
1
2019-05-27T20:45:02.000Z
2019-05-27T20:45:02.000Z
from playhouse.sqlite_ext import * from playhouse.migrate import * from peewee import * # The initialisation db = SqliteDatabase('../cache/iconic.db', pragmas={ 'journal_mode': 'wal', 'cache_size': '-2000', 'fullfsync': 'on', 'journal_size_limit': '-1', 'threads': '8', 'foreign_keys': 1, # Enf...
31.771084
92
0.708381
2d40ed8fbb09f62fdaa077c4ee9a62191cabbc99
23,977
py
Python
ublox/modules.py
pwitab/ublox
30fc175c6c1b6d2077523d2b676ca8a3a50c86b2
[ "MIT" ]
9
2018-10-18T12:57:17.000Z
2022-01-12T05:37:55.000Z
ublox/modules.py
pwitab/ublox
30fc175c6c1b6d2077523d2b676ca8a3a50c86b2
[ "MIT" ]
5
2018-10-23T07:42:12.000Z
2019-09-29T10:16:04.000Z
ublox/modules.py
pwitab/ublox
30fc175c6c1b6d2077523d2b676ca8a3a50c86b2
[ "MIT" ]
4
2018-10-12T18:34:12.000Z
2022-01-13T01:11:17.000Z
import time import serial import binascii from collections import namedtuple import logging from ublox.socket import UDPSocket logger = logging.getLogger(__name__) Stats = namedtuple('Stats', 'type name value')
34.058239
80
0.591275
2d4193bd35998684210f11a056d6009a9bc98371
6,965
py
Python
tests/cli/test_cap_table.py
PillarDevelopment/sto
a3067f5a31053dc780c4812d38e062ff4726b21a
[ "Apache-2.0" ]
71
2018-11-30T10:15:23.000Z
2022-03-31T23:51:22.000Z
tests/cli/test_cap_table.py
PillarDevelopment/sto
a3067f5a31053dc780c4812d38e062ff4726b21a
[ "Apache-2.0" ]
7
2019-01-24T10:23:41.000Z
2021-06-01T22:43:59.000Z
tests/cli/test_cap_table.py
PillarDevelopment/sto
a3067f5a31053dc780c4812d38e062ff4726b21a
[ "Apache-2.0" ]
32
2018-11-29T21:19:51.000Z
2022-03-14T06:32:01.000Z
import pytest from sto.distribution import read_csv from sto.ethereum.issuance import contract_status from sto.ethereum.status import update_status from sto.ethereum.tokenscan import token_scan from sto.generic.captable import generate_cap_table, print_cap_table from sto.models.implementation import TokenScanStatus, T...
29.264706
146
0.576884
2d44bdb8e298f04d76d63165a0c0c77c08501a4e
5,729
py
Python
Descriptive_Evaluation_System.py
ananya-sundar/Descriptive-Answer-Evaluation-System
fea3f56e5058bd75526de23e198e0d512addcdf6
[ "MIT" ]
null
null
null
Descriptive_Evaluation_System.py
ananya-sundar/Descriptive-Answer-Evaluation-System
fea3f56e5058bd75526de23e198e0d512addcdf6
[ "MIT" ]
null
null
null
Descriptive_Evaluation_System.py
ananya-sundar/Descriptive-Answer-Evaluation-System
fea3f56e5058bd75526de23e198e0d512addcdf6
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import six import language_check from tkinter import * from tkinter import messagebox import rake import operator import io counter=1 file=open("questions.txt","r") q=[line.rstrip('\n') for line in file] totmark=[0,0,0,0,0,0] r...
24.908696
103
0.612498
2d452d14cedfb9fd0b00a34f2acdf709cc1787cb
4,364
py
Python
tabnine-vim/third_party/ycmd/ycmd/tests/rust/subcommands_test.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
tabnine-vim/third_party/ycmd/ycmd/tests/rust/subcommands_test.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
tabnine-vim/third_party/ycmd/ycmd/tests/rust/subcommands_test.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
# Copyright (C) 2015-2018 ycmd contributors # # This file is part of ycmd. # # ycmd is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # #...
32.325926
71
0.601512
2d465237176feff79968938e709149dcf5d817b3
805
py
Python
E5b_global_variables_version_b.py
charles-stan/learn_python_Stanier
740a7104fcbd739663d703d3770f9e31509300f8
[ "MIT" ]
2
2019-10-04T14:53:20.000Z
2019-10-29T18:16:15.000Z
E5b_global_variables_version_b.py
charles-stan/learn_python_Stanier
740a7104fcbd739663d703d3770f9e31509300f8
[ "MIT" ]
null
null
null
E5b_global_variables_version_b.py
charles-stan/learn_python_Stanier
740a7104fcbd739663d703d3770f9e31509300f8
[ "MIT" ]
null
null
null
""" Demonstrating simple global variables File: E5_global_variables_version_b.py Author: Charles Stanier, charles-stanier@uiowa.edu Date: August 14, 2019 Written/Tested In: Python 3.7.3 Program Objective: Demonstrate the use of global variable for constant Modifications: none so far """ # these two li...
25.967742
71
0.688199
2d46d52a8dcd2cbb0a0b701447415ac2dddac192
240
py
Python
probdrift/__init__.py
MikeOMa/MV_Prediction
81552cbd9ad256959d631b2c80c7d5dde4bed105
[ "Apache-2.0" ]
1
2021-06-08T19:55:14.000Z
2021-06-08T19:55:14.000Z
probdrift/__init__.py
MikeOMa/MV_Prediction
81552cbd9ad256959d631b2c80c7d5dde4bed105
[ "Apache-2.0" ]
2
2021-11-04T08:41:17.000Z
2022-01-05T08:36:17.000Z
probdrift/__init__.py
MikeOMa/MV_Prediction
81552cbd9ad256959d631b2c80c7d5dde4bed105
[ "Apache-2.0" ]
null
null
null
X_VAR = ["Tx", "Ty", "Wx", "Wy", "u_av", "v_av", "lon", "lat", "t"] Y_VAR = ["u", "v"] mpl_config = { "text.usetex": True, "font.size": 12, "text.latex.preamble": r"\usepackage{amsmath}", "font.family": "Times New Roman", }
26.666667
67
0.529167
7409b7db18856a3e31c375938ade5b50aa04e657
7,121
py
Python
app/modules/talkingHeads/network/components.py
andy6804tw/talking-hands-API
4895c980565082b0fdcabbc704ee871855e6d5f5
[ "MIT" ]
null
null
null
app/modules/talkingHeads/network/components.py
andy6804tw/talking-hands-API
4895c980565082b0fdcabbc704ee871855e6d5f5
[ "MIT" ]
4
2021-06-08T20:44:12.000Z
2022-03-12T00:09:38.000Z
app/modules/talkingHeads/network/components.py
andy6804tw/talking-hands-API
4895c980565082b0fdcabbc704ee871855e6d5f5
[ "MIT" ]
null
null
null
""" In this file, PyTorch modules are defined to be used in the Talking Heads model. """ import torch import torch.nn as nn from torch.nn import functional as F # region General Blocks # endregion # region Non-Adaptive Residual Blocks # endregion # region Adaptive Residual Blocks # endregion
29.670833
103
0.61452
7409f1af0ea4329b3748af9c24220e3c22dd281d
869
py
Python
lambdafunctions/RDS failover/snapshot_creation.py
khihouston/AWS_Lambda
af36fb469a5e71569d4b6f2ae96bb2de91b3cf4a
[ "Apache-2.0" ]
null
null
null
lambdafunctions/RDS failover/snapshot_creation.py
khihouston/AWS_Lambda
af36fb469a5e71569d4b6f2ae96bb2de91b3cf4a
[ "Apache-2.0" ]
null
null
null
lambdafunctions/RDS failover/snapshot_creation.py
khihouston/AWS_Lambda
af36fb469a5e71569d4b6f2ae96bb2de91b3cf4a
[ "Apache-2.0" ]
null
null
null
import botocore import datetime import re import logging import boto3 region='us-west-1' db_instance_class='db.m4.large' db_subnet='default' instances = ['master'] print('Loading function')
36.208333
111
0.644419
740aae137142ec825a3f7da2840a35af235b0779
22,382
py
Python
Python/firms/main_static.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
1
2017-05-23T13:57:53.000Z
2017-05-23T13:57:53.000Z
Python/firms/main_static.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
null
null
null
Python/firms/main_static.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
1
2021-06-03T19:06:24.000Z
2021-06-03T19:06:24.000Z
''' ------------------------------------------------------------------------ This program runs the steady state solver as well as the time path solver for the OG model with S-period lived agents, exogenous labor, M industries, and I goods. This Python script calls the following other file(s) with the associated...
48.030043
149
0.583058
740ae050de236b941d1df03dc6f2237703df6297
1,812
py
Python
PythonInterview/DesigPattern/StructuralModel/Decorator.py
xtawfnhdx/PythonInterview
515675ffd86eb1ad3bfa631fd3c88fddcf411e98
[ "Apache-2.0" ]
null
null
null
PythonInterview/DesigPattern/StructuralModel/Decorator.py
xtawfnhdx/PythonInterview
515675ffd86eb1ad3bfa631fd3c88fddcf411e98
[ "Apache-2.0" ]
null
null
null
PythonInterview/DesigPattern/StructuralModel/Decorator.py
xtawfnhdx/PythonInterview
515675ffd86eb1ad3bfa631fd3c88fddcf411e98
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod def client_code(comment: Component) -> None: print("", end="\n") print(comment.operation()) if __name__ == '__main__': simple = ConcreteComponent() client_code(simple) ca = ConcreteDecoratorA(simple) client_code(ca) cb = ConcreteDecoratorB(ca) ...
17.423077
49
0.596578
740b1289aa49c74c0bf1b913185895b820bbdd76
3,009
py
Python
crispr_ont_prediction.py
Peppags/A-CNNCrispr
6022dd34b54172d7e6c99435ac5f34314212e269
[ "MIT" ]
3
2021-03-11T07:47:47.000Z
2021-06-02T10:36:24.000Z
crispr_ont_prediction.py
Peppags/A-CNNCrispr
6022dd34b54172d7e6c99435ac5f34314212e269
[ "MIT" ]
3
2021-04-26T15:26:23.000Z
2022-03-28T02:12:12.000Z
crispr_ont_prediction.py
Peppags/CRISPRont-CRISPRofft
6022dd34b54172d7e6c99435ac5f34314212e269
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" from keras.preprocessing import text, sequence from keras.models import Model from keras.layers import Input, Embedding from keras.layers.core import Dropout from keras.layers.convolutional import Conv1D, AveragePooling1D from keras.layers impo...
30.704082
75
0.653373
740b5f12a51ad3dfb5a4576acd413d48c9392fc3
439
py
Python
769.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
769.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
769.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
"""769. Max Chunks To Make Sorted"""
24.388889
74
0.548975
740c8021591632f8589b775ff0990d59d773eb73
6,023
py
Python
sr_tutorial.py
briliantnugraha/pytorch_tutorial
640996759a2a3545429760d17b94a1f4896525fb
[ "MIT" ]
null
null
null
sr_tutorial.py
briliantnugraha/pytorch_tutorial
640996759a2a3545429760d17b94a1f4896525fb
[ "MIT" ]
null
null
null
sr_tutorial.py
briliantnugraha/pytorch_tutorial
640996759a2a3545429760d17b94a1f4896525fb
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.utils.data import torch.nn.functional as F import torchvision import torchvision.models as models from torchvision import transforms from PIL import Image from time import time import matplotlib.pyplot as plt import os import numpy as np import...
33.837079
105
0.61315
740c8dc8dddfb897c3530278bf49ab1ef511472e
9,517
py
Python
articles/test_editarticle.py
kylejuliandev/dev_blog_assignment
272466cb591f9b45fb81c2a42e86b25bff3cd9ad
[ "MIT" ]
null
null
null
articles/test_editarticle.py
kylejuliandev/dev_blog_assignment
272466cb591f9b45fb81c2a42e86b25bff3cd9ad
[ "MIT" ]
null
null
null
articles/test_editarticle.py
kylejuliandev/dev_blog_assignment
272466cb591f9b45fb81c2a42e86b25bff3cd9ad
[ "MIT" ]
null
null
null
from uuid import uuid4 from django.test import TestCase from accounts.models import User from articles.models import Article from articles.testhelpers import create_user, create_mock_article, get_random_string
41.199134
87
0.651151
740dc09c5d5989b4dd60755f7fb722bb32c864ad
13,953
py
Python
pysrc/op-eff-plot.py
TUD-UCB-Boda/tud_boda
aa52c85aa0af1110f6f1f5a50c71bb37994b332a
[ "BSD-2-Clause" ]
62
2015-03-19T09:55:50.000Z
2022-02-27T19:06:52.000Z
pysrc/op-eff-plot.py
moskewcz/boda
27ec86e03ad004ad8beac7f7d74a5b0ef7676ef6
[ "BSD-2-Clause" ]
31
2015-12-02T23:36:06.000Z
2019-04-17T20:11:28.000Z
pysrc/op-eff-plot.py
TUD-UCB-Boda/tud_boda
aa52c85aa0af1110f6f1f5a50c71bb37994b332a
[ "BSD-2-Clause" ]
24
2015-05-20T14:33:15.000Z
2021-04-25T01:08:36.000Z
from matplotlib import rc rc('text', usetex=True) # this is if you want to use latex to print text. If you do you can create strings that go on labels or titles like this for example (with an r in front): r"$n=$ " + str(int(n)) from numpy import * from pylab import * import random from matplotlib.font_manager import Fo...
45.301948
359
0.600731
740f425c8945d1c545b1860aad74bb81820a3743
40,565
py
Python
src/AE_academico/views.py
furthz/Colegio
573e9e4006c0d1cd33190b53da5988fdc0c9ca4c
[ "MIT" ]
2
2017-09-26T14:15:43.000Z
2018-03-19T01:03:28.000Z
src/AE_academico/views.py
furthz/Colegio
573e9e4006c0d1cd33190b53da5988fdc0c9ca4c
[ "MIT" ]
1
2017-10-21T22:30:39.000Z
2017-10-21T22:30:39.000Z
src/AE_academico/views.py
furthz/Colegio
573e9e4006c0d1cd33190b53da5988fdc0c9ca4c
[ "MIT" ]
9
2017-07-22T16:13:29.000Z
2020-11-12T21:03:36.000Z
import datetime import json import calendar from django.http import HttpResponse from django.shortcuts import render, redirect from django.urls import reverse_lazy, reverse from django.views.generic import FormView from django.views.generic import ListView, CreateView, UpdateView, DeleteView, DetailView from django.vi...
38.305005
155
0.611414
74107fc9a92af6c2a19b0d4f04f980ee2043b713
1,273
py
Python
replacement_algorithm/general.py
sunsihtf/simple-cache-policy-simulator
b3736312c759e5a6c43f8b4768ca63c3c39a97ae
[ "MIT" ]
6
2018-11-22T07:16:30.000Z
2021-04-19T13:12:41.000Z
replacement_algorithm/general.py
sunsihtf/simple-cache-policy-simulator
b3736312c759e5a6c43f8b4768ca63c3c39a97ae
[ "MIT" ]
null
null
null
replacement_algorithm/general.py
sunsihtf/simple-cache-policy-simulator
b3736312c759e5a6c43f8b4768ca63c3c39a97ae
[ "MIT" ]
1
2019-04-21T08:16:58.000Z
2019-04-21T08:16:58.000Z
from abc import ABCMeta, abstractmethod import collections
28.288889
116
0.590731
7410a9d371811ecb288d58e5e4a3a8a6f106fa60
5,547
py
Python
bir_open_manipulator_p_with_gripper_cam_moveit/src/bir_omp_catch_simulation.py
Brazilian-Institute-of-Robotics/bir_open_manipulator_p
ce5eec7de2d361becddb3eecc44700cb12990083
[ "Apache-2.0" ]
1
2020-03-03T18:18:42.000Z
2020-03-03T18:18:42.000Z
bir_open_manipulator_p_with_gripper_cam_moveit/src/bir_omp_catch_simulation.py
Brazilian-Institute-of-Robotics/bir_open_manipulator_p
ce5eec7de2d361becddb3eecc44700cb12990083
[ "Apache-2.0" ]
null
null
null
bir_open_manipulator_p_with_gripper_cam_moveit/src/bir_omp_catch_simulation.py
Brazilian-Institute-of-Robotics/bir_open_manipulator_p
ce5eec7de2d361becddb3eecc44700cb12990083
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import rospy from math import pi import moveit_commander from moveit_msgs.msg import DisplayTrajectory from apriltag_ros.msg import AprilTagDetectionArray # CONSTANTS N_ROBOT_JOINTS = 6 POSE_TOLERANCE = 0.05 FRAMES_LIMIT = 25 ROTATION_DEGREE = -10 J1_LIMIT_DEGREE = -90 if __name__ ...
37.47973
128
0.579773
741163dbbe679412527cbd7810452d4d457b3e59
780
py
Python
tests/test_read.py
markreidvfx/pyavb
48b05a84ff9752703a9218d5ca157ee672b020ab
[ "MIT" ]
21
2019-02-05T22:08:32.000Z
2022-03-07T03:37:59.000Z
tests/test_read.py
markreidvfx/pyavb
48b05a84ff9752703a9218d5ca157ee672b020ab
[ "MIT" ]
10
2019-07-25T04:03:44.000Z
2021-08-12T21:31:37.000Z
tests/test_read.py
markreidvfx/pyavb
48b05a84ff9752703a9218d5ca157ee672b020ab
[ "MIT" ]
1
2020-02-20T15:08:40.000Z
2020-02-20T15:08:40.000Z
from __future__ import ( unicode_literals, absolute_import, print_function, division, ) import os import unittest import avb import avb.utils test_file_01 = os.path.join(os.path.dirname(__file__), 'test_files', 'test_file_01.avb') if __name__ == "__main__": unittest.main()
22.285714
88
0.608974
7411a2ab5983624eb22485823a916a1cbef00994
2,278
py
Python
game.py
akash1309/Rod-and-Ball-Game
cd492ca8fea0cbb391de44c44b71984efe0e01ab
[ "MIT" ]
null
null
null
game.py
akash1309/Rod-and-Ball-Game
cd492ca8fea0cbb391de44c44b71984efe0e01ab
[ "MIT" ]
null
null
null
game.py
akash1309/Rod-and-Ball-Game
cd492ca8fea0cbb391de44c44b71984efe0e01ab
[ "MIT" ]
null
null
null
import sys, pygame from pygame.locals import * import time import pygame.freetype pygame.init() size = width, height = 800, 600 ball_speed = [3, 7] black = 0, 0, 0 rod_speed = [5,0] score = 1 green = (0, 255, 0) blue = (0, 0, 128) white = (255, 255, 255) screen = pygame.display.set_mode(size) #ball loading and sho...
25.032967
73
0.627744
74121ac3394a3fef86202bc8cb9f42490a0298e6
888
py
Python
oasis/clipper_offsetting.py
AmericaMakes/OASIS-marcwang
7aa10040251d7a1b807a773a45d123e1a52faac5
[ "BSD-2-Clause" ]
1
2021-03-07T14:47:09.000Z
2021-03-07T14:47:09.000Z
oasis/clipper_offsetting.py
AmericaMakes/OASIS-marcwang
7aa10040251d7a1b807a773a45d123e1a52faac5
[ "BSD-2-Clause" ]
null
null
null
oasis/clipper_offsetting.py
AmericaMakes/OASIS-marcwang
7aa10040251d7a1b807a773a45d123e1a52faac5
[ "BSD-2-Clause" ]
1
2021-03-07T00:24:57.000Z
2021-03-07T00:24:57.000Z
import pyclipper from shapely.geometry import Polygon from typing import List from oasis.util import clean_polygon, convert_to_clipper, convert_from_clipper
40.363636
88
0.699324
74123240b191374d6f68a590cb14714bf9a10b24
357
py
Python
src/sentry/middleware/social_auth.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
1
2020-02-27T02:46:25.000Z
2020-02-27T02:46:25.000Z
src/sentry/middleware/social_auth.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
1
2020-11-05T14:54:44.000Z
2020-11-19T21:54:19.000Z
src/sentry/middleware/social_auth.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
from __future__ import absolute_import from social_auth.middleware import SocialAuthExceptionMiddleware from sentry.utils import auth from sentry.utils.http import absolute_uri
29.75
73
0.840336
74125f79f17723620cc7a6ba5aaba2ad79f03c5e
1,013
py
Python
tests/app/migrations/0002_visit.py
zostera/django-attrs
c1f1b4bb4bfb9cf836423cd5c7f121d61322a86b
[ "BSD-3-Clause" ]
null
null
null
tests/app/migrations/0002_visit.py
zostera/django-attrs
c1f1b4bb4bfb9cf836423cd5c7f121d61322a86b
[ "BSD-3-Clause" ]
null
null
null
tests/app/migrations/0002_visit.py
zostera/django-attrs
c1f1b4bb4bfb9cf836423cd5c7f121d61322a86b
[ "BSD-3-Clause" ]
1
2019-12-01T22:14:45.000Z
2019-12-01T22:14:45.000Z
# Generated by Django 2.1.3 on 2018-11-27 09:55 import attrs.fields from django.db import migrations, models import django.db.models.deletion
28.138889
86
0.446199
7412ae64b971ee798f8e6d33e8212d9bb55ee3b7
2,798
py
Python
src/py/args_definition.py
snwjas/RandomDesktopBackground-WEBUI
1e34fb38a1088687987a9c2acd0ce5386b70489c
[ "MIT" ]
17
2022-02-16T11:16:05.000Z
2022-03-17T07:44:12.000Z
src/py/args_definition.py
snwjas/RandomDesktopBackground-WEBUI
1e34fb38a1088687987a9c2acd0ce5386b70489c
[ "MIT" ]
1
2022-03-11T08:40:05.000Z
2022-03-12T02:04:06.000Z
src/py/args_definition.py
snwjas/RandomDesktopBackground-WEBUI
1e34fb38a1088687987a9c2acd0ce5386b70489c
[ "MIT" ]
4
2022-02-17T11:10:09.000Z
2022-03-18T00:45:07.000Z
# -*-coding:utf-8-*- """ @author Myles Yang """ import argparse import const_config as const """ KEY """ # ARG_KEY_RUN = ARG_RUN = '--run' # ARG_KEY_LOG = ARG_LOG = '--log' # ARG_KEY_LNK = ARG_LNK = '--lnk' # ARG_KEY_ENV = ARG_ENV = '--env' # ARG_KEY_CMD = ARG_CMD = '--cmd' """ --run """ # ARG_RUN_TYPE_CO...
23.512605
102
0.605432
741323c5ca5353953499cc57c205c55afeeb9d7b
693
py
Python
spec/puzzle/puzzlepedia/annotation_widget_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
2
2020-08-18T18:43:09.000Z
2020-08-18T20:05:59.000Z
spec/puzzle/puzzlepedia/annotation_widget_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
spec/puzzle/puzzlepedia/annotation_widget_spec.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
from puzzle.constraints import constraints, validator from puzzle.puzzlepedia import annotation_widget from spec.mamba import * widget_patch = mock.patch('puzzle.puzzlepedia.annotation_widget.widgets') with description('annotation_widget'): with before.each: self.mock_widgets = widget_patch.start() with a...
26.653846
74
0.746032
7413824fcd9d05cbbace3c88ba8b9036d58fbdad
1,805
py
Python
PRESUBMIT.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
2
2015-02-07T05:19:08.000Z
2016-12-12T21:17:50.000Z
PRESUBMIT.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
null
null
null
PRESUBMIT.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys _EXCLUDED_PATHS = [] _LICENSE_HEADER = ( r".*? Copyright \(c\) 20\d\d The Chromium Authors\. All rights reserved\." "\n" r...
28.650794
77
0.750693
741439917b675f387d0d33e33aee90e37fbeb997
249
py
Python
Configuration/Geometry/python/GeometrySLHCSimIdeal_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Geometry/python/GeometrySLHCSimIdeal_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Geometry/python/GeometrySLHCSimIdeal_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Ideal geometry, needed for simulation from SLHCUpgradeSimulations.Geometry.Phase1_R30F12_cmsSimIdealGeometryXML_cff import * from Geometry.TrackerNumberingBuilder.trackerNumbering2026Geometry_cfi import *
41.5
86
0.883534
7415036718c53bd964690f45e8224fa5a56b1622
3,043
py
Python
chromepasswords.py
petreleon/Python-Examples
f6841a9757373703163aa527933f1483566b4a08
[ "MIT" ]
null
null
null
chromepasswords.py
petreleon/Python-Examples
f6841a9757373703163aa527933f1483566b4a08
[ "MIT" ]
null
null
null
chromepasswords.py
petreleon/Python-Examples
f6841a9757373703163aa527933f1483566b4a08
[ "MIT" ]
null
null
null
import os import json import base64 import sqlite3 import win32crypt from Crypto.Cipher import AES import shutil from datetime import timezone, datetime, timedelta if __name__ == "__main__": main()
26.46087
108
0.723957
7418ced2999b5c9ae7697c9504a1ff1a23adb71d
2,437
py
Python
prototype/webapp.py
Tethik/whistleblower
56747cbf3c4eda95cee7eded36b4a853d33d6ee3
[ "MIT" ]
1
2016-06-20T12:35:42.000Z
2016-06-20T12:35:42.000Z
prototype/webapp.py
Tethik/whistleblower
56747cbf3c4eda95cee7eded36b4a853d33d6ee3
[ "MIT" ]
null
null
null
prototype/webapp.py
Tethik/whistleblower
56747cbf3c4eda95cee7eded36b4a853d33d6ee3
[ "MIT" ]
null
null
null
import os from flask import Flask, request, redirect, url_for, render_template, send_from_directory, jsonify from werkzeug import secure_filename import uuid app = Flask(__name__) app.config['UPLOAD_FOLDER'] = 'upload/' app.config['REPLY_FOLDER'] = 'replies/' app.config['CLIENT_FOLDER'] = 'client/' if __name__ == ...
31.24359
98
0.664341
7419bb062ae8d53ccf6a7504895e66cc726771c1
346
pyw
Python
file.pyw
ArezalGame89/Corn-Engine
fb71f501943bd4136268309059e81f0e4f3ceb79
[ "MIT" ]
null
null
null
file.pyw
ArezalGame89/Corn-Engine
fb71f501943bd4136268309059e81f0e4f3ceb79
[ "MIT" ]
null
null
null
file.pyw
ArezalGame89/Corn-Engine
fb71f501943bd4136268309059e81f0e4f3ceb79
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import filedialog import os window = Tk() button = Button(text="OpenFile",command=openFile) button.pack() window.mainloop()
28.833333
132
0.687861
7419ef6e8a86a4875ecbf0d4658e76a557acec43
703
py
Python
ats/urls.py
bitrecruiter/ats_project
cf363d6163a2b9369839b476b60908f2982f80b3
[ "WTFPL" ]
null
null
null
ats/urls.py
bitrecruiter/ats_project
cf363d6163a2b9369839b476b60908f2982f80b3
[ "WTFPL" ]
null
null
null
ats/urls.py
bitrecruiter/ats_project
cf363d6163a2b9369839b476b60908f2982f80b3
[ "WTFPL" ]
3
2016-07-20T11:17:37.000Z
2018-12-31T06:00:27.000Z
from django.conf.urls import patterns, include, url from ats.views import * urlpatterns = patterns('', # Examples: # url(r'^$', 'bcauth_project.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^job/(?P<job_id>\d+)/', JobView.as_view(), name='ats_job'), url(r'^jobs/', JobLis...
41.352941
77
0.641536
741d95c42594e69744089d0d1e3f7163af1adde1
526
py
Python
P1/plot_VI.py
xyp8023/lab1
ac9693636f25b8e65236503035d241f124568d42
[ "MIT" ]
null
null
null
P1/plot_VI.py
xyp8023/lab1
ac9693636f25b8e65236503035d241f124568d42
[ "MIT" ]
null
null
null
P1/plot_VI.py
xyp8023/lab1
ac9693636f25b8e65236503035d241f124568d42
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import numpy as np import argparse parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument( "--T", type=int, default=46, help="Time-horizon.") args = parser.parse_args() T = args.T data_dir = 'dat...
25.047619
61
0.718631
741dcec3224bbbaf709d95744c9d3eef8f6a4ddd
2,808
py
Python
main.py
sakunamary/raspi-info
5a22165505947ef6b687d03ed23d963a2db0fe1f
[ "MIT" ]
null
null
null
main.py
sakunamary/raspi-info
5a22165505947ef6b687d03ed23d963a2db0fe1f
[ "MIT" ]
null
null
null
main.py
sakunamary/raspi-info
5a22165505947ef6b687d03ed23d963a2db0fe1f
[ "MIT" ]
null
null
null
import time import datetime import threading from get_net_info import RaspberryMonitorNetSpeed as rmn import subprocess import Adafruit_SSD1306 import Adafruit_GPIO.SPI as SPI from PIL import Image from PIL import ImageDraw from PIL import ImageFont # Raspberry Pi pin configuration: RST = None # on the PiOLED...
27.529412
91
0.614672
741df03c605f7c8edfa55bf4c10a819be3562916
1,929
py
Python
2015/rock-paper-scissors/rpsls_adv.py
axvr/codedump
1e4a35f8e200048b47915466a35403f6ba5cd539
[ "CC0-1.0" ]
1
2018-09-23T06:11:28.000Z
2018-09-23T06:11:28.000Z
2015/rock-paper-scissors/rpsls_adv.py
axvr/codedump
1e4a35f8e200048b47915466a35403f6ba5cd539
[ "CC0-1.0" ]
null
null
null
2015/rock-paper-scissors/rpsls_adv.py
axvr/codedump
1e4a35f8e200048b47915466a35403f6ba5cd539
[ "CC0-1.0" ]
null
null
null
# Rock, Paper, Scissors, Lizard, Spock - Advanced # rpsls_adv.py for Python 3.4 | Written by Alex Vear # Written: 19th December 2015 | Modified: 22nd December 2015 # Public domain. No rights reserved. import random playAgain='y' while playAgain=='y' or playAgain=='Y': win=0 print("\nScissors cuts Paper \nPape...
42.866667
272
0.557802
741ed06c043f7ccdfa760d57025904d088b9dea1
3,222
py
Python
python/sklearn/examples/decomposition/plot_ica_vs_pca.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
1
2017-10-14T04:23:45.000Z
2017-10-14T04:23:45.000Z
python/sklearn/examples/decomposition/plot_ica_vs_pca.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
python/sklearn/examples/decomposition/plot_ica_vs_pca.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
""" ========================== FastICA on 2D point clouds ========================== Illustrate visually the results of :ref:`ICA` vs :ref:`PCA` in the feature space. Representing ICA in the feature space gives the view of 'geometric ICA': ICA is an algorithm that finds directions in the feature space corresponding t...
31.588235
79
0.647114
742178c1a58413819c231f7bb06c85855868f4e1
3,085
py
Python
main.py
jleightcap/ScrollingScore
8b87e3571117001ecc9e26c79526f3ece91169d4
[ "MIT" ]
8
2017-10-04T21:02:36.000Z
2021-01-22T19:32:27.000Z
main.py
jleightcap/ScrollingScore
8b87e3571117001ecc9e26c79526f3ece91169d4
[ "MIT" ]
1
2018-10-30T01:06:37.000Z
2018-10-30T01:12:23.000Z
main.py
jleightcap/ScrollingScore
8b87e3571117001ecc9e26c79526f3ece91169d4
[ "MIT" ]
null
null
null
import os, sys from PIL import Image ### TERMINAL ARGUMENTS ### # -h := help # -q := quiet # -single := forced one page per slide args = sys.argv[1:] # -h, print README and quit if "-h" in args: with open('./README.md') as f: print(f.read()) quit() # -q, toggle print statem...
29.663462
93
0.540032
7421d098ae659b63003aa81062297c85c4db845e
5,395
py
Python
converter.py
soodoku/digitaltv-coverage-in-uk
9c4e95aaa41099d0528528bbb8a4e78abc8670e0
[ "MIT" ]
2
2015-07-20T14:46:36.000Z
2015-07-20T19:31:31.000Z
converter.py
soodoku/digitaltv-coverage-in-uk
9c4e95aaa41099d0528528bbb8a4e78abc8670e0
[ "MIT" ]
null
null
null
converter.py
soodoku/digitaltv-coverage-in-uk
9c4e95aaa41099d0528528bbb8a4e78abc8670e0
[ "MIT" ]
1
2021-05-04T04:23:19.000Z
2021-05-04T04:23:19.000Z
''' Parse coverage checker html files. Write out data to a csv. INPUT: html files in MY_DATA_FOLDERS OUTPUT: csv file called OUTPUT_FILE ''' from os import walk import re MY_DATA_FOLDERS = ["cov_checker"] # Folder to be processed OUTPUT_FILE = "output.csv" # csv output result DIGITAL_SEVICES = set() CHA...
35.032468
146
0.566636
742202ac1771508baccbc0fe5b6b22965932ae34
405
py
Python
docs/advanced/v1 cookbook/uses/2017-12-19 search abf for comments/go.py
konung-yaropolk/pyABF
b5620e73ac5d060129b844da44f8b2611536ac56
[ "MIT" ]
74
2017-11-06T17:53:48.000Z
2022-03-27T12:14:46.000Z
docs/advanced/v1 cookbook/uses/2017-12-19 search abf for comments/go.py
konung-yaropolk/pyABF
b5620e73ac5d060129b844da44f8b2611536ac56
[ "MIT" ]
116
2018-01-16T21:36:29.000Z
2022-03-31T11:46:04.000Z
docs/advanced/v1 cookbook/uses/2017-12-19 search abf for comments/go.py
konung-yaropolk/pyABF
b5620e73ac5d060129b844da44f8b2611536ac56
[ "MIT" ]
30
2018-06-28T13:19:53.000Z
2022-03-25T02:52:48.000Z
import glob import sys import os sys.path.insert(0,os.path.abspath("../../../src/")) import pyabf if __name__=="__main__": PATH=R"X:\Data\projects\2017-01-09 AT1-Cre mice\2017-01-09 global expression NTS\data" for fname in sorted(glob.glob(PATH+"/*.abf")): abf=pyabf.ABF(fname) if not abf.commen...
28.928571
90
0.646914
74228016d8241f1954f19c1130b86873a1c9adff
311
py
Python
regtests/calling/keyword.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
1
2015-11-06T02:36:29.000Z
2015-11-06T02:36:29.000Z
regtests/calling/keyword.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
null
null
null
regtests/calling/keyword.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
null
null
null
"""keywords"""
20.733333
74
0.572347
7423abd661f73d484f9731e84a27b1c7ed10e42f
1,372
py
Python
imp_flask/views/imp_flask/products.py
thijsmie/imp_flask
2cad9f628c54572c02a5f893ef9c0cb1149b18ea
[ "MIT" ]
1
2019-06-13T07:28:02.000Z
2019-06-13T07:28:02.000Z
imp_flask/views/imp_flask/products.py
k-automation/imp_flask
2cad9f628c54572c02a5f893ef9c0cb1149b18ea
[ "MIT" ]
4
2016-12-06T11:25:36.000Z
2021-04-29T07:43:14.000Z
imp_flask/views/imp_flask/products.py
k-automation/imp_flask
2cad9f628c54572c02a5f893ef9c0cb1149b18ea
[ "MIT" ]
2
2017-09-06T14:26:04.000Z
2018-02-03T18:55:36.000Z
from flask import render_template from flask_login import login_required from imp_flask.blueprints import products from imp_flask.models.imps import Product, Mod from imp_flask.forms.product import Product as ProductForm
31.906977
122
0.706268
74242d1feb64459e2d3f13e6fe80316eb9b3ead9
370
py
Python
Section 3/cisco_iosxr_napalm_example.py
magnusmel/-Hands-on-Network-Programming-with-Python
f1d8856791aed3392ac0ee280e4d3470afa63e9c
[ "MIT" ]
8
2018-07-05T09:22:11.000Z
2021-11-08T13:11:00.000Z
Section 3/cisco_iosxr_napalm_example.py
magnusmel/-Hands-on-Network-Programming-with-Python
f1d8856791aed3392ac0ee280e4d3470afa63e9c
[ "MIT" ]
null
null
null
Section 3/cisco_iosxr_napalm_example.py
magnusmel/-Hands-on-Network-Programming-with-Python
f1d8856791aed3392ac0ee280e4d3470afa63e9c
[ "MIT" ]
6
2018-11-02T04:00:47.000Z
2021-04-22T12:01:54.000Z
# # Example From: # https://xrdocs.io/application-hosting/tutorials/2016-08-15-netmiko-and-napalm-with-ios-xr-quick-look/ # from napalm import get_network_driver import pprint driver = get_network_driver('iosxr') device = driver('172.16.1.13', 'cisco', 'cisco') device.open() pprint.pprint(device.get_facts()) pprin...
21.764706
103
0.751351
742448e3aae25772c6b6399b5c670e3dc3e6f144
33
py
Python
deployment/__init__.py
maxfrei750/CarbonBlackSegmentation
ff5aeaf03a9c60c1a0396f1d2b6d5a3347808a30
[ "MIT" ]
null
null
null
deployment/__init__.py
maxfrei750/CarbonBlackSegmentation
ff5aeaf03a9c60c1a0396f1d2b6d5a3347808a30
[ "MIT" ]
null
null
null
deployment/__init__.py
maxfrei750/CarbonBlackSegmentation
ff5aeaf03a9c60c1a0396f1d2b6d5a3347808a30
[ "MIT" ]
null
null
null
from .segmenter import Segmenter
16.5
32
0.848485
742519fcfb7dd6c47cbb93d0049edd5300973d43
1,598
py
Python
textcrawler/textcrawler/spiders/voz.py
rootofmylife/vietnamese-text-generation
f95fa3667a908ce213c0c24ac2cf5ed26ec5fa7c
[ "MIT" ]
null
null
null
textcrawler/textcrawler/spiders/voz.py
rootofmylife/vietnamese-text-generation
f95fa3667a908ce213c0c24ac2cf5ed26ec5fa7c
[ "MIT" ]
null
null
null
textcrawler/textcrawler/spiders/voz.py
rootofmylife/vietnamese-text-generation
f95fa3667a908ce213c0c24ac2cf5ed26ec5fa7c
[ "MIT" ]
null
null
null
import scrapy
44.388889
196
0.597622
7425fc6532aea46b8665f27922b3825d84d16f07
717
py
Python
Ylperj-database/CarModelsCreate.py
shoter/ylperJ
716d38b4b13388b1d96919d8b21aa7e340f3efd1
[ "MIT" ]
null
null
null
Ylperj-database/CarModelsCreate.py
shoter/ylperJ
716d38b4b13388b1d96919d8b21aa7e340f3efd1
[ "MIT" ]
6
2020-04-23T18:32:52.000Z
2021-12-09T21:22:18.000Z
Ylperj-database/CarModelsCreate.py
shoter/ylperJ
716d38b4b13388b1d96919d8b21aa7e340f3efd1
[ "MIT" ]
null
null
null
Engines = [ (1, "Diesel"), (2, "Gasoline"), (3, "Electric") ] Luxuries = [ (1, "Cheap"), (2, "Standard"), (3, "Luxurious") ] Companies = [ (1, 'Skoda'), (2, 'Volvo'), (3, 'Toyota'), (4, 'Fiat') ] for e in Engines: for l in Luxuries: for c in Companies: ...
22.40625
66
0.432357
74261de06eee7feae9c74658beccdee5c04a750e
6,912
py
Python
tests/test_octodns_provider_yaml.py
jrunkel/octodns
5429a64e51321d282f0aa82ac06f1ca68ec5bf3c
[ "MIT" ]
null
null
null
tests/test_octodns_provider_yaml.py
jrunkel/octodns
5429a64e51321d282f0aa82ac06f1ca68ec5bf3c
[ "MIT" ]
null
null
null
tests/test_octodns_provider_yaml.py
jrunkel/octodns
5429a64e51321d282f0aa82ac06f1ca68ec5bf3c
[ "MIT" ]
null
null
null
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from os.path import dirname, isfile, join from unittest import TestCase from yaml import safe_load from yaml.constructor import ConstructorError from octodns.record import Create from octodns.provider.yaml import YamlProvi...
38.614525
77
0.568287
7426de94b22c4fbcf84a5f14e77b0aacfb42e96e
4,853
py
Python
tests/route53/test_route53.py
kazhala/fawsf
4abefb2301f7b489b11ed3f0b303faafa5941d5b
[ "MIT" ]
66
2020-07-26T12:43:30.000Z
2022-01-25T12:09:40.000Z
tests/route53/test_route53.py
kazhala/fawsf
4abefb2301f7b489b11ed3f0b303faafa5941d5b
[ "MIT" ]
null
null
null
tests/route53/test_route53.py
kazhala/fawsf
4abefb2301f7b489b11ed3f0b303faafa5941d5b
[ "MIT" ]
3
2020-07-26T22:09:45.000Z
2020-07-28T01:09:26.000Z
import unittest import os import io import sys from unittest.mock import patch from fzfaws.route53 import Route53 from fzfaws.utils import Pyfzf, FileLoader from botocore.paginate import Paginator from pathlib import Path
34.664286
86
0.53163
742a29eaa70feec6aa524c7f468332e53208a8f5
1,163
py
Python
detection/base_model.py
JakubPetriska/moving-sprites-object-detection
3dc48a8c5b46b0ee9b08b90b0bf1607753e5c659
[ "Apache-2.0" ]
6
2018-03-01T10:02:16.000Z
2020-06-19T12:42:14.000Z
detection/base_model.py
JakubPetriska/moving-sprites-object-detection
3dc48a8c5b46b0ee9b08b90b0bf1607753e5c659
[ "Apache-2.0" ]
null
null
null
detection/base_model.py
JakubPetriska/moving-sprites-object-detection
3dc48a8c5b46b0ee9b08b90b0bf1607753e5c659
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from keras.models import model_from_json
25.844444
64
0.623388
742a3ab0f1445fb6ee395010f779ab9f70f5457e
6,504
py
Python
rs_course/utils.py
inpefess/recommender-systems-course
1f890b12e0b6c6ffefe7822a8b878c322c469543
[ "Apache-2.0" ]
null
null
null
rs_course/utils.py
inpefess/recommender-systems-course
1f890b12e0b6c6ffefe7822a8b878c322c469543
[ "Apache-2.0" ]
11
2022-01-31T11:05:16.000Z
2022-03-06T19:45:40.000Z
rs_course/utils.py
inpefess/recommender-systems-course
1f890b12e0b6c6ffefe7822a8b878c322c469543
[ "Apache-2.0" ]
null
null
null
# Copyright 2021-2022 Boris Shminke # # 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 wr...
33.875
79
0.667897
742ba0c76a2e61d537ebb0628dbe4ec0329259e6
5,194
py
Python
tests/base/fluids/test_fluid.py
DHaspel/cavsim
a23e344b47b970e1a90e04c071e06860935d1694
[ "Apache-2.0" ]
null
null
null
tests/base/fluids/test_fluid.py
DHaspel/cavsim
a23e344b47b970e1a90e04c071e06860935d1694
[ "Apache-2.0" ]
null
null
null
tests/base/fluids/test_fluid.py
DHaspel/cavsim
a23e344b47b970e1a90e04c071e06860935d1694
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import numpy as np import numpy.testing as npt from cavsim.base.fluids.fluid import Fluid
39.953846
93
0.670004
742d53fcb251b5c4874903797e2381fec53f64e4
1,738
py
Python
day/6/survey_pt2.py
philparkbot/advent2020
e5ee7e0703ae82d4c773024e4289d7d37879af35
[ "MIT" ]
null
null
null
day/6/survey_pt2.py
philparkbot/advent2020
e5ee7e0703ae82d4c773024e4289d7d37879af35
[ "MIT" ]
null
null
null
day/6/survey_pt2.py
philparkbot/advent2020
e5ee7e0703ae82d4c773024e4289d7d37879af35
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Input is a group of one or more lines with letters. Each letter = question to which the answer was 'yes'. Each line represents survey answers by a person, contains one or more letter. Adjacent lines are part of the same group. For each group, count the number of questions to which all peo...
25.188406
80
0.521864
742d81b9ef0eae8d2a138809ba186426bf9511d7
882
py
Python
test/ut/tools/annotation/testcase/annotated/handwrite.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
9,680
2019-05-07T01:42:30.000Z
2022-03-31T16:48:33.000Z
test/ut/tools/annotation/testcase/annotated/handwrite.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
1,957
2019-05-06T21:44:21.000Z
2022-03-31T09:21:53.000Z
test/ut/tools/annotation/testcase/annotated/handwrite.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
1,571
2019-05-07T06:42:55.000Z
2022-03-31T03:19:24.000Z
import nni h_conv1 = 1 nni.choice({'foo': foo, 'bar': bar})(1) conv_size = nni.choice({2: 2, 3: 3, 5: 5, 7: 7}, name='conv_size') abc = nni.choice({'2': '2', 3: 3, '(5 * 6)': 5 * 6, 7: 7}, name='abc') h_pool1 = nni.function_choice({'max_pool': lambda : max_pool(h_conv1), 'h_conv1': lambda : h_conv1, 'avg_pool'...
36.75
78
0.643991
742d95bbe3f86400b205fe61790ce9cbad881b41
7,019
py
Python
scripts/update-seminars.py
geem-lab/seminars
0ea259c902c98ca49a1da252a331ac21eb1e094a
[ "MIT" ]
6
2022-03-09T13:10:24.000Z
2022-03-28T22:20:39.000Z
scripts/update-seminars.py
geem-lab/seminars
0ea259c902c98ca49a1da252a331ac21eb1e094a
[ "MIT" ]
9
2022-03-08T22:35:29.000Z
2022-03-28T14:33:10.000Z
scripts/update-seminars.py
geem-lab/seminars
0ea259c902c98ca49a1da252a331ac21eb1e094a
[ "MIT" ]
null
null
null
from __future__ import annotations import calendar import logging import os from dataclasses import dataclass from datetime import datetime import dateparser import requests from markdown import markdown em = tag("em") time = tag("time") h2 = tag("h2") p = tag("p") strong = tag("strong") a = tag("a") details = ta...
26.486792
140
0.583274
742e0248a8aa9b41dc85de4de72c884d496f20d9
3,245
py
Python
sdk/python/pulumi_aws_native/location/get_place_index.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/location/get_place_index.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/location/get_place_index.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
34.521277
124
0.67396
742f0630007375e4ed1fb342a09ab11f33680542
611
py
Python
dashboard/migrations/0030_auto_20171107_1924.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
dashboard/migrations/0030_auto_20171107_1924.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
6
2020-06-05T22:27:20.000Z
2022-03-24T10:25:50.000Z
dashboard/migrations/0030_auto_20171107_1924.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-11-07 19:24 from __future__ import unicode_literals from django.db import migrations
23.5
49
0.603928
742f356276917a64ca8c8ca59a40f2174ed1eff3
707
py
Python
teamcat_service/doraemon/doraemon/api/ci/filters/ci_taskflow_filter.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/doraemon/doraemon/api/ci/filters/ci_taskflow_filter.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/doraemon/doraemon/api/ci/filters/ci_taskflow_filter.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
# coding=utf-8 ''' Created on 2016-12-5 @author: Administrator ''' from doraemon.ci.models import CITaskFlow, CIFlowSectionHistory, CITaskFlowHistory from url_filter.filtersets.django import ModelFilterSet
25.25
85
0.705799
7431452de01929e5a219b4f8d212634cdab0aa06
387
py
Python
failures/mapper.py
ALaks96/MapReduce_Pyspark_Large_Matrix_Multiplication
1a37a4a66464e7f11295ebf55507853b959748ad
[ "MIT" ]
null
null
null
failures/mapper.py
ALaks96/MapReduce_Pyspark_Large_Matrix_Multiplication
1a37a4a66464e7f11295ebf55507853b959748ad
[ "MIT" ]
null
null
null
failures/mapper.py
ALaks96/MapReduce_Pyspark_Large_Matrix_Multiplication
1a37a4a66464e7f11295ebf55507853b959748ad
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys # input comes from STDIN (standard input) for line in sys.stdin: # remove leading and trailing whitespace line = line.strip() # split the line into words element1 = line.split(',') c = 0 for element in element1: c += 1 if c == 1: ...
16.125
44
0.537468
74315d90853ccb50d6e8d6018b567f14aa463a3b
5,589
py
Python
winchester/db/alembic_command.py
SandyWalsh/stacktach-winchester
ac49955386b695868945a28b6597fe72b3b657e6
[ "Apache-2.0" ]
null
null
null
winchester/db/alembic_command.py
SandyWalsh/stacktach-winchester
ac49955386b695868945a28b6597fe72b3b657e6
[ "Apache-2.0" ]
null
null
null
winchester/db/alembic_command.py
SandyWalsh/stacktach-winchester
ac49955386b695868945a28b6597fe72b3b657e6
[ "Apache-2.0" ]
null
null
null
from alembic import util, command, config import argparse import inspect if __name__ == '__main__': cmdline = AlembicCommandLine() cmdline.main()
39.083916
77
0.501879
74316554f8575ef9ba36a94a68a372ec2ee916f0
7,892
py
Python
tests/test_glamor_functions.py
Denis-Alexeev/pytest-glamor-allure
e7b5f11115eefd61ab1c7b775d6bafec0b1623e2
[ "MIT" ]
8
2021-11-15T21:59:46.000Z
2022-03-28T07:49:55.000Z
tests/test_glamor_functions.py
Denis-Alexeev/pytest-glamor-allure
e7b5f11115eefd61ab1c7b775d6bafec0b1623e2
[ "MIT" ]
11
2021-11-15T16:07:35.000Z
2022-02-17T08:20:05.000Z
tests/test_glamor_functions.py
Denis-Alexeev/pytest-glamor-allure
e7b5f11115eefd61ab1c7b775d6bafec0b1623e2
[ "MIT" ]
2
2021-12-28T08:27:35.000Z
2022-01-17T02:19:26.000Z
""" Here we test `glamor.include_scope_in_title` and `glamor.logging_allure_steps` functions. """ import io import logging from allure_commons_test.container import has_container from allure_commons_test.report import has_test_case from hamcrest import assert_that from glamor.patches import PatchHelper, include_scope...
30.708171
79
0.578814
743174fff100b9f86539866eae286cdca4d3bcac
51
py
Python
enthought/pyface/message_dialog.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/message_dialog.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/message_dialog.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.message_dialog import *
17
35
0.803922
7433c8c30300e5235615677f9a888944d6d1c778
1,827
py
Python
gorzdrav_parser.py
hound672/gorzdrav_parser
a6e5175111e8a0072484cb1b8c73dcc9afeec172
[ "MIT" ]
null
null
null
gorzdrav_parser.py
hound672/gorzdrav_parser
a6e5175111e8a0072484cb1b8c73dcc9afeec172
[ "MIT" ]
null
null
null
gorzdrav_parser.py
hound672/gorzdrav_parser
a6e5175111e8a0072484cb1b8c73dcc9afeec172
[ "MIT" ]
1
2021-02-07T19:46:37.000Z
2021-02-07T19:46:37.000Z
import requests import pprint import time from datetime import datetime send_push("Hello from python") # Get info from https://gorzdrav.spb.ru/service-covid-vaccination-schedule # Put your hospital number here HOSPITAL_NAME_PATTERN = "78" # District ID DISTRIC_ID = 17 REFRESH_PERIOD = 10 * 60 RETRY_PERIOD = 5 * ...
26.478261
80
0.570881
7434f4f146e47baaf237cd225371fc355a0742ea
1,801
py
Python
django/core/model_fields.py
chanhosuh/bitcoin-monitor
acecfcf020cf2debfdf3a2e8c446007d7412d8e1
[ "MIT" ]
1
2020-01-01T15:54:45.000Z
2020-01-01T15:54:45.000Z
django/core/model_fields.py
chanhosuh/bitcoin-monitor
acecfcf020cf2debfdf3a2e8c446007d7412d8e1
[ "MIT" ]
13
2019-02-28T03:24:54.000Z
2021-09-22T17:50:00.000Z
django/core/model_fields.py
chanhosuh/bitcoin-monitor
acecfcf020cf2debfdf3a2e8c446007d7412d8e1
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.db import models from django.db.models.fields import BigIntegerField from django.utils.translation import ugettext_lazy as _ from .bitcoin import Bitcoin HEX_CHARS = "0123456789abcdefABCDEF"
31.051724
87
0.654636
743528a5657356c58159ba08649a9c47c2edc92a
239
py
Python
Python3/96.unique-binary-search-trees.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/96.unique-binary-search-trees.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/96.unique-binary-search-trees.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=96 lang=python3 # # [96] Unique Binary Search Trees # # @lc code=start # @lc code=end
13.277778
37
0.502092
743567e6130a8957b1d579546a0e934b198dfa8b
3,064
py
Python
launchpad_rgb/__init__.py
HitmanBobina47/launchpad_rgb
cf073ce3662e110b30a4e7647750d86d53ec027f
[ "MIT" ]
7
2019-04-09T01:47:00.000Z
2020-11-11T01:38:46.000Z
launchpad_rgb/__init__.py
HitmanBobina47/launchpad_rgb
cf073ce3662e110b30a4e7647750d86d53ec027f
[ "MIT" ]
null
null
null
launchpad_rgb/__init__.py
HitmanBobina47/launchpad_rgb
cf073ce3662e110b30a4e7647750d86d53ec027f
[ "MIT" ]
1
2019-12-07T11:36:21.000Z
2019-12-07T11:36:21.000Z
from typing import Callable, List
37.82716
157
0.56299
7436b8a2d033f080a4d8a0fedb57c06470287cd7
1,377
py
Python
deepcell_label/exporters_test.py
naterenegar/deepcell-label
5ebe3dd5786746dbdea3dc2ff37f07bb45ebffb8
[ "Apache-2.0" ]
null
null
null
deepcell_label/exporters_test.py
naterenegar/deepcell-label
5ebe3dd5786746dbdea3dc2ff37f07bb45ebffb8
[ "Apache-2.0" ]
2
2020-10-15T23:09:02.000Z
2020-10-22T19:59:09.000Z
deepcell_label/exporters_test.py
naterenegar/deepcell-label
5ebe3dd5786746dbdea3dc2ff37f07bb45ebffb8
[ "Apache-2.0" ]
null
null
null
"""Tests for exporters.py""" import pytest import io from deepcell_label import models from deepcell_label import exporters from deepcell_label.conftest import DummyLoader class TestExporter(): class TestS3Exporter():
27.54
69
0.682643
743894d56d7c6c4c5887273915d861d1f752013b
6,047
py
Python
petition.py
corazzon/petitions
76b2110cb7b664fa25a6a71527d50a5e8a9acf9a
[ "MIT" ]
1
2019-02-18T00:47:07.000Z
2019-02-18T00:47:07.000Z
petition.py
corazzon/petitions
76b2110cb7b664fa25a6a71527d50a5e8a9acf9a
[ "MIT" ]
null
null
null
petition.py
corazzon/petitions
76b2110cb7b664fa25a6a71527d50a5e8a9acf9a
[ "MIT" ]
2
2018-05-31T07:57:54.000Z
2021-09-07T22:47:38.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import csv import logging import os import random import re from concurrent.futures import ThreadPoolExecutor from typing import Dict from urllib import request from urllib.error import HTTPError from bs4 import BeautifulSoup DATA_DIR = 'data' CSV_FILE_WHOLE = os.path.join(DA...
30.235
79
0.592525
7438b8b5f4189488f134c9a9c07bc97d4f67a23a
1,080
py
Python
Examples/QLinearGradientDemo.py
GrayLand119/PyQt5-Demos
792379b4f474abd00aceb2982aad599277a6139d
[ "MIT" ]
null
null
null
Examples/QLinearGradientDemo.py
GrayLand119/PyQt5-Demos
792379b4f474abd00aceb2982aad599277a6139d
[ "MIT" ]
null
null
null
Examples/QLinearGradientDemo.py
GrayLand119/PyQt5-Demos
792379b4f474abd00aceb2982aad599277a6139d
[ "MIT" ]
null
null
null
from PyQt5 import QtGui from PyQt5.QtWidgets import QApplication, QMainWindow import sys from PyQt5.QtGui import QPainter, QBrush, QPen, QLinearGradient from PyQt5.QtCore import Qt App = QApplication(sys.argv) window = Window() sys.exit(App.exec())
25.116279
70
0.641667
743957d3765da76f1e6b4404e6ebe330d6e23d9d
317
py
Python
lnbits/extensions/lndhub/views.py
sidahmedabdelillah/attigoBTC
f121184bab7f4704b54eff6d0ac27afa1ed524ed
[ "MIT" ]
null
null
null
lnbits/extensions/lndhub/views.py
sidahmedabdelillah/attigoBTC
f121184bab7f4704b54eff6d0ac27afa1ed524ed
[ "MIT" ]
null
null
null
lnbits/extensions/lndhub/views.py
sidahmedabdelillah/attigoBTC
f121184bab7f4704b54eff6d0ac27afa1ed524ed
[ "MIT" ]
null
null
null
from quart import render_template, g from lnbits.decorators import check_user_exists, validate_uuids from . import lndhub_ext
26.416667
67
0.753943
743ac42a3fd4814460f31cd2fc79206de9e65dfa
600
py
Python
misago/misago/users/models/deleteduser.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/users/models/deleteduser.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/users/models/deleteduser.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _
27.272727
87
0.7
743c019783cebe50823cfa7cf0403d2a844efab9
26,854
py
Python
kernel/components/boosting/horzsecureboost/horz_secureboosting_client.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/components/boosting/horzsecureboost/horz_secureboosting_client.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/components/boosting/horzsecureboost/horz_secureboosting_client.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
# Copyright 2021 Tianmian Tech. 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...
46.379965
221
0.624116
743d4a9a855ae115998b48388d8c8ff2fca08302
2,769
py
Python
tests/unit/pywbemcli/conftest.py
pywbem/pywbemtools
6b7c3f124324fd3ab7cffb82bc98c8f9555317e4
[ "Apache-2.0" ]
8
2017-04-01T13:55:00.000Z
2022-03-15T18:28:47.000Z
tests/unit/pywbemcli/conftest.py
pywbem/pywbemtools
6b7c3f124324fd3ab7cffb82bc98c8f9555317e4
[ "Apache-2.0" ]
918
2017-03-03T14:29:03.000Z
2022-03-29T15:32:16.000Z
tests/unit/pywbemcli/conftest.py
pywbem/pywbemtools
6b7c3f124324fd3ab7cffb82bc98c8f9555317e4
[ "Apache-2.0" ]
2
2020-01-17T15:56:46.000Z
2020-02-12T18:49:30.000Z
""" Pytest common fixtures """ from __future__ import absolute_import, print_function import os import pytest from pywbemtools._utils import CONNECTIONS_FILENAME, \ DEFAULT_CONNECTIONS_DIR, DEFAULT_CONNECTIONS_FILE SCRIPT_DIR = os.path.dirname(__file__) # Backup file of the default connections file BAK_SUFFIX =...
35.961039
79
0.727338
743efaed013ebb381bd98fe53bed0e263d0f7320
13,143
py
Python
old/eval_scripts/evaluation_functions.py
konatasick/face-of-art
e796747d0ef2df2df863adf53e217ff5c86c816b
[ "MIT" ]
220
2019-09-01T01:52:04.000Z
2022-03-28T12:52:07.000Z
old/eval_scripts/evaluation_functions.py
TrueMatthewKirkham/face-of-art
ffa62a579cc8bc389e2088923736c4947a1fad70
[ "MIT" ]
16
2019-10-24T07:55:11.000Z
2022-02-10T01:28:13.000Z
old/eval_scripts/evaluation_functions.py
TrueMatthewKirkham/face-of-art
ffa62a579cc8bc389e2088923736c4947a1fad70
[ "MIT" ]
33
2019-09-23T15:08:50.000Z
2022-02-08T07:54:52.000Z
import tensorflow as tf from menpofit.visualize import plot_cumulative_error_distribution from menpofit.error import compute_cumulative_error from scipy.integrate import simps from menpo_functions import load_menpo_image_list, load_bb_dictionary from logging_functions import * from data_loading_functions import * from ...
43.81
120
0.640645
743f8e8a60a48a089d0eae27267518b7437b7876
191
py
Python
src/python_code/gather_ood_experiments.py
ipmach/Thesis2021
91dbb0eebba64f1fa2c18562e2c9f35f532ef7c0
[ "MIT" ]
null
null
null
src/python_code/gather_ood_experiments.py
ipmach/Thesis2021
91dbb0eebba64f1fa2c18562e2c9f35f532ef7c0
[ "MIT" ]
null
null
null
src/python_code/gather_ood_experiments.py
ipmach/Thesis2021
91dbb0eebba64f1fa2c18562e2c9f35f532ef7c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from DataBase_Manager.beta_manager import gather_data import sys experiment_path = sys.argv[1] csv_path = sys.argv[2] gather_data(experiment_path, save_file=csv_path)
23.875
53
0.816754
7440b717546ee638774417faa2b4dd5418e3f9b2
792
py
Python
data/spacex.py
Apallapuqu/MaxenceR263
0278ea56ee15d08068ad9cd542ec5d81704010d5
[ "MIT" ]
3
2021-10-14T15:46:24.000Z
2021-10-15T17:29:32.000Z
data/spacex.py
Apallapuqu/MaxenceR263
0278ea56ee15d08068ad9cd542ec5d81704010d5
[ "MIT" ]
1
2021-11-04T14:47:00.000Z
2021-11-04T15:27:16.000Z
data/spacex.py
Apallapuqu/MaxenceR263
0278ea56ee15d08068ad9cd542ec5d81704010d5
[ "MIT" ]
1
2021-11-04T01:17:06.000Z
2021-11-04T01:17:06.000Z
import requests
31.68
58
0.506313
7440d94d7871edd47482f8141c9c0e81af6169de
16,430
py
Python
codes/tests/qs_test.py
madokast/cctpy
b02c64220ea533a4fc9cad0b882d1be6edadf1c0
[ "MIT" ]
1
2021-12-27T13:20:43.000Z
2021-12-27T13:20:43.000Z
codes/tests/qs_test.py
madokast/cctpy
b02c64220ea533a4fc9cad0b882d1be6edadf1c0
[ "MIT" ]
null
null
null
codes/tests/qs_test.py
madokast/cctpy
b02c64220ea533a4fc9cad0b882d1be6edadf1c0
[ "MIT" ]
null
null
null
import unittest import numpy as np from cctpy.baseutils import Vectors, Equal, Stream from cctpy.constant import M, MM, YI, XI, Protons, ZI, MRAD from cctpy.particle import RunningParticle, ParticleFactory, PhaseSpaceParticle, ParticleRunner from cctpy.qs_hard_edge_magnet import QsHardEdgeMagnet from cctpy.abstract_c...
43.12336
116
0.609251
744107433714491e0a8e46ba4af32bda59ff3f79
8,238
py
Python
src/nr/util/process/root.py
NiklasRosenstein/python-nr.util
087f2410d38006c1005a5fb330c47a56bcdb2279
[ "MIT" ]
null
null
null
src/nr/util/process/root.py
NiklasRosenstein/python-nr.util
087f2410d38006c1005a5fb330c47a56bcdb2279
[ "MIT" ]
3
2022-02-16T13:17:28.000Z
2022-03-14T15:28:41.000Z
src/nr/util/process/root.py
NiklasRosenstein/python-nr.util
087f2410d38006c1005a5fb330c47a56bcdb2279
[ "MIT" ]
null
null
null
from __future__ import annotations import os import sys if __name__ == '__main__': # Ensure that the parent directory is not in sys.path. norm = lambda x: os.path.normpath(os.path.abspath(x)) dirname = os.path.dirname(norm(__file__)) sys.path[:] = [x for x in sys.path if norm(x) != dirname] del norm, dirna...
30.511111
119
0.657563
74414156113f70aed599e59e489aec7e8aaa778e
43,200
py
Python
sdh/metrics/org/api.py
SmartDeveloperHub/sdh-org-metrics
78a50501a04ce7c9d8bd55d4688d66c9f6e36766
[ "Apache-2.0" ]
null
null
null
sdh/metrics/org/api.py
SmartDeveloperHub/sdh-org-metrics
78a50501a04ce7c9d8bd55d4688d66c9f6e36766
[ "Apache-2.0" ]
null
null
null
sdh/metrics/org/api.py
SmartDeveloperHub/sdh-org-metrics
78a50501a04ce7c9d8bd55d4688d66c9f6e36766
[ "Apache-2.0" ]
null
null
null
""" #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This file is part of the Smart Developer Hub Project: http://www.smartdeveloperhub.org Center for Open Middleware http://www.centeropenmiddleware.com/ #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=...
42.60355
116
0.673472
7441ed8754d181a3bbc97faed79497d959d46b12
874
py
Python
daiquiri/jobs/migrations/0004_phases_to_char.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
14
2018-12-23T18:35:02.000Z
2021-12-15T04:55:12.000Z
daiquiri/jobs/migrations/0004_phases_to_char.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
40
2018-12-20T12:44:05.000Z
2022-03-21T11:35:20.000Z
daiquiri/jobs/migrations/0004_phases_to_char.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
5
2019-05-16T08:03:35.000Z
2021-08-23T20:03:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-03-31 11:03 from __future__ import unicode_literals from django.db import migrations, models
33.615385
302
0.584668
7442858aa79374bc0e7c8a884d99101738677bd6
4,339
py
Python
tools/CH_constants.py
hussamnasir/geni-ch
b6626a14e95768ba33bbc1faca9e4e74b0040920
[ "MIT" ]
3
2015-05-01T12:48:35.000Z
2017-02-25T07:13:07.000Z
tools/CH_constants.py
GENI-NSF/geni-ch
184909ef656976071fd891091caeaf892c99deb1
[ "MIT" ]
466
2015-05-20T03:49:54.000Z
2020-03-18T23:09:52.000Z
tools/CH_constants.py
hussamnasir/geni-ch
b6626a14e95768ba33bbc1faca9e4e74b0040920
[ "MIT" ]
6
2015-05-06T13:44:13.000Z
2017-07-12T17:57:17.000Z
#---------------------------------------------------------------------- # Copyright (c) 2011-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
40.551402
89
0.705001
74437028daada4e5ca6b65cd6259ece7a9695dc3
1,657
py
Python
Simulation-Chernobyl/simulation_chernobyl/graphics/logger.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T20:01:13.000Z
2022-03-26T20:01:13.000Z
Simulation-Chernobyl/simulation_chernobyl/graphics/logger.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
null
null
null
Simulation-Chernobyl/simulation_chernobyl/graphics/logger.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T19:59:13.000Z
2022-03-26T19:59:13.000Z
import pygame
55.233333
133
0.63971
7443df89c1d0dd9c460536ddbdae972c55cb92f9
9,765
py
Python
ob/models.py
peterkuma/tjrapid
8813cb0a3633785754d20263f180428688bcb026
[ "MIT" ]
null
null
null
ob/models.py
peterkuma/tjrapid
8813cb0a3633785754d20263f180428688bcb026
[ "MIT" ]
1
2021-05-16T16:40:00.000Z
2021-05-16T16:40:00.000Z
ob/models.py
peterkuma/tjrapid
8813cb0a3633785754d20263f180428688bcb026
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2007-2012 Peter Kuma import os from datetime import date, datetime import urllib.request, urllib.error, urllib.parse import json from django.utils import timezone from django.db import models from django.utils.translation import ugettext_lazy as _ from django.conf import setti...
24.659091
171
0.725038
74455e5242de473902ce5c1ce7ac6048af1210c7
18,394
py
Python
tests/test_hal_nav2.py
rdhyee/restnavigator
507a854ab9ea5fe42dc10d8698f67e43b8657902
[ "MIT" ]
21
2015-04-26T08:41:33.000Z
2020-07-22T04:05:37.000Z
tests/test_hal_nav2.py
rdhyee/restnavigator
507a854ab9ea5fe42dc10d8698f67e43b8657902
[ "MIT" ]
17
2015-01-09T18:49:50.000Z
2015-03-09T07:57:17.000Z
tests/test_hal_nav2.py
rdhyee/restnavigator
507a854ab9ea5fe42dc10d8698f67e43b8657902
[ "MIT" ]
11
2015-04-21T04:12:56.000Z
2022-03-27T00:24:25.000Z
'''Refactored tests from test_hal_nav.py''' import json import httpretty import pytest import conftest import uritemplate import restnavigator as RN from restnavigator import exc import restnavigator.halnav as HN def uri_of(doc): '''Pull out the url from a hal document''' return doc['_links']['self']['hr...
31.604811
84
0.584321
744596be112cd09ec44dc8a6cfce90d30a73ab12
405
py
Python
initialize/application.py
adripo/vonage-python-code-snippets
443d83a8cb3c052a634c997f1a3e3eccd61541ab
[ "MIT" ]
8
2017-11-10T17:47:40.000Z
2019-03-09T19:35:01.000Z
initialize/application.py
adripo/vonage-python-code-snippets
443d83a8cb3c052a634c997f1a3e3eccd61541ab
[ "MIT" ]
26
2017-04-12T18:13:51.000Z
2019-03-04T15:29:35.000Z
initialize/application.py
adripo/vonage-python-code-snippets
443d83a8cb3c052a634c997f1a3e3eccd61541ab
[ "MIT" ]
18
2020-10-01T07:23:22.000Z
2022-01-17T00:20:44.000Z
import os import vonage from dotenv import load_dotenv dotenv_path = join(dirname(__file__), "../.env") load_dotenv(dotenv_path) VONAGE_APPLICATION_ID=os.environ.get("VONAGE_APPLICATION_ID") VONAGE_APPLICATION_PRIVATE_KEY_PATH=os.environ.get("VONAGE_APPLICATION_PRIVATE_KEY_PATH") client = vonage.Client( applicat...
27
89
0.832099
74465e288ae568c87d8ee7da98f3d73b7dabf8da
22
py
Python
python.py
oguzcan710/mastering-git-august
b165333bdd96552d834350d95f7fd950e5844538
[ "Apache-2.0" ]
null
null
null
python.py
oguzcan710/mastering-git-august
b165333bdd96552d834350d95f7fd950e5844538
[ "Apache-2.0" ]
null
null
null
python.py
oguzcan710/mastering-git-august
b165333bdd96552d834350d95f7fd950e5844538
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/bin/python
11
21
0.681818
74473c34a9a7c4a517aae11602ad9b0523cc56e0
931
py
Python
pony_express/solution.py
ijkilchenko/google_code_jam
4584d0125f79e0420881356e8a722c5afc0c1ca9
[ "MIT" ]
null
null
null
pony_express/solution.py
ijkilchenko/google_code_jam
4584d0125f79e0420881356e8a722c5afc0c1ca9
[ "MIT" ]
null
null
null
pony_express/solution.py
ijkilchenko/google_code_jam
4584d0125f79e0420881356e8a722c5afc0c1ca9
[ "MIT" ]
null
null
null
import sys read('sample.in') #read(sys.argv[1])
20.688889
55
0.481203
7448420490dadf79cbb285def423344210d69da7
254
py
Python
apps/products/filters.py
ykyk1229/TurtleDove
074ed03396d603a920bc382ee916fc0f3adab6ea
[ "MIT" ]
1
2019-09-02T01:17:34.000Z
2019-09-02T01:17:34.000Z
apps/products/filters.py
ykyk1229/TurtleDove
074ed03396d603a920bc382ee916fc0f3adab6ea
[ "MIT" ]
null
null
null
apps/products/filters.py
ykyk1229/TurtleDove
074ed03396d603a920bc382ee916fc0f3adab6ea
[ "MIT" ]
null
null
null
import django_filters from .models import Product
18.142857
61
0.653543
74488c7384e202632e7b938723fff09c66866753
3,724
py
Python
corpus_process.py
Protostars/CSeg
1acd301e804de8135310c5d39ed136b4cfd8865f
[ "MIT" ]
1
2019-12-15T06:03:42.000Z
2019-12-15T06:03:42.000Z
corpus_process.py
Protostars/CSeg
1acd301e804de8135310c5d39ed136b4cfd8865f
[ "MIT" ]
null
null
null
corpus_process.py
Protostars/CSeg
1acd301e804de8135310c5d39ed136b4cfd8865f
[ "MIT" ]
1
2019-12-15T06:03:19.000Z
2019-12-15T06:03:19.000Z
import re import os import pickle import sys from math import log DICT_NAME = "dict.txt" BI_GRAM_FILE = "bi_gram.txt" HMM_PROB = "hmm_prob" SMALL_PROB = 1e-200 # +,#,&,.,% re_ch = re.compile("([\u4E00-\u9FD5a-zA-Z0-9\uFF10-\uFF5A+#&\._%]+)", re.U) re_stop = re.compile("([]+)", re.U) # 2-gram # # HMM if __name__...
32.955752
108
0.475295
744953a33d13dce6a8e313b4de8e7bbc4605a9b1
1,954
py
Python
main.py
tvirus-01/scraping-seekingalpha
0dedd14195a9f4f354475a3cbe1728325cb45b33
[ "MIT" ]
1
2021-05-18T16:27:06.000Z
2021-05-18T16:27:06.000Z
main.py
tvirus-01/scraping-seekingalpha
0dedd14195a9f4f354475a3cbe1728325cb45b33
[ "MIT" ]
null
null
null
main.py
tvirus-01/scraping-seekingalpha
0dedd14195a9f4f354475a3cbe1728325cb45b33
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.chrome.options import Options from bs4 import BeautifulSoup import requests import time import os import csv root_url = "https://seekingalpha.com" query = "stock repurchase program" url = "https://seekingalpha.com/search?q="+query.replcae(" ", "+") chrome_driver_p...
30.53125
153
0.680655
744e61002cde51c152c53abdd50110f3f6f68a3b
6,071
py
Python
falx/utils/generate_random_traces.py
Mestway/falx
fcae5e536f44c19780ae9f00b94e397723924757
[ "BSD-2-Clause" ]
10
2021-01-29T19:08:55.000Z
2022-03-03T05:08:53.000Z
falx/utils/generate_random_traces.py
Mestway/falx
fcae5e536f44c19780ae9f00b94e397723924757
[ "BSD-2-Clause" ]
null
null
null
falx/utils/generate_random_traces.py
Mestway/falx
fcae5e536f44c19780ae9f00b94e397723924757
[ "BSD-2-Clause" ]
2
2020-06-28T21:52:12.000Z
2020-09-04T07:18:08.000Z
import eval_utils import json from falx.eval_interface import FalxEvalInterface from falx.utils import table_utils from timeit import default_timer as timer import numpy as np from pprint import pprint from falx.visualization.chart import VisDesign, LayeredChart from falx.visualization.matplotlib_chart import Matpl...
54.205357
469
0.541591
745481823c68affcc1265816e955ae79a8aa4353
1,180
py
Python
Python Advanced/3. Multidimensional Lists/Exercise/08. Bombs.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Advanced/3. Multidimensional Lists/Exercise/08. Bombs.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Advanced/3. Multidimensional Lists/Exercise/08. Bombs.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
from collections import deque dimensions = int(input()) matrix = read_matrix(dimensions) bombs = deque([[int(y) for y in x.split(",")] for x in input().split(' ')]) for b in range(len(bombs)): bomb_row, bomb_col = bombs.popleft() damage = matrix[bomb_row][bomb_col] if matrix[bomb_row][bomb_col] > 0:...
22.264151
99
0.555085
74549295644b9ab856d42ba18aad581d90fa00df
2,548
py
Python
section2/src/inference/UNetInferenceAgent.py
taruntalreja08/Alzheimer-progression
e656ecdabe0d14fe7365669113dae13c92252f5d
[ "MIT" ]
null
null
null
section2/src/inference/UNetInferenceAgent.py
taruntalreja08/Alzheimer-progression
e656ecdabe0d14fe7365669113dae13c92252f5d
[ "MIT" ]
1
2020-06-07T15:04:01.000Z
2020-06-07T15:04:01.000Z
section2/src/inference/UNetInferenceAgent.py
taruntalreja08/Alzheimer-progression
e656ecdabe0d14fe7365669113dae13c92252f5d
[ "MIT" ]
null
null
null
""" Contains class that runs inferencing """ import torch import numpy as np from networks.RecursiveUNet import UNet from utils.utils import med_reshape
31.45679
100
0.600863
7454dbd88f5a6b8a189be8a7fbf19150aa71b9b0
2,666
py
Python
tests/trans_sec/controller/http_server_flask_tests.py
cablelabs/transparent-security
28d40c2f0c64e5c6ffde173ba17be235ce3f6f57
[ "Apache-2.0" ]
22
2020-01-09T00:19:53.000Z
2022-01-19T18:43:12.000Z
tests/trans_sec/controller/http_server_flask_tests.py
cablelabs/transparent-security
28d40c2f0c64e5c6ffde173ba17be235ce3f6f57
[ "Apache-2.0" ]
334
2020-01-06T19:49:45.000Z
2021-08-18T16:44:44.000Z
tests/trans_sec/controller/http_server_flask_tests.py
cablelabs/transparent-security
28d40c2f0c64e5c6ffde173ba17be235ce3f6f57
[ "Apache-2.0" ]
4
2020-06-04T20:44:47.000Z
2021-09-09T18:50:41.000Z
# Copyright (c) 2019 Cable Television Laboratories, 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 ...
29.955056
74
0.650038
7455ff3dcda7a5add726f7de0d09df9484ff450a
764
py
Python
ccgpack/curvelet.py
vafaei-ar/ccgpack
73cf1d644f747fd2251ed9256cae740e6b052da7
[ "BSD-3-Clause" ]
3
2019-04-15T08:40:32.000Z
2019-04-18T22:06:29.000Z
ccgpack/curvelet.py
vafaei-ar/ccgpack
73cf1d644f747fd2251ed9256cae740e6b052da7
[ "BSD-3-Clause" ]
null
null
null
ccgpack/curvelet.py
vafaei-ar/ccgpack
73cf1d644f747fd2251ed9256cae740e6b052da7
[ "BSD-3-Clause" ]
2
2019-04-15T08:41:35.000Z
2021-10-02T08:24:22.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import ctypes import numpy as np import os path = '/'.join(os.path.abspath(__file__).split('/')[:-1]) fftw_path = 'cpp_src/fftw-2.1.5/fftw/.libs/libfftw.so.2' crv_path = 'cpp_src/curvelet.so' ctypes.cdll.Load...
30.56
76
0.739529
74567795a187febc4b7818b1e7dc40331bc56c8b
296
py
Python
django_openapi/utils.py
tokikanno/openapi-router
884463d43eb472dce3d5fd835390f676f8a672f5
[ "MIT" ]
19
2020-08-03T06:51:54.000Z
2022-03-15T14:45:10.000Z
django_openapi/utils.py
tokikanno/openapi-router
884463d43eb472dce3d5fd835390f676f8a672f5
[ "MIT" ]
3
2021-01-13T10:01:07.000Z
2021-04-29T02:17:41.000Z
django_openapi/utils.py
tokikanno/openapi-router
884463d43eb472dce3d5fd835390f676f8a672f5
[ "MIT" ]
4
2020-12-20T14:50:29.000Z
2021-12-14T21:17:46.000Z
# -*- coding:utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django.http import JsonResponse
22.769231
41
0.777027