hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
19cbf796ad7b5641c3d047fa842ac8998f9be4ac
2,940
py
Python
.deprecated/gmanage/io.py
kablekompany/gmanage
deb712a9785f54fc9b442732ac1dab23fb4e391e
[ "MIT" ]
null
null
null
.deprecated/gmanage/io.py
kablekompany/gmanage
deb712a9785f54fc9b442732ac1dab23fb4e391e
[ "MIT" ]
null
null
null
.deprecated/gmanage/io.py
kablekompany/gmanage
deb712a9785f54fc9b442732ac1dab23fb4e391e
[ "MIT" ]
null
null
null
""" Copyright 2020 KableKompany 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, publish, distribute, subl...
41.408451
117
0.652381
432a1a72c23beff092724859bcb28568bfd0b420
313
py
Python
utils/function.py
thebriss/PyMongoDiscordBot
998a593aac9d93d4c98c95ce4394043f5e63143b
[ "Apache-2.0" ]
1
2021-05-17T11:04:08.000Z
2021-05-17T11:04:08.000Z
utils/function.py
thebriss/PyMongoDiscordBot
998a593aac9d93d4c98c95ce4394043f5e63143b
[ "Apache-2.0" ]
null
null
null
utils/function.py
thebriss/PyMongoDiscordBot
998a593aac9d93d4c98c95ce4394043f5e63143b
[ "Apache-2.0" ]
null
null
null
import datetime from simple_chalk import chalk import os async def send(type: str, message: str): print(chalk.yellow(f"[{datetime.datetime.now().strftime('%c')}] ") + chalk.red(f"{type.upper().replace('İ', 'I')} | ") +chalk.green(f"{message}")) def cls(): os.system('cls' if os.name=='nt' else 'clear')
31.3
150
0.651757
ff18aa0f1d76ef13c354f8a49b5f61f4c4bd3261
1,129
py
Python
projects/04_loading_saving_data/04_loading_saving_data.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
projects/04_loading_saving_data/04_loading_saving_data.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
projects/04_loading_saving_data/04_loading_saving_data.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request import typing from database import load_data, save_data app = Flask(__name__) my_persons: typing.List = [] @app.route('/persons', methods=['GET']) def persons(): """ Get all persons """ return jsonify(my_persons) @app.route('/persons', methods=['POST']) def create_...
24.543478
57
0.651904
0b09cf71d825ec0deedaedd16caa65b236dbf3d8
12,032
py
Python
tensorflow_federated/python/tensorflow_libs/graph_merge.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/tensorflow_libs/graph_merge.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/tensorflow_libs/graph_merge.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
45.06367
87
0.714927
aae4ccdd62b964dfe6d8b6fa0856d9926af945e7
4,974
py
Python
tests/unit/adapters/netbox_api/models/test_netbox_vlan_pre29.py
itdependsnetworks/network-importer
6d4e8835af0ca28df2fca8d42792156882f30691
[ "Apache-2.0" ]
null
null
null
tests/unit/adapters/netbox_api/models/test_netbox_vlan_pre29.py
itdependsnetworks/network-importer
6d4e8835af0ca28df2fca8d42792156882f30691
[ "Apache-2.0" ]
null
null
null
tests/unit/adapters/netbox_api/models/test_netbox_vlan_pre29.py
itdependsnetworks/network-importer
6d4e8835af0ca28df2fca8d42792156882f30691
[ "Apache-2.0" ]
null
null
null
""" (c) 2020 Network To Code 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 distribu...
36.043478
117
0.735223
ed3520b697a4a2ac285e91c3e448cbfbf49cabbc
2,387
py
Python
assignments/assignment1/gradient_check.py
lordofprograms/dlcourse_ai
1b645c25566a6af9e7eefe45b8d3849283af51d1
[ "MIT" ]
null
null
null
assignments/assignment1/gradient_check.py
lordofprograms/dlcourse_ai
1b645c25566a6af9e7eefe45b8d3849283af51d1
[ "MIT" ]
null
null
null
assignments/assignment1/gradient_check.py
lordofprograms/dlcourse_ai
1b645c25566a6af9e7eefe45b8d3849283af51d1
[ "MIT" ]
null
null
null
import numpy as np def numeric_grad_array(f, x, h): """ calculating numerical differentiation 2-point formula: (f(x+h) - f(x-h))/2h source: https://en.wikipedia.org/wiki/Numerical_differentiation Arguments: f: function that receives x and computes value and gradient x: np array, initial p...
33.152778
110
0.636783
978bf530cd99ec6af74a49cb96ff98023d7a15cb
20,722
py
Python
tensorflow/contrib/boosted_trees/python/kernel_tests/stats_accumulator_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/boosted_trees/python/kernel_tests/stats_accumulator_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/boosted_trees/python/kernel_tests/stats_accumulator_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
44.950108
80
0.589518
2a8680b89a86be35b0f93ce640455cdef018a2d8
2,166
py
Python
podman/networks/__init__.py
jmguzik/podman-py
132eb096ac962c759eacfbd88829a0cfbdd56ab9
[ "Apache-2.0" ]
null
null
null
podman/networks/__init__.py
jmguzik/podman-py
132eb096ac962c759eacfbd88829a0cfbdd56ab9
[ "Apache-2.0" ]
null
null
null
podman/networks/__init__.py
jmguzik/podman-py
132eb096ac962c759eacfbd88829a0cfbdd56ab9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
31.391304
88
0.664358
7410e166e565de57a0c51f1e8e050e9695c04ca0
2,898
py
Python
submarine-sdk/pysubmarine/tests/tracking/test_tracking.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
544
2019-10-29T02:35:31.000Z
2022-03-31T21:22:44.000Z
submarine-sdk/pysubmarine/tests/tracking/test_tracking.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
545
2019-10-29T03:21:38.000Z
2022-03-30T05:21:15.000Z
submarine-sdk/pysubmarine/tests/tracking/test_tracking.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
220
2019-10-29T05:14:03.000Z
2022-03-28T07:29:30.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use t...
38.131579
93
0.668737
2493379c3dfaaa1e06a3fce186802640ea21f8a2
416
py
Python
tests/tests/models.py
NineteenPeriod/django-bulk-update-or-create
7729e5c5375f9227044ec476d64b3d24610315ca
[ "MIT" ]
80
2020-07-14T22:39:10.000Z
2022-03-08T20:44:09.000Z
tests/tests/models.py
NineteenPeriod/django-bulk-update-or-create
7729e5c5375f9227044ec476d64b3d24610315ca
[ "MIT" ]
26
2020-07-15T15:11:02.000Z
2022-03-30T06:30:47.000Z
tests/tests/models.py
NineteenPeriod/django-bulk-update-or-create
7729e5c5375f9227044ec476d64b3d24610315ca
[ "MIT" ]
15
2020-08-07T09:23:02.000Z
2022-03-04T08:41:03.000Z
from django.db import models from bulk_update_or_create import BulkUpdateOrCreateQuerySet class RandomData(models.Model): objects = BulkUpdateOrCreateQuerySet.as_manager() uuid = models.IntegerField(unique=True) value = models.IntegerField(default=0) data = models.CharField(max_length=200, null=True,...
29.714286
66
0.740385
f5593946875e010a6720d7dee5c4a61c9ae3472f
1,930
py
Python
data/external/repositories/126714/kaggle-avazu-master/script/gbdt_dense.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/126714/kaggle-avazu-master/script/gbdt_dense.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/126714/kaggle-avazu-master/script/gbdt_dense.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
#!/usr/bin/env python # generate dense feature for gbdt from datetime import datetime import marshal id_stat = marshal.load(open("../id_stat")) # load name data def load_name_sample(input,isTest): f = open(input) y = [] x = [] line = f.readline() index = 3 if isTest == True: i...
26.081081
68
0.504145
7023ab17cb8976658e548e9b3f003116fc18d379
3,157
py
Python
visual/visual_temp_compare.py
AdamPaslawski/OurGan_TransformerNLP
1d9a82793ae2018ba73fd11b0fb6b09b126fba07
[ "MIT" ]
13
2021-08-15T12:37:37.000Z
2022-02-22T13:22:28.000Z
visual/visual_temp_compare.py
srijankr/petgen
28705aff5c6f4ed168ffd208dcb6e3b1e4ed104a
[ "MIT" ]
null
null
null
visual/visual_temp_compare.py
srijankr/petgen
28705aff5c6f4ed168ffd208dcb6e3b1e4ed104a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy as np title_dict = { 'NLL_oracle': 'NLL_oracle', 'NLL_gen': 'NLL_gen', 'NLL_div': 'NLL_div', 'nll_oracle': 'nll_oracle', 'nll_div': 'nll_div', 'temp': 'temp', } color_list = ['#e74c3c', '#f1c40f', '#1abc9c', '#...
33.585106
118
0.51853
7d8e75e2d06cbde45047e1f85c1bd6899cb0342e
3,007
py
Python
src/test_files.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
1
2015-11-04T22:22:10.000Z
2015-11-04T22:22:10.000Z
src/test_files.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
src/test_files.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, publish, ...
28.367925
78
0.715663
7885acd08e0a01995f09071e39749097e29e2800
1,260
py
Python
Lib/site-packages/sphinx/builders/htmlhelp.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
3
2020-01-04T16:46:59.000Z
2020-10-09T03:04:31.000Z
Lib/site-packages/sphinx/builders/htmlhelp.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
10
2021-06-16T20:48:32.000Z
2021-10-04T18:22:02.000Z
Lib/site-packages/sphinx/builders/htmlhelp.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
2
2019-11-02T08:03:09.000Z
2020-06-29T14:52:15.000Z
""" sphinx.builders.htmlhelp ~~~~~~~~~~~~~~~~~~~~~~~~ Build HTML help support files. Parts adapted from Python's Doc/tools/prechm.py. :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import warnings from typing import Any, Dict from...
29.302326
87
0.647619
b78136579ae102afc707780890c1d45e0f975a14
5,466
py
Python
src/utils/livelossplot/generic_plot.py
yohann84L/faster_rcnn_test_case
c960790629462a94c1934c8efc59e494d392410c
[ "MIT" ]
null
null
null
src/utils/livelossplot/generic_plot.py
yohann84L/faster_rcnn_test_case
c960790629462a94c1934c8efc59e494d392410c
[ "MIT" ]
null
null
null
src/utils/livelossplot/generic_plot.py
yohann84L/faster_rcnn_test_case
c960790629462a94c1934c8efc59e494d392410c
[ "MIT" ]
null
null
null
from __future__ import division import math from .core import draw_plot, print_extrema, not_inline_warning, MATPLOTLIB_TARGET, NEPTUNE_TARGET from collections import OrderedDict def _is_unset(metric): return metric is None or math.isnan(metric) or math.isinf(metric) class PlotLosses(): def __init__(self, ...
37.958333
120
0.553055
812198805c3ebfcaa612c54b249dfc2196cbc87e
513
py
Python
care/facility/migrations/0117_patientsample_icmr_category.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
189
2020-03-17T17:18:58.000Z
2022-02-22T09:49:45.000Z
care/facility/migrations/0117_patientsample_icmr_category.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
598
2020-03-19T21:22:09.000Z
2022-03-30T05:08:37.000Z
care/facility/migrations/0117_patientsample_icmr_category.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
159
2020-03-19T18:45:56.000Z
2022-03-17T13:23:12.000Z
# Generated by Django 2.2.11 on 2020-06-15 15:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('facility', '0116_facility_pincode'), ] operations = [ migrations.AddField( model_name='patientsample', name='icmr_c...
27
165
0.569201
c138e4cbdd70019b43ea127c277a11fa7ca3b5d5
10,141
py
Python
emu101asm/assembler.py
en0/emu101
c0c28fc459bb839bd54a593b36b64e7d547f692d
[ "MIT" ]
null
null
null
emu101asm/assembler.py
en0/emu101
c0c28fc459bb839bd54a593b36b64e7d547f692d
[ "MIT" ]
null
null
null
emu101asm/assembler.py
en0/emu101
c0c28fc459bb839bd54a593b36b64e7d547f692d
[ "MIT" ]
null
null
null
import re from itertools import count from io import FileIO from enum import IntFlag from typing import NamedTuple _re_label = re.compile(r"^(\w+):(.*)") _re_op = re.compile(r"^(?:(?P<dst>[a-z0-9]+)(?:,(?P<dst_b>[a-z09]+))?)=(?P<src>[a-z0-9+@! ]+)(?:\?(?:(?P<cond>[a-z]+)(?:,(?P<cond_src>[a-z0-9]+))?))?") io_map = { ...
31.203077
151
0.523124
058f85dbd0a1d47529223499b1f298c9094ffbd8
5,529
py
Python
st2tests/integration/mistral/test_wiring.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
2
2021-08-04T01:04:06.000Z
2021-08-04T01:04:08.000Z
st2tests/integration/mistral/test_wiring.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2022-03-31T03:53:22.000Z
2022-03-31T03:53:22.000Z
st2tests/integration/mistral/test_wiring.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2019-10-11T14:42:28.000Z
2019-10-11T14:42:28.000Z
# Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
42.530769
90
0.687828
c04700abe7e0f1c03dc65060f3481c69759df459
15,095
py
Python
main.py
A-Katopodis/Neural-Network-Implemenation
4e28f695fba57c63aa9e3d5b7ac6036a341d97d5
[ "Apache-2.0" ]
null
null
null
main.py
A-Katopodis/Neural-Network-Implemenation
4e28f695fba57c63aa9e3d5b7ac6036a341d97d5
[ "Apache-2.0" ]
null
null
null
main.py
A-Katopodis/Neural-Network-Implemenation
4e28f695fba57c63aa9e3d5b7ac6036a341d97d5
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import time import _pickle as cPickle # Function used for loading the CIFAR10 dataset def unpickle(file): with open(file, 'rb') as fo: dict = cPickle.load(fo) return dict # Compute the softmax function of the output def softmax(y): max_of_rows = ...
32.532328
172
0.619278
fd8cbb5a5e5e52bb58741eff31dcb673914e42e4
1,584
py
Python
ch9/login4.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
4
2020-05-18T05:25:44.000Z
2021-07-30T01:02:39.000Z
ch9/login4.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
null
null
null
ch9/login4.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
2
2021-09-15T05:41:05.000Z
2022-01-25T05:44:43.000Z
import tkinter as tk #导入tkinter模块 window = tk.Tk() #创建主窗口对象 screen_width = window.winfo_screenwidth() #获取屏幕宽度 screen_height = window.winfo_screenheight() #获取屏幕高度 x = (screen_width - 200) / 2 #计算窗口坐标x y = (screen_height - 100) / 2 #计算窗口坐标y window.geometry('260x100+%d+%d' % (x, y)) #设置窗口大小与位置 window.title('login')...
42.810811
164
0.710227
a54e0970ccc6cc1edaf7d940f920aab9ade2306b
1,248
py
Python
djcopybook/fixedwidth/tests/fields/test_integer_field.py
imtapps/django-copybook
33967a017956d58ae1d57b6c7b7c5eb8ed5f18ee
[ "BSD-2-Clause" ]
3
2017-01-23T19:30:18.000Z
2019-07-08T06:42:50.000Z
djcopybook/fixedwidth/tests/fields/test_integer_field.py
imtapps/django-copybook
33967a017956d58ae1d57b6c7b7c5eb8ed5f18ee
[ "BSD-2-Clause" ]
7
2015-05-19T14:26:39.000Z
2022-02-09T19:21:44.000Z
djcopybook/fixedwidth/tests/fields/test_integer_field.py
imtapps/django-copybook
33967a017956d58ae1d57b6c7b7c5eb8ed5f18ee
[ "BSD-2-Clause" ]
3
2016-09-15T20:48:00.000Z
2017-10-24T19:33:29.000Z
import unittest from djcopybook.fixedwidth import fields class IntegerFieldTests(unittest.TestCase): def test_to_record_returns_string_of_value_padded_to_length(self): field = fields.IntegerField(length=5) self.assertEqual("00012", field.to_record(12)) def test_to_record_returns_padded_zero...
36.705882
80
0.733173
a64e699b57fb99b7390800bd99a4269c940dcba9
1,188
py
Python
setup.py
zachary-hawk/NC_CRYST
21874e50054a753351df0499ec5fd0ec63df3531
[ "MIT" ]
null
null
null
setup.py
zachary-hawk/NC_CRYST
21874e50054a753351df0499ec5fd0ec63df3531
[ "MIT" ]
null
null
null
setup.py
zachary-hawk/NC_CRYST
21874e50054a753351df0499ec5fd0ec63df3531
[ "MIT" ]
null
null
null
from setuptools import find_packages import pathlib from numpy.distutils.core import setup, Extension HERE=pathlib.Path(__file__).parent README=(HERE / "README.md").read_text() ext1 = Extension(name='nc_fort', sources=['nc_cryst/nc_fort.f90'], f2py_options=['--quiet'], ...
32.108108
87
0.628788
ab42dcd277450e99a226d08cfc1bb66a8f6f5f2a
299
py
Python
strudra/__init__.py
domenukk/strudra
3c618779f9a9cf646d145e3ab703a0b4e7dbb767
[ "MIT" ]
28
2021-03-17T01:14:46.000Z
2022-01-21T02:55:07.000Z
strudra/__init__.py
domenukk/strudra
3c618779f9a9cf646d145e3ab703a0b4e7dbb767
[ "MIT" ]
null
null
null
strudra/__init__.py
domenukk/strudra
3c618779f9a9cf646d145e3ab703a0b4e7dbb767
[ "MIT" ]
null
null
null
from .strudra import ( get_fmt, Member, data_from_file, Strudra, data_from_ghidra, struds_from_data, serialize_struds, ghidra_struct_to_strud, define_struct, add_struct, parse_to_strud, parse_struct_members, target_is_big_endian, gh_bridge, )
17.588235
27
0.692308
56bfa69a860ca47ef3be9d41bcd89b9bfef6523b
5,135
py
Python
examples/camera.py
conductiveIT/pymunk-1
61de8b2e652503356ac14a2d648cc11aa6a8070f
[ "MIT" ]
670
2015-01-01T19:10:15.000Z
2022-03-29T23:05:47.000Z
examples/camera.py
conductiveIT/pymunk-1
61de8b2e652503356ac14a2d648cc11aa6a8070f
[ "MIT" ]
122
2015-01-02T19:06:19.000Z
2022-03-20T19:44:25.000Z
examples/camera.py
conductiveIT/pymunk-1
61de8b2e652503356ac14a2d648cc11aa6a8070f
[ "MIT" ]
222
2015-01-28T03:34:52.000Z
2022-03-27T06:44:52.000Z
"""Basic showcase on how the transform property on SpaceDebugDrawOptions can be used as a camera to allow panning. Use arrows to move the camera. """ __docformat__ = "reStructuredText" import random import sys import pygame import pymunk import pymunk.pygame_util from pymunk.vec2d import Vec2d random.seed(0) de...
28.060109
80
0.565141
5abaa68bbcec9c6fdc51249395e01ef7cbfc5a1c
830
py
Python
tests/codec.py
axsguard/sstp-server
393986654cd429ce55f9e5a242d60610a4fed88b
[ "MIT" ]
223
2015-01-17T17:35:46.000Z
2022-03-20T10:39:35.000Z
tests/codec.py
axsguard/sstp-server
393986654cd429ce55f9e5a242d60610a4fed88b
[ "MIT" ]
34
2015-04-02T09:03:08.000Z
2022-03-13T06:57:30.000Z
tests/codec.py
axsguard/sstp-server
393986654cd429ce55f9e5a242d60610a4fed88b
[ "MIT" ]
99
2015-04-14T14:03:02.000Z
2022-03-26T19:27:39.000Z
#!/usr/bin/env python3 import os import timeit from sstpd.codec import escape, PppDecoder decoder = PppDecoder() def get_enscaped(): frames = [os.urandom(1500) for i in range(2)] return b''.join([escape(f) for f in frames]) def prof_unescape(): return timeit.timeit('decoder.unescape(data)', ...
24.411765
55
0.618072
a4bfe13b5c7b24c2032ccdda824c6e64691d72f0
3,541
py
Python
tensorflow_privacy/privacy/estimators/test_utils.py
SoaringChicken/tensorflow-privacy
70ab071e2332694efaa7ad88240832f5b778d55c
[ "Apache-2.0" ]
null
null
null
tensorflow_privacy/privacy/estimators/test_utils.py
SoaringChicken/tensorflow-privacy
70ab071e2332694efaa7ad88240832f5b778d55c
[ "Apache-2.0" ]
null
null
null
tensorflow_privacy/privacy/estimators/test_utils.py
SoaringChicken/tensorflow-privacy
70ab071e2332694efaa7ad88240832f5b778d55c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, The TensorFlow Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
30.264957
95
0.670997
fb173fbadea610e46271e78970482d81245d28b4
629
py
Python
crawler/validators/__init__.py
wanlitengfei/IPProxy
7a69ca184e8f0c5f154b2a394431e95d4689ef87
[ "MIT" ]
1
2018-03-20T09:14:33.000Z
2018-03-20T09:14:33.000Z
crawler/validators/__init__.py
wanlitengfei/IPProxy
7a69ca184e8f0c5f154b2a394431e95d4689ef87
[ "MIT" ]
null
null
null
crawler/validators/__init__.py
wanlitengfei/IPProxy
7a69ca184e8f0c5f154b2a394431e95d4689ef87
[ "MIT" ]
1
2018-09-08T08:06:54.000Z
2018-09-08T08:06:54.000Z
""" All the spiders are used to validate ip resources. Here are all the validator website https://httpbin.org/ip http://httpbin.org/ip https://weibo.cn/ If you want to add your own validators,you must add all the queues in config/settings.py and register tasks in config/rules.py,and add the task key to HttpBinInitVal...
26.208333
67
0.779014
34f640021fa58987cccf4060f433c5836c88d6ee
1,306
py
Python
kano_blog/app.py
healeycodes/full-stack-test-for-kano
ab644569b57694d65059cd76fedbfa467d79dee5
[ "MIT" ]
2
2019-05-21T00:17:00.000Z
2019-05-21T01:01:13.000Z
kano_blog/app.py
healeycodes/full-stack-test-for-kano
ab644569b57694d65059cd76fedbfa467d79dee5
[ "MIT" ]
null
null
null
kano_blog/app.py
healeycodes/full-stack-test-for-kano
ab644569b57694d65059cd76fedbfa467d79dee5
[ "MIT" ]
null
null
null
import sqlite3 import sys from pathlib import Path from flask import g, Flask, flash, render_template, request # create Flask instance app = Flask(__name__) app.secret_key = 'secret' app.config['DATABASE'] = 'db.sqlite' # sqlite database will stored be in package dir for MVP db_path = str(Path(app.root_path) / app....
23.745455
74
0.644717
7558d632ab7033108ae7f45253c1f57394927f46
870
py
Python
isi_sdk_7_2/test/test_worm_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_7_2/test/test_worm_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_7_2/test/test_worm_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: 2 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_7_2 from isi...
21.219512
79
0.694253
21c787ac92d245b20423b8b9f0b30e1152fae9c9
18,584
py
Python
tests/test_networking.py
standy66/anyio
39daeb8903f4a53b3dfdba63234a3bad24bc2b5d
[ "MIT" ]
null
null
null
tests/test_networking.py
standy66/anyio
39daeb8903f4a53b3dfdba63234a3bad24bc2b5d
[ "MIT" ]
null
null
null
tests/test_networking.py
standy66/anyio
39daeb8903f4a53b3dfdba63234a3bad24bc2b5d
[ "MIT" ]
null
null
null
import socket import ssl import sys from pathlib import Path import pytest from anyio import ( create_task_group, connect_tcp, create_udp_socket, connect_unix, create_unix_server, create_tcp_server) from anyio.exceptions import IncompleteRead, DelimiterNotFound, ClosedResourceError class TestTCPStream: ...
43.830189
97
0.595512
26a882f66bd8e4a72d641a6c1038214ea0e1b89f
2,615
py
Python
astro/dags/example-dag.py
zkan/hello-astronomer
9da23a254d4f1bc02bce511e3c5243e0093c2080
[ "Apache-2.0" ]
9
2021-12-10T18:15:09.000Z
2022-03-27T15:50:05.000Z
astro/dags/example-dag.py
zkan/hello-astronomer
9da23a254d4f1bc02bce511e3c5243e0093c2080
[ "Apache-2.0" ]
1
2022-02-28T01:17:20.000Z
2022-02-28T02:17:43.000Z
astro/dags/example-dag.py
zkan/hello-astronomer
9da23a254d4f1bc02bce511e3c5243e0093c2080
[ "Apache-2.0" ]
2
2021-11-02T19:08:56.000Z
2021-11-03T14:19:59.000Z
from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator from airflow.version import version from datetime import datetime, timedelta def my_custom_function(ts,**kwargs): ...
36.319444
132
0.648566
3a9ec05d3374e0d4a2576e68eeae7bb41d564c6d
7,293
py
Python
tljh/configurer.py
budgester/the-littlest-jupyterhub
94f747fd5d6acd6cb818c97c766eb8869128eabe
[ "BSD-3-Clause" ]
1
2020-06-28T12:21:32.000Z
2020-06-28T12:21:32.000Z
tljh/configurer.py
budgester/the-littlest-jupyterhub
94f747fd5d6acd6cb818c97c766eb8869128eabe
[ "BSD-3-Clause" ]
null
null
null
tljh/configurer.py
budgester/the-littlest-jupyterhub
94f747fd5d6acd6cb818c97c766eb8869128eabe
[ "BSD-3-Clause" ]
null
null
null
""" Parse YAML config file & update JupyterHub config. Config should never append or mutate, only set. Functions here could be called many times per lifetime of a jupyterhub. Traitlets that modify the startup of JupyterHub should not be here. FIXME: A strong feeling that JSON Schema should be involved somehow. """ i...
27.111524
105
0.620321
5622a03b4679c2edb231d908587ff4b0ae17ca11
10,163
py
Python
test/test_vxlan_gpe.py
adwait1-G/vpp
5f9f3c8de8d5d9f83a437661a98e5cc2453705f9
[ "Apache-2.0" ]
null
null
null
test/test_vxlan_gpe.py
adwait1-G/vpp
5f9f3c8de8d5d9f83a437661a98e5cc2453705f9
[ "Apache-2.0" ]
null
null
null
test/test_vxlan_gpe.py
adwait1-G/vpp
5f9f3c8de8d5d9f83a437661a98e5cc2453705f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import socket from util import ip4n_range, ip4_range import unittest from framework import VppTestCase, VppTestRunner, running_extended_tests from template_bd import BridgeDomain from scapy.layers.l2 import Ether, Raw from scapy.layers.inet import IP, UDP from scapy.layers.vxlan import VXLAN fr...
38.496212
79
0.607104
c19f7b034b1641c9ccd88634f12fcdc3013bce09
15,336
py
Python
projects/DensePose/densepose/data/datasets/coco.py
mmabrouk/detectron2
158e395acdb8ca6ed6d488b43475f9ef9d200405
[ "Apache-2.0" ]
21,274
2019-10-10T17:50:46.000Z
2022-03-31T17:58:45.000Z
projects/DensePose/densepose/data/datasets/coco.py
mmabrouk/detectron2
158e395acdb8ca6ed6d488b43475f9ef9d200405
[ "Apache-2.0" ]
3,253
2019-10-10T20:39:47.000Z
2022-03-31T22:27:53.000Z
projects/DensePose/densepose/data/datasets/coco.py
mmabrouk/detectron2
158e395acdb8ca6ed6d488b43475f9ef9d200405
[ "Apache-2.0" ]
6,288
2019-10-10T18:00:27.000Z
2022-03-31T21:22:58.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import contextlib import io import logging import os from collections import defaultdict from dataclasses import dataclass from typing import Any, Dict, Iterable, List, Optional from fvcore.common.timer import Timer from detectron2.data import DatasetCatalog, Metadata...
35.418014
100
0.68838
8f9cb1a645d6b0a22cd77accba2a6d1d35d02140
15,078
py
Python
goeset/calcs.py
jbellino-usgs/Florida-GOES-ET
237b1604ea99851f8032e9ad39bd571629c76a34
[ "CC0-1.0" ]
null
null
null
goeset/calcs.py
jbellino-usgs/Florida-GOES-ET
237b1604ea99851f8032e9ad39bd571629c76a34
[ "CC0-1.0" ]
null
null
null
goeset/calcs.py
jbellino-usgs/Florida-GOES-ET
237b1604ea99851f8032e9ad39bd571629c76a34
[ "CC0-1.0" ]
null
null
null
import numpy as np # Fixed variables for ET calculations P_atm = 101.3 gsc = 0.082 stefan_MJ = 4.903e-9 stefan_W = 5.67e-8 e_surface = 0.97 # Locally calibrated Sellers' parameters a1 = 0.575 a2 = 0.054 alpha = 1.26 def avg_arrays(arrays): """ Take the average of multiple arrays. arrays : list of nump...
28.611006
113
0.622297
2e8b9545df53d9ac531cd05bcffab332f5e86577
6,317
py
Python
inquirer2/prompts/expand.py
allemand-instable/PyInquirer2
6a2d00120a5a4c798cd373127175904778ac5b97
[ "MIT" ]
null
null
null
inquirer2/prompts/expand.py
allemand-instable/PyInquirer2
6a2d00120a5a4c798cd373127175904778ac5b97
[ "MIT" ]
null
null
null
inquirer2/prompts/expand.py
allemand-instable/PyInquirer2
6a2d00120a5a4c798cd373127175904778ac5b97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ `expand` type question """ from prompt_toolkit.application import Application from prompt_toolkit.key_binding import KeyBindings from prompt_toolkit.layout.containers import Window from prompt_toolkit.filters import IsDone from prompt_toolkit.layout import Layout from prompt_toolkit.layout.c...
33.42328
89
0.568308
bb7d2bc2951a0bb8139cccbcea254ad4f1bed70a
130
py
Python
pyforfluids/models/__init__.py
fedebenelli/gerg2008
72027143bec4e3af28b5ef0edf92d9d9b2c2c398
[ "MIT" ]
9
2021-09-06T23:23:48.000Z
2022-03-08T20:51:27.000Z
pyforfluids/models/__init__.py
fedebenelli/PyForFluids
72027143bec4e3af28b5ef0edf92d9d9b2c2c398
[ "MIT" ]
4
2021-09-08T15:06:49.000Z
2021-11-10T13:02:05.000Z
pyforfluids/models/__init__.py
fedebenelli/gerg2008
72027143bec4e3af28b5ef0edf92d9d9b2c2c398
[ "MIT" ]
null
null
null
"""Models. Modules that contains the multiple models to estimate fluid's properties. """ from .gerg2008 import GERG2008 # noqa
18.571429
73
0.753846
0a14f2a20432e21e4bbd1a9ff157e500b389e4e1
1,043
py
Python
codes/session_8/libEg2.py
Code-by-practice/python-syntax-reference
63aaab597d8186c2a25b557a6a6504fe9e3e2311
[ "MIT" ]
1
2018-07-29T06:39:32.000Z
2018-07-29T06:39:32.000Z
codes/session_8/libEg2.py
Code-by-practice/python-syntax-reference
63aaab597d8186c2a25b557a6a6504fe9e3e2311
[ "MIT" ]
null
null
null
codes/session_8/libEg2.py
Code-by-practice/python-syntax-reference
63aaab597d8186c2a25b557a6a6504fe9e3e2311
[ "MIT" ]
null
null
null
# How to Run? Open Terminal> python3 libEg2.py # Read the code comments and output on the terminal # Objective: Know about standard built-in library # Dates and Times from datetime import date # Get today's date now = date.today() print("Today's date: ", now) # Set date customDate = date(2000, 12, 2) print("Custom ...
22.673913
81
0.724832
8eca0bb2afba74c012bc075be1a583f55932d83c
1,446
py
Python
cryomem/cmtools/lib/plot_svjj.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
1
2018-09-16T12:29:04.000Z
2018-09-16T12:29:04.000Z
cryomem/cmtools/lib/plot_svjj.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
null
null
null
cryomem/cmtools/lib/plot_svjj.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
null
null
null
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 """ Run analyze_data.py BB, 2014 """ #import analyze_jjivarray as an #from IPython.lib import deepreload; deepreload.reload(an) #from imp import reload; reload(an) import numpy as np import matplotlib.pyplot as plt from plothyst import plothyst # display units un...
24.508475
73
0.621024
52da9dec68493e8484b9e06c806befc3e73ed1b2
2,629
py
Python
penv/tune.py
lucifer2288/penv
e9745e5ca7025ee575fe30da6a849b17c14dee9a
[ "MIT" ]
20
2021-04-13T01:57:39.000Z
2022-02-10T10:27:05.000Z
penv/tune.py
lucifer2288/penv
e9745e5ca7025ee575fe30da6a849b17c14dee9a
[ "MIT" ]
1
2021-06-04T04:51:57.000Z
2021-06-04T04:52:20.000Z
penv/tune.py
lucifer2288/penv
e9745e5ca7025ee575fe30da6a849b17c14dee9a
[ "MIT" ]
9
2021-04-12T21:34:48.000Z
2022-03-18T18:37:05.000Z
import json import os import click import ray from ray import tune from ray.tune.schedulers import PopulationBasedTraining @click.command() @click.option("--num-samples", default=4, type=int) @click.option("--num-workers", default=8, type=int) def main(num_samples: int, num_workers: int): pbt = PopulationBasedT...
28.576087
79
0.536706
b482e4392c3f0cf93e6ae943d0f4b9da8f9c7c80
3,573
py
Python
DiffNet/networks/wgan_multi_output.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
1
2021-12-02T06:42:38.000Z
2021-12-02T06:42:38.000Z
DiffNet/networks/wgan_multi_output.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
null
null
null
DiffNet/networks/wgan_multi_output.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
2
2021-12-01T20:53:24.000Z
2021-12-02T06:42:39.000Z
from torch import nn from torch.autograd import grad import torch import numpy as np from torch.nn.modules.utils import _pair def weights_init_normal(m): classname = m.__class__.__name__ if classname.find("Conv") != -1: torch.nn.init.normal_(m.weight.data, 0.0, 0.02) elif classname.find("BatchNo...
31.619469
71
0.550238
46adaf3870b79c7e1238174442d600db0bcd8547
18,274
py
Python
Python-3.5.5/build/lib.linux-x86_64-3.5/_sysconfigdata.py
it315/PSPNet-Keras-tensorflow
876448d9c44a8ca475cf0f60f69eb3c72651be87
[ "MIT" ]
null
null
null
Python-3.5.5/build/lib.linux-x86_64-3.5/_sysconfigdata.py
it315/PSPNet-Keras-tensorflow
876448d9c44a8ca475cf0f60f69eb3c72651be87
[ "MIT" ]
null
null
null
Python-3.5.5/build/lib.linux-x86_64-3.5/_sysconfigdata.py
it315/PSPNet-Keras-tensorflow
876448d9c44a8ca475cf0f60f69eb3c72651be87
[ "MIT" ]
null
null
null
# system configuration generated and used by the sysconfig module build_time_vars = {'ABIFLAGS': 'm', 'AC_APPLE_UNIVERSAL_BUILD': 0, 'AIX_GENUINE_CPLUSPLUS': 0, 'AR': 'ar', 'ARFLAGS': 'rc', 'BASECFLAGS': '-Wno-unused-result -Wsign-compare', 'BASECPPFLAGS': '', 'BASEMODLIBS': '', 'BINDIR': '/usr/local/bin', 'BI...
27.729894
87
0.671282
3afb968e532749cf03c88b5ad4aed440ae256ad4
21,123
py
Python
pyredner/load_mitsuba.py
swordigo1995/redner
195696deb4269447b7e4648d6285ab34da2ed24f
[ "MIT" ]
null
null
null
pyredner/load_mitsuba.py
swordigo1995/redner
195696deb4269447b7e4648d6285ab34da2ed24f
[ "MIT" ]
null
null
null
pyredner/load_mitsuba.py
swordigo1995/redner
195696deb4269447b7e4648d6285ab34da2ed24f
[ "MIT" ]
null
null
null
import torch import xml.etree.ElementTree as etree import numpy as np import redner import os import pyredner import pyredner.transform as transform # from .load_obj import load_obj, load_obj_fast def parse_transform(node): ret = torch.eye(4) for child in node: if child.tag == 'matrix': val...
45.62203
139
0.533163
364d4d916fff7f5905dc6d35d7fe4f3b14fac491
3,315
py
Python
main/models/VAEh4.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
main/models/VAEh4.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
main/models/VAEh4.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
import torch class model(torch.nn.Module): def __init__(self, **kwargs): """ emdim : int Embedding matrix = "10^6" x emdim (en realitat els 10^6 són 181497) Scheme ------ ENCODER Linear |-------> mu (dim[2]) INP Embed+ReLU H1 Linear+ReLU H2 | "10^6" ...
30.412844
108
0.611161
8a6f774a359c699a851fe529263ed9a310e68545
13
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Bessel Functions/Faster versions of common Bessel Functions/y1 Bessel function of the second kind of order 1, $Y_1(x)$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Bessel Functions/Faster versions of common Bessel Functions/y1 Bessel function of the second kind of order 1, $Y_1(x)$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Bessel Functions/Faster versions of common Bessel Functions/y1 Bessel function of the second kind of order 1, $Y_1(x)$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
special.y1(x)
13
13
0.769231
6d5302b5f0af2419ea256075cb56208953588cd1
417
py
Python
workshops/templatetags/state.py
tracykteal/amy
cb19e318d36b880b1c3be2104efff42ef776118a
[ "MIT" ]
null
null
null
workshops/templatetags/state.py
tracykteal/amy
cb19e318d36b880b1c3be2104efff42ef776118a
[ "MIT" ]
1
2019-12-13T11:22:47.000Z
2019-12-13T11:22:47.000Z
workshops/templatetags/state.py
tracykteal/amy
cb19e318d36b880b1c3be2104efff42ef776118a
[ "MIT" ]
null
null
null
from django import template from django.utils.safestring import mark_safe from workshops.models import TrainingRequest register = template.Library() @register.simple_tag def state_label(req): assert hasattr(req, 'state') switch = { 'p': 'badge badge-warning', 'a': 'badge badge-success', ...
21.947368
45
0.678657
5cb1b7c3dc3957f18fd66840a1355e0e26f9fbe2
111,696
py
Python
tests/unit/common/db/test_migrations.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/common/db/test_migrations.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/common/db/test_migrations.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Mirantis 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 require...
42.910488
79
0.470384
3134191fe5c1d8b09a4568170249ec1adfdbacc4
393
py
Python
usertracker/migrations/0003_monitor_activated.py
nathanielCherian/django-usertracker
399e70dee9c6b56fe241b92ac5affe644989c756
[ "MIT" ]
null
null
null
usertracker/migrations/0003_monitor_activated.py
nathanielCherian/django-usertracker
399e70dee9c6b56fe241b92ac5affe644989c756
[ "MIT" ]
null
null
null
usertracker/migrations/0003_monitor_activated.py
nathanielCherian/django-usertracker
399e70dee9c6b56fe241b92ac5affe644989c756
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-24 19:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('usertracker', '0002_monitor_redirect'), ] operations = [ migrations.AddField( model_name='monitor', name='activated'...
20.684211
53
0.605598
a30c9cd0bae160aa5824a173b30fef01a21b47a6
1,544
py
Python
1_Practice_Python/DB_Handler.py
CyberThulhu22/Python-Projects
448f7b934e0a316cf87be36c7b294f81b039a008
[ "MIT" ]
null
null
null
1_Practice_Python/DB_Handler.py
CyberThulhu22/Python-Projects
448f7b934e0a316cf87be36c7b294f81b039a008
[ "MIT" ]
null
null
null
1_Practice_Python/DB_Handler.py
CyberThulhu22/Python-Projects
448f7b934e0a316cf87be36c7b294f81b039a008
[ "MIT" ]
1
2022-01-05T04:19:44.000Z
2022-01-05T04:19:44.000Z
#!/usr/bin/env python3 #-*- Coding: utf-8 -*- """ NAME: VERSION: 1.0 AUTHOR: Jesse Leverett (CyberThulhu) STATUS: Building Initial code framework DESCRIPTION: TO-DO: COPYRIGHT © 2021 Jesse Leverett """ import sqlite3 from sqlite3 import Error def sql_connection(db_file): try: conn = sqlite3.connect(db_...
21.150685
80
0.601684
513c169e5879653af161b4170baf2e97965f2167
344
py
Python
colossalai/nn/optimizer/utils.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
1,630
2021-10-30T01:00:27.000Z
2022-03-31T23:02:41.000Z
colossalai/nn/optimizer/utils.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
166
2021-10-30T01:03:01.000Z
2022-03-31T14:19:07.000Z
colossalai/nn/optimizer/utils.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
253
2021-10-30T06:10:29.000Z
2022-03-31T13:30:06.000Z
class CpuAdamCounter(object): """Used to record the total number of CPU Adam. We must use it to avoid hybrid cpu adam and cpu adam using the same id. """ def __init__(self): self.number = 0 def __call__(self): self.number += 1 return self.number - 1 CPU_ADAM_...
22.933333
76
0.610465
d0097454edddc5266bd21d2d1cbf601fefe8614e
19,980
py
Python
topoflow/gui_old/ZZ_Old_Stuff/Input_Dialog_LAST.py
mintproject/topoflow36
1dd25ce1b37cef129c8ee74b30af851658a7a8d9
[ "MIT" ]
null
null
null
topoflow/gui_old/ZZ_Old_Stuff/Input_Dialog_LAST.py
mintproject/topoflow36
1dd25ce1b37cef129c8ee74b30af851658a7a8d9
[ "MIT" ]
null
null
null
topoflow/gui_old/ZZ_Old_Stuff/Input_Dialog_LAST.py
mintproject/topoflow36
1dd25ce1b37cef129c8ee74b30af851658a7a8d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # August 8 & 11, 2008 # February 10, 2009 # April 21, 2009 # S.D. Peckham ## This needs to set TF home directory, etc. ################# import wx import wx.html import xml.dom.minidom import time import webbrowser ## standard Python module # Check these out later. # import urllib # ...
40.04008
93
0.405055
44cce5b9c6abdc67e1c0179a8f6653139047bdb2
2,055
py
Python
submissions/day12.py
ShreyGupta19/advent-of-code
ba994238ec97d067e4c2d2e60ca10586affbc1cf
[ "MIT" ]
null
null
null
submissions/day12.py
ShreyGupta19/advent-of-code
ba994238ec97d067e4c2d2e60ca10586affbc1cf
[ "MIT" ]
null
null
null
submissions/day12.py
ShreyGupta19/advent-of-code
ba994238ec97d067e4c2d2e60ca10586affbc1cf
[ "MIT" ]
null
null
null
from advent import AdventProblem def preprocess(line): return line[0], int(line[1:]) def step_in_dir(pos, dir, steps): new_pos = list(pos) if dir == 'N': new_pos[1] += steps if dir == 'S': new_pos[1] -= steps if dir == 'E': new_pos[0] += steps if dir == 'W': n...
28.541667
104
0.56691
bfa72ef5f070b7ac4c86b59ee8af991c8c82e879
26,270
py
Python
vendor/chromium/mojo/public/tools/bindings/pylib/mojom/generate/translate.py
mkljczk/fivem
187b2e5f922297bcbde5cfb1db70815223c53680
[ "MIT" ]
6
2021-03-29T05:26:18.000Z
2021-07-13T12:53:03.000Z
vendor/chromium/mojo/public/tools/bindings/pylib/mojom/generate/translate.py
big-rip/fivem-1
c08af22110802e77816dfdde29df1662f8dea563
[ "MIT" ]
7
2021-08-31T22:30:30.000Z
2022-03-24T06:50:38.000Z
vendor/chromium/mojo/public/tools/bindings/pylib/mojom/generate/translate.py
big-rip/fivem-1
c08af22110802e77816dfdde29df1662f8dea563
[ "MIT" ]
3
2021-02-15T16:38:50.000Z
2021-12-09T08:54:34.000Z
# Copyright 2013 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. """Convert parse tree to AST. This module converts the parse tree to the AST we use for code generation. The main entry point is OrderedModule, which gets p...
36.435506
80
0.689075
f83109ab8688ead969bc0aafc56c294f62fd5f15
180
py
Python
users/models.py
Don-Joel/MyDash
8c556c451752c860426a061c230f524e77afcb6f
[ "MIT" ]
null
null
null
users/models.py
Don-Joel/MyDash
8c556c451752c860426a061c230f524e77afcb6f
[ "MIT" ]
null
null
null
users/models.py
Don-Joel/MyDash
8c556c451752c860426a061c230f524e77afcb6f
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.contrib.auth.models import AbstractUser from django.db import models class CustomUser(AbstractUser): pass
20
51
0.8
c44e6fc699a1b80a2ebe73b976e1a7a390406e99
1,714
py
Python
tests/test_binding.py
massongit/natto-py
de8023abb99133e11ddd889fc915692ff07d4db8
[ "BSD-2-Clause" ]
1
2017-11-26T22:15:42.000Z
2017-11-26T22:15:42.000Z
tests/test_binding.py
massongit/natto-py
de8023abb99133e11ddd889fc915692ff07d4db8
[ "BSD-2-Clause" ]
null
null
null
tests/test_binding.py
massongit/natto-py
de8023abb99133e11ddd889fc915692ff07d4db8
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- '''Test for natto.binding.''' import natto.binding as binding import unittest class TestBinding(unittest.TestCase): '''Tests the functions in the natto.binding module.''' def test_ffi_libmecab(self): '''Test FFI binding to mecab library.''' ffi = binding._ffi_...
41.804878
80
0.753792
a9e5cda03d6b4be39101291bc5a8b126abcf4a39
2,716
py
Python
qa/rpc-tests/test_framework/coverage.py
mirzaei-ce/core-iranbit
7b1c880dc0eeb84408a84a356c2b731c5b5a0b8c
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/coverage.py
mirzaei-ce/core-iranbit
7b1c880dc0eeb84408a84a356c2b731c5b5a0b8c
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/coverage.py
mirzaei-ce/core-iranbit
7b1c880dc0eeb84408a84a356c2b731c5b5a0b8c
[ "MIT" ]
null
null
null
""" This module contains utilities for doing coverage analysis on the RPC interface. It provides a way to track which RPC commands are exercised during testing. """ import os REFERENCE_FILENAME = 'rpc_interface.txt' class AuthServiceProxyWrapper(object): """ An object that wraps AuthServiceProxy to record...
26.627451
79
0.650957
287f1b0765bf6b9e43fcf6fd6e3478ceb6556b48
191
py
Python
pi-codes/modules/capture.py
hammer1234567/Build-4-India
1f589f5158165f871b53886831c9f6c9aaa5d112
[ "MIT" ]
null
null
null
pi-codes/modules/capture.py
hammer1234567/Build-4-India
1f589f5158165f871b53886831c9f6c9aaa5d112
[ "MIT" ]
null
null
null
pi-codes/modules/capture.py
hammer1234567/Build-4-India
1f589f5158165f871b53886831c9f6c9aaa5d112
[ "MIT" ]
null
null
null
from picamera import PiCamera from time import sleep def Capture(): camera = PiCamera() camera.start_preview() sleep(2) camera.capture('image.jpg') camera.stop_preview()
19.1
31
0.696335
76aaf91130f45808835037687bc464ca3daff77c
6,925
py
Python
Barbican/Server/barbican-stable-mitaka/barbican/barbican/tests/cmd/test_barbican_manage.py
cloud-security-research/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
36
2017-11-08T23:36:35.000Z
2022-03-20T16:01:55.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/tests/cmd/test_barbican_manage.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
2
2017-11-17T03:19:17.000Z
2018-07-04T03:37:36.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/tests/cmd/test_barbican_manage.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
12
2017-11-13T03:20:40.000Z
2021-07-16T03:26:41.000Z
# Copyright (c) 2015 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
44.10828
79
0.665415
9b0f0ae120622b9414361819d638f88b1479b3ba
499
py
Python
corrector.py
NazcaLines/spelling-corrector
ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b
[ "MIT" ]
null
null
null
corrector.py
NazcaLines/spelling-corrector
ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b
[ "MIT" ]
null
null
null
corrector.py
NazcaLines/spelling-corrector
ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b
[ "MIT" ]
null
null
null
import sys from cliff.app import App from cliff.commandmanager import CommandManager class Corrector(App): def __init__(self): super(Corrector, self).__init__( description='spelling-corrector', version='0.1', command_manager=CommandManager('corrector'), de...
19.96
56
0.639279
090e21fd45e37cecf8e5637bf54f0b7c93517daf
14,640
py
Python
tensorflow_datasets/core/proto/dataset_info_generated_pb2.py
aweers/datasets
a3cc147c7c9bc3497dc82f8b9e3af22d332c921b
[ "Apache-2.0" ]
1
2019-03-02T22:54:29.000Z
2019-03-02T22:54:29.000Z
tensorflow_datasets/core/proto/dataset_info_generated_pb2.py
rsepassi/datasets
299f482da52aebe910e91053dbb06a36355f4cde
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/proto/dataset_info_generated_pb2.py
rsepassi/datasets
299f482da52aebe910e91053dbb06a36355f4cde
[ "Apache-2.0" ]
1
2020-01-01T04:48:04.000Z
2020-01-01T04:48:04.000Z
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
42.682216
1,327
0.7625
1f427f2021afd28ae3bcf08d8afe3aec066191ba
1,898
py
Python
deeplearning1/nbs/test_chapter1.py
manhcuogntin4/Fast-AI-course
0f8acd501f00491c8f99705581f6706e5dcf3e97
[ "Apache-2.0" ]
null
null
null
deeplearning1/nbs/test_chapter1.py
manhcuogntin4/Fast-AI-course
0f8acd501f00491c8f99705581f6706e5dcf3e97
[ "Apache-2.0" ]
null
null
null
deeplearning1/nbs/test_chapter1.py
manhcuogntin4/Fast-AI-course
0f8acd501f00491c8f99705581f6706e5dcf3e97
[ "Apache-2.0" ]
null
null
null
from __future__ import division,print_function import os, json from glob import glob import numpy as np np.set_printoptions(precision=4, linewidth=100) from matplotlib import pyplot as plt from numpy.random import random, permutation from scipy import misc, ndimage from scipy.ndimage.interpolation import zoom imp...
26.361111
95
0.73393
c25008cc2925467f627441bfffbe33879cdb4641
24,310
py
Python
pysnmp/BLUECOAT-SG-PROXY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BLUECOAT-SG-PROXY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BLUECOAT-SG-PROXY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BLUECOAT-SG-PROXY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BLUECOAT-SG-PROXY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:22:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
127.947368
4,884
0.779186
ed7745d2ff777d218802fbba9727aa73bf19a393
7,281
py
Python
test/functional/mining_prioritisetransaction.py
bitcoinNickel/bitcoinnickel
7980682cf13048d0177b370d272717ada4c66910
[ "MIT" ]
1
2022-02-06T18:40:22.000Z
2022-02-06T18:40:22.000Z
test/functional/mining_prioritisetransaction.py
bitcoinNickel/bitcoinnickel
7980682cf13048d0177b370d272717ada4c66910
[ "MIT" ]
null
null
null
test/functional/mining_prioritisetransaction.py
bitcoinNickel/bitcoinnickel
7980682cf13048d0177b370d272717ada4c66910
[ "MIT" ]
1
2022-01-02T16:36:33.000Z
2022-01-02T16:36:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the prioritisetransaction mining RPC.""" import time from test_framework.messages import COIN, M...
47.588235
171
0.678478
fb6fffc3bcda133808c31cbe47332497317bb31d
20,346
py
Python
internals/processes.py
kashish-d/chromium-dashboard
a9960a0de16c169c3c2518d6786510b4dad92e68
[ "Apache-2.0" ]
null
null
null
internals/processes.py
kashish-d/chromium-dashboard
a9960a0de16c169c3c2518d6786510b4dad92e68
[ "Apache-2.0" ]
null
null
null
internals/processes.py
kashish-d/chromium-dashboard
a9960a0de16c169c3c2518d6786510b4dad92e68
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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 or...
32.869144
82
0.690553
794fb7414b331c197d49a8a69b78efe486131ddc
679
py
Python
interpretImage.py
BlanchonMarc/RandomImageGenerator
fd684c8f27d0c7eeec66cd2521d482a8405dd097
[ "MIT" ]
null
null
null
interpretImage.py
BlanchonMarc/RandomImageGenerator
fd684c8f27d0c7eeec66cd2521d482a8405dd097
[ "MIT" ]
null
null
null
interpretImage.py
BlanchonMarc/RandomImageGenerator
fd684c8f27d0c7eeec66cd2521d482a8405dd097
[ "MIT" ]
null
null
null
import numpy as np import glob import matplotlib.image as mpimg import matplotlib.pyplot as plt import matplotlib.colors as color import math def ParamToInten(AoP, DoP, Inten, angle): return ((Inten/2.0) * (1 + DoP*np.cos(math.radians(2*AoP) - 2*math.radians(angle)))) if __name__ == "__main__": imagedir = "...
24.25
88
0.600884
99e4a730889e2ac3b6f61c042d34495f5004f202
13
py
Python
py2app_tests/basic_app_with_encoding/package1/__init__.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
193
2020-01-15T09:34:20.000Z
2022-03-18T19:14:16.000Z
py2app_tests/basic_app_with_encoding/package1/__init__.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
185
2020-01-15T08:38:27.000Z
2022-03-27T17:29:29.000Z
py2app_tests/basic_app_with_encoding/package1/__init__.py
flupke/py2app
8eb6c618f9c63d6ac970fb145a7f7782b71bcb4d
[ "MIT" ]
23
2020-01-24T14:47:18.000Z
2022-02-22T17:19:47.000Z
" package1 "
6.5
12
0.615385
88a8bf1323d63c9c47c78732b69ddb256d14bb3e
309
py
Python
data/multilingual/Cyrl.OSS/Sun-ExtA_8/pdf_to_json_test_Cyrl.OSS_Sun-ExtA_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Cyrl.OSS/Sun-ExtA_8/pdf_to_json_test_Cyrl.OSS_Sun-ExtA_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Cyrl.OSS/Sun-ExtA_8/pdf_to_json_test_Cyrl.OSS_Sun-ExtA_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Cyrl.OSS/Sun-ExtA_8/udhr_Cyrl.OSS_Sun-ExtA_8.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.9
79
0.809061
52252a3abcbf5648a7b6961ea4a32f2ac57132cc
295
py
Python
python-leetcode/20.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
12
2020-01-16T08:55:27.000Z
2021-12-02T14:52:39.000Z
python-leetcode/20.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
null
null
null
python-leetcode/20.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
1
2019-12-11T12:00:38.000Z
2019-12-11T12:00:38.000Z
class Solution: def isValid(self, s: str) -> bool: stack = [] for c in s: if c == '(': stack.append(')') elif c == '[': stack.append(']') elif c == '{': stack.append('}') elif len(stack) == 0 or c != stack.pop(): return False return len(stack) == 0
26.818182
47
0.484746
f24b6848f3d175d16eba412042fe265bf2c613aa
651
py
Python
sync_example.py
tmjvonboss/PasteBunny
96f0be63c2abfc6911e1e5f52a49e9215555b369
[ "MIT" ]
null
null
null
sync_example.py
tmjvonboss/PasteBunny
96f0be63c2abfc6911e1e5f52a49e9215555b369
[ "MIT" ]
1
2018-03-31T13:04:12.000Z
2018-03-31T13:04:12.000Z
sync_example.py
tmjvonboss/PasteBunny
96f0be63c2abfc6911e1e5f52a49e9215555b369
[ "MIT" ]
null
null
null
from PasteBunny.Client import SyncClient from PasteBunny.Models import Paste from PasteBunny.Constants import Privacy, Expiry, Format # Create client, add username and password only to automatically generate a user key c = SyncClient( dev_key="dev_key", username="user", password="pass" ) # Cr...
24.111111
85
0.711214
3ad2d4aed4828fd0fd524bb942e4b412eb0c2277
3,812
py
Python
kubernetes/client/models/v1_event_source.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
1
2018-10-20T19:37:57.000Z
2018-10-20T19:37:57.000Z
kubernetes/client/models/v1_event_source.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_event_source.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
2
2018-07-27T19:39:34.000Z
2020-12-25T02:48:27.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
24.593548
105
0.54276
e1586c36e10149bc0c75d57ec76c946087950c55
181
py
Python
src/me/ch2/bingocard.py
banbiossa/book-rust
209965a90767927bd2d909e4de18fe6f1e6ea729
[ "MIT" ]
null
null
null
src/me/ch2/bingocard.py
banbiossa/book-rust
209965a90767927bd2d909e4de18fe6f1e6ea729
[ "MIT" ]
null
null
null
src/me/ch2/bingocard.py
banbiossa/book-rust
209965a90767927bd2d909e4de18fe6f1e6ea729
[ "MIT" ]
null
null
null
import random nums = list(range(1, 75 + 1)) random.shuffle(nums) nums[12] = " *" for y in range(5): for x in range(5): print(f"{nums[y*5+x]:3}", end="") print("")
18.1
41
0.541436
4ec5558f973e513da895d99fdb4b68cfb21c953c
13,654
py
Python
src/main/python/rlbot/agents/base_agent.py
robbai/RLBot
2cf0abbc028d1be9b2a2d063e2088231074cc881
[ "MIT" ]
1
2020-01-21T15:37:22.000Z
2020-01-21T15:37:22.000Z
BeardBot/venv/Lib/site-packages/rlbot/agents/base_agent.py
Bearedy/BeardBot
cc31ae663bdf9ebf7cc0c41f7d4cff0d33064da0
[ "MIT" ]
null
null
null
BeardBot/venv/Lib/site-packages/rlbot/agents/base_agent.py
Bearedy/BeardBot
cc31ae663bdf9ebf7cc0c41f7d4cff0d33064da0
[ "MIT" ]
null
null
null
from typing import Optional from urllib.parse import ParseResult as URL from rlbot.botmanager.helper_process_request import HelperProcessRequest from rlbot.matchcomms.client import MatchcommsClient from rlbot.messages.flat import MatchSettings from rlbot.parsing.custom_config import ConfigObject from rlbot.utils.game_...
43.072555
122
0.681559
735f29d1b61debb3a35e86c391cfbf660be0a9ac
805
py
Python
test/functional/rpc_uptime.py
synergy-promotions/baddcoin
e536d224874628a44c316d33ac7f2373dd56beaf
[ "MIT" ]
null
null
null
test/functional/rpc_uptime.py
synergy-promotions/baddcoin
e536d224874628a44c316d33ac7f2373dd56beaf
[ "MIT" ]
null
null
null
test/functional/rpc_uptime.py
synergy-promotions/baddcoin
e536d224874628a44c316d33ac7f2373dd56beaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RPC call related to the uptime command. Test corresponds to code in rpc/server.cpp. """ impo...
25.967742
69
0.710559
e3bba53e3b8d1714ef36e75ad03410640d826bad
5,134
py
Python
nova/tests/functional/test_list_servers_ip_filter.py
nfvri/nova
2ce5a440c44eb512f07adacd313304e226bb56a0
[ "Apache-2.0" ]
1
2016-07-18T22:05:01.000Z
2016-07-18T22:05:01.000Z
nova/tests/functional/test_list_servers_ip_filter.py
nfvri/nova
2ce5a440c44eb512f07adacd313304e226bb56a0
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/test_list_servers_ip_filter.py
nfvri/nova
2ce5a440c44eb512f07adacd313304e226bb56a0
[ "Apache-2.0" ]
1
2021-11-12T03:55:41.000Z
2021-11-12T03:55:41.000Z
# Copyright 2017 IBM Corp. # # 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, s...
43.142857
79
0.637904
0ed28d66bfcafd66a845c0421855f9e41af37e32
2,431
py
Python
Day_16/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_16/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_16/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
from functools import reduce from math import prod from AoCUtils import * result = 0 partNumber = "2" writeToLog = False if writeToLog: logFile = open("log" + partNumber + ".txt", "w") else: logFile = "stdout" printLog = printLogFactory(logFile) with open("input.txt", "r") as inputFile: lines = inputFi...
28.267442
77
0.594406
bed53f600f7a705512866205ef76609d39335da9
534
py
Python
orders/tasks.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
4
2021-11-25T15:45:31.000Z
2022-01-11T21:31:56.000Z
orders/tasks.py
KwabenaYeboah/kobbyshop
850a04b24fafa8aa538fdbf039a0e8fafc3ebfc2
[ "MIT" ]
1
2021-12-30T08:18:28.000Z
2021-12-30T08:18:28.000Z
orders/tasks.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
2
2021-12-26T05:11:00.000Z
2021-12-30T08:18:13.000Z
from celery import task from django.core.mail import send_mail from .models import Order @task def created_order(order_id): '''A celery task to notify customers via email after an order is placed ''' order = Order.objects.get(id=order_id) subject = f'Order Number. {order.id}' message = f'Hello {order....
35.6
85
0.698502
9c8939a61321ff1f8b30da4b9ecb57e883fc2f0e
4,051
py
Python
tensorflow/python/autograph/converters/function_scopes_test.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
57
2017-09-03T07:08:31.000Z
2022-02-28T04:33:42.000Z
tensorflow/python/autograph/converters/function_scopes_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
58
2021-11-22T05:41:28.000Z
2022-01-19T01:33:40.000Z
tensorflow/python/autograph/converters/function_scopes_test.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
30.689394
80
0.682301
5b6f733ff7cf1362e24a47b6bdf7af003d27bc79
30,617
py
Python
python/ccxt/latoken.py
pkaske/ccxt
19821cfe0b6899d42b714757137dce9f00c406a0
[ "MIT" ]
null
null
null
python/ccxt/latoken.py
pkaske/ccxt
19821cfe0b6899d42b714757137dce9f00c406a0
[ "MIT" ]
null
null
null
python/ccxt/latoken.py
pkaske/ccxt
19821cfe0b6899d42b714757137dce9f00c406a0
[ "MIT" ]
null
null
null
# -*- 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.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
37.021765
228
0.464252
9ab7ff41e5ed8ee914d697f9cea1e94193125e3e
2,326
py
Python
tests/test_config/test_yaml.py
Dogeek/pyconf
225be858d2259bbf4306f05c620cdfeaa3727cb9
[ "MIT" ]
1
2021-03-28T02:43:03.000Z
2021-03-28T02:43:03.000Z
tests/test_config/test_yaml.py
Dogeek/pyconf
225be858d2259bbf4306f05c620cdfeaa3727cb9
[ "MIT" ]
20
2021-02-06T23:47:18.000Z
2021-03-28T02:41:27.000Z
tests/test_config/test_yaml.py
Dogeek/xdgconfig
225be858d2259bbf4306f05c620cdfeaa3727cb9
[ "MIT" ]
null
null
null
import pathlib from tests.utils import TestCase from tests.mocks import MockedYamlConfig class TestYamlConfig(TestCase): CONFIG_NAME = 'config.yaml' def test_config_saved(self): ''' Tests that the config file is created correctly. ''' config = self.make_config(MockedYamlConfi...
28.365854
77
0.507309
f33cf206323903668c968c9b31e5985bf41b424e
1,439
py
Python
VolumeProfile.py
gregyjames/VolumeProfiles
9f89fb5896146ef78b11129075ed07ba7246e237
[ "MIT" ]
1
2021-05-08T13:45:40.000Z
2021-05-08T13:45:40.000Z
VolumeProfile.py
gregyjames/VolumeProfiles
9f89fb5896146ef78b11129075ed07ba7246e237
[ "MIT" ]
null
null
null
VolumeProfile.py
gregyjames/VolumeProfiles
9f89fb5896146ef78b11129075ed07ba7246e237
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from scipy import stats, signal import plotly.express as px import plotly.graph_objects as go import pandas_datareader as web import datetime #datetime.datetime is a data type within the datetime module start = datetime.datetime(2020, 12, 1) end = datetime.datetime(202...
31.977778
93
0.669215
b70b4e278b60148649d722ec6634ff850f83b0aa
616
py
Python
conditional_generation/data_utils.py
shizhediao/TILGAN
6115cc191a9f3cb39abc466a5da57b7c8cce5202
[ "MIT" ]
11
2021-05-30T01:32:50.000Z
2022-03-24T08:34:27.000Z
conditional_generation/data_utils.py
shizhediao/TILGAN
6115cc191a9f3cb39abc466a5da57b7c8cce5202
[ "MIT" ]
1
2021-08-01T14:19:57.000Z
2021-09-13T15:41:52.000Z
conditional_generation/data_utils.py
shizhediao/TILGAN
6115cc191a9f3cb39abc466a5da57b7c8cce5202
[ "MIT" ]
2
2021-09-17T14:20:12.000Z
2022-01-18T07:53:22.000Z
from tensorflow.python.platform import gfile _PAD = "_PAD" _GO = "_GO" _EOS = "_EOS" _UNK = "_UNK" _START_VOCAB = [_PAD, _GO, _EOS, _UNK] PAD_ID = 0 GO_ID = 1 EOS_ID = 2 UNK_ID = 3 def initialize_vocabulary(vocabulary_path): if gfile.Exists(vocabulary_path): rev_vocab = [] with gfile.GFile(vo...
28
70
0.665584
91312e2b78195be7d9d2a963aa3dc514634e0bfd
4,637
py
Python
p24.py
cemulate/python-challenge
1c3b790d3a32cd51b3bc9ed4d1acc2760405f358
[ "MIT" ]
null
null
null
p24.py
cemulate/python-challenge
1c3b790d3a32cd51b3bc9ed4d1acc2760405f358
[ "MIT" ]
null
null
null
p24.py
cemulate/python-challenge
1c3b790d3a32cd51b3bc9ed4d1acc2760405f358
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw maze = Image.open("maze.png") msolved = maze.copy() mdraw = ImageDraw.Draw(msolved) def enum(**enums): return type('Enum', (), enums) Direction = enum(UP=0, DOWN=1, LEFT=2, RIGHT=3) dirNames = {Direction.UP:"Up", Direction.DOWN:"Down", Direction.RIGHT:"Right", Direction....
26.803468
76
0.660772
96308fc60c947860380cb645cf7b5a73d1f14fd1
10,035
py
Python
modules/afamqp/rabbitmq-c/codegen/amqp_codegen.py
balabit-deps/balabit-os-6-syslog-ng
c8d0fafc8eaca8ed690b2ad17ab1d93820bd07f6
[ "BSD-4-Clause-UC" ]
null
null
null
modules/afamqp/rabbitmq-c/codegen/amqp_codegen.py
balabit-deps/balabit-os-6-syslog-ng
c8d0fafc8eaca8ed690b2ad17ab1d93820bd07f6
[ "BSD-4-Clause-UC" ]
null
null
null
modules/afamqp/rabbitmq-c/codegen/amqp_codegen.py
balabit-deps/balabit-os-6-syslog-ng
c8d0fafc8eaca8ed690b2ad17ab1d93820bd07f6
[ "BSD-4-Clause-UC" ]
null
null
null
## The contents of this file are subject to the Mozilla Public License ## Version 1.1 (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.mozilla.org/MPL/ ## ## Software distributed under the License is distributed on an "AS IS"...
34.965157
113
0.603388
48c76e426cb9b2089cba4aa96c0a2d668521698d
1,396
py
Python
Communicator.py
mkatabi/Checkers-AI
3211b370d018f995af67d63e5e267c441521be2d
[ "MIT" ]
null
null
null
Communicator.py
mkatabi/Checkers-AI
3211b370d018f995af67d63e5e267c441521be2d
[ "MIT" ]
1
2020-04-28T08:35:13.000Z
2020-04-28T16:20:32.000Z
Communicator.py
andrewttsui/Checkers-AI
71f0c5caeda3833acf315fed0a27551866d8bb17
[ "MIT" ]
null
null
null
from subprocess import Popen, PIPE import select import fcntl, os import time class Communicator(object): def __init__(self, command,timeout): self.timeout = timeout self.process = Popen(command, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE) flags = fcntl.fcntl(self.process.stdout, fcnt...
34.9
106
0.579513
0cce7ae67da1e51ab15b950bda7a29ced9357540
887
py
Python
convert.py
aksnzhy/dgl-tool
eab2d8387334e9e1c0b0514bb6f1fe513b0e3dcc
[ "Apache-2.0" ]
1
2019-10-31T06:23:18.000Z
2019-10-31T06:23:18.000Z
convert.py
aksnzhy/dgl-tool
eab2d8387334e9e1c0b0514bb6f1fe513b0e3dcc
[ "Apache-2.0" ]
null
null
null
convert.py
aksnzhy/dgl-tool
eab2d8387334e9e1c0b0514bb6f1fe513b0e3dcc
[ "Apache-2.0" ]
null
null
null
import os entity2id_global = {} with open('entities.dict') as f: for line in f: eid, entity = line.strip().split('\t') entity2id_global[entity] = int(eid) count = 0 entity2id_local = {} local_to_global = [] with open('train.txt') as f: for line in f: h, r, t = line.strip().split('\t'...
25.342857
55
0.59752
60515949445b471e90897a71beeedccfcd387128
1,034
py
Python
views/room_connector_view.py
Andrey-Tkachev/infection
64ccd69f7c714c05c7b7ec8e7cf2ece2b4d6cca6
[ "MIT" ]
1
2017-04-04T09:20:00.000Z
2017-04-04T09:20:00.000Z
views/room_connector_view.py
Andrey-Tkachev/infection
64ccd69f7c714c05c7b7ec8e7cf2ece2b4d6cca6
[ "MIT" ]
null
null
null
views/room_connector_view.py
Andrey-Tkachev/infection
64ccd69f7c714c05c7b7ec8e7cf2ece2b4d6cca6
[ "MIT" ]
null
null
null
from views.base_view import BaseView class RoomConnectorView(BaseView): def get(self, room_id, user_name): user_name = self.get_query_arguments('user_name')[0] room_id = self.get_query_arguments('room_id')[0] if (room_id in self.application.rooms_manager.rooms_dict): room = se...
44.956522
89
0.565764
aec21403855e381afcc69cd877b49bc780d663da
45,761
py
Python
rasa/utils/tensorflow/model_data.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
rasa/utils/tensorflow/model_data.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
93
2020-10-22T10:41:26.000Z
2022-03-01T13:34:43.000Z
rasa/utils/tensorflow/model_data.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
import logging import numpy as np import scipy.sparse import tensorflow as tf from sklearn.model_selection import train_test_split from typing import ( Optional, Dict, Text, List, Tuple, Any, Union, Generator, NamedTuple, ItemsView, ) from collections import defaultdict, Ordere...
35.092791
107
0.576036
ca5b92871762bc110a03d12546e164b085b92130
611
py
Python
tmc_summarizer/helpers.py
dvrpc/tmc-summarizer
aabe9889773b59b5e4de761358b69904569e1c60
[ "MIT" ]
null
null
null
tmc_summarizer/helpers.py
dvrpc/tmc-summarizer
aabe9889773b59b5e4de761358b69904569e1c60
[ "MIT" ]
null
null
null
tmc_summarizer/helpers.py
dvrpc/tmc-summarizer
aabe9889773b59b5e4de761358b69904569e1c60
[ "MIT" ]
null
null
null
import zipfile from pathlib import Path def zip_files(output_filename: Path, list_of_filepaths: list) -> None: """Write a list of files to the provided output_filename :param output_filename: path to the new ZIP file :type output_filename: Path :param list_of_filepaths: list of filepath...
27.772727
72
0.703764
1b9b152ab8ec3d229fc599ec445e4ae5a7f90430
710
py
Python
src/pyramid_oidc/authentication/keycloak.py
ausecocloud/pyramid_oidc
b1e5db9092f066f4a815515c4d7001801303c541
[ "Apache-2.0" ]
1
2019-04-19T19:25:02.000Z
2019-04-19T19:25:02.000Z
src/pyramid_oidc/authentication/keycloak.py
ausecocloud/pyramid_oidc
b1e5db9092f066f4a815515c4d7001801303c541
[ "Apache-2.0" ]
null
null
null
src/pyramid_oidc/authentication/keycloak.py
ausecocloud/pyramid_oidc
b1e5db9092f066f4a815515c4d7001801303c541
[ "Apache-2.0" ]
null
null
null
def keycloak_callback(userid, request): # extract role claims from decoded access_token claims = request.environ.get('oidc.claims', {}) if not claims: # no claims, so not authenticated return None # realm_access ... roles per realm roles = [] roles.extend(claims.get('realm_acce...
37.368421
78
0.639437
b992089cc1c7c036a8a5bc6e9598827df441bf81
6,661
py
Python
letsencrypt/tests/client_test.py
stewnorriss/letsencrypt
4b8651274f83394909af23905abbb715f150b8bf
[ "Apache-2.0" ]
1
2018-08-27T03:17:09.000Z
2018-08-27T03:17:09.000Z
letsencrypt/tests/client_test.py
rsumnerz/certbot
a65f14635257e6ce0e1b9cfca6bf4c801214d14c
[ "Apache-2.0", "MIT" ]
null
null
null
letsencrypt/tests/client_test.py
rsumnerz/certbot
a65f14635257e6ce0e1b9cfca6bf4c801214d14c
[ "Apache-2.0", "MIT" ]
null
null
null
"""Tests for letsencrypt.client.""" import unittest import configobj import OpenSSL import mock from acme import jose from letsencrypt import account from letsencrypt import configuration from letsencrypt import errors from letsencrypt import le_util from letsencrypt.tests import test_util KEY = test_util.load_ve...
38.281609
80
0.680228
55902cf6f084c5ebdc23423ee7db22b8952f87cd
1,813
py
Python
Algorithms_medium/0436. Find Right Interval.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
4
2020-08-11T20:45:15.000Z
2021-03-12T00:33:34.000Z
Algorithms_medium/0436. Find Right Interval.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
Algorithms_medium/0436. Find Right Interval.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
""" 0436. Find Right Interval Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point of the interval i, which can be called that j is on the "right" of i. For any interval i, you need to store the minimum interval j's index, ...
35.54902
313
0.675124
054485791c2dff46abce343eb990b6b2cef9ad18
37,768
py
Python
soco/services.py
relevitt/SoCo
aeffc02d11dbfc60e4589c473a3a528abaceea0a
[ "MIT" ]
null
null
null
soco/services.py
relevitt/SoCo
aeffc02d11dbfc60e4589c473a3a528abaceea0a
[ "MIT" ]
null
null
null
soco/services.py
relevitt/SoCo
aeffc02d11dbfc60e4589c473a3a528abaceea0a
[ "MIT" ]
null
null
null
# pylint: disable=fixme, invalid-name # Disable while we have Python 2.x compatability # pylint: disable=useless-object-inheritance """Classes representing Sonos UPnP services. >>> import soco >>> device = soco.SoCo('192.168.1.102') >>> print(RenderingControl(device).GetMute([('InstanceID', 0), ... ('Channel', '...
40.050901
88
0.591135
472ea213af4bcccba0c7083153004d12f901cd49
4,342
py
Python
src/m9_using_objects.py
AlangarCSSE120/03-AccumulatorsAndFunctionsWithParameters
0d883001a96a2092d5ab7620a1dd33e267312fe4
[ "MIT" ]
null
null
null
src/m9_using_objects.py
AlangarCSSE120/03-AccumulatorsAndFunctionsWithParameters
0d883001a96a2092d5ab7620a1dd33e267312fe4
[ "MIT" ]
null
null
null
src/m9_using_objects.py
AlangarCSSE120/03-AccumulatorsAndFunctionsWithParameters
0d883001a96a2092d5ab7620a1dd33e267312fe4
[ "MIT" ]
null
null
null
""" This module lets you practice ** using objects **, including: -- CONSTRUCTING objects, -- applying METHODS to them, and -- accessing their DATA via INSTANCE VARIABLES Authors: David Mutchler, Dave Fisher, Vibha Alangar, Mark Hays, Amanda Stouder, their colleagues and PUT_YOUR_NAME_HERE. """ # DONE...
35.590164
79
0.560111
890b4bbd61cae5a0d87ed45e0c4c8e30a36d8d0f
1,251
py
Python
alipay/aop/api/domain/BaseWebResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/BaseWebResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/BaseWebResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class BaseWebResponse(object): def __init__(self): self._code = None self._message = None @property def code(self): return self._code @code.setter def code(sel...
22.339286
65
0.544365
9faa2421da7ccb837b2e0b21d8f54fbad9ced789
1,790
py
Python
quickstart.py
mehdi-S/InstaPy
df40de6e709dfaf4562edc61348aa6b0229dca8e
[ "MIT" ]
null
null
null
quickstart.py
mehdi-S/InstaPy
df40de6e709dfaf4562edc61348aa6b0229dca8e
[ "MIT" ]
null
null
null
quickstart.py
mehdi-S/InstaPy
df40de6e709dfaf4562edc61348aa6b0229dca8e
[ "MIT" ]
null
null
null
import os import time from tempfile import gettempdir from selenium.common.exceptions import NoSuchElementException from instapy import InstaPy insta_username = 'moi' insta_password = '' # set headless_browser=True if you want to run InstaPy on a server # set these in instapy/settings.py if you're locating the # l...
31.403509
99
0.675978
bdd9dd11ae243787b08477041ae377ee8ea556c5
651
py
Python
molecule/default/tests/test_default.py
kotofeych/ansible-docker
fd86d038c3d8e2daae0ab4b97062bce5384001b1
[ "BSD-3-Clause" ]
null
null
null
molecule/default/tests/test_default.py
kotofeych/ansible-docker
fd86d038c3d8e2daae0ab4b97062bce5384001b1
[ "BSD-3-Clause" ]
null
null
null
molecule/default/tests/test_default.py
kotofeych/ansible-docker
fd86d038c3d8e2daae0ab4b97062bce5384001b1
[ "BSD-3-Clause" ]
null
null
null
import testinfra host = testinfra.get_hosts('all') # Check distribution def test_distribution(host): assert host.system_info.distribution.lower() in [ 'ubuntu', 'centos' ] # Check exists dockerd file def test_availability_of_important_files(host): important_files = [ "/usr/bin/d...
22.448276
53
0.688172
3c9c9537cf1a99eff01c66280f820dc248b4d40a
2,942
py
Python
bin/cut-video.py
cpausmit/Config
d63bc72091c21f45ac83fafa970ded8d9234c409
[ "MIT" ]
null
null
null
bin/cut-video.py
cpausmit/Config
d63bc72091c21f45ac83fafa970ded8d9234c409
[ "MIT" ]
null
null
null
bin/cut-video.py
cpausmit/Config
d63bc72091c21f45ac83fafa970ded8d9234c409
[ "MIT" ]
null
null
null
#!/usr/bin/python #==================================================================================================== # # Make defined snippets of a given video input file (mp4 format). # # Requirements: # - install ffmpeg # # Video session 1: # ## Fisher: # cut-video.py --input 3184_Year_of_the_Quark_01.mp4 --outp...
35.445783
101
0.457172
ebdf3d5c132c4826c720a0eb350eb2090391c875
76,641
py
Python
gdal/swig/python/samples/validate_gpkg.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
9
2019-05-30T17:01:56.000Z
2021-01-30T01:06:41.000Z
gdal/swig/python/samples/validate_gpkg.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
4
2018-10-23T18:43:35.000Z
2019-07-01T19:29:49.000Z
gdal/swig/python/samples/validate_gpkg.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
6
2019-02-03T14:19:32.000Z
2021-12-19T06:36:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR # Purpose: Test compliance of GeoPackage database w.r.t GeoPackage spec # Author: Even Rouault <even.rouault at spatialys.com> # ################################...
47.250925
114
0.499928
4519fb630c2a49c0114b4eb0b72bcc7b72b3d210
12,405
py
Python
python/tvm/ir/transform.py
jheo4/incubator-tvm
c4c61cb766608fb2f0fd8c9facc480a43afed3f5
[ "Apache-2.0" ]
3
2020-03-12T10:25:51.000Z
2020-08-05T05:36:23.000Z
python/tvm/ir/transform.py
jheo4/incubator-tvm
c4c61cb766608fb2f0fd8c9facc480a43afed3f5
[ "Apache-2.0" ]
null
null
null
python/tvm/ir/transform.py
jheo4/incubator-tvm
c4c61cb766608fb2f0fd8c9facc480a43afed3f5
[ "Apache-2.0" ]
1
2018-10-19T18:11:41.000Z
2018-10-19T18:11:41.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.590909
86
0.661669
03a2bbf9b36c41e75038882383043e85111739dc
15
py
Python
app/version.py
bitspradp/canary_sb
6c70f9ff6db1452545c57e9dd89bc0b1dfa1efba
[ "Apache-2.0" ]
null
null
null
app/version.py
bitspradp/canary_sb
6c70f9ff6db1452545c57e9dd89bc0b1dfa1efba
[ "Apache-2.0" ]
null
null
null
app/version.py
bitspradp/canary_sb
6c70f9ff6db1452545c57e9dd89bc0b1dfa1efba
[ "Apache-2.0" ]
null
null
null
version="1.01"
7.5
14
0.666667