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
91194441358a27c33e53ee2da572dc209f82f5aa
7,173
py
Python
venv/Lib/site-packages/Token/generated/provider/configuration.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
null
null
null
venv/Lib/site-packages/Token/generated/provider/configuration.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
5
2020-06-06T00:40:42.000Z
2021-06-10T22:36:12.000Z
venv/Lib/site-packages/Token/generated/provider/configuration.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
30.918103
97
0.612714
3a9ac568ca69dd1c348fa856f7f190f5456a7c88
4,658
py
Python
examples/box_pivoting/analysis/box_pivoting_bundle.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
6
2021-11-20T19:05:06.000Z
2022-01-31T00:10:41.000Z
examples/box_pivoting/analysis/box_pivoting_bundle.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
10
2021-07-24T19:50:36.000Z
2021-11-20T19:06:40.000Z
examples/box_pivoting/analysis/box_pivoting_bundle.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
1
2021-12-15T22:09:31.000Z
2021-12-15T22:09:31.000Z
import time import matplotlib.pyplot as plt import numpy as np from tqdm import tqdm from pydrake.all import PiecewisePolynomial from quasistatic_simulator.core.quasistatic_simulator import ( QuasistaticSimulator, QuasistaticSimParameters) from quasistatic_simulator.core.quasistatic_system import ( cpp_params...
28.931677
74
0.70717
4f15b4954713b96ef16eb592aabe4b803f77bd5f
1,806
py
Python
rdkit/Chem/ChemUtils/UnitTestAlignDepict.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/Chem/ChemUtils/UnitTestAlignDepict.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/Chem/ChemUtils/UnitTestAlignDepict.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
from contextlib import contextmanager import sys import unittest from rdkit import Chem from rdkit.Chem.ChemUtils.AlignDepict import initParser, processArgs, AlignDepict from io import StringIO class TestCase(unittest.TestCase): def test1(self): parser = initParser() with outputRedirect() as (ou...
30.610169
81
0.652824
37d31090a5f741c30ec7a0f4e780f1675faabeaf
619
py
Python
accounts/api/urls.py
CodeMonk263/Live-Mart-Backend
39f6e6b9dcb686a8b02313b289456f30e4b99f1c
[ "MIT" ]
null
null
null
accounts/api/urls.py
CodeMonk263/Live-Mart-Backend
39f6e6b9dcb686a8b02313b289456f30e4b99f1c
[ "MIT" ]
null
null
null
accounts/api/urls.py
CodeMonk263/Live-Mart-Backend
39f6e6b9dcb686a8b02313b289456f30e4b99f1c
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token from .views import * from rest_framework import routers router = routers.DefaultRouter() router.register('users', UserView) urlpatterns = [ url(r'^login/$', Authenti...
32.578947
78
0.738288
a8f598a7c8b82a14750f533c4f22b5fa316c1cf4
1,023
py
Python
Practica7/restaurantes/models.py
adrianmorente/PracticasDAI
0f0a032a9cade87298c2b7bcbad4ca4d6b867b1d
[ "MIT" ]
null
null
null
Practica7/restaurantes/models.py
adrianmorente/PracticasDAI
0f0a032a9cade87298c2b7bcbad4ca4d6b867b1d
[ "MIT" ]
null
null
null
Practica7/restaurantes/models.py
adrianmorente/PracticasDAI
0f0a032a9cade87298c2b7bcbad4ca4d6b867b1d
[ "MIT" ]
null
null
null
# restaurantes/models.py from pymongo import MongoClient client = MongoClient() db = client.test restaurantes = db.restaurants # EJEMPLO DE RESTAURANTE ALMACENADO EN LA BBDD # # { # "_id" : ObjectId("5a355b461fc7d55cf59f9722"), # "address" : { # "building" : "1007", # "coord" : [ # -73.856077, # 40.84844...
18.944444
48
0.505376
4333c24399528d8331694740c253f5b2b4a9c3ba
7,122
py
Python
fastai/callback/fp16.py
mone27/fastai
af8dfc07ca3f333f8c1bdbea1803af669a53738f
[ "Apache-2.0" ]
5
2020-08-27T00:52:27.000Z
2022-03-31T02:46:05.000Z
fastai/callback/fp16.py
mone27/fastai
af8dfc07ca3f333f8c1bdbea1803af669a53738f
[ "Apache-2.0" ]
22
2021-01-07T23:35:00.000Z
2022-03-20T00:16:40.000Z
fastai/callback/fp16.py
mone27/fastai
af8dfc07ca3f333f8c1bdbea1803af669a53738f
[ "Apache-2.0" ]
2
2021-04-17T03:33:21.000Z
2022-02-25T19:32:34.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/18_callback.fp16.ipynb (unless otherwise specified). __all__ = ['get_master', 'to_master_grads', 'to_model_params', 'test_overflow', 'grad_overflow', 'copy_clone', 'ModelToHalf', 'MixedPrecision', 'NativeMixedPrecision'] # Cell from ..basics import * from .pr...
39.566667
136
0.694047
b06249073f960b8870c8f80745361cd58a9dcd0d
2,719
py
Python
tools/dataset_utils.py
jbutle55/yolov3-tf2
f7f60c63fb4cb04b91ecd0ae02a16b10ff74f8b0
[ "MIT" ]
null
null
null
tools/dataset_utils.py
jbutle55/yolov3-tf2
f7f60c63fb4cb04b91ecd0ae02a16b10ff74f8b0
[ "MIT" ]
null
null
null
tools/dataset_utils.py
jbutle55/yolov3-tf2
f7f60c63fb4cb04b91ecd0ae02a16b10ff74f8b0
[ "MIT" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.759036
80
0.719382
4045c7fb8d04e831984e9b5915bd1ac8642105d5
1,919
py
Python
tests/tools/stub.py
Navan0/pepy
0cb739912000f7940f11406353a9487600997893
[ "MIT" ]
522
2018-05-27T20:31:32.000Z
2022-03-31T04:39:52.000Z
tests/tools/stub.py
Spratiher9/pepy
a94aa60f505291dcbd33be094e13870101eabff0
[ "MIT" ]
174
2018-06-05T12:58:54.000Z
2022-03-22T07:39:33.000Z
tests/tools/stub.py
Spratiher9/pepy
a94aa60f505291dcbd33be094e13870101eabff0
[ "MIT" ]
37
2018-06-13T18:17:38.000Z
2022-03-21T07:28:36.000Z
import random from datetime import date, datetime, timedelta from typing import List from pepy.domain.model import ProjectName, Downloads, Project, ProjectDownloads class ProjectNameStub: @staticmethod def create() -> ProjectName: project_names = ["climoji", "pepy", "commandbus", "flask", "behave"] ...
39.979167
119
0.706618
d7f1f4e5911cd579acedc77767458e9dcd4c7dff
1,591
py
Python
CGAL-5.0.3/surface_reconstruction/src/main.py
pranjal-s/cpp17
04b5278ff4d754d6e62f955d49bddf6509f86e73
[ "MIT" ]
null
null
null
CGAL-5.0.3/surface_reconstruction/src/main.py
pranjal-s/cpp17
04b5278ff4d754d6e62f955d49bddf6509f86e73
[ "MIT" ]
null
null
null
CGAL-5.0.3/surface_reconstruction/src/main.py
pranjal-s/cpp17
04b5278ff4d754d6e62f955d49bddf6509f86e73
[ "MIT" ]
null
null
null
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # CGAL-5.0.3 Tutorial # A simple program to read, visualize and write geometry files with Open3D # for analysis with CGAL in C++ # Author: Pranjal Singh, pranjal.officemail@gmail.com, Aug 202...
33.851064
103
0.711502
f3e567068debce547b32063b4a0d1286387949a8
4,953
py
Python
sdk/python/pulumi_azure_native/sql/v20201101preview/get_database_vulnerability_assessment_rule_baseline.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20201101preview/get_database_vulnerability_assessment_rule_baseline.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20201101preview/get_database_vulnerability_assessment_rule_baseline.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# 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 fro...
41.974576
204
0.662831
791e5172a41d68c5773fec88f1479377e313896a
6,017
py
Python
evennia/server/portal/tests.py
zeitkunst/evennia
1f254b2542fbefe400c114b3d7029522cdcb37b7
[ "BSD-3-Clause" ]
3
2019-08-08T16:58:25.000Z
2019-10-12T07:31:36.000Z
evennia/server/portal/tests.py
zeitkunst/evennia
1f254b2542fbefe400c114b3d7029522cdcb37b7
[ "BSD-3-Clause" ]
9
2019-09-06T18:21:59.000Z
2022-01-13T03:04:11.000Z
evennia/server/portal/tests.py
zeitkunst/evennia
1f254b2542fbefe400c114b3d7029522cdcb37b7
[ "BSD-3-Clause" ]
2
2019-09-02T08:39:24.000Z
2019-09-02T18:39:32.000Z
try: from django.utils.unittest import TestCase except ImportError: from django.test import TestCase try: from django.utils import unittest except ImportError: import unittest from mock import Mock import string from evennia.server.portal import irc from twisted.conch.telnet import IAC, WILL, DONT, S...
39.585526
97
0.590327
8df727b59eca1c965693c4ab0ad5e3add777025d
1,370
py
Python
pin.py
realjohnward/rgbeads
9faecc6440bc63582d85d49f733ba076c250abf0
[ "MIT" ]
null
null
null
pin.py
realjohnward/rgbeads
9faecc6440bc63582d85d49f733ba076c250abf0
[ "MIT" ]
null
null
null
pin.py
realjohnward/rgbeads
9faecc6440bc63582d85d49f733ba076c250abf0
[ "MIT" ]
null
null
null
import subprocess import json import os from dotenv import load_dotenv load_dotenv() NODE_PATH = os.getenv('NODE_PATH') NUM_BEADS = int(os.getenv('NUM_BEADS')) def pin(read_path="./beads", save_path="./data"): def pin_img_to_pinata(img_path): ipfs_hash = subprocess.check_output([NODE_PATH,'./_pinImgToPin...
38.055556
121
0.661314
45d676499a26cbdc79675e3ac33e7e87628c218f
1,049
py
Python
test/clients/IDummyClient.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
test/clients/IDummyClient.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
test/clients/IDummyClient.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pip_services_runtime.clients.IDummyClient ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Interface for dummy client implementations :copyright: Digital Living Software Corp. 2015-2016, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ fr...
36.172414
86
0.698761
8046b58c3d0645928af9978505e51e9e8f5dc1e5
3,766
py
Python
util/update_copyright/__init__.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
765
2015-01-14T16:17:04.000Z
2022-03-28T07:46:28.000Z
util/update_copyright/__init__.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
148
2018-07-20T00:58:36.000Z
2021-11-16T01:52:33.000Z
util/update_copyright/__init__.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
807
2015-01-06T09:55:38.000Z
2022-03-30T10:23:36.000Z
# Copyright (c) 2020 ARM Limited # All rights reserved # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality o...
42.795455
72
0.733139
adb63ab69af372168609b01e25eb3fc050bf7925
482
py
Python
activities/models/rnotes.py
aiomi/REQAP
ba9ee8c7be544082c54455a8990782e1affe0e0d
[ "MIT" ]
1
2021-07-08T06:16:33.000Z
2021-07-08T06:16:33.000Z
activities/models/rnotes.py
adole99/REQAP
6d95040fa2e5b7de23d4ba230877721f3f17f633
[ "MIT" ]
5
2020-05-01T19:37:52.000Z
2021-09-22T18:44:51.000Z
activities/models/rnotes.py
adole99/REQAP
6d95040fa2e5b7de23d4ba230877721f3f17f633
[ "MIT" ]
1
2020-03-13T10:15:07.000Z
2020-03-13T10:15:07.000Z
from django.db import models from . import Transcript from users.models import Staff class TranscriptNote(models.Model): transcript = models.ForeignKey(Transcript, on_delete=models.CASCADE) action = models.CharField(max_length=10) reason = models.CharField(max_length=160, blank=True, null=True) staff_...
37.076923
75
0.755187
5f6d2182cfe7f60acc99bb6e1ccc4376ac19ea66
22,232
py
Python
src/tensorflow-examples/tensorflow_examples/converted_notebooks/19_training_and_deploying_at_scale.py
wilsonify/tensorflow-examples
2271c666b33c7a74047c7196783ab04e9aee8362
[ "MIT" ]
2
2019-11-21T02:43:24.000Z
2020-08-12T04:48:39.000Z
src/tensorflow-examples/tensorflow_examples/converted_notebooks/19_training_and_deploying_at_scale.py
wilsonify/tensorflow-examples
2271c666b33c7a74047c7196783ab04e9aee8362
[ "MIT" ]
null
null
null
src/tensorflow-examples/tensorflow_examples/converted_notebooks/19_training_and_deploying_at_scale.py
wilsonify/tensorflow-examples
2271c666b33c7a74047c7196783ab04e9aee8362
[ "MIT" ]
1
2021-02-06T12:36:58.000Z
2021-02-06T12:36:58.000Z
#!/usr/bin/env python # coding: utf-8 # **Chapter 19 – Training and Deploying TensorFlow Models at Scale** # _This notebook contains all the sample code in chapter 19._ # <table align="left"> # <td> # <a target="_blank" href="https://colab.research.google.com/github/ageron/handson-ml2/blob/master/19_training_a...
27.824781
657
0.697868
88244f49428498e751a29a73403ece6d99551a07
5,750
py
Python
examples/python/PricingVanillaOption.py
suhasghorp/FinancePy
567486785b33768f229a404e860f92fd042034a2
[ "BSD-3-Clause" ]
null
null
null
examples/python/PricingVanillaOption.py
suhasghorp/FinancePy
567486785b33768f229a404e860f92fd042034a2
[ "BSD-3-Clause" ]
1
2020-05-07T14:38:23.000Z
2020-05-07T14:38:23.000Z
examples/python/PricingVanillaOption.py
suhasghorp/FinancePy
567486785b33768f229a404e860f92fd042034a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 13 21:52:16 2019 @author: Dominic O'Kane """ from valueDate = FinDate(2015, 1, 1) expiryDate = FinDate(2015, 7, 1) stockPrice = 100 volatility = 0.30 interestRate = 0.05 dividendYield = 0.01 model = FinEquityModelBlackScholes(volatility) ...
27.777778
99
0.526435
7974542530d3b117e4dc2cf392cc299d27f818dc
1,409
py
Python
app/routes.py
ender18g/ew370
a4a8af973adc37a02eb9148fed67e857a614faaf
[ "MIT" ]
null
null
null
app/routes.py
ender18g/ew370
a4a8af973adc37a02eb9148fed67e857a614faaf
[ "MIT" ]
null
null
null
app/routes.py
ender18g/ew370
a4a8af973adc37a02eb9148fed67e857a614faaf
[ "MIT" ]
null
null
null
from app import app from app import db from flask import render_template, url_for, request, jsonify, redirect import json from app.models import Comment # def get_mlData(): # with open ('app/static/brain-examples/ml_data.json','r') as f: # return json.load(f) # def save_mlData(ml_data): # with open ('app/sta...
30.630435
95
0.672818
27df010cc1ef623d1994e6e3cc0f657e7f6f9752
224
py
Python
mangum/protocols/__init__.py
tasn/mangum
6da7e51ca8e7979f41291ab3f0e698882f219814
[ "MIT" ]
661
2020-06-02T01:06:35.000Z
2022-03-30T22:40:47.000Z
mangum/protocols/__init__.py
tasn/mangum
6da7e51ca8e7979f41291ab3f0e698882f219814
[ "MIT" ]
116
2020-06-02T02:14:14.000Z
2022-03-25T11:54:38.000Z
mangum/protocols/__init__.py
tasn/mangum
6da7e51ca8e7979f41291ab3f0e698882f219814
[ "MIT" ]
55
2020-06-02T02:01:26.000Z
2022-03-16T16:13:09.000Z
from .http import HTTPCycle from .websockets import WebSocketCycle from .lifespan import LifespanCycleState, LifespanCycle __all__ = [ "HTTPCycle", "WebSocketCycle", "LifespanCycleState", "LifespanCycle", ]
20.363636
55
0.745536
d3aa0b628dc8db7172ab6aaf3387523a358363b4
2,751
py
Python
app.py
noorbala7418/ImAlive
f5b26141fc6035b233f18fddc91c34d31a9740ab
[ "MIT" ]
2
2021-11-03T18:33:04.000Z
2021-12-21T11:16:16.000Z
app.py
noorbala7418/ImAlive
f5b26141fc6035b233f18fddc91c34d31a9740ab
[ "MIT" ]
null
null
null
app.py
noorbala7418/ImAlive
f5b26141fc6035b233f18fddc91c34d31a9740ab
[ "MIT" ]
null
null
null
import os import json import subprocess import re from dotenv import load_dotenv, find_dotenv from flask import Flask, request, Response from flask_httpauth import HTTPBasicAuth from werkzeug.security import generate_password_hash, check_password_hash app = Flask(__name__) app.config["DEBUG"] = True load_dotenv(find_...
28.071429
104
0.705198
a6cfbb8cb7acf2e4678c0df1ae4266a636a981e8
8,057
py
Python
homeassistant/components/mill/climate.py
ryborg/core
b17120a5113a424cab9c621225956f6c8ec67a87
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mill/climate.py
ryborg/core
b17120a5113a424cab9c621225956f6c8ec67a87
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mill/climate.py
ryborg/core
b17120a5113a424cab9c621225956f6c8ec67a87
[ "Apache-2.0" ]
null
null
null
"""Support for mill wifi-enabled home heaters.""" import mill import voluptuous as vol from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( CURRENT_HVAC_HEAT, CURRENT_HVAC_IDLE, FAN_ON, HVAC_MODE_HEAT, HVAC_MODE_OFF, SUPPORT_FAN_MODE, ...
34.431624
87
0.682264
637ec522aa7c886dcb45028cbb78693adda75d32
703
py
Python
setup.py
amackojc/fatube
72a59b1f41a5c0a6dda75fe41cc3a7342eee7983
[ "MIT" ]
null
null
null
setup.py
amackojc/fatube
72a59b1f41a5c0a6dda75fe41cc3a7342eee7983
[ "MIT" ]
null
null
null
setup.py
amackojc/fatube
72a59b1f41a5c0a6dda75fe41cc3a7342eee7983
[ "MIT" ]
1
2022-01-18T20:57:01.000Z
2022-01-18T20:57:01.000Z
""" Setup file for FATube. Use setup.cfg to configure your project. This file was generated with PyScaffold 4.1.1. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: https://pyscaffold.org/ """ from setuptools import setup if __name__ == "__main__": try: ...
31.954545
77
0.638691
d77ff9f26f0bd43f1d0474a71e016a19adf7b88d
1,968
py
Python
pygeostat/utility/logging.py
haroldvelasquez/pygeostat
b45294ef432ec0169eb32c7cf42bca871651d8ed
[ "MIT" ]
22
2020-08-04T15:13:53.000Z
2022-03-31T00:15:07.000Z
pygeostat/utility/logging.py
haroldvelasquez/pygeostat
b45294ef432ec0169eb32c7cf42bca871651d8ed
[ "MIT" ]
15
2020-08-04T15:40:21.000Z
2021-12-22T15:18:01.000Z
pygeostat/utility/logging.py
haroldvelasquez/pygeostat
b45294ef432ec0169eb32c7cf42bca871651d8ed
[ "MIT" ]
59
2020-08-04T17:09:26.000Z
2022-03-25T23:19:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- '''utils.py: Contains utility functions for providing status alerts in a script''' from __future__ import absolute_import, division, print_function __author__ = 'pygeostat development team' __date__ = '2015' __version__ = '1.000' import textwrap def printerr(text, width...
31.238095
98
0.646341
b810bfed0938840d1cd44df291b50dfd3b37e391
139
py
Python
opwen_email_server/constants/sync.py
kulado/mailserver
d05c0b2e8d8c97b7b7a08028a9eacd4427a59c4b
[ "Apache-2.0" ]
15
2020-07-06T02:33:15.000Z
2021-08-09T19:24:11.000Z
opwen_email_server/constants/sync.py
kulado/mailserver
d05c0b2e8d8c97b7b7a08028a9eacd4427a59c4b
[ "Apache-2.0" ]
298
2016-12-24T20:19:56.000Z
2020-04-29T03:13:21.000Z
opwen_email_server/constants/sync.py
sbathgate/lokole
a4e3fa5da5373880f6783379f7ef8d843e4cc79d
[ "Apache-2.0" ]
12
2017-06-05T12:13:35.000Z
2020-01-23T03:26:05.000Z
from typing_extensions import Final # noqa: F401 EMAILS_FILE = 'emails.jsonl' # type: Final USERS_FILE = 'zzusers.jsonl' # type: Final
27.8
49
0.733813
5eeb0191c287c35df018c87a3cc5714a6a5ab804
1,356
py
Python
readthedocs/builds/utils.py
felixge/readthedocs.org
41b0243bfd94c9c502c8f7f5f7df3e8f690891a5
[ "MIT" ]
1
2017-10-02T09:01:42.000Z
2017-10-02T09:01:42.000Z
readthedocs/builds/utils.py
felixge/readthedocs.org
41b0243bfd94c9c502c8f7f5f7df3e8f690891a5
[ "MIT" ]
null
null
null
readthedocs/builds/utils.py
felixge/readthedocs.org
41b0243bfd94c9c502c8f7f5f7df3e8f690891a5
[ "MIT" ]
null
null
null
import re GH_REGEXS = [ re.compile('github.com/(.+)/(.+)(?:\.git){1}'), re.compile('github.com/(.+)/(.+)'), re.compile('github.com:(.+)/(.+).git'), ] BB_REGEXS = [ re.compile('bitbucket.org/(.+)/(.+)/'), re.compile('bitbucket.org/(.+)/(.+)'), re.compile('bitbucket.org:(.+)/(.+)\.git'), ] def ...
28.851064
61
0.608407
139548cb3781047aceefc145d3a7a14908ccd550
37,058
py
Python
ssqueezepy/visuals.py
CHEN34-hub/ssqueezepy
d6e6d5b331094d8aeee0c187f7efbfb3c97af986
[ "MIT" ]
1
2022-03-06T14:18:26.000Z
2022-03-06T14:18:26.000Z
ssqueezepy/visuals.py
CHEN34-hub/ssqueezepy
d6e6d5b331094d8aeee0c187f7efbfb3c97af986
[ "MIT" ]
null
null
null
ssqueezepy/visuals.py
CHEN34-hub/ssqueezepy
d6e6d5b331094d8aeee0c187f7efbfb3c97af986
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Convenience visual methods""" import numpy as np from pathlib import Path from .algos import find_closest, find_maximum from .configs import gdefaults from . import plt #### Visualizations ########################################################## def wavelet_tf(wavelet, N=2048, scale=None,...
36.083739
82
0.561417
fbda44705b5b1dcfa785223b65530aef0cf42b93
4,282
py
Python
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/list_privateips_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/list_privateips_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/list_privateips_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListPrivateipsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The ...
25.488095
79
0.556049
ef3087da4b325c14ea422766752521a10fcd9098
5,046
py
Python
RBC_Python_Numba.py
leitec/Comparison-Programming-Languages-Economics
dcff2d7135fb84c8f389f3ed2bea8500f7f31d11
[ "MIT" ]
197
2015-01-04T10:13:44.000Z
2022-01-06T19:01:46.000Z
RBC_Python_Numba.py
leitec/Comparison-Programming-Languages-Economics
dcff2d7135fb84c8f389f3ed2bea8500f7f31d11
[ "MIT" ]
15
2015-05-24T17:29:18.000Z
2022-02-25T20:54:46.000Z
RBC_Python_Numba.py
leitec/Comparison-Programming-Languages-Economics
dcff2d7135fb84c8f389f3ed2bea8500f7f31d11
[ "MIT" ]
119
2015-01-01T17:08:21.000Z
2021-09-21T17:41:39.000Z
# Basic RBC model with full depreciation (Alternate 1) # # Jesus Fernandez-Villaverde # Haverford, July 3, 2013 import numpy as np import math import time from numba import autojit # - Start Inner Loop - # # - bbeta float # - nGridCapital: int64 # - gridCapitalNextPeriod: int...
37.377778
216
0.639318
c7f98b55400f0b9fabd2188d22fb6daaee6282f9
27
py
Python
sketchy/terminal/feature/merge/__init__.py
mbhall88/sketchy
5ed26d28f104710f6d425053eae41fd0e99f8760
[ "MIT" ]
null
null
null
sketchy/terminal/feature/merge/__init__.py
mbhall88/sketchy
5ed26d28f104710f6d425053eae41fd0e99f8760
[ "MIT" ]
null
null
null
sketchy/terminal/feature/merge/__init__.py
mbhall88/sketchy
5ed26d28f104710f6d425053eae41fd0e99f8760
[ "MIT" ]
null
null
null
from .commands import merge
27
27
0.851852
4fae268ce23144aa877c5a5341720f051d9f4ae0
211
py
Python
src/year2021/day01a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
10
2017-12-11T17:54:52.000Z
2021-12-09T20:16:30.000Z
src/year2021/day01a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
260
2015-12-09T11:03:03.000Z
2021-12-12T14:32:23.000Z
src/year2021/day01a.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
null
null
null
"""2021 - Day 1 Part 1: Sonar Sweep.""" from itertools import pairwise def solve(task: str) -> int: depths = (int(x) for x in task.strip().split("\n")) return sum(a < b for (a, b) in pairwise(depths))
26.375
55
0.620853
f2fe58c1a326668393a3edad0c123383c6e0878e
274
py
Python
metadeploy/api/migrations/0023_merge_20181206_1541.py
sfdc-qbranch/MetaDeploy
d22547b3814dbec6aefa4d86b9f81c6f175c1b67
[ "BSD-3-Clause" ]
33
2019-03-20T15:34:39.000Z
2022-03-30T15:59:40.000Z
metadeploy/api/migrations/0023_merge_20181206_1541.py
sfdc-qbranch/MetaDeploy
d22547b3814dbec6aefa4d86b9f81c6f175c1b67
[ "BSD-3-Clause" ]
2,718
2019-02-27T19:46:07.000Z
2022-03-11T23:18:09.000Z
metadeploy/api/migrations/0023_merge_20181206_1541.py
sfdc-qbranch/MetaDeploy
d22547b3814dbec6aefa4d86b9f81c6f175c1b67
[ "BSD-3-Clause" ]
28
2019-03-28T04:57:16.000Z
2022-02-04T16:49:25.000Z
# Generated by Django 2.1.4 on 2018-12-06 15:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("api", "0022_allow_canceled_result"), ("api", "0022_order_products_and_categories"), ] operations = []
19.571429
54
0.667883
feb5193f4ce0f33686c4464d123170276bb22f52
3,720
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLU/glustruct.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLU/glustruct.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLU/glustruct.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
"""Base class for GLU callback-caching structures""" import ctypes import weakref from OpenGL._bytes import long, integer_types class GLUStruct( object ): """Mix-in class for GLU Structures that want to retain references to callbacks Also provides original-object-return for the "datapointer" style...
42.272727
83
0.610753
7c8475b2bd5948c05b213222fa506ea5a494fa40
108
py
Python
tests/samples/project/vendor/fooba/models/config_dependency_inheritance.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
23
2020-02-28T14:29:04.000Z
2021-12-23T20:50:54.000Z
tests/samples/project/vendor/fooba/models/config_dependency_inheritance.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
172
2020-02-24T12:12:11.000Z
2022-03-29T03:08:24.000Z
tests/samples/project/vendor/fooba/models/config_dependency_inheritance.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
1
2020-11-23T22:42:20.000Z
2020-11-23T22:42:20.000Z
from .extended import ExtendedTestModel class DependencyInhertanceTestModel(ExtendedTestModel): pass
15.428571
55
0.833333
d1fea66e8c8da10d52738a32fafea13cc59eae8a
957
py
Python
backend/tests/improvements/test_mine.py
aecobb53/civ_vi_city_planner
bac9517507f0f50a172fe821a8c08d7945fdf74f
[ "MIT" ]
2
2020-12-10T03:10:52.000Z
2020-12-27T06:17:01.000Z
backend/tests/improvements/test_mine.py
aecobb53/civ_vi_city_planner
bac9517507f0f50a172fe821a8c08d7945fdf74f
[ "MIT" ]
8
2020-12-10T06:38:10.000Z
2021-05-01T22:27:37.000Z
backend/tests/improvements/test_mine.py
aecobb53/civ_vi_city_planner
bac9517507f0f50a172fe821a8c08d7945fdf74f
[ "MIT" ]
null
null
null
from backend.improvements.mine import Mine import pytest @pytest.fixture(scope="function") def setup_improvement(): imp = Mine() return imp # Init testdata = [ ('food', 0), ('production', 1), ('gold', 0), ('science', 0), ('culture', 0), ('faith', 0), ('housing', 0), ('appeal', ...
20.361702
55
0.524556
166b090810123ffc24f006e7ad0cc51fc8ab4bb2
1,950
py
Python
src/sim/06-allegheny-05-school-work-flu/sim-test-02.py
momacs/pram
d2de43ea447d13a65d814f781ec86889754f76fe
[ "BSD-3-Clause" ]
10
2019-01-18T19:11:54.000Z
2022-03-16T08:39:36.000Z
src/sim/06-allegheny-05-school-work-flu/sim-test-02.py
momacs/pram
d2de43ea447d13a65d814f781ec86889754f76fe
[ "BSD-3-Clause" ]
2
2019-02-19T15:10:44.000Z
2019-02-26T04:26:24.000Z
src/sim/06-allegheny-05-school-work-flu/sim-test-02.py
momacs/pram
d2de43ea447d13a65d814f781ec86889754f76fe
[ "BSD-3-Clause" ]
3
2019-02-19T15:11:08.000Z
2021-08-20T11:51:04.000Z
''' A test simulation involving the SEIR flu model that is run on an hourly basis (instead of the default hourly basis). ''' import pram.util as util from pram.data import GroupSizeProbe, ProbeMsgMode from pram.entity import Group, Site from pram.rule import Rule, SEIRFluRule, TimeAlways from pram.sim import S...
27.857143
159
0.521026
47e179db41e8ea9c1fb17338e8315c927fc73de6
12,164
py
Python
django/db/backends/mysql/operations.py
crdoconnor/django
c530428d360daf904c9e98515ea836643a73a54c
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-04-27T20:12:45.000Z
2019-04-27T20:12:45.000Z
django/db/backends/mysql/operations.py
crdoconnor/django
c530428d360daf904c9e98515ea836643a73a54c
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/mysql/operations.py
crdoconnor/django
c530428d360daf904c9e98515ea836643a73a54c
[ "PSF-2.0", "BSD-3-Clause" ]
1
2018-12-10T03:06:36.000Z
2018-12-10T03:06:36.000Z
import uuid from django.conf import settings from django.db.backends.base.operations import BaseDatabaseOperations from django.utils import timezone from django.utils.duration import duration_microseconds from django.utils.encoding import force_text class DatabaseOperations(BaseDatabaseOperations): compiler_modu...
41.094595
113
0.605886
a0b5918d1dd1ea976c8f51901ddddb3226d6e815
6,263
py
Python
muskit/svs/feats_extract/dio.py
A-Quarter-Mile/Muskits
60d80727d2ec6b8ec405502d67796e8df319ea82
[ "Apache-2.0" ]
74
2021-04-15T15:39:32.000Z
2022-03-23T03:34:25.000Z
muskit/svs/feats_extract/dio.py
A-Quarter-Mile/Muskits
60d80727d2ec6b8ec405502d67796e8df319ea82
[ "Apache-2.0" ]
33
2021-04-30T18:24:47.000Z
2022-03-29T13:27:40.000Z
muskit/svs/feats_extract/dio.py
A-Quarter-Mile/Muskits
60d80727d2ec6b8ec405502d67796e8df319ea82
[ "Apache-2.0" ]
24
2021-04-15T15:20:32.000Z
2022-03-19T04:03:25.000Z
# Copyright 2020 Nagoya University (Tomoki Hayashi) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """F0 extractor using DIO + Stonemask algorithm.""" import logging from typing import Any from typing import Dict from typing import Tuple from typing import Union import humanfriendly import numpy as np ...
34.224044
88
0.608654
11eabff3021d40aa4ce1808e915123def7af4bba
4,320
py
Python
tools/run_sim.py
ptracton/wb_soc_template
ddd2e8460fa996551ef2d1fa5be2550c66d96bf3
[ "MIT" ]
null
null
null
tools/run_sim.py
ptracton/wb_soc_template
ddd2e8460fa996551ef2d1fa5be2550c66d96bf3
[ "MIT" ]
null
null
null
tools/run_sim.py
ptracton/wb_soc_template
ddd2e8460fa996551ef2d1fa5be2550c66d96bf3
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ run_sim.py Run FPGA simulations via Icarus, NCVerilog, Modelsim or Isim. """ import json import os import shlex import subprocess import sys import argparse import string def which(program): """ Find the path to an executable program """ def is_exe(fpath): """ ...
32.481203
79
0.520602
213602451fd8941d0f5d0d762712d59591c86c3b
1,665
py
Python
sarsa/sarsa_mc.py
AgentMaker/Paddle-RLBooks
2e879f7ec3befa2058f0181e205b790d47770a85
[ "Apache-2.0" ]
127
2021-03-22T07:34:43.000Z
2022-02-04T13:33:15.000Z
sarsa/sarsa_mc.py
WhiteFireFox/Paddle-RLBooks
1a6add1d01b1bab08bb9d246fcd6ab852a43c18c
[ "Apache-2.0" ]
1
2021-05-16T09:51:07.000Z
2021-05-16T09:51:07.000Z
sarsa/sarsa_mc.py
WhiteFireFox/Paddle-RLBooks
1a6add1d01b1bab08bb9d246fcd6ab852a43c18c
[ "Apache-2.0" ]
16
2021-04-03T05:31:30.000Z
2022-03-26T07:53:49.000Z
import numpy as np from cliffwalk.cliffwalk import GridWorld def egreedy_policy(q_values, state, epsilon=0.1): if np.random.random() < epsilon: return np.random.choice(4) else: return np.argmax(q_values[state]) def sarsa_mc(env, actions=['UP', 'DOWN', 'RIGHT', 'LEFT'], ...
26.015625
73
0.538739
e77964d875066ad3ed8a2d286cd851bccbcf85c0
807
py
Python
backend/recipe_backend/recipe_backend/urls.py
Nadin007/foodgram-project-react
969f07e4cc74321fbdb566d4cb160ac8eefdde3e
[ "MIT" ]
null
null
null
backend/recipe_backend/recipe_backend/urls.py
Nadin007/foodgram-project-react
969f07e4cc74321fbdb566d4cb160ac8eefdde3e
[ "MIT" ]
null
null
null
backend/recipe_backend/recipe_backend/urls.py
Nadin007/foodgram-project-react
969f07e4cc74321fbdb566d4cb160ac8eefdde3e
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from django.views.generic import TemplateView urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('recipe_features.urls')), path('api/', inclu...
32.28
64
0.702602
59444ec2836128266d785c3f1502e917a05f4217
10,634
py
Python
models/common.py
MinkaiXu/GeoDiff
c6f26dc250308bff8923a19884e601e0bb0f975a
[ "MIT" ]
9
2022-03-08T12:32:29.000Z
2022-03-31T10:39:45.000Z
models/common.py
MinkaiXu/GeoDiff
c6f26dc250308bff8923a19884e601e0bb0f975a
[ "MIT" ]
1
2022-03-30T23:03:07.000Z
2022-03-31T00:12:07.000Z
models/common.py
MinkaiXu/GeoDiff
c6f26dc250308bff8923a19884e601e0bb0f975a
[ "MIT" ]
3
2022-03-01T06:45:40.000Z
2022-03-30T13:12:20.000Z
# coding=utf-8 import torch import torch.nn as nn import torch.nn.functional as F from torch_geometric.nn import radius_graph, radius from torch_scatter import scatter_mean, scatter_add, scatter_max from torch_sparse import coalesce from torch_geometric.utils import to_dense_adj, dense_to_sparse from utils.chem import...
35.684564
117
0.653282
688d27831e4acceb1f167858d0e57a307f9c234e
2,494
py
Python
mq+mcp3008.py
mcthoren/mq_gases
e26ac3ba6d0ca321afdaaf80047b632824454d80
[ "0BSD" ]
null
null
null
mq+mcp3008.py
mcthoren/mq_gases
e26ac3ba6d0ca321afdaaf80047b632824454d80
[ "0BSD" ]
null
null
null
mq+mcp3008.py
mcthoren/mq_gases
e26ac3ba6d0ca321afdaaf80047b632824454d80
[ "0BSD" ]
null
null
null
#!/usr/bin/python3 # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT # thanks to Adafruit for all the docs, boards and code. # docs and example code from here: # https://learn.adafruit.com/mcp3008-spi-adc?view=all # datasheet here: # https://cdn-shop.adafruit.com/datasheet...
31.175
108
0.691259
4f8d8d3aae7ea0c73c9796c697bedd1f5e2521ee
960
py
Python
var/spack/repos/builtin/packages/fish/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/fish/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/fish/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Fish(AutotoolsPackage): """fish is a smart and user-friendly command line shell for OS X, ...
40
99
0.752083
7431ca707606785d71c417172c9adc4daeccc68c
2,892
py
Python
test/www/url-encoding.py
Vanuan/phantomjs
54f331b1b5bba48a2624b2d7c288f8cade101e5e
[ "BSD-3-Clause" ]
1
2021-05-18T13:32:05.000Z
2021-05-18T13:32:05.000Z
test/www/url-encoding.py
Vanuan/phantomjs
54f331b1b5bba48a2624b2d7c288f8cade101e5e
[ "BSD-3-Clause" ]
null
null
null
test/www/url-encoding.py
Vanuan/phantomjs
54f331b1b5bba48a2624b2d7c288f8cade101e5e
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import urlparse from cStringIO import StringIO import time def html_esc(s): return s.replace('&','&amp;').replace('<','&lt;').replace('>','&gt;') def do_response(req, body, code=200, headers={}): req.send_response(code) req.send_header('Content-Length', str(len(body))) if 'Co...
33.241379
73
0.561895
07b133eac2957888817a68b2def6d0e3aac3c5d3
4,870
py
Python
examples/smri_ants_build_template.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2019-01-25T18:20:51.000Z
2019-07-30T20:51:51.000Z
examples/smri_ants_build_template.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
examples/smri_ants_build_template.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2018-01-25T19:48:17.000Z
2019-01-25T18:20:52.000Z
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ =============================================== sMRI: Using new ANTS for creating a T1 template =============================================== In this tutorial we will use ANTS (...
35.547445
131
0.744559
1eb9690860bc156e5f18c96cb70cab862d775043
88
py
Python
python/git_manage/scripts/__init__.py
danb0b/code_git_tools
3661e90ea5e93012c203ed9569ad956b322729f2
[ "MIT" ]
null
null
null
python/git_manage/scripts/__init__.py
danb0b/code_git_tools
3661e90ea5e93012c203ed9569ad956b322729f2
[ "MIT" ]
null
null
null
python/git_manage/scripts/__init__.py
danb0b/code_git_tools
3661e90ea5e93012c203ed9569ad956b322729f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 22 19:45:01 2019 @author: danaukes """
11
35
0.579545
ac08faee093de8f578577414e56d4047c5ec4888
1,816
py
Python
native_client_sdk/src/build_tools/dsc_info.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
native_client_sdk/src/build_tools/dsc_info.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
native_client_sdk/src/build_tools/dsc_info.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
#!/usr/bin/env python # 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. """Extracts information from a library.dsc file.""" import optparse import os import sys import parse_dsc def Error(msg): print >>...
27.515152
75
0.670705
595fc5cc61fa53462a6ee74873f999226c5a2338
6,234
py
Python
torchlib/generative_model/gan/infogan/trainer.py
vermouth1992/torchlib
63b2bedb40f670b2d9fbfc0daeab4a8d44623095
[ "MIT" ]
3
2019-07-23T21:32:36.000Z
2022-02-04T23:13:30.000Z
torchlib/generative_model/gan/infogan/trainer.py
vermouth1992/torchlib
63b2bedb40f670b2d9fbfc0daeab4a8d44623095
[ "MIT" ]
null
null
null
torchlib/generative_model/gan/infogan/trainer.py
vermouth1992/torchlib
63b2bedb40f670b2d9fbfc0daeab4a8d44623095
[ "MIT" ]
1
2019-07-23T21:32:23.000Z
2019-07-23T21:32:23.000Z
""" Trainer for infogan """ import numpy as np import torch from torchlib.common import FloatTensor from torchlib.utils.plot import get_visdom_line_plotter from torch.autograd import Variable from tqdm import tqdm class Trainer(object): def __init__(self, trick_dict=None): if trick_dict is None: ...
41.013158
110
0.598813
02c032e1c3cacae4c5f1e83dbac8cc0d8f2929fe
32,679
py
Python
test/IECore/Imath.py
gcodebackups/cortex-vfx
72fa6c6eb3327fce4faf01361c8fcc2e1e892672
[ "BSD-3-Clause" ]
5
2016-07-26T06:09:28.000Z
2022-03-07T03:58:51.000Z
test/IECore/Imath.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
null
null
null
test/IECore/Imath.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
3
2015-03-25T18:45:24.000Z
2020-02-15T15:37:18.000Z
########################################################################## # # Copyright (c) 2007-2011, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
25.041379
116
0.601793
d4c0ea9454c9cbe2f952f88ed7788fe77deba877
2,515
py
Python
tasks.py
RTBHOUSE/here-be-pythons
c066768c3afca4e2aff2dcdcf5ead36ed1ba9827
[ "MIT" ]
null
null
null
tasks.py
RTBHOUSE/here-be-pythons
c066768c3afca4e2aff2dcdcf5ead36ed1ba9827
[ "MIT" ]
null
null
null
tasks.py
RTBHOUSE/here-be-pythons
c066768c3afca4e2aff2dcdcf5ead36ed1ba9827
[ "MIT" ]
1
2019-07-03T15:11:14.000Z
2019-07-03T15:11:14.000Z
import invoke from utils import cowsay ############## # Core Tasks # ############## @invoke.task def coverage_report(c): """Open refreshed coverage report in a browser.""" c.run('coverage html && open htmlcov/index.html', pty=True) @invoke.task def flake8_report(c): """Open refreshed Flake8 report in ...
26.473684
92
0.647714
78f8cf8892e66efffc7010a037073d847eaa3cb4
3,497
py
Python
runway/cfngin/lookups/registry.py
cmilam87/runway
e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1
[ "Apache-2.0" ]
null
null
null
runway/cfngin/lookups/registry.py
cmilam87/runway
e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1
[ "Apache-2.0" ]
null
null
null
runway/cfngin/lookups/registry.py
cmilam87/runway
e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1
[ "Apache-2.0" ]
null
null
null
"""CFNgin lookup registry.""" import logging import warnings from six import string_types from runway.util import load_object_from_string from ..exceptions import FailedVariableLookup, UnknownLookupType from .handlers import ami, default, dynamodb, envvar from .handlers import file as file_handler from .handlers imp...
34.623762
79
0.706892
535c97a2c3bd9238db06791e2a52b26922f0879d
110,031
py
Python
tests/validation/tests/v3_api/common.py
dveni/rancher
6a0a991109ca2e88aff9687300b2fe5a70ff8e49
[ "Apache-2.0" ]
2
2021-11-01T05:49:31.000Z
2021-11-01T05:49:37.000Z
tests/validation/tests/v3_api/common.py
dveni/rancher
6a0a991109ca2e88aff9687300b2fe5a70ff8e49
[ "Apache-2.0" ]
null
null
null
tests/validation/tests/v3_api/common.py
dveni/rancher
6a0a991109ca2e88aff9687300b2fe5a70ff8e49
[ "Apache-2.0" ]
null
null
null
from ..common import * # NOQA import inspect import json import os import random import subprocess import ssl import time import requests import ast import paramiko import rancher import pytest from urllib.parse import urlparse from rancher import ApiError from lib.aws import AmazonWebServices from copy import deepcop...
36.910768
117
0.615726
ec9a61eca11175ab9b5c6a3173863a806c7d91a4
1,303
py
Python
monk/system_unit_tests/gluon/test_activation_gelu.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
7
2020-07-26T08:37:29.000Z
2020-10-30T10:23:11.000Z
monk/system_unit_tests/gluon/test_activation_gelu.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
9
2020-01-28T21:40:39.000Z
2022-02-10T01:24:06.000Z
monk/system_unit_tests/gluon/test_activation_gelu.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
1
2020-10-07T12:57:44.000Z
2020-10-07T12:57:44.000Z
import os import sys sys.path.append("../../../monk/"); import psutil from gluon_prototype import prototype from compare_prototype import compare from common import print_start from common import print_status import mxnet as mx import numpy as np from gluon.losses.return_loss import load_loss def test_activation_ge...
26.591837
71
0.61934
567a4544633008e6c6956e45c7bf2aec156faddf
10,041
py
Python
tests/contenttypes_tests/test_views.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/contenttypes_tests/test_views.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/contenttypes_tests/test_views.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import datetime from unittest import mock from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.views import shortcut from django.contrib.sites.models import Site from django.contrib.sites.shortcuts import get_current_site from django.http import Http404, HttpRequest from ...
48.043062
119
0.65601
eec372270713adc4becfebb98ad601a30fbb0b58
521
py
Python
core/migrations/0006_appconfig.py
aashreyj/Audition-Management-System
7bb3ad014920b9f7db5f9a6d6a93d7fc96e16926
[ "MIT" ]
3
2019-01-29T19:07:21.000Z
2022-03-10T08:33:31.000Z
core/migrations/0006_appconfig.py
aashreyj/Audition-Management-System
7bb3ad014920b9f7db5f9a6d6a93d7fc96e16926
[ "MIT" ]
18
2019-01-29T19:10:51.000Z
2019-02-08T06:55:35.000Z
core/migrations/0006_appconfig.py
JayjeetAtGithub/Audition-Management-System
c10a48733f74022e52b5cf4729dac8622a57c0d5
[ "MIT" ]
8
2019-01-31T14:42:33.000Z
2021-02-24T19:10:40.000Z
# Generated by Django 2.1.5 on 2019-01-24 13:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0005_student_stopped'), ] operations = [ migrations.CreateModel( name='AppConfig', fields=[ ...
24.809524
114
0.585413
39b6d60b0077d8a2d2a0ea4b350131c055dd69e9
5,276
py
Python
scripts/quad_walk_mult.py
WPI-MMR/quadrupedal_walking_controller
952bc350b2204f2a742bf469af1386a2b80ab4bd
[ "Apache-2.0" ]
null
null
null
scripts/quad_walk_mult.py
WPI-MMR/quadrupedal_walking_controller
952bc350b2204f2a742bf469af1386a2b80ab4bd
[ "Apache-2.0" ]
null
null
null
scripts/quad_walk_mult.py
WPI-MMR/quadrupedal_walking_controller
952bc350b2204f2a742bf469af1386a2b80ab4bd
[ "Apache-2.0" ]
null
null
null
import gym import gym_solo from gym_solo.envs import solo8v2vanilla_realtime from gym_solo.core import rewards from gym_solo import testing from tqdm import tqdm import matplotlib.pyplot as plt import numpy as np import argparse import math import threading import time import wandb class DistanceReward(rewards.Rew...
25.862745
81
0.69655
c0fb1e896dfaf267de9b9410b69542268e20185a
3,996
py
Python
hubspot/cms/hubdb/__init__.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/cms/hubdb/__init__.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/cms/hubdb/__init__.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa """ HubDB endpoints HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can a...
61.476923
1,304
0.835335
942906e319b8e14e5317ed0a1af3b7e5abbfac34
132
py
Python
connect4/apps.py
ozzy92/JaysConnect4
831eee406594348b0ecfea325873bd9c47bece91
[ "MIT" ]
null
null
null
connect4/apps.py
ozzy92/JaysConnect4
831eee406594348b0ecfea325873bd9c47bece91
[ "MIT" ]
null
null
null
connect4/apps.py
ozzy92/JaysConnect4
831eee406594348b0ecfea325873bd9c47bece91
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class Connect4Config(AppConfig): name = 'connect4'
16.5
39
0.795455
217ee6f60e2d962c01e38823e89950092847abd4
5,158
py
Python
tests/test_miner_sim.py
gitter-badger/py-flexpoolapi
feccb28321575afde1f64643a5d96724f09a9214
[ "MIT" ]
null
null
null
tests/test_miner_sim.py
gitter-badger/py-flexpoolapi
feccb28321575afde1f64643a5d96724f09a9214
[ "MIT" ]
null
null
null
tests/test_miner_sim.py
gitter-badger/py-flexpoolapi
feccb28321575afde1f64643a5d96724f09a9214
[ "MIT" ]
null
null
null
# # Software distrubuted under MIT License (MIT) # # Copyright (c) 2020 Flexpool # # 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 # ...
47.759259
118
0.705312
c27cedd35cb43b55cf4605836a232139f9577786
8,038
py
Python
neutron/db/migration/alembic_migrations/cisco_init_ops.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
10
2015-09-22T10:22:53.000Z
2016-02-25T06:12:05.000Z
neutron/db/migration/alembic_migrations/cisco_init_ops.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
12
2015-01-08T18:30:45.000Z
2015-03-13T21:04:15.000Z
neutron/db/migration/alembic_migrations/cisco_init_ops.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
7
2015-02-05T10:23:52.000Z
2019-05-18T17:11:19.000Z
# Copyright 2014 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
45.670455
78
0.654143
8d95189d02606f9195921321a95976c50ffd5b87
8,440
py
Python
all_repos/autofix_lib.py
charlievieth/all-repos
279d2910c56567d9518ab41bd8894216b9f649e5
[ "MIT" ]
null
null
null
all_repos/autofix_lib.py
charlievieth/all-repos
279d2910c56567d9518ab41bd8894216b9f649e5
[ "MIT" ]
null
null
null
all_repos/autofix_lib.py
charlievieth/all-repos
279d2910c56567d9518ab41bd8894216b9f649e5
[ "MIT" ]
null
null
null
import argparse import contextlib import functools import os import shlex import subprocess import tempfile import traceback from typing import Any from typing import Callable from typing import Generator from typing import Iterable from typing import NamedTuple from typing import NoReturn from typing import Optional f...
29.407666
79
0.59372
5295066e967236d3a0aaf1f00c316b1008b3f527
4,461
py
Python
src/main.py
tonifuc3m/drugprot-evaluation-library
6b939554de38dbb69c462cc0d45c1cb17c3eaf57
[ "MIT" ]
3
2021-07-14T13:51:10.000Z
2021-11-18T05:56:39.000Z
src/main.py
tonifuc3m/drugprot-evaluation-library
6b939554de38dbb69c462cc0d45c1cb17c3eaf57
[ "MIT" ]
1
2021-08-04T00:41:18.000Z
2021-08-12T22:54:33.000Z
src/main.py
tonifuc3m/drugprot-evaluation-library
6b939554de38dbb69c462cc0d45c1cb17c3eaf57
[ "MIT" ]
2
2021-07-25T12:06:50.000Z
2021-08-12T18:16:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 29 15:32:08 2021 @author: tonifuc3m """ import argparse import warnings import pandas as pd import os import compute_metrics from utils import load_entities_dict, prepro_relations, \ format_relations, get_chemical_gene_combinations, filter_pre...
38.791304
104
0.629455
f60df4417d42939c2f2ec9a12e6964b2a0424164
1,478
py
Python
19.2.py
StPluto/Test19
8d33e53fe302bf750b88ff1ba5231f9b966e344c
[ "MIT" ]
null
null
null
19.2.py
StPluto/Test19
8d33e53fe302bf750b88ff1ba5231f9b966e344c
[ "MIT" ]
null
null
null
19.2.py
StPluto/Test19
8d33e53fe302bf750b88ff1ba5231f9b966e344c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- config: utf-8 -*- # перепишите программу из пункта 8 так, чтобы интерфейс выглядел # примерно следующим образом: from tkinter import * class Window(Tk): # создание окна def __init__(self): super().__init__() self.title('Радуга') self.geometr...
31.446809
97
0.548038
1b78cd893112a87a1bde1f813faa929a6819048f
22,293
py
Python
libs/sol-REL-1.7.5.0/sensorobjectlibrary/SolDefines.py
realms-team/solmanager
95fa049df041add5f8d37c053ef560d0e5d06dff
[ "BSD-3-Clause" ]
null
null
null
libs/sol-REL-1.7.5.0/sensorobjectlibrary/SolDefines.py
realms-team/solmanager
95fa049df041add5f8d37c053ef560d0e5d06dff
[ "BSD-3-Clause" ]
104
2016-04-10T19:22:20.000Z
2018-11-20T15:47:14.000Z
libs/sol-REL-1.7.5.0/sensorobjectlibrary/SolDefines.py
realms-team/solmanager
95fa049df041add5f8d37c053ef560d0e5d06dff
[ "BSD-3-Clause" ]
null
null
null
from math import sqrt as sqrt import sys SOL_PORT = 0xf0ba # type names SOL_TYPE_DISTANCE_JUDD_RS232_RAW = 0x01 SOL_TYPE_DISTANCE_JUDD_RS232_STATS = 0x02 SOL_TYPE_SNOW_MAXBOTIX_MB7554_RS232_RAW = 0x03 SOL_TYPE_SNOW_MAXBOTIX_MB7554_RS232_STATS = 0x04 SOL_TY...
32.592105
121
0.451801
bd21a9ab2e1b09e120414df555e030c0e26aaaca
9,791
py
Python
ObfuscateCommands.py
CyberMatters/ObfuscateCommands
ca3f857303b45bb7cd89e897ab25aae48184f562
[ "Apache-2.0" ]
null
null
null
ObfuscateCommands.py
CyberMatters/ObfuscateCommands
ca3f857303b45bb7cd89e897ab25aae48184f562
[ "Apache-2.0" ]
null
null
null
ObfuscateCommands.py
CyberMatters/ObfuscateCommands
ca3f857303b45bb7cd89e897ab25aae48184f562
[ "Apache-2.0" ]
null
null
null
# Copyright [2021] [Intrinsec] # Program written by Dany GIANG aka CyberMatters import argparse import sys import logging import base64 import re import pandas as pd logger = logging.getLogger(__name__) def clean_dataset(df): logger.info("Cleaning dataset ...\n") pattern_command_ok = re.compile(r'^\*[^\*]+\...
35.219424
234
0.623634
1de18e8a3c1266e9e12bc063b5c4998b2a2b7d75
21,564
py
Python
infra/cifuzz/cifuzz_test.py
liamjm/oss-fuzz
edf81080a87410ddf5f5e7e705173c2dd6a14ff9
[ "Apache-2.0" ]
1
2021-07-01T17:32:41.000Z
2021-07-01T17:32:41.000Z
infra/cifuzz/cifuzz_test.py
liamjm/oss-fuzz
edf81080a87410ddf5f5e7e705173c2dd6a14ff9
[ "Apache-2.0" ]
2
2021-09-28T05:43:27.000Z
2022-02-26T10:20:18.000Z
infra/cifuzz/cifuzz_test.py
liamjm/oss-fuzz
edf81080a87410ddf5f5e7e705173c2dd6a14ff9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.840909
80
0.663421
bcbd12c9b6d44fdcf49c26485686b31f1b116860
4,448
py
Python
profiles/minkult.py
Zverik/osm_conflate
a7af835ce44b3ac194469b53b7f388bba168cbe4
[ "Apache-2.0" ]
42
2017-02-16T05:00:44.000Z
2022-01-02T08:28:38.000Z
profiles/minkult.py
Zverik/osm_conflate
a7af835ce44b3ac194469b53b7f388bba168cbe4
[ "Apache-2.0" ]
26
2017-05-13T12:36:19.000Z
2021-03-12T12:56:48.000Z
profiles/minkult.py
Zverik/osm_conflate
a7af835ce44b3ac194469b53b7f388bba168cbe4
[ "Apache-2.0" ]
20
2017-05-04T08:21:50.000Z
2021-07-29T15:14:55.000Z
source = 'opendata.mkrf.ru' dataset_id = 'mkrf_theaters' query = [('amenity', 'theatre')] max_distance = 300 master_tags = ('official_name', 'phone', 'opening_hours', 'website') # Reading the dataset passport to determine an URL of the latest dataset version def download_url(): import logging import requests ...
35.023622
92
0.505845
98e843465164918e5cbf5c523d0c1055f8cbb7ec
936
py
Python
ex053.py
lucaspereirag/pythonProject
15a88762ca94322918474537bbed13e0ed2b60a6
[ "MIT" ]
null
null
null
ex053.py
lucaspereirag/pythonProject
15a88762ca94322918474537bbed13e0ed2b60a6
[ "MIT" ]
null
null
null
ex053.py
lucaspereirag/pythonProject
15a88762ca94322918474537bbed13e0ed2b60a6
[ "MIT" ]
null
null
null
palindromo = str(input('Digite uma frase: ')).strip().upper() #espaços eliminados palavras = palindromo.split() #gerou uma lista frase = ''.join(palavras) #juntou a lista sem espaço inverso = frase[::-1] print('O inverso de {} é {}'.format(frase, inverso)) if inverso == frase: print('A frase é um palíndromo!')...
37.44
105
0.679487
9841aee11aa0504aba7768a5fe9e573981f6fc33
26,471
py
Python
tests/calendars/test_trading_calendar.py
AustenZhu/zipline
285d06ba7996fb4959b8dd1c1a72fe802661b7ba
[ "Apache-2.0" ]
1
2018-04-05T05:33:34.000Z
2018-04-05T05:33:34.000Z
tests/calendars/test_trading_calendar.py
miguelyad26/zipline
52b332919e133750dfd8b726b474179f5a989430
[ "Apache-2.0" ]
null
null
null
tests/calendars/test_trading_calendar.py
miguelyad26/zipline
52b332919e133750dfd8b726b474179f5a989430
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 Quantopian, 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...
35.341789
79
0.601451
eea0e208fa585f82dc6321906ad0b2dca20ec1b5
991
py
Python
library/script/dcp_pad.py
NYCPlanning/db-data-library
2e824434683216978c5333a37df0efe51152e16d
[ "MIT" ]
1
2022-01-24T22:05:11.000Z
2022-01-24T22:05:11.000Z
library/script/dcp_pad.py
NYCPlanning/db-data-library
2e824434683216978c5333a37df0efe51152e16d
[ "MIT" ]
112
2021-01-21T17:20:02.000Z
2022-03-30T20:42:41.000Z
library/script/dcp_pad.py
NYCPlanning/db-data-library
2e824434683216978c5333a37df0efe51152e16d
[ "MIT" ]
null
null
null
import os from zipfile import ZipFile import pandas as pd import requests from . import df_to_tempfile class Scriptor: def __init__(self, **kwargs): self.__dict__.update(kwargs) @property def version(self): return self.config["dataset"]["version"] def ingest(self) -> pd.DataFrame: ...
27.527778
108
0.614531
e2e637ef3e16c9b551178325b15b9743bdb1c05c
3,700
py
Python
processing/pre_extract_database.py
shizsun0609tw/visil
b06c235eb76d715f0ff2277210fd5b692a5a52ed
[ "Apache-2.0" ]
null
null
null
processing/pre_extract_database.py
shizsun0609tw/visil
b06c235eb76d715f0ff2277210fd5b692a5a52ed
[ "Apache-2.0" ]
null
null
null
processing/pre_extract_database.py
shizsun0609tw/visil
b06c235eb76d715f0ff2277210fd5b692a5a52ed
[ "Apache-2.0" ]
null
null
null
import json import argparse import tensorflow as tf import numpy as np import sys import pickle sys.path.append('/home/zhenhua/Project/Fake_News/visil') from tqdm import tqdm from model.visil import ViSiL from datasets import VideoGenerator # python3 processing/pre_extract_database.py --query_file queries.tx...
46.25
123
0.625405
15ed94a962e6c8cc418e937aa0988b15abc6da9c
4,100
py
Python
pay-api/tests/unit/services/test_invoice.py
nitheesh-aot/sbc-pay
dcb9c1bd3d2954f11c8d643aa6618d8470e3b0f7
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_invoice.py
nitheesh-aot/sbc-pay
dcb9c1bd3d2954f11c8d643aa6618d8470e3b0f7
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_invoice.py
nitheesh-aot/sbc-pay
dcb9c1bd3d2954f11c8d643aa6618d8470e3b0f7
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
34.745763
90
0.75878
bae8eb1f4df73a8d5b1ad9cecfbd7bbb9d16afcd
5,387
py
Python
examples/eq_van_der_pol.py
ZhaozhiQIAN/torchdiffeq
5409011d64630618aad2a154f6b7a823376a8687
[ "MIT" ]
null
null
null
examples/eq_van_der_pol.py
ZhaozhiQIAN/torchdiffeq
5409011d64630618aad2a154f6b7a823376a8687
[ "MIT" ]
null
null
null
examples/eq_van_der_pol.py
ZhaozhiQIAN/torchdiffeq
5409011d64630618aad2a154f6b7a823376a8687
[ "MIT" ]
null
null
null
import os import argparse import time import numpy as np import torch import torch.nn as nn import torch.optim as optim from ode_models import * parser = argparse.ArgumentParser('ODE demo') parser.add_argument('--method', type=str, choices=['dopri5', 'adams'], default='dopri5') parser.add_argument('--data_size', typ...
30.95977
105
0.601634
8ad02af5f994380047cf12fcda8255279c7d9d61
14,842
py
Python
fedlearner/data_join/joiner_impl/stream_joiner.py
WuLC/fedlearner
7a9dbbecb1388bbb02dc04dfae1ddb810a427c4b
[ "Apache-2.0" ]
null
null
null
fedlearner/data_join/joiner_impl/stream_joiner.py
WuLC/fedlearner
7a9dbbecb1388bbb02dc04dfae1ddb810a427c4b
[ "Apache-2.0" ]
null
null
null
fedlearner/data_join/joiner_impl/stream_joiner.py
WuLC/fedlearner
7a9dbbecb1388bbb02dc04dfae1ddb810a427c4b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The FedLearner 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...
43.145349
79
0.601065
a9777f0294ec9fae6d7e6279fec7e86c81925a47
21,283
py
Python
mlmodels/model_tf/misc/tf_nlp/chatbot/48.transformer-xl-lstm.py
gitter-badger/mlmodels
f08cc9b6ec202d4ad25ecdda2f44487da387569d
[ "MIT" ]
1
2022-03-11T07:57:48.000Z
2022-03-11T07:57:48.000Z
mlmodels/model_tf/misc/tf_nlp/chatbot/48.transformer-xl-lstm.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
mlmodels/model_tf/misc/tf_nlp/chatbot/48.transformer-xl-lstm.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import collections import os import re import time import numpy as np import tensorflow as tf from sklearn.utils import shuffle # In[2]: def build_dataset(words, n_words, atleast=1): count = [["PAD", 0], ["GO", 1], ["EOS", 2], ["UNK", 3]] counter = collectio...
31.024781
100
0.599634
7b988aef834ce4222c3c0cae78bf5cbf2d98afbc
4,810
py
Python
tests/test_user_add.py
ScilifelabDataCentre/Data-Delivery-System
52cbb6ccce03123546062d02ee1b13d2049b3581
[ "BSD-3-Clause" ]
1
2021-04-27T08:29:29.000Z
2021-04-27T08:29:29.000Z
tests/test_user_add.py
ScilifelabDataCentre/Data-Delivery-System
52cbb6ccce03123546062d02ee1b13d2049b3581
[ "BSD-3-Clause" ]
308
2020-06-02T13:24:11.000Z
2021-05-11T14:37:01.000Z
tests/test_user_add.py
ScilifelabDataCentre/Data-Delivery-System
52cbb6ccce03123546062d02ee1b13d2049b3581
[ "BSD-3-Clause" ]
null
null
null
import json from dds_web import db from dds_web.database import models import tests first_new_email = {"email": "first_test_email@mailtrap.io"} first_new_user = {**first_new_email, "role": "Researcher"} first_new_user_extra_args = {**first_new_user, "extra": "test"} first_new_user_invalid_role = {**first_new_email, "r...
35.109489
95
0.702287
c683082c992fe0d98fc14a72f31e8c5c10479091
1,055
py
Python
test/runtime/operators_test/clipped_relu_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
test/runtime/operators_test/clipped_relu_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
test/runtime/operators_test/clipped_relu_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
import numpy as np from test.util import generate_kernel_test_case, wrap_template from webdnn.graph.graph import Graph from webdnn.graph.operators.clipped_relu import ClippedRelu from webdnn.graph.order import OrderNHWC, OrderNCHW from webdnn.graph.variable import Variable @wrap_template def template(x_order=OrderNH...
24.534884
87
0.696682
186e39cc2e949bf2e726e3f99f5236068090b614
158
py
Python
apps/config.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
1
2021-12-27T10:03:30.000Z
2021-12-27T10:03:30.000Z
apps/config.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
apps/config.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class AppsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'apps' label = 'apps'
22.571429
56
0.721519
02c7f99d47cf898a6bfeda3ade11eb0b59e4f17b
724
py
Python
var/spack/repos/builtin/packages/py-docutils-stubs/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-docutils-stubs/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-docutils-stubs/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyDocutilsStubs(PythonPackage): """PEP 561 based Type information for docutils.""" ho...
36.2
96
0.720994
8f8ddb33e58046843c93082b5f6e42c084cf606c
1,286
py
Python
backpack/extensions/secondorder/mngd/batchnorm1d.py
maryamhgf/backpack
63d2717656df2e0f18b3b6ee50320e82ce7358b6
[ "MIT" ]
null
null
null
backpack/extensions/secondorder/mngd/batchnorm1d.py
maryamhgf/backpack
63d2717656df2e0f18b3b6ee50320e82ce7358b6
[ "MIT" ]
null
null
null
backpack/extensions/secondorder/mngd/batchnorm1d.py
maryamhgf/backpack
63d2717656df2e0f18b3b6ee50320e82ce7358b6
[ "MIT" ]
2
2021-06-11T14:15:28.000Z
2021-06-16T11:19:11.000Z
import backpack.utils.linear as LinUtils from backpack.core.derivatives.batchnorm1d import BatchNorm1dDerivatives from backpack.extensions.secondorder.mngd.mngd_base import MNGDBaseModule from torch import einsum import torch class MNGDBatchNorm1d(MNGDBaseModule): def __init__(self): super().__init__(deriv...
44.344828
115
0.700622
945958989888a2b615e7eed9a30f2ed819bd0681
3,191
py
Python
test_corpus.py
jakubkulhan/bayesian-spam-filter
640917b8f93173c9286402fccd5ccc40a4c048dc
[ "MIT", "Unlicense" ]
1
2015-12-19T13:26:57.000Z
2015-12-19T13:26:57.000Z
test_corpus.py
jakubkulhan/bayesian-spam-filter
640917b8f93173c9286402fccd5ccc40a4c048dc
[ "MIT", "Unlicense" ]
null
null
null
test_corpus.py
jakubkulhan/bayesian-spam-filter
640917b8f93173c9286402fccd5ccc40a4c048dc
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Test the Corpus class.""" import os import shutil import unittest from test_readClassificationFromFile import ( random_filename, random_string, FNAME_CHARS) from corpus import Corpus SPECIAL_FILENAME = '!special.txt' CORPUS_DIR = 'testing_c...
36.678161
97
0.642432
507739b347bc9d246161243a3ee5395fa04457f4
463
py
Python
configs/segformer/segformer_mit-b3_512x512_20k_Road.py
kkkkkaiai/mmsegmentation
f597e8404417c46ff87e636a87d41e0af95abfa4
[ "Apache-2.0" ]
null
null
null
configs/segformer/segformer_mit-b3_512x512_20k_Road.py
kkkkkaiai/mmsegmentation
f597e8404417c46ff87e636a87d41e0af95abfa4
[ "Apache-2.0" ]
null
null
null
configs/segformer/segformer_mit-b3_512x512_20k_Road.py
kkkkkaiai/mmsegmentation
f597e8404417c46ff87e636a87d41e0af95abfa4
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/segformer_mit-b0.py', '../_base_/datasets/road.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] norm_cfg = dict(type='BN', requires_grad=True) # model settings model = dict( # pretrained='models/road_v1.pth' backbone=dict( embed_dims=64,...
30.866667
88
0.665227
6ee371d2b5dacdb1f6111c74646e403fb645e729
6,073
py
Python
kube_scheduler/datadog_checks/kube_scheduler/config_models/defaults.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
kube_scheduler/datadog_checks/kube_scheduler/config_models/defaults.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
kube_scheduler/datadog_checks/kube_scheduler/config_models/defaults.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) # This file is autogenerated. # To change this file you should edit assets/configuration/spec.yaml and then run the following commands: # ddev -x validate config -s <INTEGRATION_NAME> # ddev -x va...
20.869416
105
0.783303
6dc3880a61d8d83b66cb032386032d9f5ac6705c
5,465
py
Python
experiments/first_attempts/models.py
lstrgar/experimental-rnns
c522ae373237811411f14212bceb97cda8ddcf36
[ "MIT" ]
null
null
null
experiments/first_attempts/models.py
lstrgar/experimental-rnns
c522ae373237811411f14212bceb97cda8ddcf36
[ "MIT" ]
null
null
null
experiments/first_attempts/models.py
lstrgar/experimental-rnns
c522ae373237811411f14212bceb97cda8ddcf36
[ "MIT" ]
null
null
null
import numpy as np https://github.com/cknd/pyESNimport torch import torch.nnT from torch.distributions import normal from torch.distributions import uniform import matplotlib.pyplot as plt ''' Naive reservoir model with 'n' neurons, 'p' fractional connectivity, initial weight distribution from Normal(0, sig). ''' cla...
28.170103
96
0.524245
6a62bf97d00887873913a55dda9e27c9617fdb7f
168
py
Python
lab_7/main_15.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
lab_7/main_15.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
lab_7/main_15.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
import random letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" numbers = "01234567890" symbols = "!@#$%^&*()?" pass_len = 8 password = random.sample()
21
64
0.744048
de1a8f0819c606e5b95f2adcc31c342eadfd1fc8
73,939
py
Python
fbgemm_gpu/fbgemm_gpu/split_table_batched_embeddings_ops.py
RenfeiChen-FB/FBGEMM
96e7cd84463db486f3945d50f399ac578d7443e1
[ "BSD-3-Clause" ]
null
null
null
fbgemm_gpu/fbgemm_gpu/split_table_batched_embeddings_ops.py
RenfeiChen-FB/FBGEMM
96e7cd84463db486f3945d50f399ac578d7443e1
[ "BSD-3-Clause" ]
null
null
null
fbgemm_gpu/fbgemm_gpu/split_table_batched_embeddings_ops.py
RenfeiChen-FB/FBGEMM
96e7cd84463db486f3945d50f399ac578d7443e1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # pyre-ignore-all-errors[56] # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import enum import logging from dataclasses import dataclass ...
37.589731
259
0.580925
9e1c35c7cd801823750aeb8595b547fb6d823174
4,404
py
Python
AdelaiDet/adet/modeling/blendmask/basis_module.py
km1562/AdelaiDet2
293cd6410631d36145f9ae4eb06a63520c66b92d
[ "Apache-2.0" ]
null
null
null
AdelaiDet/adet/modeling/blendmask/basis_module.py
km1562/AdelaiDet2
293cd6410631d36145f9ae4eb06a63520c66b92d
[ "Apache-2.0" ]
null
null
null
AdelaiDet/adet/modeling/blendmask/basis_module.py
km1562/AdelaiDet2
293cd6410631d36145f9ae4eb06a63520c66b92d
[ "Apache-2.0" ]
null
null
null
from typing import Dict from torch import nn from torch.nn import functional as F from detectron2.utils.registry import Registry from detectron2.layers import ShapeSpec from adet.layers import conv_with_kaiming_uniform BASIS_MODULE_REGISTRY = Registry("BASIS_MODULE") BASIS_MODULE_REGISTRY.__doc__ = """ Registry for...
41.942857
92
0.570618
6eb99c36725beb0bd21d85f5afa25b1f50af0ab5
2,582
py
Python
examples/ensemble/tree_embedding.py
synapticarbors/sk-dist
e5729e62fbdb7b8513be1c4fd0d463d8aec5b837
[ "Apache-2.0" ]
292
2019-08-29T20:31:05.000Z
2022-03-25T23:14:48.000Z
examples/ensemble/tree_embedding.py
synapticarbors/sk-dist
e5729e62fbdb7b8513be1c4fd0d463d8aec5b837
[ "Apache-2.0" ]
20
2019-09-05T08:39:05.000Z
2021-07-18T23:35:14.000Z
examples/ensemble/tree_embedding.py
synapticarbors/sk-dist
e5729e62fbdb7b8513be1c4fd0d463d8aec5b837
[ "Apache-2.0" ]
61
2019-09-02T21:40:03.000Z
2022-02-17T18:10:29.000Z
""" =============================================================== Encode circles data with tree embedding and compare classifiers =============================================================== Here we look at an example modelled of of scikit-learn's hashing feature transformation example: https://scikit-learn.org/s...
33.973684
88
0.730442
d4681dd2eec9abdac25889a83dff2ea68cf89fc5
2,655
py
Python
qiskit/providers/baseprovider.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,599
2018-07-10T10:59:12.000Z
2022-03-31T23:56:25.000Z
qiskit/providers/baseprovider.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
5,244
2018-07-10T06:20:13.000Z
2022-03-31T22:18:48.000Z
qiskit/providers/baseprovider.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,409
2018-07-10T02:16:12.000Z
2022-03-31T09:01:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
33.607595
90
0.644444
7848e0fbf17d1f2ea4a1a8d11b058af7fa2cd9d0
1,944
py
Python
tests/run/test_global_permission.py
dramich/rio
a9a39e498df52258096f4aeb265d0d5606ee4617
[ "Apache-2.0" ]
2
2019-10-14T18:47:23.000Z
2019-10-26T18:54:56.000Z
tests/run/test_global_permission.py
jjasghar/rio
b686eddc3a639b5920cf186f9cb887871d632140
[ "Apache-2.0" ]
null
null
null
tests/run/test_global_permission.py
jjasghar/rio
b686eddc3a639b5920cf186f9cb887871d632140
[ "Apache-2.0" ]
null
null
null
from random import randint import util def rio_permission_setup(stack, *rpermission): name = "tsrv" + str(randint(1000, 5000)) fullName = "%s/%s" % (stack, name) cmd = (f'rio run -n {fullName}') for p in rpermission: cmd += " --global-permission " + p cmd += " nginx" util.runwait(cm...
24
72
0.624486
5c94343b53ab2a00411bacd98965e2e5b71e1d5d
1,253
py
Python
Python/python-practice/visible_date/highs_lows.py
jiaoqiyuan/Tests
a3595b0e4b430d910f90e428d6b6b4465f67a059
[ "Apache-2.0" ]
null
null
null
Python/python-practice/visible_date/highs_lows.py
jiaoqiyuan/Tests
a3595b0e4b430d910f90e428d6b6b4465f67a059
[ "Apache-2.0" ]
null
null
null
Python/python-practice/visible_date/highs_lows.py
jiaoqiyuan/Tests
a3595b0e4b430d910f90e428d6b6b4465f67a059
[ "Apache-2.0" ]
null
null
null
import csv from datetime import datetime from matplotlib import pyplot as plt # Get dates, high, and low temperatures from file. filename = 'death_valley_2014.csv' with open(filename) as f: reader = csv.reader(f) header_row = next(reader) # print(header_row) # for index, column_header in enumerate(heade...
28.477273
66
0.640862
ea3e699a49973d70e9955f218df90476d137a7c2
229
py
Python
exercices/questao23.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
exercices/questao23.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
exercices/questao23.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
from sys import path with open(path[0] + "/lista-de-compras.txt", "r") as f: informations = f.readlines() lst = [i[:-1].split(":") for i in informations] print(sum([float(ind[1]) for ind in [i[1].split(" ") for i in lst]]))
32.714286
69
0.620087
c6c664bffa65a6db2b914b9fa42a6407ee3b639b
10,291
py
Python
heat/engine/resources/openstack/magnum/baymodel.py
grebennikov/heat1
6a11bd0b5984c8f880d1a24ed324620020032b5a
[ "Apache-2.0" ]
1
2015-12-18T21:46:55.000Z
2015-12-18T21:46:55.000Z
heat/engine/resources/openstack/magnum/baymodel.py
grebennikov/heat1
6a11bd0b5984c8f880d1a24ed324620020032b5a
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/openstack/magnum/baymodel.py
grebennikov/heat1
6a11bd0b5984c8f880d1a24ed324620020032b5a
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
39.129278
78
0.595569
83b8ea3d13842ca36c037e8b49ce57dcca05a1dc
8,718
py
Python
homeassistant/components/samsungtv/bridge.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
5
2020-09-17T21:47:23.000Z
2021-06-04T04:37:29.000Z
homeassistant/components/samsungtv/bridge.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/samsungtv/bridge.py
CrossEyeORG/homeassistant
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
1
2021-11-19T19:01:57.000Z
2021-11-19T19:01:57.000Z
"""samsungctl and samsungtvws bridge classes.""" from abc import ABC, abstractmethod from samsungctl import Remote from samsungctl.exceptions import AccessDenied, ConnectionClosed, UnhandledResponse from samsungtvws import SamsungTVWS from samsungtvws.exceptions import ConnectionFailure from websocket import WebSocket...
32.898113
110
0.560106
f78383cfcf49ed3f683c774e8b3a2cd30d034957
54
py
Python
Medium/testimp2.py
Nahalius/PythonBasics
f59f167cb7c3edf962cb381ee7d66394da500a11
[ "MIT" ]
null
null
null
Medium/testimp2.py
Nahalius/PythonBasics
f59f167cb7c3edf962cb381ee7d66394da500a11
[ "MIT" ]
null
null
null
Medium/testimp2.py
Nahalius/PythonBasics
f59f167cb7c3edf962cb381ee7d66394da500a11
[ "MIT" ]
null
null
null
import lib.inportfunc print(lib.inportfunc.cube(31))
13.5
30
0.796296
1cd6050bf2dd11e2eaeefbc3187e007d3c3e8f98
17,025
py
Python
pyramid/tests/test_config/test_predicates.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
pyramid/tests/test_config/test_predicates.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
pyramid/tests/test_config/test_predicates.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
import unittest from pyramid import testing from pyramid.compat import text_ class TestXHRPredicate(unittest.TestCase): def _makeOne(self, val): from pyramid.config.predicates import XHRPredicate return XHRPredicate(val, None) def test___call___true(self): inst = self._makeOne(Tr...
33.058252
80
0.610162
a77ce546fbe33b5bb39d46e7fd0198ef2ded1d6f
9,559
py
Python
toontown/coghq/DistributedMaze.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/coghq/DistributedMaze.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/coghq/DistributedMaze.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from otp.level.BasicEntities import DistributedNodePathEntity from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from toontown.toonbase.ToontownGlobals import * import random from direct.directnotify import DirectNotifyGlobal from direct.distributed.ClockDelta import globalClockDelta from . ...
40.504237
227
0.662726
93adc288c228687845d5bd9e2d214c966d41e0c6
3,934
py
Python
BatchDatsetReader.py
sunyunan1999/FCN
3e4ea6eef5d26e3540c6ab273725eeb5b9aad20f
[ "MIT" ]
null
null
null
BatchDatsetReader.py
sunyunan1999/FCN
3e4ea6eef5d26e3540c6ab273725eeb5b9aad20f
[ "MIT" ]
null
null
null
BatchDatsetReader.py
sunyunan1999/FCN
3e4ea6eef5d26e3540c6ab273725eeb5b9aad20f
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np import scipy.misc as misc from PIL import Image # 批量读取数据集的类 class BatchDatset: files = [] images = [] annotations = [] image_options = {} batch_offset = 0 epochs_completed = 0 def __init__(self, records_list, image_options={}): """ Intia...
38.950495
115
0.629385
712254dfa37e97be5c4bc4ba488d782627ce9348
9,013
py
Python
QWeb/internal/decorators.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
1
2021-11-08T09:26:44.000Z
2021-11-08T09:26:44.000Z
QWeb/internal/decorators.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
null
null
null
QWeb/internal/decorators.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------- # Copyright © 2014 - Qentinel Group. # # 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/LIC...
45.291457
100
0.594031
589bd2e552ec936b88b07f61553459fc8092795a
5,080
py
Python
src/app/aws/sqs.py
glucn/tofino
64c603b2356f22eecbf8fd592f3656a613646c53
[ "MIT" ]
1
2021-01-04T10:07:41.000Z
2021-01-04T10:07:41.000Z
src/app/aws/sqs.py
glucn/tofino
64c603b2356f22eecbf8fd592f3656a613646c53
[ "MIT" ]
231
2020-11-05T06:37:11.000Z
2022-03-28T03:02:49.000Z
src/app/aws/sqs.py
glucn/tofino
64c603b2356f22eecbf8fd592f3656a613646c53
[ "MIT" ]
null
null
null
import hashlib import logging from typing import List import boto3 from botocore.exceptions import ClientError import config class Message: """ SQS Message """ message_id: str receipt_handle: str body: str _representation: str def __init__(self, **kwargs): if 'ReceiptHandle...
32.564103
115
0.600591