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
0cd73c42319f872a1770299941dcf449f784fa3d
4,067
py
Python
tests/test_tutorial/test_response_model/test_tutorial004.py
parampavar/fastapi
4e77737a3f7bf2608132ea170e9ff013b5af6732
[ "MIT" ]
2
2020-07-17T21:33:28.000Z
2020-07-17T21:33:38.000Z
tests/test_tutorial/test_response_model/test_tutorial004.py
parampavar/fastapi
4e77737a3f7bf2608132ea170e9ff013b5af6732
[ "MIT" ]
1
2021-07-24T15:25:13.000Z
2021-07-24T15:25:13.000Z
tests/test_tutorial/test_response_model/test_tutorial004.py
parampavar/fastapi
4e77737a3f7bf2608132ea170e9ff013b5af6732
[ "MIT" ]
1
2019-03-29T06:15:07.000Z
2019-03-29T06:15:07.000Z
import pytest from fastapi.testclient import TestClient from response_model.tutorial004 import app client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "get": { "responses": {...
32.277778
87
0.339562
61030b0217e5004d8de7019dbdf2400d19e5d4a5
679
py
Python
django_docs/makingqueries/migrations/0004_themeblog.py
djangojeng-e/django_tutorial
78a5f8e17253a32f43079b2c17ffe4cecbd3c3f0
[ "MIT" ]
null
null
null
django_docs/makingqueries/migrations/0004_themeblog.py
djangojeng-e/django_tutorial
78a5f8e17253a32f43079b2c17ffe4cecbd3c3f0
[ "MIT" ]
9
2021-03-19T10:01:27.000Z
2022-01-13T03:05:42.000Z
django_docs/makingqueries/migrations/0004_themeblog.py
djangojeng-e/django_tutorial
78a5f8e17253a32f43079b2c17ffe4cecbd3c3f0
[ "MIT" ]
1
2020-05-01T12:55:48.000Z
2020-05-01T12:55:48.000Z
# Generated by Django 3.0.5 on 2020-04-26 05:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('makingqueries', '0003_auto_20200424_0639'), ] operations = [ migrations.CreateModel( name='Them...
29.521739
193
0.627393
468c861d3b0387781f5434e79cf3b88d0393ed13
2,374
py
Python
1249-minimum-remove-to-make-valid-parentheses/1249-minimum-remove-to-make-valid-parentheses.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
1249-minimum-remove-to-make-valid-parentheses/1249-minimum-remove-to-make-valid-parentheses.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
1249-minimum-remove-to-make-valid-parentheses/1249-minimum-remove-to-make-valid-parentheses.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
class Solution: def minRemoveToMakeValid1(self, s: str) -> str: """ 10010123 "())()(((" 0101000 "()()(((" "()()" """ open_count, close_count = 0, 0 for char in s: if char == "(": open_count += 1 ...
32.520548
83
0.437658
b4d3ef9c9600404f5e4d0dbe51200da605802801
16,802
py
Python
src/ttkcreator/__main__.py
dmalves/ttkbootstrap
04d441c7a0cfbe6a2debea80c41994201dfc5562
[ "MIT" ]
406
2021-04-04T10:58:14.000Z
2022-03-29T22:24:36.000Z
src/ttkcreator/__main__.py
dmalves/ttkbootstrap
04d441c7a0cfbe6a2debea80c41994201dfc5562
[ "MIT" ]
149
2021-03-26T12:45:41.000Z
2022-03-28T20:27:29.000Z
src/ttkcreator/__main__.py
dmalves/ttkbootstrap
04d441c7a0cfbe6a2debea80c41994201dfc5562
[ "MIT" ]
52
2021-04-08T14:50:28.000Z
2022-03-27T15:23:41.000Z
import shutil import json from uuid import uuid4 from pathlib import Path import ttkbootstrap as ttk from tkinter import Frame from tkinter.colorchooser import askcolor from tkinter.filedialog import askopenfilename, asksaveasfilename from ttkbootstrap.themes import standard, user from ttkbootstrap.style import ThemeDe...
35.522199
89
0.595584
994d7723842ec86deec48fdbad06ca075a9f39f7
4,386
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/models/enum_class.py
doc22940/openapi-generator
50d21cb0d161e7917bb410a7db78811635f0837b
[ "Apache-2.0" ]
1
2020-09-16T22:26:09.000Z
2020-09-16T22:26:09.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/models/enum_class.py
doc22940/openapi-generator
50d21cb0d161e7917bb410a7db78811635f0837b
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/models/enum_class.py
doc22940/openapi-generator
50d21cb0d161e7917bb410a7db78811635f0837b
[ "Apache-2.0" ]
1
2020-10-06T15:41:06.000Z
2020-10-06T15:41:06.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
32.977444
174
0.592795
c35cd344a5109145ffeb4278d8b659fb6812d261
1,351
py
Python
DeepLearning/DLStart/common/gradient.py
981935539/Ace
eabeb30dc330fb3fae1d916d9a7b180432571a43
[ "MIT" ]
null
null
null
DeepLearning/DLStart/common/gradient.py
981935539/Ace
eabeb30dc330fb3fae1d916d9a7b180432571a43
[ "MIT" ]
null
null
null
DeepLearning/DLStart/common/gradient.py
981935539/Ace
eabeb30dc330fb3fae1d916d9a7b180432571a43
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np def _numerical_gradient_1d(f, x): h = 1e-4 # 0.0001 grad = np.zeros_like(x) for idx in range(x.size): tmp_val = x[idx] x[idx] = float(tmp_val) + h fxh1 = f(x) # f(x+h) # 可以随便传个值,这个值是不起作用的,这是更直观 x[idx] = tmp_val - h f...
24.125
68
0.49889
a066bdf821aef8443a5b23dc79f85e47b4bdcf00
61,679
py
Python
test/unit/common/middleware/test_recon.py
Priyanka-Askani/swift
1ab691f63778008015b34ce004992844acee9968
[ "Apache-2.0" ]
1
2019-05-25T10:55:58.000Z
2019-05-25T10:55:58.000Z
test/unit/common/middleware/test_recon.py
Priyanka-Askani/swift
1ab691f63778008015b34ce004992844acee9968
[ "Apache-2.0" ]
12
2015-06-23T23:20:17.000Z
2016-01-27T00:37:12.000Z
test/unit/common/middleware/test_recon.py
Priyanka-Askani/swift
1ab691f63778008015b34ce004992844acee9968
[ "Apache-2.0" ]
5
2015-06-04T19:00:11.000Z
2015-12-16T21:04:33.000Z
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
43.806108
79
0.554824
09b4b0b7e23dfe61a50c81a31f7c4cc85a60b7b2
3,992
py
Python
cvxpy/transforms/scalarize.py
jasondark/cvxpy
56aaa01b0e9d98ae5a91a923708129a7b37a6f18
[ "ECL-2.0", "Apache-2.0" ]
7
2015-06-03T01:33:46.000Z
2021-11-15T01:48:49.000Z
cvxpy/transforms/scalarize.py
Toby-Gao/cvxpy
bd6f5142effa8cf883d1a0d7fd46c0d906b2fb93
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-22T07:46:38.000Z
2020-10-22T07:46:38.000Z
cvxpy/transforms/scalarize.py
Toby-Gao/cvxpy
bd6f5142effa8cf883d1a0d7fd46c0d906b2fb93
[ "ECL-2.0", "Apache-2.0" ]
2
2020-10-22T01:35:58.000Z
2022-01-19T10:48:51.000Z
""" Copyright 2017 Steven Diamond 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...
32.455285
91
0.676102
596286ee8a29779dfa0686c99a5bf182c7ca42df
2,750
py
Python
tests/test_data.py
ElMehdiBen/match
7fc74d3635c243e9c51e2c0c8f7761adb22ff878
[ "MIT" ]
11
2017-10-18T19:03:54.000Z
2021-06-23T03:32:00.000Z
tests/test_data.py
ElMehdiBen/match
7fc74d3635c243e9c51e2c0c8f7761adb22ff878
[ "MIT" ]
null
null
null
tests/test_data.py
ElMehdiBen/match
7fc74d3635c243e9c51e2c0c8f7761adb22ff878
[ "MIT" ]
4
2019-04-26T15:30:44.000Z
2022-01-29T17:19:08.000Z
datatype_instances = { 'phonenumber': { 'valid': [ '6083456789', '(608)3456789', '(608) 3456789', '(608) 345-6789', '608-345-6789', '608.345.6789', '+1608.345.6789', '+1 608.345.6789', '+1 (608) 345-...
26.190476
82
0.388727
670c8275a3fe92731a30f9c108855aab37e41ba4
1,319
py
Python
pyenv/lib/python3.6/site-packages/sass_processor/apps.py
ronald-rgr/ai-chatbot-smartguide
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
[ "Apache-2.0" ]
null
null
null
pyenv/lib/python3.6/site-packages/sass_processor/apps.py
ronald-rgr/ai-chatbot-smartguide
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
[ "Apache-2.0" ]
3
2020-03-23T18:01:51.000Z
2021-03-19T23:15:15.000Z
pyenv/lib/python3.6/site-packages/sass_processor/apps.py
ronald-rgr/ai-chatbot-smartguide
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re import os from django.apps import apps, AppConfig from django.conf import settings from django.core.files.storage import get_storage_class APPS_INCLUDE_DIRS = [] class SassProcessorConfig(AppConfig): name = 'sass_processor' verbose_na...
36.638889
106
0.673995
aa3b2ab131134d716e8ae48821afb98c48a3882c
2,285
py
Python
gaphor/services/tests/test_copyservice.py
albanobattistella/gaphor
5fc6b0ff39ba6dbbb73cb9b111f32d1eda790e14
[ "Apache-2.0" ]
1
2020-11-27T12:39:15.000Z
2020-11-27T12:39:15.000Z
gaphor/services/tests/test_copyservice.py
albanobattistella/gaphor
5fc6b0ff39ba6dbbb73cb9b111f32d1eda790e14
[ "Apache-2.0" ]
null
null
null
gaphor/services/tests/test_copyservice.py
albanobattistella/gaphor
5fc6b0ff39ba6dbbb73cb9b111f32d1eda790e14
[ "Apache-2.0" ]
3
2020-01-23T14:13:59.000Z
2020-02-18T18:21:47.000Z
from gaphor import UML from gaphor.diagram.classes import AssociationItem, ClassItem from gaphor.diagram.general import CommentItem from gaphor.services.copyservice import CopyService from gaphor.storage.verify import orphan_references from gaphor.tests.testcase import TestCase class CopyServiceTestCase(TestCase): ...
28.5625
87
0.64814
dc4dcee90cd4ac7ad9913f1788856fb04217a8f0
14,583
py
Python
open_spiel/python/games/dynamic_routing_utils.py
dat-boris/open_spiel
48d14f20793493722f7c1f59fd140ad21022320b
[ "Apache-2.0" ]
null
null
null
open_spiel/python/games/dynamic_routing_utils.py
dat-boris/open_spiel
48d14f20793493722f7c1f59fd140ad21022320b
[ "Apache-2.0" ]
1
2021-10-05T16:07:01.000Z
2021-10-05T16:07:01.000Z
open_spiel/python/games/dynamic_routing_utils.py
dat-boris/open_spiel
48d14f20793493722f7c1f59fd140ad21022320b
[ "Apache-2.0" ]
1
2022-02-22T20:05:37.000Z
2022-02-22T20:05:37.000Z
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
40.396122
80
0.706576
eb6c373c966cdb16b70402d656f576a3bab33367
714
py
Python
pystratum_pgsql/wrapper/PgSqlFunctionsWrapper.py
DatabaseStratum/py-stratum-pgsql
03489fda257bc44bf5ed03a9a17b69eb8b302249
[ "MIT" ]
null
null
null
pystratum_pgsql/wrapper/PgSqlFunctionsWrapper.py
DatabaseStratum/py-stratum-pgsql
03489fda257bc44bf5ed03a9a17b69eb8b302249
[ "MIT" ]
null
null
null
pystratum_pgsql/wrapper/PgSqlFunctionsWrapper.py
DatabaseStratum/py-stratum-pgsql
03489fda257bc44bf5ed03a9a17b69eb8b302249
[ "MIT" ]
null
null
null
from typing import Any, Dict from pystratum_common.wrapper.FunctionsWrapper import FunctionsWrapper from pystratum_pgsql.wrapper.PgSqlWrapper import PgSqlWrapper class PgSqlFunctionsWrapper(PgSqlWrapper, FunctionsWrapper): """ Wrapper method generator for stored functions. """ # -------------------...
39.666667
120
0.512605
482d2af43d6b47b351ae041e7470e1967db54008
5,652
py
Python
chatplug-client/client.py
ChatPlug/client-py
02784ecca974426fac1dc4f7700a9def3fa41510
[ "MIT" ]
null
null
null
chatplug-client/client.py
ChatPlug/client-py
02784ecca974426fac1dc4f7700a9def3fa41510
[ "MIT" ]
null
null
null
chatplug-client/client.py
ChatPlug/client-py
02784ecca974426fac1dc4f7700a9def3fa41510
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import string import random import json import aiohttp from abc import ABC, abstractmethod import asyncio import websockets sendMessageMutation = """ mutation sendMessage($body: String!, $originId: String!, $originThreadId: String!, $username: String!, $authorOriginId: String!, $authorAva...
30.224599
196
0.544232
639d8fedeb50a6b4d196c79672c3d25e6fa675d3
2,626
py
Python
tests/primary_tests.py
cptq/ds-spectra
ab8c6598aa0bad886cb1bbd98e874eafe37acca4
[ "MIT" ]
1
2019-12-06T02:58:28.000Z
2019-12-06T02:58:28.000Z
tests/primary_tests.py
cptq/ds-spectra
ab8c6598aa0bad886cb1bbd98e874eafe37acca4
[ "MIT" ]
null
null
null
tests/primary_tests.py
cptq/ds-spectra
ab8c6598aa0bad886cb1bbd98e874eafe37acca4
[ "MIT" ]
1
2021-07-07T14:04:36.000Z
2021-07-07T14:04:36.000Z
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src/'))) from permhull import * from evenpermhull import * def test_perms(): from math import factorial # tests that generated groups are correct size for n in range(2,7): assert len(list(symmetric_g...
37.514286
87
0.615004
9da6f0ff6500b3d2138e54696b1d8a89cb6ba239
886
py
Python
mod/distributorapi/distributor/version.py
onap/dcaegen2-platform
9e930892d28fc4a3378fad8f942c9f91cffe4698
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
mod/distributorapi/distributor/version.py
onap/dcaegen2-platform
9e930892d28fc4a3378fad8f942c9f91cffe4698
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
mod/distributorapi/distributor/version.py
onap/dcaegen2-platform
9e930892d28fc4a3378fad8f942c9f91cffe4698
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-15T15:02:20.000Z
2021-10-15T15:02:20.000Z
# ============LICENSE_START======================================================= # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use ...
52.117647
82
0.573363
1f3f89e9f9c937857f8abf271d6378c919ecd292
1,453
py
Python
scripts/utils/utils.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
scripts/utils/utils.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
scripts/utils/utils.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import sys # output_file_handler = logging.handlers.RotatingFileHandler(filename='logs/logs.logger', # mode='a') # stdout_handler = logging.StreamHandler(sys.stdout) # # logging.basicConfig( # #format="%(asct...
24.627119
89
0.573297
2df9bc46ef4d2a298d3ea4dcd570b093d152c820
665
py
Python
twisted/test/test_iosim.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
twisted/test/test_iosim.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
1
2022-03-04T17:40:22.000Z
2022-03-04T17:40:22.000Z
twisted/test/test_iosim.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.test.iosim}. """ from twisted.test.iosim import FakeTransport from twisted.trial.unittest import TestCase class FakeTransportTests(TestCase): """ Tests for L{FakeTransport} """ def test_connectionSerial(s...
25.576923
79
0.664662
1b9300ccfa4ad4e18eac03c7082b9bee982d14b3
49
py
Python
mwoauth/defaults.py
minrk/python-mwoauth
24d0dbb094e144ec3ddeed8adc54011ae6582c6c
[ "MIT" ]
7
2015-10-18T14:18:03.000Z
2021-06-26T00:14:58.000Z
mwoauth/defaults.py
minrk/python-mwoauth
24d0dbb094e144ec3ddeed8adc54011ae6582c6c
[ "MIT" ]
23
2016-05-06T22:15:57.000Z
2021-10-17T19:38:54.000Z
mwoauth/defaults.py
minrk/python-mwoauth
24d0dbb094e144ec3ddeed8adc54011ae6582c6c
[ "MIT" ]
10
2016-05-06T23:45:12.000Z
2020-07-12T11:11:04.000Z
USER_AGENT = "python-mwoauth default user agent"
24.5
48
0.795918
961a02a76c467986b244068dabf237205b812742
6,991
py
Python
generator/extract.py
Kerry-zzx/Graph-Transformer
f3b3ad54da12688326f6bf1422db122a960127a4
[ "MIT" ]
2
2020-08-30T08:28:00.000Z
2020-09-07T22:39:19.000Z
generator/extract.py
Kerry-zzx/Graph-Transformer
f3b3ad54da12688326f6bf1422db122a960127a4
[ "MIT" ]
null
null
null
generator/extract.py
Kerry-zzx/Graph-Transformer
f3b3ad54da12688326f6bf1422db122a960127a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from smatch import AMR from AMRGraph import AMRGraph, number_regexp from collections import Counter import json, re from AMRGraph import _is_abs_form from multiprocessing import Pool class AMRIO: def __init__(self): pass @staticmethod def read(file_path): ...
37.586022
138
0.59877
7d00eed51b18c0eb30ef56fa3a3167a0136c43fc
241
py
Python
indic-nlp-library/Indicization.py
gcdeshpande/IndicNLP
55d0062e28c2f42b75a18706907215f6232ef838
[ "CC0-1.0" ]
12
2020-12-18T21:22:30.000Z
2021-12-08T18:22:53.000Z
indic-nlp-library/Indicization.py
gcdeshpande/IndicNLP
55d0062e28c2f42b75a18706907215f6232ef838
[ "CC0-1.0" ]
null
null
null
indic-nlp-library/Indicization.py
gcdeshpande/IndicNLP
55d0062e28c2f42b75a18706907215f6232ef838
[ "CC0-1.0" ]
11
2020-12-18T18:39:15.000Z
2021-09-19T06:01:14.000Z
from indicnlp.transliterate.unicode_transliterate import ItransTransliterator input_text='pAlakkAda' # input_text='pitL^In' lang='ml' x=ItransTransliterator.from_itrans(input_text,lang) print(x) for y in x: print('{:x}'.format(ord(y)))
24.1
77
0.780083
83a44949854994a942117a5d3cdf36ae5eaf5627
156
py
Python
nifti_gridview/ngv_model/__init__.py
alabamagan/NIfTI-gridview
79d6501f78374555b85d52248b380241db53d3ab
[ "MIT" ]
2
2020-11-26T06:49:13.000Z
2020-11-26T15:40:20.000Z
nifti_gridview/ngv_model/__init__.py
alabamagan/NIfTI-gridview
79d6501f78374555b85d52248b380241db53d3ab
[ "MIT" ]
null
null
null
nifti_gridview/ngv_model/__init__.py
alabamagan/NIfTI-gridview
79d6501f78374555b85d52248b380241db53d3ab
[ "MIT" ]
null
null
null
from .draw_grid import * from .draw_grid_wrapper import * from .ngv_logger import * __all__ = ['draw_grid', 'draw_grid_wrapper', 'colormaps', 'NGV_Logger']
31.2
71
0.75641
8556695ee39c856bb770e7e2a0a5e6e7d3f5b73a
153
py
Python
Code/Models/Options/RunSOEonly.py
MridulS/cAndCwithStickyE
ecbb63f5733d315f9bb7a82acb1048d0a0beed8d
[ "Apache-2.0" ]
null
null
null
Code/Models/Options/RunSOEonly.py
MridulS/cAndCwithStickyE
ecbb63f5733d315f9bb7a82acb1048d0a0beed8d
[ "Apache-2.0" ]
null
null
null
Code/Models/Options/RunSOEonly.py
MridulS/cAndCwithStickyE
ecbb63f5733d315f9bb7a82acb1048d0a0beed8d
[ "Apache-2.0" ]
1
2019-08-05T07:51:31.000Z
2019-08-05T07:51:31.000Z
''' This file sets the model options to only run the SOE model. ''' # Choose which models to do work for do_SOE = True do_DSGE = False do_RA = False
17
59
0.699346
a7a97096557eba41f09175b47e1f442d48799f8b
3,799
py
Python
stubs/rest_handler_nodb_template.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
3
2019-09-29T07:05:00.000Z
2019-11-13T06:50:33.000Z
stubs/rest_handler_nodb_template.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
2
2019-09-28T21:10:13.000Z
2019-09-28T21:13:20.000Z
stubs/rest_handler_nodb_template.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
null
null
null
from {{appname}}.handlers.powhandler import PowHandler from {{appname}}.config import myapp from {{appname}}.application import app import tornado.web # sample data data = [ {"1" : "one", "name" : "name_1" }, {"2" : "two", "name" : "name_2"}, {"3" : "three", "name" : "name_3"}, {"4" : "four", "name" : ...
41.747253
149
0.56936
53dda0007ac8ced129bfc36696a38d33eab9b4d8
17,494
py
Python
Fumagalli_Motta_Tarantino_2020/tests/Test_AdditionalModels.py
manuelbieri/Fumagalli_2020
d3150b075f9c92b028c2aff2bcc2498b77c78877
[ "MIT" ]
null
null
null
Fumagalli_Motta_Tarantino_2020/tests/Test_AdditionalModels.py
manuelbieri/Fumagalli_2020
d3150b075f9c92b028c2aff2bcc2498b77c78877
[ "MIT" ]
null
null
null
Fumagalli_Motta_Tarantino_2020/tests/Test_AdditionalModels.py
manuelbieri/Fumagalli_2020
d3150b075f9c92b028c2aff2bcc2498b77c78877
[ "MIT" ]
null
null
null
import Fumagalli_Motta_Tarantino_2020.tests.Test_Models as Test import Fumagalli_Motta_Tarantino_2020 as FMT20 class TestMircoFoundationModel(Test.TestOptimalMergerPolicyModel): def setUp(self) -> None: self.calculate_properties_profits_consumer_surplus() def setupModel(self, **kwargs) -> None: ...
42.877451
86
0.688579
ca4f97b3a2d8fb21260341a9fa2e4d944918ff89
46,939
py
Python
shakelib/multigmpe.py
mhearne-usgs/shakemap
69f81ad831f345735ad36d4993fe12e1b9a5d990
[ "CC0-1.0" ]
null
null
null
shakelib/multigmpe.py
mhearne-usgs/shakemap
69f81ad831f345735ad36d4993fe12e1b9a5d990
[ "CC0-1.0" ]
null
null
null
shakelib/multigmpe.py
mhearne-usgs/shakemap
69f81ad831f345735ad36d4993fe12e1b9a5d990
[ "CC0-1.0" ]
2
2016-07-14T21:48:43.000Z
2018-03-01T19:10:23.000Z
#!/usr/bin/env python import copy from importlib import import_module import logging import numpy as np from openquake.hazardlib.gsim.base import GMPE from openquake.hazardlib.gsim.boore_2014 import BooreEtAl2014 from openquake.hazardlib.gsim.campbell_bozorgnia_2014 import ( CampbellBozorgnia2014) from openquake...
43.381701
177
0.512772
cc85897df9b4dc83905feac43c000bb197ad7880
30,170
py
Python
pybamm/expression_tree/binary_operators.py
gyouhoc/PyBaMM
6852e0e518157e6802ce83a2549562e7d0ed4b9f
[ "BSD-3-Clause" ]
null
null
null
pybamm/expression_tree/binary_operators.py
gyouhoc/PyBaMM
6852e0e518157e6802ce83a2549562e7d0ed4b9f
[ "BSD-3-Clause" ]
null
null
null
pybamm/expression_tree/binary_operators.py
gyouhoc/PyBaMM
6852e0e518157e6802ce83a2549562e7d0ed4b9f
[ "BSD-3-Clause" ]
null
null
null
# # Binary operator classes # import pybamm import numpy as np import numbers from scipy.sparse import issparse, csr_matrix def is_scalar_zero(expr): """ Utility function to test if an expression evaluates to a constant scalar zero """ if expr.is_constant(): result = expr.evaluate_ignoring_er...
36.262019
88
0.619191
55b8e504c8c767b8e745972852b1dd6ae7400e97
64
py
Python
snippets/python/gui/fuzzy_filter.py
c6401/Snippets
a88d97005658eeda99f1a2766e3d069a64e142cb
[ "MIT" ]
null
null
null
snippets/python/gui/fuzzy_filter.py
c6401/Snippets
a88d97005658eeda99f1a2766e3d069a64e142cb
[ "MIT" ]
null
null
null
snippets/python/gui/fuzzy_filter.py
c6401/Snippets
a88d97005658eeda99f1a2766e3d069a64e142cb
[ "MIT" ]
null
null
null
'rofi -dmenu -filter "???" << EOF\n' + '\n'.join(opts)+ '\nEOF'
32
63
0.5
63972d724d98d5b19632f5f775282dfc2b9f4f47
6,762
py
Python
subcmds/status.py
phamvandai/git-repo
d92076d930af11bb9a3025a6b2f12ca139c0436f
[ "Apache-2.0" ]
22
2017-05-02T07:48:13.000Z
2021-12-23T10:22:23.000Z
subcmds/status.py
phamvandai/git-repo
d92076d930af11bb9a3025a6b2f12ca139c0436f
[ "Apache-2.0" ]
null
null
null
subcmds/status.py
phamvandai/git-repo
d92076d930af11bb9a3025a6b2f12ca139c0436f
[ "Apache-2.0" ]
18
2017-07-07T06:31:44.000Z
2021-12-06T08:11:17.000Z
# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # # 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 re...
34.151515
86
0.641674
ae2d3228d336c0c73103f25fd269a5a528c159ad
1,249
py
Python
ShockGraphAPI/serverProd.py
DEKHTIARJonathan/ShapeLearnerAPI
6b8824da28cc5f481b550c8c7912c86097e20536
[ "MIT" ]
null
null
null
ShockGraphAPI/serverProd.py
DEKHTIARJonathan/ShapeLearnerAPI
6b8824da28cc5f481b550c8c7912c86097e20536
[ "MIT" ]
null
null
null
ShockGraphAPI/serverProd.py
DEKHTIARJonathan/ShapeLearnerAPI
6b8824da28cc5f481b550c8c7912c86097e20536
[ "MIT" ]
null
null
null
################################ Import Libraries ################################ import os.path import sys sys.path.append('../Config/') dllsPath = os.path.dirname(os.path.realpath(__file__))+'\dlls' os.environ['PATH'] = dllsPath + ';' + os.environ['PATH'] from loadConf import loadDBConf, loadAPIConf import api ##...
49.96
198
0.52522
5fea06c0c727b839cdd1b66d6a546c679acb53db
2,501
py
Python
symposion/teams/migrations/0001_initial.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
154
2015-01-17T02:29:24.000Z
2022-03-20T20:37:24.000Z
symposion/teams/migrations/0001_initial.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
316
2015-01-10T04:01:50.000Z
2020-09-30T20:18:08.000Z
symposion/teams/migrations/0001_initial.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
89
2015-01-10T05:25:21.000Z
2022-02-27T03:28:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('auth', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
41
227
0.577769
2111c25f0ebf19cf926c91b790bec6180c2a916a
8,628
py
Python
Dining-Concierge/DataProcessing/5_get_yelp_restaurant.py
MikeYan01/Serverless-Apps
22c353997ddba66f3e574f1f35f14560521fd62e
[ "Apache-2.0" ]
null
null
null
Dining-Concierge/DataProcessing/5_get_yelp_restaurant.py
MikeYan01/Serverless-Apps
22c353997ddba66f3e574f1f35f14560521fd62e
[ "Apache-2.0" ]
null
null
null
Dining-Concierge/DataProcessing/5_get_yelp_restaurant.py
MikeYan01/Serverless-Apps
22c353997ddba66f3e574f1f35f14560521fd62e
[ "Apache-2.0" ]
null
null
null
import requests import csv import time import boto3 import pandas as pd import os from datetime import datetime from decimal import Decimal # constants # # AWS config AWS_DB_REGION = 'us-east-1' AWS_TABLE_NAME = 'Yelp_Restaurants' AWS_PRIMARY_KEY = 'RestaurantID' # local csv config CSV_FILE = 'Yelp_Restaurants.csv' C...
38.008811
123
0.562007
07e656fb5d18cd346bc7f3c4ba19c4e09e871f3e
10,478
py
Python
scripts/ur5_teleop.py
sdsonawani/irl_robots
f393fd4ad37e3016062b9f719407d2b56b2159b6
[ "MIT" ]
null
null
null
scripts/ur5_teleop.py
sdsonawani/irl_robots
f393fd4ad37e3016062b9f719407d2b56b2159b6
[ "MIT" ]
null
null
null
scripts/ur5_teleop.py
sdsonawani/irl_robots
f393fd4ad37e3016062b9f719407d2b56b2159b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import numpy as np import rospy import subprocess import sys import time from irl_robots.msg import ur5Control from irl_robots.msg import ur5Joints from irl_robots.msg import ur5Tool from sensor_msgs.msg import Joy import kdl_parser_py.urdf import PyKDL as kdl # ***** NOTE ****...
42.942623
158
0.688681
d3ee9a0a6fab02dfa5dc3a34b5192f44dbfe114a
2,725
py
Python
app/views.py
HannesHolst1/pydoku
628abfa35e230007c9b14e550096b47ec489e0fe
[ "MIT" ]
null
null
null
app/views.py
HannesHolst1/pydoku
628abfa35e230007c9b14e550096b47ec489e0fe
[ "MIT" ]
null
null
null
app/views.py
HannesHolst1/pydoku
628abfa35e230007c9b14e550096b47ec489e0fe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # Flask modules # from os import replace from flask import render_template, request, send_file, redirect, session from flask.helpers import url_for from jinja2 import TemplateNotFound from flask_session import Session # App modules from app import app # Backend from backend import main i...
29.945055
130
0.702018
a7b9348a109378aeb03adba98354313b13c2b684
246
py
Python
run.py
alcinos/auto_yolo
78727596f937b38d4de47dd9f0a7cc8c6104323f
[ "MIT" ]
54
2018-12-10T21:08:42.000Z
2022-02-18T02:44:19.000Z
run.py
alcinos/auto_yolo
78727596f937b38d4de47dd9f0a7cc8c6104323f
[ "MIT" ]
8
2019-04-02T10:31:13.000Z
2022-03-31T13:44:25.000Z
run.py
alcinos/auto_yolo
78727596f937b38d4de47dd9f0a7cc8c6104323f
[ "MIT" ]
16
2019-04-26T11:45:08.000Z
2022-02-09T07:59:25.000Z
from dps import cfg from dps.utils import Config from auto_yolo.envs import run_experiment if __name__ == "__main__": _config = Config() with _config: cfg.update_from_command_line() run_experiment("local_run", _config, "")
20.5
44
0.715447
fd63dc6c7379cac0b70ca439f69729c0ed1181e6
13,954
py
Python
contrib/devtools/github-merge.py
paycheckcash/paycheckcash
383a1e1c42264f9c1e298867c5fbe5e795206e00
[ "MIT" ]
1
2019-05-18T19:32:50.000Z
2019-05-18T19:32:50.000Z
contrib/devtools/github-merge.py
paycheckcash/paycheckcash
383a1e1c42264f9c1e298867c5fbe5e795206e00
[ "MIT" ]
null
null
null
contrib/devtools/github-merge.py
paycheckcash/paycheckcash
383a1e1c42264f9c1e298867c5fbe5e795206e00
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2017 PaycheckCash Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # This script will locally construct a merge commit for a pull request on a # github repository, inspect...
42.03012
159
0.618532
8ea2473f15846fb01b592fd96ea7cd59517451f6
16,286
py
Python
unused/model_2.py
jackyjsy/SCGAN
c2b5db470cdeab608073f51fd9e8053402cc5d8a
[ "MIT" ]
5
2022-01-08T02:28:04.000Z
2022-03-09T04:55:12.000Z
unused/model_2.py
jackyjsy/SCGAN
c2b5db470cdeab608073f51fd9e8053402cc5d8a
[ "MIT" ]
1
2022-01-03T16:22:43.000Z
2022-01-08T02:22:56.000Z
unused/model_2.py
jackyjsy/SCGAN
c2b5db470cdeab608073f51fd9e8053402cc5d8a
[ "MIT" ]
1
2021-12-16T22:53:04.000Z
2021-12-16T22:53:04.000Z
# ResNet generator and discriminator import torch from torch import nn import torch.nn.functional as F from spectral_normalization import SpectralNorm import numpy as np channels = 3 class ResidualBlock(nn.Module): """Residual Block.""" def __init__(self, dim_in, dim_out): super(ResidualBlock, self)...
38.32
116
0.588358
641d2097aa0caafa416d02fad016f21cfaef1a9a
1,443
py
Python
bench/test_hpack.py
steamraven/hpack
c76d07a6b07a3473bde21b972353be3863a9b68f
[ "MIT" ]
55
2015-07-07T15:33:23.000Z
2022-01-23T18:30:21.000Z
bench/test_hpack.py
steamraven/hpack
c76d07a6b07a3473bde21b972353be3863a9b68f
[ "MIT" ]
69
2015-06-29T17:25:39.000Z
2021-11-20T18:22:12.000Z
bench/test_hpack.py
steamraven/hpack
c76d07a6b07a3473bde21b972353be3863a9b68f
[ "MIT" ]
28
2015-11-12T13:35:53.000Z
2021-04-29T12:05:59.000Z
from hpack.hpack import ( encode_integer, decode_integer ) class TestHpackEncodingIntegersBenchmarks: def test_encode_small_integer_large_prefix(self, benchmark): benchmark(encode_integer, integer=120, prefix_bits=7) def test_encode_small_integer_small_prefix(self, benchmark): benchma...
39
67
0.765073
6f62727ae39fc1cc3aad284a60b706569de775f6
2,436
py
Python
tempson/RestrictedPython/MutatingWalker.py
tempson-py/tempson
dc25378a4466766da986613bc3a1f8f51519bad1
[ "MIT" ]
1
2016-12-27T13:23:18.000Z
2016-12-27T13:23:18.000Z
tempson/RestrictedPython/MutatingWalker.py
tempson-py/tempson
dc25378a4466766da986613bc3a1f8f51519bad1
[ "MIT" ]
null
null
null
tempson/RestrictedPython/MutatingWalker.py
tempson-py/tempson
dc25378a4466766da986613bc3a1f8f51519bad1
[ "MIT" ]
null
null
null
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
32.48
78
0.548851
76b927788ce9fa127f2c87178b6fc389f5acbaf2
5,511
py
Python
contrib/seeds/makeseeds.py
nscoincommunity/XDNA
07d57142f30ee39bbe1ccc6149e7a017ea59fad4
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
nscoincommunity/XDNA
07d57142f30ee39bbe1ccc6149e7a017ea59fad4
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
nscoincommunity/XDNA
07d57142f30ee39bbe1ccc6149e7a017ea59fad4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 1 # Thes...
32.040698
186
0.566685
cb43b86e9dfc13d150745365cf3fa01b5ee89b06
1,586
py
Python
package_settings.py
bloomsburyai/cape-api-helpers
76881b2ec208451e03bd4f2f22c77fb4de184bde
[ "Apache-2.0" ]
6
2018-07-26T21:47:45.000Z
2018-08-23T12:27:44.000Z
package_settings.py
bloomsburyai/cape-document-manager
4f1450c1da7fc6ee5c02f3fd4fb3c92aa3983782
[ "Apache-2.0" ]
null
null
null
package_settings.py
bloomsburyai/cape-document-manager
4f1450c1da7fc6ee5c02f3fd4fb3c92aa3983782
[ "Apache-2.0" ]
9
2018-09-27T14:03:34.000Z
2020-12-14T20:16:04.000Z
# Copyright 2018 BLEMUNDSBURY AI LIMITED # # 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 ...
37.761905
99
0.733922
24b1f9ec5f919bdb1ef1f683673501508c9b17c1
553
py
Python
benchmarks/query_benchmarks/query_dates/benchmark.py
deepakdinesh1123/actions
859455c8582f6e3fc4d65b7266163f4276d04127
[ "MIT" ]
null
null
null
benchmarks/query_benchmarks/query_dates/benchmark.py
deepakdinesh1123/actions
859455c8582f6e3fc4d65b7266163f4276d04127
[ "MIT" ]
null
null
null
benchmarks/query_benchmarks/query_dates/benchmark.py
deepakdinesh1123/actions
859455c8582f6e3fc4d65b7266163f4276d04127
[ "MIT" ]
null
null
null
from ...utils import bench_setup from .models import Book class QueryDates: def setup(self): bench_setup(migrate=True) def time_query_dates(self): list(Book.objects.dates("created_date", "year", "ASC")) list(Book.objects.dates("created_date", "year", "DESC")) list(Book.objects...
34.5625
65
0.641953
cce2522a6d83678ba73113a4b244e8f8fa785cc4
4,520
py
Python
src/python/pants/backend/project_info/dependees_test.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/dependees_test.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/dependees_test.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from textwrap import dedent from typing import List from pants.backend.project_info.dependees import DependeesGoal from pants.backend.project_info.dependees import DependeesOutputFormat a...
31.830986
99
0.520133
db17471feb5f603ad33c546888b1f9c07fb23763
357
py
Python
PythonExercicios/ex017.py
Luis-Emanuel/Python
92936dfb005b9755a53425d16c3ff54119eebe78
[ "MIT" ]
null
null
null
PythonExercicios/ex017.py
Luis-Emanuel/Python
92936dfb005b9755a53425d16c3ff54119eebe78
[ "MIT" ]
null
null
null
PythonExercicios/ex017.py
Luis-Emanuel/Python
92936dfb005b9755a53425d16c3ff54119eebe78
[ "MIT" ]
null
null
null
#Faça um programa que leia a comprimento do cateto oposto e do cateto adjacente de um # triângulo retângulo, calcule a mostre o compriemnto da hipotenusa from math import hypot co = float(input('Qual o comprimento do cateto oposto:')) ca = float(input('Qual o comprimento do cateto adjacente:')) print('A hipotenusa vai ...
51
85
0.761905
91bd0cf1c11ad4c777a050fa4d831bf14ad0b72e
1,149
py
Python
Coinbase/coinbase-netdud.py
MadDud/coinbase-netdud
731784b4287b8ace8ea009475edfc6a1ab5191c6
[ "MIT" ]
null
null
null
Coinbase/coinbase-netdud.py
MadDud/coinbase-netdud
731784b4287b8ace8ea009475edfc6a1ab5191c6
[ "MIT" ]
null
null
null
Coinbase/coinbase-netdud.py
MadDud/coinbase-netdud
731784b4287b8ace8ea009475edfc6a1ab5191c6
[ "MIT" ]
null
null
null
import sys import configparser print("Coinbase netdud - v1.0") print("---") def getCoinbaseData(path): import urllib2, json import hmac import hashlib import base64 import time import json import configparser # read config config = configparser.ConfigParser() config.read('coin...
24.446809
71
0.641427
75b0d9b2ed11a401d21346a64812a9f3b8729764
6,861
py
Python
test/test_input_format.py
DaniFdezAlvarez/shexer
4f4dffc95bcad038cbc1bd85b58e5558c7c0a6d1
[ "Apache-2.0" ]
16
2019-03-18T21:32:36.000Z
2022-03-28T17:53:57.000Z
test/test_input_format.py
DaniFdezAlvarez/shexer
4f4dffc95bcad038cbc1bd85b58e5558c7c0a6d1
[ "Apache-2.0" ]
67
2019-02-27T12:58:55.000Z
2022-03-28T20:38:48.000Z
test/test_input_format.py
DaniFdezAlvarez/shexer
4f4dffc95bcad038cbc1bd85b58e5558c7c0a6d1
[ "Apache-2.0" ]
2
2019-03-09T00:30:28.000Z
2020-01-09T18:04:14.000Z
import unittest from shexer.shaper import Shaper from test.const import G1, BASE_FILES, G1_JSON_LD, G1_NT, G1_TSVO_SPO, G1_XML, G1_N3, \ default_namespaces, G1_TTL_WITH_BASE, G1_TTL_WITH_USELESS_BNODE from test.t_utils import file_vs_str_tunned_comparison import os.path as pth from shexer.consts import NT, TSV_SPO,...
53.601563
110
0.555458
1545246e6b800eb7e51969735a523edce9dc68eb
18,092
py
Python
src/garage/torch/algos/vpg.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
src/garage/torch/algos/vpg.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
src/garage/torch/algos/vpg.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
"""Vanilla Policy Gradient (REINFORCE).""" import collections import copy from dowel import tabular import numpy as np import torch import torch.nn.functional as F from garage import log_performance, TrajectoryBatch from garage.misc import tensor_utils as tu from garage.np.algos import BatchPolopt from garage.torch.a...
39.075594
79
0.597557
ef246265f69b06db5df91cec2e6e0423aa371da1
958
py
Python
connect.py
Mozilla-GitHub-Standards/1b5242f34a4e5d2d3d71c27b0d7d100be5a497cf08caad050cbbccb52c91dc98
cc37cb87dc504a74defe6e5bb89a05b9bff01159
[ "MIT" ]
41
2018-05-26T15:47:31.000Z
2020-05-12T08:57:14.000Z
connect.py
Mozilla-GitHub-Standards/1b5242f34a4e5d2d3d71c27b0d7d100be5a497cf08caad050cbbccb52c91dc98
cc37cb87dc504a74defe6e5bb89a05b9bff01159
[ "MIT" ]
11
2018-05-22T16:08:43.000Z
2020-06-22T23:20:18.000Z
connect.py
Mozilla-GitHub-Standards/1b5242f34a4e5d2d3d71c27b0d7d100be5a497cf08caad050cbbccb52c91dc98
cc37cb87dc504a74defe6e5bb89a05b9bff01159
[ "MIT" ]
17
2018-05-22T15:48:46.000Z
2020-08-07T12:43:20.000Z
import machine import network import time import config def start_ftp(): print('Starting FTP...') network.ftp.start() def start_ntp(): print('Syncing to NTP...') rtc = machine.RTC() rtc.ntp_sync(server='pool.ntp.org') if not rtc.synced(): print(' waiting for time sync...', end='') ...
24.564103
72
0.550104
0927fe4b160058e23553510aa7e07adb4ab54a92
2,335
py
Python
src/bounds.py
parthbhope/NC_Concolic_Testing
d2622ba3f7fd667b6534bda09d29f1c95c59799f
[ "BSD-3-Clause" ]
1
2021-11-22T10:38:37.000Z
2021-11-22T10:38:37.000Z
src/bounds.py
parthbhope/NC_Concolic_Testing
d2622ba3f7fd667b6534bda09d29f1c95c59799f
[ "BSD-3-Clause" ]
null
null
null
src/bounds.py
parthbhope/NC_Concolic_Testing
d2622ba3f7fd667b6534bda09d29f1c95c59799f
[ "BSD-3-Clause" ]
1
2020-11-25T18:40:39.000Z
2020-11-25T18:40:39.000Z
from utils import * from engine import _InputsStatBasedInitializable, Input # --- class UniformBounds (Bounds): """ Basic class to represent any uniform bounds on inputs. """ def __init__ (self, LB = 0.0, UB = 1.0, **kwds): super().__init__(**kwds) self.LB = LB self.UB = UB @property def l...
26.235955
82
0.653105
c0c685efe7171272999f77b19c8b9a90f4b50cf1
865
py
Python
main/pywitch_manager.py
ouriquegustavo/twitch_tower_defense
20e1b41e3f1c363856515eda1c2a9288ce42e442
[ "MIT" ]
null
null
null
main/pywitch_manager.py
ouriquegustavo/twitch_tower_defense
20e1b41e3f1c363856515eda1c2a9288ce42e442
[ "MIT" ]
null
null
null
main/pywitch_manager.py
ouriquegustavo/twitch_tower_defense
20e1b41e3f1c363856515eda1c2a9288ce42e442
[ "MIT" ]
null
null
null
import string import random import main.token as tk from pywitch import ( validate_token, PyWitchHeat ) valid_char = string.ascii_letters + string.digits def random_string(length): return ''.join([random.choice(valid_char) for i in range(length)]) event_data_click = {} def heat_callback(data): event...
24.714286
84
0.672832
3778f9c7413157591ace37eb7cb70c9926feb828
2,537
py
Python
fima/viz/brainregions.py
gpiantoni/fima
52bba27409f99dc22f3495e3adc907201f69387e
[ "MIT" ]
null
null
null
fima/viz/brainregions.py
gpiantoni/fima
52bba27409f99dc22f3495e3adc907201f69387e
[ "MIT" ]
null
null
null
fima/viz/brainregions.py
gpiantoni/fima
52bba27409f99dc22f3495e3adc907201f69387e
[ "MIT" ]
null
null
null
from bidso.utils import read_tsv import plotly.graph_objects as go from numpy import sign from ..names import name from ..read import load from .surf import AXIS def plot_brain_regions(parameters, ieeg_file, region_type): """ region_type can be one of: 'aparc.a2009s', 'aparc.DKTatlas', 'BA_exviv...
25.887755
80
0.447379
f4352a2926460204703a84016eda5c3575c219d1
901
py
Python
share/qt/clean_mac_info_plist.py
Chrisuk4/PotatoCoin
85cf10945a6f5a4714c584b033089518033912bc
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
Chrisuk4/PotatoCoin
85cf10945a6f5a4714c584b033089518033912bc
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
Chrisuk4/PotatoCoin
85cf10945a6f5a4714c584b033089518033912bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Jonas Schnelli, 2013 # make sure the Potatocoin-Qt.app contains the right plist (including the right version) # fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267) from string import Template from datetime import date bitcoinDir = "./"; ...
30.033333
109
0.72697
57feba5ef8eb22b5b9a84b7ebb247935b05379a2
3,798
py
Python
wagtail/actions/move_page.py
fairhopeweb/wagtail
fe658f021f2cd43bde4a16d1c4d9fa292ec547f3
[ "BSD-3-Clause" ]
1
2022-02-09T05:25:30.000Z
2022-02-09T05:25:30.000Z
wagtail/actions/move_page.py
fairhopeweb/wagtail
fe658f021f2cd43bde4a16d1c4d9fa292ec547f3
[ "BSD-3-Clause" ]
null
null
null
wagtail/actions/move_page.py
fairhopeweb/wagtail
fe658f021f2cd43bde4a16d1c4d9fa292ec547f3
[ "BSD-3-Clause" ]
null
null
null
import logging from django.core.exceptions import PermissionDenied from django.db import transaction from treebeard.mp_tree import MP_MoveHandler from wagtail.log_actions import log from wagtail.signals import post_page_move, pre_page_move logger = logging.getLogger("wagtail") class MovePagePermissionError(Permiss...
34.844037
90
0.626119
3b39d5db2cdc92a19384acac4750ba2cb6b5adbb
491
py
Python
fundamentals/oop/modularizing/parent.py
ZhouSusan/CodingDojoPython
8d89c9a94a3be18e79fbf24e25348eae8c96a338
[ "MIT" ]
null
null
null
fundamentals/oop/modularizing/parent.py
ZhouSusan/CodingDojoPython
8d89c9a94a3be18e79fbf24e25348eae8c96a338
[ "MIT" ]
null
null
null
fundamentals/oop/modularizing/parent.py
ZhouSusan/CodingDojoPython
8d89c9a94a3be18e79fbf24e25348eae8c96a338
[ "MIT" ]
null
null
null
local_val = "magical unicorns" def square(x): return x*x class User: def __init__(self, name): self.name = name def say_hello(self): return "hello" print(__name__) if __name__ == "__main__": print("the file is being executed directly") else: print("The file is b...
22.318182
114
0.643585
89f6418782bc3895531a7c9f051e066ea340a587
4,871
py
Python
src/google/appengine/api/mail_stub_service_pb2.py
phil-lopreiato/appengine-python-standard
5e2c400a24d299bb86e98f755a6ef510b4e1e0df
[ "Apache-2.0" ]
2
2022-01-09T20:26:08.000Z
2022-02-02T22:05:55.000Z
src/google/appengine/api/mail_stub_service_pb2.py
SOFTWARESOLUTONS-PVT-LIMITED/appengine-python-standard
530a54b0fc0eb74d9dc29b19b7c4cdfab0556ebc
[ "Apache-2.0" ]
null
null
null
src/google/appengine/api/mail_stub_service_pb2.py
SOFTWARESOLUTONS-PVT-LIMITED/appengine-python-standard
530a54b0fc0eb74d9dc29b19b7c4cdfab0556ebc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 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...
46.836538
776
0.833915
9616d5cf65e2031107551b75d25f459087ae5676
1,333
py
Python
Toolz/sqlmap/plugins/dbms/hsqldb/enumeration.py
thezakman/CTF-Toolz
b369246ea6766165cce0852e537fb6a0c970869b
[ "Unlicense" ]
71
2019-02-02T11:38:46.000Z
2022-03-31T14:08:27.000Z
tools/sqlmap/plugins/dbms/hsqldb/enumeration.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/sqlmap/plugins/dbms/hsqldb/enumeration.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
15
2019-08-07T06:32:04.000Z
2022-03-09T12:48:20.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ from plugins.generic.enumeration import Enumeration as GenericEnumeration from lib.core.data import conf from lib.core.data import kb from lib.core.data import logger from lib.cor...
28.361702
89
0.700675
0ebfa003b359992aa37a1a57df58587f678b5c24
66,826
py
Python
emma/core/watch.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/watch.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/watch.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 #************************************************************************************************** # Geert Dekkers Web Studio 2008, 2009, Django Web Studio 2010, info@djangowebstudio.nl # # watch.py for EMMA #*********************************************************************...
62.747418
242
0.456753
a863a0d8638b53c1d9b5d862a94c45b77724648a
1,465
py
Python
build/android/pylib/linker/setup.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
build/android/pylib/linker/setup.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
build/android/pylib/linker/setup.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-04-17T13:19:09.000Z
2021-10-21T12:55:15.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. """Setup for linker tests.""" import os import sys from pylib import constants from pylib.linker import test_case from pylib.linker import test_runner sys...
31.847826
80
0.692833
8ae5eb819488adb5a33face232da83125c78c3db
18,646
py
Python
ibis/backends/base/sql/alchemy/registry.py
jayceslesar/ibis
3c950a225883d8077b20497cdc3a9a0fb35a46c9
[ "Apache-2.0" ]
1
2022-03-22T10:39:37.000Z
2022-03-22T10:39:37.000Z
ibis/backends/base/sql/alchemy/registry.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
ibis/backends/base/sql/alchemy/registry.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
import functools import operator from typing import Any, Dict import sqlalchemy as sa import sqlalchemy.sql as sql import ibis import ibis.common.exceptions as com import ibis.expr.analysis as L import ibis.expr.datatypes as dt import ibis.expr.operations as ops import ibis.expr.types as ir import ibis.expr.window as...
29.088924
79
0.658694
46bbfe2d9ee2f8e4cd5c12c3fdb821188de09fa4
646
py
Python
python/py-strings/designer-door-mat.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
python/py-strings/designer-door-mat.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
python/py-strings/designer-door-mat.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Python > Strings > Designer Door Mat # Print a designer door mat. # # https://www.hackerrank.com/challenges/designer-door-mat/problem # """ ---------.|.--------- ------.|..|..|.------ ---.|..|..|..|..|.--- -------WELCOME------- ---.|..|..|..|..|.--- ------.|..|..|.------ ---------.|.--------- """ N, M = map(int, in...
25.84
75
0.427245
a8b3694a45b068aeb02eea4effd7cfd86c919b74
2,531
py
Python
ipywidgets/widgets/widget_selectioncontainer.py
pbugnion/ipywidgets
fd18aa95fe4d7ca71c27ba99b8f7b90242fd3edc
[ "BSD-3-Clause" ]
null
null
null
ipywidgets/widgets/widget_selectioncontainer.py
pbugnion/ipywidgets
fd18aa95fe4d7ca71c27ba99b8f7b90242fd3edc
[ "BSD-3-Clause" ]
3
2020-01-18T12:26:26.000Z
2020-01-20T13:17:32.000Z
ipywidgets/widgets/widget_selectioncontainer.py
pbugnion/ipywidgets
fd18aa95fe4d7ca71c27ba99b8f7b90242fd3edc
[ "BSD-3-Clause" ]
1
2021-01-28T05:58:42.000Z
2021-01-28T05:58:42.000Z
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. """SelectionContainer class. Represents a multipage container that can be used to group other widgets into pages. """ from .widget_box import Box from .widget import register from .widget_core import CoreWidget from ...
31.246914
149
0.649151
ff4d6b8de026b40844df66fda40d6295234b35ba
8,676
py
Python
cupyx/scipy/ndimage/morphology.py
xf3227/cupy
989ef4cd8889ea5309af288beba6814584969930
[ "MIT" ]
1
2020-03-30T20:56:52.000Z
2020-03-30T20:56:52.000Z
cupyx/scipy/ndimage/morphology.py
xf3227/cupy
989ef4cd8889ea5309af288beba6814584969930
[ "MIT" ]
null
null
null
cupyx/scipy/ndimage/morphology.py
xf3227/cupy
989ef4cd8889ea5309af288beba6814584969930
[ "MIT" ]
null
null
null
import numpy import cupy import warnings from . import filters def grey_erosion(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0): """Calculates a greyscale erosion. Args: input (cupy.ndarray): The input array. size (tuple o...
45.663158
79
0.613762
6e314540161412df074c0489870b8bc32c7b60a4
7,943
py
Python
src/rocommand/test/TestRosrsSync.py
A-Mazurek/ro-manager
e49b6025b89594e036fdb2b56c8b871717b3b620
[ "MIT-0", "MIT" ]
11
2015-01-19T04:21:58.000Z
2019-02-21T11:54:45.000Z
src/rocommand/test/TestRosrsSync.py
A-Mazurek/ro-manager
e49b6025b89594e036fdb2b56c8b871717b3b620
[ "MIT-0", "MIT" ]
1
2016-10-18T14:35:36.000Z
2016-10-25T19:12:05.000Z
src/rocommand/test/TestRosrsSync.py
A-Mazurek/ro-manager
e49b6025b89594e036fdb2b56c8b871717b3b620
[ "MIT-0", "MIT" ]
7
2015-03-04T17:22:00.000Z
2022-03-14T15:55:23.000Z
''' Created on 15-09-2011 @author: piotrhol ''' __author__ = "piotrhol" __copyright__ = "PNSC (@@check)" __license__ = "MIT (http://opensource.org/licenses/MIT)" import sys import urlparse from compiler.ast import Assert if __name__ == "__main__": # Add main project directory and ro manager directorie...
43.168478
161
0.652902
3fd97cbc6ded4e76580b87be6465ca0166617435
2,050
py
Python
djangoDemo2/urls.py
zxuu/Django
fbb9320487ca180733902cffdea7b37cc2115a94
[ "Apache-2.0" ]
null
null
null
djangoDemo2/urls.py
zxuu/Django
fbb9320487ca180733902cffdea7b37cc2115a94
[ "Apache-2.0" ]
null
null
null
djangoDemo2/urls.py
zxuu/Django
fbb9320487ca180733902cffdea7b37cc2115a94
[ "Apache-2.0" ]
null
null
null
"""djangoDemo2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
32.03125
77
0.677073
c15b5b794ee97b011e2243a6710cc27518217dd8
811
py
Python
setup.py
zhanglabtools/MSTD
0a63b0b206f21997e872fb6734a6f28a888dc786
[ "MIT" ]
4
2018-08-16T12:13:15.000Z
2020-05-31T18:34:29.000Z
setup.py
zhanglabtools/MSTD
0a63b0b206f21997e872fb6734a6f28a888dc786
[ "MIT" ]
null
null
null
setup.py
zhanglabtools/MSTD
0a63b0b206f21997e872fb6734a6f28a888dc786
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jun 19 15:11:48 2017 @author: Yusen Ye """ import os import sys import shutil from subprocess import call from warnings import warn from setuptools import setup setup(name='MSTD', version='2.0', package_dir={'': 'src'}, packages=['MSTDlib'], package_data={...
23.171429
73
0.658446
59bdbf330cb4c3de98f848d26bf17b1883d77d9a
11,051
py
Python
catfishq/cat_fastq.py
rfetherston/catfishq
58377e730f4fe6b08ae066324a30bdf44939f15f
[ "MIT" ]
null
null
null
catfishq/cat_fastq.py
rfetherston/catfishq
58377e730f4fe6b08ae066324a30bdf44939f15f
[ "MIT" ]
null
null
null
catfishq/cat_fastq.py
rfetherston/catfishq
58377e730f4fe6b08ae066324a30bdf44939f15f
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import logging import math import os import re import pysam import sys from pathlib import Path from datetime import datetime, timedelta from . import __version__ LOOKUP = [] for q in range(100): LOOKUP.append(pow(10, -0.1 * q)) def _compute_mean_qscore(...
29.706989
228
0.59696
a3d6e4ae3b08c773a5436fba9d2ee727319ab6be
401
py
Python
products/migrations/0010_product_video_link.py
siva-namala/django3.1
8666a536d07d60b61798c7bbd40737da4e6d7cde
[ "MIT" ]
null
null
null
products/migrations/0010_product_video_link.py
siva-namala/django3.1
8666a536d07d60b61798c7bbd40737da4e6d7cde
[ "MIT" ]
null
null
null
products/migrations/0010_product_video_link.py
siva-namala/django3.1
8666a536d07d60b61798c7bbd40737da4e6d7cde
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-19 20:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0009_product_can_backorder'), ] operations = [ migrations.AddField( model_name='product', name='video_li...
21.105263
58
0.605985
dcd9d9d1fb75b7fd91eac03c44c20729da0085da
3,602
py
Python
bots.py
phiwei/tensor_bot
0cfe81d4b31a50e520dbacc650950dc6e370d075
[ "MIT" ]
1
2019-08-13T14:36:34.000Z
2019-08-13T14:36:34.000Z
bots.py
phiwei/tensor_bot
0cfe81d4b31a50e520dbacc650950dc6e370d075
[ "MIT" ]
1
2020-06-18T13:30:37.000Z
2020-06-18T13:30:37.000Z
bots.py
phiwei/tensor_bot
0cfe81d4b31a50e520dbacc650950dc6e370d075
[ "MIT" ]
null
null
null
from tensorflow.keras.callbacks import Callback from twython import Twython from telegram import Bot class BaseBot(Callback): """ Base class for tf/keras bot callback. Use this callback to send out live updates of model training. """ def __init__(self, freq=1, init_message=None): """ ...
27.922481
59
0.538034
78e311a1db2b0199cd7028d0c1efeff6c25cd0e0
489
py
Python
tests/models/test_watch.py
lexicalunit/spellbot
17a4999d5e1def06246727ac5481230aa4a4557d
[ "MIT" ]
13
2020-07-03T01:20:54.000Z
2021-11-22T06:06:21.000Z
tests/models/test_watch.py
lexicalunit/spellbot
17a4999d5e1def06246727ac5481230aa4a4557d
[ "MIT" ]
660
2020-06-26T02:52:18.000Z
2022-03-31T14:14:02.000Z
tests/models/test_watch.py
lexicalunit/spellbot
17a4999d5e1def06246727ac5481230aa4a4557d
[ "MIT" ]
3
2020-07-12T06:18:39.000Z
2021-06-22T06:54:47.000Z
from tests.fixtures import Factories class TestModelWatch: def test_watch(self, factories: Factories): guild = factories.guild.create() user = factories.user.create() watch = factories.watch.create( note="note", user_xid=user.xid, guild_xid=guild.xid, ...
25.736842
47
0.560327
747517866f2403427c95cecc9ed3b159b508e29a
1,928
py
Python
utils/scripts/heroes_ru_names.py
fennr/Samuro-HotsBot
81e7a65a08d50602442094e52d6d2e405c98ac1a
[ "Apache-2.0" ]
1
2022-03-26T11:28:00.000Z
2022-03-26T11:28:00.000Z
utils/scripts/heroes_ru_names.py
fennr/Samuro-HotsBot
81e7a65a08d50602442094e52d6d2e405c98ac1a
[ "Apache-2.0" ]
null
null
null
utils/scripts/heroes_ru_names.py
fennr/Samuro-HotsBot
81e7a65a08d50602442094e52d6d2e405c98ac1a
[ "Apache-2.0" ]
null
null
null
import json import os import requests from bs4 import BeautifulSoup from pprint import pprint def create_nick_list(filename): nick_list = [] with open(filename, 'r', encoding='utf-8') as heroes_txt: for line in heroes_txt: if len(line) > 0: line = line.replace(' ', '').rep...
32.133333
101
0.592842
3025974f81646ad0484b93994de5fc3d069f8c3e
12,645
py
Python
src/onevision/nn/layer/plugin.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/nn/layer/plugin.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/nn/layer/plugin.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import annotations from typing import Any from typing import Optional from typing import Sequence from typing import Union import torch import torch.nn.functional as F from torch import nn as nn from torch import Tensor from onevision.factory im...
29.135945
80
0.515461
0607e25df109ed6debcc04ab06798afc7e42ab31
1,966
py
Python
library/hash_map/bucket.py
jdkandersson/algorithms-data-structures
423b98afa4b3ad0548c3a724c47556714f0a61e2
[ "Apache-2.0" ]
null
null
null
library/hash_map/bucket.py
jdkandersson/algorithms-data-structures
423b98afa4b3ad0548c3a724c47556714f0a61e2
[ "Apache-2.0" ]
null
null
null
library/hash_map/bucket.py
jdkandersson/algorithms-data-structures
423b98afa4b3ad0548c3a724c47556714f0a61e2
[ "Apache-2.0" ]
null
null
null
"""Bucket implemented using linked list.""" from library import linked_list class Bucket: """Class for buckets.""" def __init__(self): """Construct.""" self._list = linked_list.LinkedList() def insert(self, key, value): """ Add or update key value pair to the bucket. ...
21.844444
54
0.53001
d8ab25ab35bf60f25d25776acf3b8287adada94e
667
py
Python
auth-portal/auth-portal/manage.py
Stashchen/auth-playground
f9fb3238382d943d2497a99b743b0c069105b715
[ "MIT" ]
1
2020-12-11T16:56:21.000Z
2020-12-11T16:56:21.000Z
auth-portal/auth-portal/manage.py
Stashchen/auth-playground
f9fb3238382d943d2497a99b743b0c069105b715
[ "MIT" ]
3
2020-12-14T15:06:02.000Z
2021-01-04T19:34:41.000Z
auth-portal/auth-portal/manage.py
Stashchen/auth-playground
f9fb3238382d943d2497a99b743b0c069105b715
[ "MIT" ]
3
2020-11-19T21:55:30.000Z
2020-12-01T14:03:22.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'auth-portal.settings') try: from django.core.management import execute_from_command_line except ...
29
75
0.67916
ac39adfcf129bb92dfb9cfe31773936eae31cef0
6,967
py
Python
examples/ConfigActuation/tests/test_config_actuation.py
laroque/volttron
3ea851b718aa87d7f2c824298cf8a1a4c5920460
[ "Apache-2.0" ]
2
2019-10-03T17:00:34.000Z
2019-10-03T17:00:38.000Z
examples/ConfigActuation/tests/test_config_actuation.py
laroque/volttron
3ea851b718aa87d7f2c824298cf8a1a4c5920460
[ "Apache-2.0" ]
2
2018-08-29T13:45:17.000Z
2018-09-06T12:34:23.000Z
examples/ConfigActuation/tests/test_config_actuation.py
cbs-iiith/volttron
a676d4af19a808581dde172ab08820087854e157
[ "Apache-2.0" ]
1
2019-04-04T17:13:46.000Z
2019-04-04T17:13:46.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2017, Battelle Memorial Institute. # # 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...
40.505814
89
0.70145
cd67e28964982135877181a5a0102f667cd8156c
11,878
py
Python
eoxserver/services/ows/wcs/v20/geteocoverageset.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
eoxserver/services/ows/wcs/v20/geteocoverageset.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
eoxserver/services/ows/wcs/v20/geteocoverageset.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
#------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2013 EOX IT Services GmbH # # Permission...
37.352201
106
0.657518
91c24c9b867550f512db9f99f7473338352d5e9d
12,495
py
Python
tests/todo.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
tests/todo.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
tests/todo.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
import unittest from datetime import datetime, datetime as dt, timedelta, timezone from dateutil.tz import UTC as dateutil_tzutc from ics.alarm.display import DisplayAlarm from ics.grammar.parse import Container from ics.icalendar import Calendar from ics.todo import Todo from .fixture import cal27, cal28, cal29, cal...
34.902235
135
0.561745
b4290eafff2e2a63f5a179f526de7d361345b652
730
py
Python
matbench/tests/util.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
15
2021-11-01T09:02:19.000Z
2022-03-19T10:59:41.000Z
matbench/tests/util.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
62
2021-09-20T14:09:59.000Z
2022-03-30T19:03:22.000Z
matbench/tests/util.py
ardunn/matbench
7d11a2d63766339ec00e610e2255be29b81544d3
[ "MIT" ]
4
2021-03-22T10:37:42.000Z
2021-07-20T14:11:28.000Z
import os import random import numpy as np from matbench.constants import CLF_KEY, REG_KEY MB_TEST_RANDOM_SEED = 1001 TEST_DIR = os.path.dirname(os.path.abspath(__file__)) FULL_TEST = os.environ.get("MB_FULL_TESTS", False) def model_random(training_outputs, test_inputs, response_type): r = random.Random(MB_TES...
26.071429
78
0.731507
19d2c0b0d1fe52339ad167a2e6dc5ea2767dfa77
2,395
py
Python
tests/unit/test_validation_rule_hostname_validity.py
sh8121att/airship-drydock
def51688e49c40d398c6adff7c4ff9cec9a38a3b
[ "Apache-2.0" ]
14
2017-03-07T17:00:22.000Z
2021-04-02T14:15:04.000Z
tests/unit/test_validation_rule_hostname_validity.py
sh8121att/airship-drydock
def51688e49c40d398c6adff7c4ff9cec9a38a3b
[ "Apache-2.0" ]
82
2017-02-16T16:54:18.000Z
2018-06-04T13:40:32.000Z
tests/unit/test_validation_rule_hostname_validity.py
att-comdev/drydock
506e06623a5f1c11c0d34f2089851cc8381f06ae
[ "Apache-2.0" ]
16
2017-02-14T19:47:00.000Z
2018-04-26T10:13:05.000Z
# Copyright 2017 AT&T Intellectual Property. All other 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...
36.846154
91
0.695198
e6bb8013a280a024cd95ca1b8f5df3bd8a1b608c
372
py
Python
microbees/helper.py
microBeesTech/pythonSDK
9537c864e3d6d81f8a926fffbc8d0ce6ff2ede68
[ "MIT" ]
null
null
null
microbees/helper.py
microBeesTech/pythonSDK
9537c864e3d6d81f8a926fffbc8d0ce6ff2ede68
[ "MIT" ]
1
2021-03-16T11:12:02.000Z
2021-03-16T11:12:02.000Z
microbees/helper.py
microBeesTech/pythonSDK
9537c864e3d6d81f8a926fffbc8d0ce6ff2ede68
[ "MIT" ]
null
null
null
def urljoin(*parts): # first strip extra forward slashes (except http:// and the likes) and create list part_list = [] for part in parts: p = str(part) if p.endswith('//'): p = p[0:-1] else: p = p.strip('/') part_list.append(p) # join everything to...
26.571429
86
0.532258
898eef9db36c771da278aa47cb129f28023917eb
725
py
Python
tests/sources/test_law_status_database.py
openoereb/pyramid_oereb
d70c7fb15803b9454954e9f1d23727224bfd10bc
[ "BSD-2-Clause" ]
4
2019-03-28T09:58:34.000Z
2020-04-29T15:08:44.000Z
tests/sources/test_law_status_database.py
openoereb/pyramid_oereb
d70c7fb15803b9454954e9f1d23727224bfd10bc
[ "BSD-2-Clause" ]
452
2019-02-05T10:10:43.000Z
2022-03-31T08:27:38.000Z
tests/sources/test_law_status_database.py
openoereb/pyramid_oereb
d70c7fb15803b9454954e9f1d23727224bfd10bc
[ "BSD-2-Clause" ]
20
2019-02-01T09:04:48.000Z
2021-12-23T09:23:07.000Z
# -*- coding: utf-8 -*- import pytest from pyramid_oereb.lib.config import Config from pyramid_oereb.lib.adapter import DatabaseAdapter from pyramid_oereb.standard.sources.law_status import DatabaseSource from pyramid_oereb.standard.models.main import LawStatus from tests.mockrequest import MockParameter @pytest.ma...
31.521739
89
0.775172
0e671d969608739e5b0b09e7d778cb5a3e4b374f
4,522
py
Python
lib-opencc-android/src/main/jni/OpenCC/deps/pybind11-2.5.0/tests/test_copy_move.py
huxiaomao/android-opencc
a251591316323151a97d977c39c85e0571c60971
[ "MIT" ]
5,895
2015-01-01T12:28:18.000Z
2022-03-31T07:50:46.000Z
lib-opencc-android/src/main/jni/OpenCC/deps/pybind11-2.5.0/tests/test_copy_move.py
huxiaomao/android-opencc
a251591316323151a97d977c39c85e0571c60971
[ "MIT" ]
514
2015-02-05T14:56:54.000Z
2021-06-25T09:29:52.000Z
lib-opencc-android/src/main/jni/OpenCC/deps/pybind11-2.5.0/tests/test_copy_move.py
huxiaomao/android-opencc
a251591316323151a97d977c39c85e0571c60971
[ "MIT" ]
888
2015-01-01T11:17:44.000Z
2022-03-31T06:44:44.000Z
import pytest from pybind11_tests import copy_move_policies as m def test_lacking_copy_ctor(): with pytest.raises(RuntimeError) as excinfo: m.lacking_copy_ctor.get_one() assert "is non-copyable!" in str(excinfo.value) def test_lacking_move_ctor(): with pytest.raises(RuntimeError) as excinfo: ...
40.017699
99
0.697258
49109fb3d8a6eda13d9b53579d6d8ee76b10b73e
1,232
py
Python
tests/test_patterns.py
AnastasiaLobanova/climetlab
4382525da25c66cf10ac0e5cbf6d6d244e7aa097
[ "Apache-2.0" ]
1
2021-04-14T13:15:46.000Z
2021-04-14T13:15:46.000Z
tests/test_patterns.py
AnastasiaLobanova/climetlab
4382525da25c66cf10ac0e5cbf6d6d244e7aa097
[ "Apache-2.0" ]
null
null
null
tests/test_patterns.py
AnastasiaLobanova/climetlab
4382525da25c66cf10ac0e5cbf6d6d244e7aa097
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2020 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
30.04878
87
0.62013
54e206174b1acd17a3c752af3821ea8d4d29bcf3
3,834
py
Python
pymc3/step_methods/elliptical_slice.py
sanmitraghosh/pymc3
284e31c0dcc9bf60523f5d2f30328b29ab751f4d
[ "Apache-2.0" ]
2
2020-10-31T18:01:32.000Z
2020-11-01T07:22:48.000Z
pymc3/step_methods/elliptical_slice.py
sanmitraghosh/pymc3
284e31c0dcc9bf60523f5d2f30328b29ab751f4d
[ "Apache-2.0" ]
null
null
null
pymc3/step_methods/elliptical_slice.py
sanmitraghosh/pymc3
284e31c0dcc9bf60523f5d2f30328b29ab751f4d
[ "Apache-2.0" ]
1
2019-01-02T09:02:18.000Z
2019-01-02T09:02:18.000Z
import numpy as np import numpy.random as nr import theano.tensor as tt from .arraystep import ArrayStep, Competence from ..model import modelcontext from ..theanof import inputvars from ..distributions import draw_values __all__ = ['EllipticalSlice'] def get_chol(cov, chol): """Get Cholesky decomposition of th...
32.769231
78
0.651017
86f26c93c643613c8a7b02a9e7c2f034959b1071
9,925
py
Python
mavlink_api/px4/dev/gps_setpoint/px4_mavros_to_GPS.py
hddxds/scripts_from_gi
afb8977c001b860335f9062464e600d9115ea56e
[ "Apache-2.0" ]
null
null
null
mavlink_api/px4/dev/gps_setpoint/px4_mavros_to_GPS.py
hddxds/scripts_from_gi
afb8977c001b860335f9062464e600d9115ea56e
[ "Apache-2.0" ]
null
null
null
mavlink_api/px4/dev/gps_setpoint/px4_mavros_to_GPS.py
hddxds/scripts_from_gi
afb8977c001b860335f9062464e600d9115ea56e
[ "Apache-2.0" ]
null
null
null
import rospy from mavros_msgs.msg import GlobalPositionTarget, State from mavros_msgs.srv import CommandBool,SetMode, CommandHome from geometry_msgs.msg import PoseStamped, Twist from sensor_msgs.msg import Imu, NavSatFix import time import math import pyquaternion as q #global variables global_imu = Imu() global_gps ...
28.93586
128
0.647154
f41274805d9bd4ea5d956f95eeef3f661d5bf6e3
7,170
py
Python
Sample-Scripts-and-Notebooks/Official/Scripts/evaluate.py
SillyKeith/Project-Santa-Cruz-Preview
28ccfc5d5b92f3caf61158f7b15849bb08903976
[ "CC-BY-4.0", "MIT" ]
null
null
null
Sample-Scripts-and-Notebooks/Official/Scripts/evaluate.py
SillyKeith/Project-Santa-Cruz-Preview
28ccfc5d5b92f3caf61158f7b15849bb08903976
[ "CC-BY-4.0", "MIT" ]
null
null
null
Sample-Scripts-and-Notebooks/Official/Scripts/evaluate.py
SillyKeith/Project-Santa-Cruz-Preview
28ccfc5d5b92f3caf61158f7b15849bb08903976
[ "CC-BY-4.0", "MIT" ]
null
null
null
""" Script to evaluate a model. To use this script, first train a model, then export whichever checkpoint you want to use for evaluation using the scripts/export_frozen_graph.py script. """ from PIL import Image import argparse import cv2 import importlib.util import numpy as np import os import sys import tensorflow ...
44.259259
148
0.673222
a419affe456e7577bb4d137bed0011a7dca371dc
12,298
py
Python
python/subwayflow/a1.py
StevenRCE0/MassTransportUtilizer
6b3ac1cd447d736094cf16e8a482924b16076705
[ "MIT" ]
null
null
null
python/subwayflow/a1.py
StevenRCE0/MassTransportUtilizer
6b3ac1cd447d736094cf16e8a482924b16076705
[ "MIT" ]
null
null
null
python/subwayflow/a1.py
StevenRCE0/MassTransportUtilizer
6b3ac1cd447d736094cf16e8a482924b16076705
[ "MIT" ]
null
null
null
import os, json, csv, calendar import pandas as pd import numpy as np import matplotlib.pyplot as plt import multiprocessing as mp # import shortestpass import graph import pymysql from pymysql.converters import escape_string from functools import partial transfer_stations = ['Sta89', 'Sta127', 'Sta41', 'Sta134', '...
43.45583
1,531
0.52602
a5cee59124162e21c8e7dae5e191b44646f3189d
10,611
py
Python
securesystemslib/util.py
mnm678/securesystemslib
caf029ea61339dc5fa9beedf230ca1d026129169
[ "MIT" ]
null
null
null
securesystemslib/util.py
mnm678/securesystemslib
caf029ea61339dc5fa9beedf230ca1d026129169
[ "MIT" ]
null
null
null
securesystemslib/util.py
mnm678/securesystemslib
caf029ea61339dc5fa9beedf230ca1d026129169
[ "MIT" ]
null
null
null
""" <Program Name> util.py <Author> Konstantin Andrianov <Started> March 24, 2012. Derived from original util.py written by Geremy Condra. <Copyright> See LICENSE for licensing information. <Purpose> Provides utility services. This module supplies utility functions such as: get_file_details() that com...
26.863291
80
0.722741
eab04f7f36938f95ecde7a2fe7d3088148cd7823
2,766
py
Python
mean_absolute-square_error.py
luis-alarcon/mean_absolute-square_error
47e5291b38af3f6157a1e49ecbfd0f1f45e3ad30
[ "MIT" ]
null
null
null
mean_absolute-square_error.py
luis-alarcon/mean_absolute-square_error
47e5291b38af3f6157a1e49ecbfd0f1f45e3ad30
[ "MIT" ]
null
null
null
mean_absolute-square_error.py
luis-alarcon/mean_absolute-square_error
47e5291b38af3f6157a1e49ecbfd0f1f45e3ad30
[ "MIT" ]
null
null
null
#import packages import sys import numpy as np import pandas as pd # Formula for Absolute trick and Square Trick def trick(cho,w1,w2): #p = input("Input the point: (sepate the x and y with commas): ") point = input("\nInput the point: (sepate the x and y with commas): ") point = point.split(",") print...
32.162791
78
0.587129
fbb96f8f0e0d7ad17bfc083476724bd5d325eb0e
144
py
Python
slac_services/services/epics.py
ChristopherMayes/lume-orchestration-demo
fbbf663911f45626c29ed7569569aef7090538e4
[ "BSD-3-Clause-LBNL" ]
null
null
null
slac_services/services/epics.py
ChristopherMayes/lume-orchestration-demo
fbbf663911f45626c29ed7569569aef7090538e4
[ "BSD-3-Clause-LBNL" ]
null
null
null
slac_services/services/epics.py
ChristopherMayes/lume-orchestration-demo
fbbf663911f45626c29ed7569569aef7090538e4
[ "BSD-3-Clause-LBNL" ]
1
2022-03-21T17:09:55.000Z
2022-03-21T17:09:55.000Z
from pydantic import BaseSettings class EPICSSettings(): ... class EPICSContextService(): ... def __init__(self): ...
10.285714
33
0.604167
93d240105789f0171033515e6f3cf150cf17212d
4,179
py
Python
src/sentry/south_migrations/0005_auto.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/south_migrations/0005_auto.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/south_migrations/0005_auto.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding index on 'GroupedMessage', fields ['status'] db.create_index('sentry_groupedmessage', ['status']) d...
67.403226
178
0.571668
501712ad19c97f74c685c6212c6f379793fa2af6
2,553
py
Python
Lib/test/test_str.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/test/test_str.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/test/test_str.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
import unittest from test import test_support, string_tests class StrTest( string_tests.CommonTest, string_tests.MixinStrUnicodeUserStringTest, string_tests.MixinStrUserStringTest, string_tests.MixinStrUnicodeTest, ): type2test = str # We don't need to propagate to str ...
28.366667
87
0.533882
1781250ca39ce5912db18071f0bdac9c1d9dba17
20
py
Python
test/rospy/__init__.py
osrf/uctf
f7d597b9532995b1509cc29aed4ac7115c2b0cb8
[ "Apache-2.0" ]
28
2016-08-23T12:39:01.000Z
2020-11-12T17:14:47.000Z
test/rospy/__init__.py
osrf/uctf
f7d597b9532995b1509cc29aed4ac7115c2b0cb8
[ "Apache-2.0" ]
80
2016-08-17T15:00:08.000Z
2021-01-19T21:19:04.000Z
test/rospy/__init__.py
osrf/uctf
f7d597b9532995b1509cc29aed4ac7115c2b0cb8
[ "Apache-2.0" ]
13
2016-10-13T09:41:52.000Z
2020-11-13T21:24:58.000Z
ServiceProxy = None
10
19
0.8
f55c2925a32f171aed7d6a1de333bc930f262517
56,998
py
Python
keras/layers/preprocessing/image_preprocessing_test.py
ivallesp/keras
1a35ff2788b5e6880ceb8af82e1a8d5f72d0f76f
[ "Apache-2.0" ]
null
null
null
keras/layers/preprocessing/image_preprocessing_test.py
ivallesp/keras
1a35ff2788b5e6880ceb8af82e1a8d5f72d0f76f
[ "Apache-2.0" ]
null
null
null
keras/layers/preprocessing/image_preprocessing_test.py
ivallesp/keras
1a35ff2788b5e6880ceb8af82e1a8d5f72d0f76f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
39.830887
80
0.626934
7fb840f6448d7a2ae35298a5d7426cd3cb7e6ab2
297
py
Python
setup.py
simran212530/Probability_Gauss_Module
26525ca72d7d39e9ff3e3f1e7cd62b3760c7d26a
[ "MIT" ]
null
null
null
setup.py
simran212530/Probability_Gauss_Module
26525ca72d7d39e9ff3e3f1e7cd62b3760c7d26a
[ "MIT" ]
null
null
null
setup.py
simran212530/Probability_Gauss_Module
26525ca72d7d39e9ff3e3f1e7cd62b3760c7d26a
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='prob_gauss_binomial', version='0.2', description='Gaussian and Binomial distributions', packages=['prob_gauss_binomial'], author = 'Gursimran Kaur', author_email = 'gursimran18336@iiitd.ac.in', zip_safe=False)
29.7
57
0.670034
e3fb0cc7b04438d839cff01298ef5ff420e0594f
751
py
Python
ReadFromCSV.py
nicetone/Python
85fd9cc7e00f3bbeed5355ce392128ff22de459b
[ "MIT" ]
28,321
2015-01-03T15:36:19.000Z
2022-03-31T10:11:54.000Z
ReadFromCSV.py
nicetone/Python
85fd9cc7e00f3bbeed5355ce392128ff22de459b
[ "MIT" ]
544
2015-01-19T14:28:09.000Z
2022-03-29T04:05:21.000Z
ReadFromCSV.py
nicetone/Python
85fd9cc7e00f3bbeed5355ce392128ff22de459b
[ "MIT" ]
13,366
2015-01-03T15:45:14.000Z
2022-03-31T11:50:26.000Z
__author__ = 'vamsi' import pandas as pd #pandas library to read csv file from matplotlib import pyplot as plt #matplotlib library to visualise the data from matplotlib import style style.use("ggplot") """reading data from SalesData.csv file and passing data to dataframe""" df = pd.read_csv("..\SalesDa...
39.526316
98
0.721704
08d499fcd5018c57971c188547b8b81d42da152f
444
py
Python
gunicorn.py
pbillerot/drumservice
84a702989aef9b385e3f6fa743bbb607371e7db6
[ "MIT" ]
null
null
null
gunicorn.py
pbillerot/drumservice
84a702989aef9b385e3f6fa743bbb607371e7db6
[ "MIT" ]
1
2021-03-20T08:01:31.000Z
2021-03-20T08:01:31.000Z
gunicorn.py
pbillerot/drumservice
84a702989aef9b385e3f6fa743bbb607371e7db6
[ "MIT" ]
null
null
null
command = '/var/www/__APP_NAME__/venv/bin/gunicorn' pythonpath = '/var/www/__APP_NAME__' workers = 3 user = '__USER_NAME__' bind = '127.0.0.1:8000' pid = '/run/gunicorn/__APP_NAME__-pid' errorlog = '/var/log/__APP_NAME__/error.log' accesslog = '/var/log/__APP_NAME__/access.log' access_log_format = '%({X-Real-IP}i)s %({...
37
121
0.671171
fe1c476ed2205a964d4d25570269683b25ed35eb
30,471
py
Python
pandas/tests/generic/test_generic.py
GabrielUlisses/pandas
6430d5324ae2b602b314a7851e9c1f4c5313cceb
[ "BSD-3-Clause" ]
1
2020-10-29T17:32:26.000Z
2020-10-29T17:32:26.000Z
pandas/tests/generic/test_generic.py
GabrielUlisses/pandas
6430d5324ae2b602b314a7851e9c1f4c5313cceb
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/generic/test_generic.py
GabrielUlisses/pandas
6430d5324ae2b602b314a7851e9c1f4c5313cceb
[ "BSD-3-Clause" ]
null
null
null
from copy import copy, deepcopy import numpy as np import pytest from pandas.compat.numpy import np_version_under1p17 from pandas.core.dtypes.common import is_scalar import pandas as pd from pandas import DataFrame, Series, date_range import pandas._testing as tm import pandas.core.common as com # ----------------...
33.856667
88
0.557382
86ef13773855653873828dcc4647225bf877730f
1,394
py
Python
addons/oejia_wx/models/res_partner.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/oejia_wx/models/res_partner.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/oejia_wx/models/res_partner.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
# coding=utf-8 import logging from openerp import models, fields, api _logger = logging.getLogger(__name__) class res_partner(models.Model): _inherit = 'res.partner' wxcorp_user_id = fields.Many2one('wx.corpuser','关联企业号用户') wx_user_id = fields.Many2one('wx.user','关联微信用户') def send_corp_msg(self, ms...
38.722222
174
0.666428
f649728f39998745d4a24fcfe28d7039baaea7ad
4,315
py
Python
VSR/Models/Dcscn.py
johnnylili/VideoSuperResolution
3f7142167b521ae739e7e0414c3c1cb3a82d9041
[ "MIT" ]
null
null
null
VSR/Models/Dcscn.py
johnnylili/VideoSuperResolution
3f7142167b521ae739e7e0414c3c1cb3a82d9041
[ "MIT" ]
null
null
null
VSR/Models/Dcscn.py
johnnylili/VideoSuperResolution
3f7142167b521ae739e7e0414c3c1cb3a82d9041
[ "MIT" ]
1
2020-02-25T16:12:05.000Z
2020-02-25T16:12:05.000Z
""" Copyright: Intel Corp. 2018 Author: Wenyi Tang Email: wenyi.tang@intel.com Created Date: May 23rd 2018 Updated Date: June 15th 2018 Implementing Fast and Accurate Image Super Resolution by Deep CNN with Skip Connection and Network in Network See https://arxiv.org/abs/1707.05425 """ from ..Framework.SuperResolution...
47.417582
115
0.588413
b19ce9596494ea4bc56a8bacd20bd28ffb4eae96
4,881
py
Python
app/biowl/dsl/parser.py
mainulhossain/biowl
039adc96539fae25843b1fc36074a4e5e55830ec
[ "MIT" ]
null
null
null
app/biowl/dsl/parser.py
mainulhossain/biowl
039adc96539fae25843b1fc36074a4e5e55830ec
[ "MIT" ]
null
null
null
app/biowl/dsl/parser.py
mainulhossain/biowl
039adc96539fae25843b1fc36074a4e5e55830ec
[ "MIT" ]
1
2020-01-05T10:47:21.000Z
2020-01-05T10:47:21.000Z
from sys import stdin, stdout, stderr, argv, exit import os import json import sys import code from pyparsing import * from .grammar import PythonGrammar from .context import Context from .interpreter import Interpreter from .pygen import CodeGenerator class PhenoWLParser(object): ''' The parser for PhenoW...
27.421348
185
0.583897