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
a52ce69ed617c6897f70103f2ead915469f6c3d9
211
py
Python
src/cdcam/__init__.py
edwardoughton/cdcam
a5662a9bb77d9d928d1caae81d14701de521f9e4
[ "MIT" ]
null
null
null
src/cdcam/__init__.py
edwardoughton/cdcam
a5662a9bb77d9d928d1caae81d14701de521f9e4
[ "MIT" ]
4
2019-11-01T18:38:40.000Z
2020-05-26T05:32:24.000Z
src/cdcam/__init__.py
nismod/cdcam
a5662a9bb77d9d928d1caae81d14701de521f9e4
[ "MIT" ]
4
2019-11-25T20:03:32.000Z
2020-07-18T14:21:19.000Z
# -*- coding: utf-8 -*- """Cambridge Digital Communications Assessment Model """ import pkg_resources try: __version__ = pkg_resources.get_distribution(__name__).version except: __version__ = 'unknown'
21.1
66
0.739336
483eaa373e666bf772c6f683f5f3232fb355bed8
12,453
py
Python
tests/framework/test_lifecycle.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
41
2017-07-14T03:39:06.000Z
2022-03-20T05:36:33.000Z
tests/framework/test_lifecycle.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
26
2017-08-08T22:13:44.000Z
2021-08-18T00:14:54.000Z
tests/framework/test_lifecycle.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
8
2017-08-03T17:15:39.000Z
2021-09-30T21:57:50.000Z
import pytest from vivarium.framework.lifecycle import (LifeCycleState, LifeCyclePhase, LifeCycle, LifeCycleError, ConstraintError, LifeCycleManager, ConstraintMaker) def test_state_add_next(): a = LifeCycleState('a') b = Lif...
30.07971
100
0.655183
fbfa64c4cda51b0e93360a2736a62c33658cc526
478
py
Python
viz/old2/createcgcells.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
viz/old2/createcgcells.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
viz/old2/createcgcells.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
from numpy import * def createcgcells(cgelcon,tlocal,ne): # Constructs a connectivity matrix into the set of *CG* nodes for each DG-style element - this would be of dimension (numel x nplocal x numpts_per_elem) nce, nve = tlocal.shape; cells = zeros((ne*nce,nve)); tlocal = tlocal.flatten('F')-1; ...
31.866667
156
0.635983
558598a9503b4571bc21e4840b466bd527ac28e5
4,240
py
Python
Lib/test/test_codecencodings_jp.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
49
2015-03-10T17:34:19.000Z
2021-11-10T22:23:18.000Z
Lib/test/test_codecencodings_jp.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
1
2021-04-11T15:01:12.000Z
2021-04-11T15:01:12.000Z
Lib/test/test_codecencodings_jp.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
32
2015-02-06T12:10:32.000Z
2019-06-18T03:21:36.000Z
#!/usr/bin/env python # # test_codecencodings_jp.py # Codec encoding tests for Japanese encodings. # from test import test_support from test import test_multibytecodec_support import unittest class Test_CP932(test_multibytecodec_support.TestBase, unittest.TestCase): encoding = 'cp932' tstring = test_multiby...
37.857143
80
0.616981
361f79b71abec15299799a785f3fcde2ff0f467d
59,273
py
Python
test/orm/test_deferred.py
AlbertDachiChen/sqlalchemy_1_3
7777bf9388bdd00bf659f6b42aa6b7648c915b88
[ "MIT" ]
null
null
null
test/orm/test_deferred.py
AlbertDachiChen/sqlalchemy_1_3
7777bf9388bdd00bf659f6b42aa6b7648c915b88
[ "MIT" ]
null
null
null
test/orm/test_deferred.py
AlbertDachiChen/sqlalchemy_1_3
7777bf9388bdd00bf659f6b42aa6b7648c915b88
[ "MIT" ]
null
null
null
import sqlalchemy_1_3 as sa from sqlalchemy_1_3 import ForeignKey from sqlalchemy_1_3 import Integer from sqlalchemy_1_3 import testing from sqlalchemy_1_3 import util from sqlalchemy_1_3.orm import aliased from sqlalchemy_1_3.orm import contains_eager from sqlalchemy_1_3.orm import create_session from sqlalchemy_1_3.o...
32.126287
79
0.529027
f496f6ee4dfd1e04da6f2eac46af237fcc78aa80
9,960
py
Python
mmcv/fileio/file_client.py
Alsasolo/mmcv
6dfc9312fa872c7fd63a5e6971e9ecca8e3d4ef1
[ "Apache-2.0" ]
3
2022-03-09T13:15:15.000Z
2022-03-21T06:59:10.000Z
mmcv/fileio/file_client.py
Alsasolo/mmcv
6dfc9312fa872c7fd63a5e6971e9ecca8e3d4ef1
[ "Apache-2.0" ]
10
2020-10-15T19:31:38.000Z
2021-03-21T16:16:28.000Z
mmcv/fileio/file_client.py
Alsasolo/mmcv
6dfc9312fa872c7fd63a5e6971e9ecca8e3d4ef1
[ "Apache-2.0" ]
1
2019-12-14T12:12:48.000Z
2019-12-14T12:12:48.000Z
import inspect from abc import ABCMeta, abstractmethod from urllib.request import urlopen class BaseStorageBackend(metaclass=ABCMeta): """Abstract class of storage backends. All backends need to implement two apis: ``get()`` and ``get_text()``. ``get()`` reads the file as a byte stream and ``get_text()``...
32.129032
79
0.604719
348cfcdc929abfc6d75c7c0d99666629820fd92c
46
py
Python
nsl/collections/__init__.py
ericsnowcurrently/nsl
e676e2b7aff180a4074a662e4f5e1ee9d87b8cb2
[ "BSD-2-Clause" ]
null
null
null
nsl/collections/__init__.py
ericsnowcurrently/nsl
e676e2b7aff180a4074a662e4f5e1ee9d87b8cb2
[ "BSD-2-Clause" ]
null
null
null
nsl/collections/__init__.py
ericsnowcurrently/nsl
e676e2b7aff180a4074a662e4f5e1ee9d87b8cb2
[ "BSD-2-Clause" ]
null
null
null
from ._ns import as_namedtuple # noqa: F401
15.333333
44
0.73913
640dbab7020c68d57c32495edb4a592724ecd3ec
150,564
py
Python
zerver/tests/test_subs.py
umairwaheed/zulip
25a71853da7f51582caddca0a0bcd680f029ada3
[ "Apache-2.0" ]
1
2021-11-26T04:49:14.000Z
2021-11-26T04:49:14.000Z
zerver/tests/test_subs.py
umairwaheed/zulip
25a71853da7f51582caddca0a0bcd680f029ada3
[ "Apache-2.0" ]
2
2017-06-19T04:40:37.000Z
2017-06-27T06:58:11.000Z
zerver/tests/test_subs.py
umairwaheed/zulip
25a71853da7f51582caddca0a0bcd680f029ada3
[ "Apache-2.0" ]
2
2017-03-30T14:33:59.000Z
2021-06-17T17:04:58.000Z
# -*- coding: utf-8 -*- from typing import Any, Dict, List, Mapping, Optional, Sequence, Set from django.conf import settings from django.core.exceptions import ValidationError from django.http import HttpRequest, HttpResponse from django.test import override_settings from django.utils.timezone import now as timezone...
45.778048
149
0.636055
f7db6802f422902d9f4d990ede0f507c6abc9365
32,062
py
Python
core/framework.py
gold1029/apt2
ea3242c13c9216ca25d6c40f5ac4ff81923494ea
[ "MIT" ]
null
null
null
core/framework.py
gold1029/apt2
ea3242c13c9216ca25d6c40f5ac4ff81923494ea
[ "MIT" ]
null
null
null
core/framework.py
gold1029/apt2
ea3242c13c9216ca25d6c40f5ac4ff81923494ea
[ "MIT" ]
null
null
null
import argparse import imp import os import re import sys import pkg_resources from threading import RLock, Thread from keyeventthread import KeyEventThread from os.path import expanduser # import our libs from utils import Utils, Display from keystore import KeyStore as kb from events import EventHandler from mynmap...
43.681199
159
0.48952
c602f60bd065697d5e319419c6fac7fa54945f49
3,546
py
Python
examples/mpm_fluid.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
examples/mpm_fluid.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
1
2020-07-21T05:51:19.000Z
2020-10-08T01:31:15.000Z
examples/mpm_fluid.py
hoojaoh/taichi
641c4b83bcf98e7354b135964cd23759b0110c6b
[ "MIT" ]
null
null
null
import taichi as ti import numpy as np import random import time real = ti.f32 dim = 2 n_particles = 8192 * 4 n_grid = 256 dx = 1 / n_grid inv_dx = 1 / dx dt = 1e-4 p_mass = 1 p_vol = 1 E = 100 scalar = lambda: ti.var(dt=real) vec = lambda: ti.Vector(dim, dt=real) mat = lambda: ti.Matrix(dim, dim, dt=real) x, v = ve...
25.510791
90
0.533277
80e1a2f57b32901daec8c8471f2bc2e4a0d63069
4,303
py
Python
03/uppercase_data.py
jan-pavlovsky/Deep-Learning-Tasks
220764d350ae1bbe8e50250b44a5f9e0b3abefe4
[ "MIT" ]
null
null
null
03/uppercase_data.py
jan-pavlovsky/Deep-Learning-Tasks
220764d350ae1bbe8e50250b44a5f9e0b3abefe4
[ "MIT" ]
null
null
null
03/uppercase_data.py
jan-pavlovsky/Deep-Learning-Tasks
220764d350ae1bbe8e50250b44a5f9e0b3abefe4
[ "MIT" ]
null
null
null
import os import sys import urllib.request import zipfile import numpy as np # Loads the Uppercase data. # - The data consists of three Datasets # - train # - dev # - test [all in lowercase] # - When loading, maximum number of alphabet characters can be specified, # in which case that many most frequent chara...
38.079646
112
0.564257
d4c6d8625569616b032f9dbda047c4a9f291d803
559
py
Python
apps/goals/migrations/0003_goal_player.py
Thijss/django-football
874709e87d6a63610aeef99c624d2f2e811327df
[ "MIT" ]
1
2021-07-20T10:35:17.000Z
2021-07-20T10:35:17.000Z
apps/goals/migrations/0003_goal_player.py
Thijss/django-football
874709e87d6a63610aeef99c624d2f2e811327df
[ "MIT" ]
null
null
null
apps/goals/migrations/0003_goal_player.py
Thijss/django-football
874709e87d6a63610aeef99c624d2f2e811327df
[ "MIT" ]
1
2020-10-28T21:28:54.000Z
2020-10-28T21:28:54.000Z
# Generated by Django 2.2.7 on 2019-11-28 11:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('goals', '0002_goal_match'), ('players', '0001_initial'), ] operations = [ migra...
24.304348
147
0.629696
9763acc1e3bf6d6301ccf0b166f40450af99190b
2,032
py
Python
docs/source/conf.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
94
2020-07-12T23:08:47.000Z
2022-03-05T14:00:01.000Z
docs/source/conf.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
84
2020-07-13T23:30:50.000Z
2022-03-15T15:47:46.000Z
docs/source/conf.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
63
2020-07-13T02:46:51.000Z
2021-11-26T09:29:29.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.440678
79
0.66437
6b7a1be636b5f854440c623c33d7d9029cc61adb
25,781
py
Python
django/core/management/base.py
2roy999/django
21a9e8adf06d5c132f5f0411fc6a89144363dbf8
[ "BSD-3-Clause" ]
1
2019-01-31T17:16:56.000Z
2019-01-31T17:16:56.000Z
django/core/management/base.py
2roy999/django
21a9e8adf06d5c132f5f0411fc6a89144363dbf8
[ "BSD-3-Clause" ]
null
null
null
django/core/management/base.py
2roy999/django
21a9e8adf06d5c132f5f0411fc6a89144363dbf8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ Base classes for writing management commands (named commands which can be executed through ``django-admin`` or ``manage.py``). """ import os import sys import warnings from argparse import ArgumentParser from optparse import OptionParser import dj...
41.448553
180
0.627943
6ae71b7127b801fbf634bc94cf521239537e0148
16,887
py
Python
scripts/dim_axles.py
appolimp/Dynamo_scripts
c4ea77428111d186fab55501243ad4319376482b
[ "MIT" ]
1
2021-07-23T14:38:17.000Z
2021-07-23T14:38:17.000Z
scripts/dim_axles.py
appolimp/Dynamo_scripts
c4ea77428111d186fab55501243ad4319376482b
[ "MIT" ]
null
null
null
scripts/dim_axles.py
appolimp/Dynamo_scripts
c4ea77428111d186fab55501243ad4319376482b
[ "MIT" ]
null
null
null
# coding=utf-8 from base.wrapper import transaction, doc, DB, clr, uidoc from base.exeption import ScriptError from base.selection import get_selected_by_cat from Autodesk.Revit.UI.Selection import ISelectionFilter import logging SECTION_TYPE = [DB.ViewType.Section, DB.ViewType.Elevation] class MySelectionFilter(IS...
28.866667
109
0.628353
bd48008658382f0775da67c527127a976690655a
14,562
py
Python
Scripts/plot_PAMIP_ComparisonZonalZ_SH_Aug19.py
zmlabe/StratoVari
c5549f54482a2b05e89bded3e3b0b3c9faa686f3
[ "MIT" ]
4
2019-11-23T19:44:21.000Z
2020-02-20T16:54:45.000Z
Scripts/plot_PAMIP_ComparisonZonalZ_SH_Aug19.py
zmlabe/StratoVari
c5549f54482a2b05e89bded3e3b0b3c9faa686f3
[ "MIT" ]
null
null
null
Scripts/plot_PAMIP_ComparisonZonalZ_SH_Aug19.py
zmlabe/StratoVari
c5549f54482a2b05e89bded3e3b0b3c9faa686f3
[ "MIT" ]
2
2019-06-21T19:27:55.000Z
2021-02-12T19:13:22.000Z
""" This script compares all PAMIP simulations as of 8/29/2019 for the zonal mean geopotential response to historical and preindustrial forcings. All statistical test uses the FDR method with alpha_FDR=0.05 Notes ----- Author : Zachary Labe Date : 29 August 2019 """ ### Import modules import numpy as np imp...
44.668712
84
0.514764
eea5492cd55679393f81852d28458e2fa7d7b50f
736
py
Python
nsweb/toukei.py
ayziao/niascape
cac9a9f2c5441b9ee46071393d6eeabeda09fa73
[ "MIT" ]
null
null
null
nsweb/toukei.py
ayziao/niascape
cac9a9f2c5441b9ee46071393d6eeabeda09fa73
[ "MIT" ]
2
2018-03-10T14:14:21.000Z
2018-05-03T02:39:24.000Z
nsweb/toukei.py
ayziao/niascape
cac9a9f2c5441b9ee46071393d6eeabeda09fa73
[ "MIT" ]
null
null
null
from flask import ( Blueprint, redirect, render_template, request, url_for ) bp = Blueprint('toukei', __name__, url_prefix='/toukei') @bp.route('') def index(): return 'toukei index' @bp.route('/daycount') def daycount(): from niascape.usecase import site from niascape.usecase import postcount sites = site.l...
24.533333
105
0.67663
12ad2e3bfcb0a4d88359d520a4388977c4f36657
1,179
py
Python
talkmap.py
tyronechen/tyronechen.github.io
5cedfbd384d9c6bea00f3b7260792f7bfad8fa70
[ "MIT" ]
null
null
null
talkmap.py
tyronechen/tyronechen.github.io
5cedfbd384d9c6bea00f3b7260792f7bfad8fa70
[ "MIT" ]
null
null
null
talkmap.py
tyronechen/tyronechen.github.io
5cedfbd384d9c6bea00f3b7260792f7bfad8fa70
[ "MIT" ]
null
null
null
# # Leaflet cluster map of talk locations # # (c) 2016-2017 R. Stuart Geiger, released under the MIT license # # Run this from the _talks/ directory, which contains .md files of all your talks. # This scrapes the location YAML field from each .md file, geolocates it with # geopy/Nominatim, and uses the getorg library...
26.795455
102
0.680237
13d3728c98dcd4e79ff4ad604e0f68dd8940e167
3,268
py
Python
finnal_trainning.py
lichao312214129/AD_classification
e581a125b544737e982616c18fb42c2505379465
[ "MIT" ]
null
null
null
finnal_trainning.py
lichao312214129/AD_classification
e581a125b544737e982616c18fb42c2505379465
[ "MIT" ]
null
null
null
finnal_trainning.py
lichao312214129/AD_classification
e581a125b544737e982616c18fb42c2505379465
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 28 15:45:42 2020 @author: Li Chao, Dong Mengshi """ import numpy as np import pandas as pd import pickle import os import time from collections import Counter from imblearn.over_sampling import RandomOverSampler from get_data import get_data from ensemble_model import M...
32.039216
133
0.701346
b82bd8b1f32575bf14d48fc2438bad8feccd5e2d
814
py
Python
venv/lib/python3.8/site-packages/PyInstaller/hooks/hook-pickle.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
10
2021-09-15T16:29:59.000Z
2022-01-15T11:51:56.000Z
venv/lib/python3.8/site-packages/PyInstaller/hooks/hook-pickle.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venv/lib/python3.8/site-packages/PyInstaller/hooks/hook-pickle.py
avrumnoor/NewsSummarizer
a963497ef9bc62d2148aa28e624ea32955992f57
[ "MIT" ]
4
2018-06-04T20:40:37.000Z
2020-10-13T22:38:40.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2015-2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
42.842105
78
0.617936
0f25b9047d186d2e60483fcfa69bfacbe31c5bd3
498
py
Python
tests/generate_test_lens.py
EEmGuzman/pixell
114ace49afca1d24c1f58ca907290eb4d13b37b1
[ "BSD-3-Clause" ]
null
null
null
tests/generate_test_lens.py
EEmGuzman/pixell
114ace49afca1d24c1f58ca907290eb4d13b37b1
[ "BSD-3-Clause" ]
null
null
null
tests/generate_test_lens.py
EEmGuzman/pixell
114ace49afca1d24c1f58ca907290eb4d13b37b1
[ "BSD-3-Clause" ]
null
null
null
import test_pixell as ptests import os import numpy as np from pixell import enmap obs_pos,grad,raw_pos = ptests.get_offset_result(1.,np.float64) enmap.write_map("data/MM_offset_obs_pos_042219.fits",obs_pos) enmap.write_map("data/MM_offset_grad_042219.fits",grad) enmap.write_map("data/MM_offset_raw_pos_042219.fits",ra...
35.571429
62
0.829317
84372b0d006c3e8285ae5733ed661b847eed38ac
886
py
Python
spiders/html_parser.py
gt11799/xueqiu_spider
72be1a983e3b648b902f12475fb914add7bd45e7
[ "MIT" ]
6
2016-09-08T07:30:42.000Z
2021-02-03T18:20:03.000Z
spiders/html_parser.py
gt11799/xueqiu_spider
72be1a983e3b648b902f12475fb914add7bd45e7
[ "MIT" ]
null
null
null
spiders/html_parser.py
gt11799/xueqiu_spider
72be1a983e3b648b902f12475fb914add7bd45e7
[ "MIT" ]
2
2017-02-07T08:30:18.000Z
2018-04-24T14:01:01.000Z
# -*- coding: utf-8 -*- import re from bs4 import BeautifulSoup def get_people(content): ''' `找人` 页面获得用户 ''' soup = BeautifulSoup(content) content = soup.find_all('div', 'box_topInfluence') content = content[0] tags = content.find_all('a') result = [] for tag in tags: name,...
22.717949
54
0.546275
54183081e6485c9caa6ed83bf2ed6735d847c3f3
233
py
Python
snekcord/undefined.py
asleep-cult/snekcord
04302b0c65bad01c00fb047df3040d3234773689
[ "MIT" ]
9
2021-07-26T00:25:51.000Z
2022-02-23T16:00:10.000Z
snekcord/undefined.py
asleep-cult/snekcord
04302b0c65bad01c00fb047df3040d3234773689
[ "MIT" ]
37
2021-05-29T16:16:22.000Z
2022-02-13T13:57:25.000Z
snekcord/undefined.py
asleep-cult/snekcord
04302b0c65bad01c00fb047df3040d3234773689
[ "MIT" ]
4
2021-06-02T16:45:41.000Z
2022-02-10T14:57:16.000Z
import enum from typing import TypeVar, Union __all__ = ('undefined',) T = TypeVar('T') class UndefinedType(enum.Enum): undefined = enum.auto() undefined = UndefinedType.undefined MaybeUndefined = Union[UndefinedType, T]
13.705882
40
0.729614
854e42215f18d7532c72aa58f6afc44ebec1f499
4,899
py
Python
hw/cnn/models/regnet.py
colonel8377/hkust_machine_learning
80d880a8bd6a0139d5d5409000f836900855b0ba
[ "MIT" ]
3
2021-09-14T11:45:08.000Z
2022-03-24T14:15:45.000Z
hw/cnn/models/regnet.py
colonel8377/hkust_machine_learning
80d880a8bd6a0139d5d5409000f836900855b0ba
[ "MIT" ]
1
2021-11-02T09:05:03.000Z
2021-11-02T09:05:03.000Z
hw/cnn/models/regnet.py
colonel8377/hkust_machine_learning
80d880a8bd6a0139d5d5409000f836900855b0ba
[ "MIT" ]
2
2021-09-04T12:04:47.000Z
2021-09-29T02:22:27.000Z
'''RegNet in PyTorch. Paper: "Designing Network Design Spaces". Reference: https://github.com/keras-team/keras-applications/blob/master/keras_applications/efficientnet.py ''' import torch import torch.nn as nn import torch.nn.functional as F class SE(nn.Module): '''Squeeze-and-Excitation block.''' def __ini...
29.335329
106
0.511125
d7d1f123e462ace02c24dc8ca50d493c2d3e2820
2,476
py
Python
website/migrations/0001_initial.py
danielbandeir/DesignHall2018
a61e4fa94f99a9cd18979fe3044af66b02404c40
[ "MIT" ]
null
null
null
website/migrations/0001_initial.py
danielbandeir/DesignHall2018
a61e4fa94f99a9cd18979fe3044af66b02404c40
[ "MIT" ]
null
null
null
website/migrations/0001_initial.py
danielbandeir/DesignHall2018
a61e4fa94f99a9cd18979fe3044af66b02404c40
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-17 19:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='category', fields=[ ...
41.966102
121
0.582391
4c15d3e514f0e20c0dc8d4e13d7b6ed0e84caa8c
49,565
py
Python
test/test_sparse_csr.py
nikulpatel462/pytorch
d9e7d85390d61f4d2739da97f93045eb38ca5dd2
[ "Intel" ]
null
null
null
test/test_sparse_csr.py
nikulpatel462/pytorch
d9e7d85390d61f4d2739da97f93045eb38ca5dd2
[ "Intel" ]
null
null
null
test/test_sparse_csr.py
nikulpatel462/pytorch
d9e7d85390d61f4d2739da97f93045eb38ca5dd2
[ "Intel" ]
1
2021-12-07T12:36:25.000Z
2021-12-07T12:36:25.000Z
# Owner(s): ["module: sparse"] import torch import random import itertools import unittest from torch.testing import get_all_complex_dtypes, get_all_fp_dtypes, floating_and_complex_types, make_tensor from torch.testing._internal.common_cuda import SM53OrLater, SM80OrLater, TEST_CUSPARSE_GENERIC from torch.testing._int...
48.356098
132
0.577948
7b759fe575fc9d1fc665eba953ab6c4e4a31cfb5
9,607
py
Python
tensorflow/python/ops/linalg/linear_operator_toeplitz.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/linalg/linear_operator_toeplitz.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/linalg/linear_operator_toeplitz.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "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...
38.737903
100
0.63995
6b4030a8cb1d4fe18f25dd239d69361359b85ec2
455
py
Python
linear_example.py
RidhimaKohli/ML-DL-implementation
2bdb5abbb310a8cbc0547bb06ed7e176312a78d7
[ "BSD-3-Clause" ]
null
null
null
linear_example.py
RidhimaKohli/ML-DL-implementation
2bdb5abbb310a8cbc0547bb06ed7e176312a78d7
[ "BSD-3-Clause" ]
null
null
null
linear_example.py
RidhimaKohli/ML-DL-implementation
2bdb5abbb310a8cbc0547bb06ed7e176312a78d7
[ "BSD-3-Clause" ]
null
null
null
from MLlib.models import LinearRegression from MLlib.optimizers import Adam from MLlib.loss_func import MeanSquaredError from MLlib.utils.misc_utils import read_data, printmat X, Y = read_data('MLlib/datasets/linear_reg_00.txt') linear_model = LinearRegression() optimizer = Adam(0.01, MeanSquaredError) linear_mode...
25.277778
68
0.804396
b9408d60ee82e9b4a704a7da3754592ff33438cb
4,205
py
Python
tests/trainers/callbacks/test_logistics.py
simran2905/mmf
844755759d8ee4cb2033cc53b7dff6031146e9c6
[ "BSD-3-Clause" ]
3
2021-03-09T09:01:33.000Z
2022-03-28T01:49:16.000Z
tests/trainers/callbacks/test_logistics.py
simran2905/mmf
844755759d8ee4cb2033cc53b7dff6031146e9c6
[ "BSD-3-Clause" ]
null
null
null
tests/trainers/callbacks/test_logistics.py
simran2905/mmf
844755759d8ee4cb2033cc53b7dff6031146e9c6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import argparse import os import tempfile import unittest from copy import deepcopy from unittest.mock import Mock import torch from mmf.common.meter import Meter from mmf.common.registry import registry from mmf.common.report import Report from mmf.models.base_model...
33.91129
87
0.626873
2861d9245b5cd8420e89caf5f67d1473667b61e1
51
py
Python
test/python/WMComponent_t/DBS3Buffer_t/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
test/python/WMComponent_t/DBS3Buffer_t/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
test/python/WMComponent_t/DBS3Buffer_t/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
""" Created on Mar 13, 2013 @author: dballest """
8.5
23
0.627451
05a6fa6df9d363fb4b6c87c0db36a4c92f060b90
1,040
py
Python
enhance/image_enhance.py
ogabriel/APS-UNIP-6sem
d09cb692f599606f5c14250e7d615e18c61b9624
[ "BSD-2-Clause" ]
2
2019-11-05T06:59:33.000Z
2019-11-21T15:46:48.000Z
enhance/image_enhance.py
ogabriel/APS-UNIP-6sem
d09cb692f599606f5c14250e7d615e18c61b9624
[ "BSD-2-Clause" ]
null
null
null
enhance/image_enhance.py
ogabriel/APS-UNIP-6sem
d09cb692f599606f5c14250e7d615e18c61b9624
[ "BSD-2-Clause" ]
3
2020-02-14T14:11:21.000Z
2020-11-30T01:21:55.000Z
from .ridge_segmentation import ridge_segment from .ridge_orientation import ridge_orient from .ridge_frequency import ridge_freq from .ridge_filter import ridge_filter def image_enhance(img): blksze = 16 thresh = 0.1 # normalise the image and find a ROI normim, mask = ridge_segment(img, blksze, thres...
26.666667
78
0.680769
85660a95d85aded5e3210cff14be8a359fd6c402
395
py
Python
neighbors/wsgi.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
neighbors/wsgi.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
neighbors/wsgi.py
pabulumm/neighbors
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for neighbors project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
23.235294
78
0.787342
194d9522bd7fee234ebe968ded47a94d5c00089d
7,497
py
Python
tensorflow/contrib/rnn/python/kernel_tests/fused_rnn_cell_test.py
smarthi/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
2
2019-10-09T08:06:48.000Z
2021-01-07T03:16:09.000Z
tensorflow/contrib/rnn/python/kernel_tests/fused_rnn_cell_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
1
2017-02-06T08:12:22.000Z
2017-02-06T08:12:22.000Z
tensorflow/contrib/rnn/python/kernel_tests/fused_rnn_cell_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
44.1
80
0.705482
8d734bd97e2de887164287297c6119a25833f362
491
py
Python
recipe_app/schema.py
PatrickCmd/Recipe-API-Django-GraphQL
bed1f1ebab88615ca62ea3846fbeb8e1a69c09e6
[ "MIT" ]
null
null
null
recipe_app/schema.py
PatrickCmd/Recipe-API-Django-GraphQL
bed1f1ebab88615ca62ea3846fbeb8e1a69c09e6
[ "MIT" ]
null
null
null
recipe_app/schema.py
PatrickCmd/Recipe-API-Django-GraphQL
bed1f1ebab88615ca62ea3846fbeb8e1a69c09e6
[ "MIT" ]
null
null
null
import graphene import graphql_jwt import auth_user.schema import api.schema class Query( auth_user.schema.Query, api.schema.Query, graphene.ObjectType, ): pass class Mutation( auth_user.schema.Mutation, api.schema.Mutation, graphene.ObjectType, ): token_auth = graphql_jwt.ObtainJSO...
18.185185
56
0.741344
71fd66ef9656746c6da04b918a01e93843ba7403
679
py
Python
src/first_website/first_website/config.py
StevenHuang2020/flask_website
95547ad9c0da5bc9ab43212f72b1ed8158cee937
[ "MIT" ]
null
null
null
src/first_website/first_website/config.py
StevenHuang2020/flask_website
95547ad9c0da5bc9ab43212f72b1ed8158cee937
[ "MIT" ]
null
null
null
src/first_website/first_website/config.py
StevenHuang2020/flask_website
95547ad9c0da5bc9ab43212f72b1ed8158cee937
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # Date: 16/Jan/2022 # Author: Steven Huang, Auckland, NZ # License: MIT License """ Description: Web Configuration class """ import os class Config: SECRET_KEY = 'e7c794326ea87a59b2cf616809e1efcd' # secrets.token_hex(16) SQLALCHEMY_DATABASE_URI = 'sqlite:///db/sqlite/website.db' ...
29.521739
80
0.708395
0ec2dc125e622d2efd91d48e3deccead9015a677
28,288
py
Python
tensorflow_probability/python/layers/dense_variational.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/layers/dense_variational.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/layers/dense_variational.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.964187
120
0.721896
536182a0bb616de226d3ff869e64aca630988abe
97
py
Python
backend/server/apps/endpoints/apps.py
niran360/ml_service
821c1462294321dd1ff8f0605cca798f6d5bc66e
[ "MIT" ]
null
null
null
backend/server/apps/endpoints/apps.py
niran360/ml_service
821c1462294321dd1ff8f0605cca798f6d5bc66e
[ "MIT" ]
null
null
null
backend/server/apps/endpoints/apps.py
niran360/ml_service
821c1462294321dd1ff8f0605cca798f6d5bc66e
[ "MIT" ]
null
null
null
from django.apps import AppConfig # class EndpointsConfig(AppConfig): # name = 'endpoints'
16.166667
35
0.731959
845e4e08a7f1796deb98b1eec2cfd366dfb0aaba
512
py
Python
serpapi_async/google_search_aiohttp.py
pualien/google-search-results-python
a7e013194fa14ea9d2e077b41f1d25da0440ecb5
[ "MIT" ]
null
null
null
serpapi_async/google_search_aiohttp.py
pualien/google-search-results-python
a7e013194fa14ea9d2e077b41f1d25da0440ecb5
[ "MIT" ]
null
null
null
serpapi_async/google_search_aiohttp.py
pualien/google-search-results-python
a7e013194fa14ea9d2e077b41f1d25da0440ecb5
[ "MIT" ]
null
null
null
from serpapi_async.serp_api_client_aiohttp import * class GoogleSearchAIOHTTP(SerpApiClientAIOHTTP): """GoogleSearch enables to search google and parse the result. ```python from serpapi import GoogleSearch query = GoogleSearch({"q": "coffee", "location": "Austin,Texas"}) data = query.get_json() ...
30.117647
77
0.716797
ee68d571b644ad62c1826d8cdf6099ab5f667b24
2,165
py
Python
Code-Challenges/CodeChef/Codeflows/MINPROD.py
AdrKacz/Dev-Learning
d75ef6a0430c2b1109e71f74d017598e024ca518
[ "MIT" ]
null
null
null
Code-Challenges/CodeChef/Codeflows/MINPROD.py
AdrKacz/Dev-Learning
d75ef6a0430c2b1109e71f74d017598e024ca518
[ "MIT" ]
null
null
null
Code-Challenges/CodeChef/Codeflows/MINPROD.py
AdrKacz/Dev-Learning
d75ef6a0430c2b1109e71f74d017598e024ca518
[ "MIT" ]
null
null
null
########## ### FastIO ########## import sys import os from io import BytesIO, IOBase BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in file.mode or "r" not in file.mode self.writ...
28.866667
87
0.538106
5a752f99e9c5d0098573432298cf624e4e73ca26
26,090
py
Python
src/rogerthat/restapi/service_panel.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/restapi/service_panel.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/restapi/service_panel.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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...
41.347068
128
0.775814
1ce48184b4a3b05fc252623d85e1d28c14ca3d3f
1,908
py
Python
newspaper2/newspaper2/middleware.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
newspaper2/newspaper2/middleware.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
newspaper2/newspaper2/middleware.py
luisfer85/newspaper2
8522bc29e5597113af9f9714e510548057e19315
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.utils import translation class No404Middleware(object): def __init__(self, get_response): self.get_response = get_response ...
34.690909
80
0.662474
7cd04b4822d01ff88326278102628dc39832f4ad
4,361
py
Python
domain/diff/dom_diff.py
Taurin190/py-diffdom
9740cdf7ed51b4dbd658baac636f1ebfb533e277
[ "MIT" ]
null
null
null
domain/diff/dom_diff.py
Taurin190/py-diffdom
9740cdf7ed51b4dbd658baac636f1ebfb533e277
[ "MIT" ]
null
null
null
domain/diff/dom_diff.py
Taurin190/py-diffdom
9740cdf7ed51b4dbd658baac636f1ebfb533e277
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from domain.diff.diff import Diff from bs4 import BeautifulSoup class DomDiff(Diff): def __init__(self, app_conf): super().__init__() self.result_text = "" self.different_dom_list = [] self.print_type = app_conf["print_type"] self.TEXT_MAX = int(app_c...
44.050505
104
0.468929
ae773bde2c8869845cada36a4965b768cfff999d
841
py
Python
deny-host/DenyHosts/python_version.py
kaustubhcs/server-tools
336945b2e331bed22ba7e0f3b18604168a5484ae
[ "MIT" ]
null
null
null
deny-host/DenyHosts/python_version.py
kaustubhcs/server-tools
336945b2e331bed22ba7e0f3b18604168a5484ae
[ "MIT" ]
null
null
null
deny-host/DenyHosts/python_version.py
kaustubhcs/server-tools
336945b2e331bed22ba7e0f3b18604168a5484ae
[ "MIT" ]
null
null
null
import sys def check_version(): version_tuple = sys.version_info version = version_tuple[0] * 100 + version_tuple[1] if version < 203: print "Python >= 2.3 required. You are using:", sys.version print """ ###################################################################### Visit http:...
26.28125
71
0.592152
42656dc3896173ec3881a20fe1d8f610c7f1d1e8
3,701
py
Python
ijmfttxt/keyboard.py
IJMTutorSES/ijmfttxt
1cbc2e3d130ca7e44f79f5ddedd056b8cac90b7b
[ "MIT" ]
null
null
null
ijmfttxt/keyboard.py
IJMTutorSES/ijmfttxt
1cbc2e3d130ca7e44f79f5ddedd056b8cac90b7b
[ "MIT" ]
null
null
null
ijmfttxt/keyboard.py
IJMTutorSES/ijmfttxt
1cbc2e3d130ca7e44f79f5ddedd056b8cac90b7b
[ "MIT" ]
null
null
null
import pynput from typing import Union, List from .errors import type_checker, UserValueError, error_handler class Keyboard: """Klasse für Keyboardlistener Funktionen""" @error_handler def __init__(self): self._keys = {} self._listener = pynput.keyboard.Listener( on_press=sel...
26.818841
120
0.578762
d1fc6b2160450bcddfa771a03de6b18576a5908f
962
py
Python
mmdet/models/detectors/__init__.py
xiaohuaibaoguigui/r3det-on-mmdetection
ddbb0a66af5e304c6668e265d133260d9c7710ea
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/__init__.py
xiaohuaibaoguigui/r3det-on-mmdetection
ddbb0a66af5e304c6668e265d133260d9c7710ea
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/__init__.py
xiaohuaibaoguigui/r3det-on-mmdetection
ddbb0a66af5e304c6668e265d133260d9c7710ea
[ "Apache-2.0" ]
null
null
null
from .atss import ATSS from .base import BaseDetector from .cascade_rcnn import CascadeRCNN from .fast_rcnn import FastRCNN from .faster_rcnn import FasterRCNN from .fcos import FCOS from .fovea import FOVEA from .fsaf import FSAF from .grid_rcnn import GridRCNN from .htc import HybridTaskCascade from .mask_rcnn import...
33.172414
77
0.784823
ddc1177462818c36413e3a05f0c18c617f9a9af1
2,144
py
Python
base-lun.py
tjcdev/bipedal-walker-with-tl
828fdca6caea9e8e15dcb9de920ad1be2f4ed8fb
[ "MIT" ]
null
null
null
base-lun.py
tjcdev/bipedal-walker-with-tl
828fdca6caea9e8e15dcb9de920ad1be2f4ed8fb
[ "MIT" ]
null
null
null
base-lun.py
tjcdev/bipedal-walker-with-tl
828fdca6caea9e8e15dcb9de920ad1be2f4ed8fb
[ "MIT" ]
null
null
null
import gym import tensorflow as tf import os from baselines.common.vec_env.subproc_vec_env import SubprocVecEnv from baselines.run import get_learn_function, get_env_type, get_learn_function_defaults, build_env import time from types import SimpleNamespace # Set the save path for this model save_path = os.path.base...
28.210526
98
0.715951
69b26414d85ea3d78675476d64a59d73c5f87900
5,706
py
Python
instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py
willarmiros/opentelemetry-python-contrib
0d34ef26b75f9a3bc275bf828b5a806d39ba1a40
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-07-01T19:12:01.000Z
2021-07-01T19:12:01.000Z
instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py
willarmiros/opentelemetry-python-contrib
0d34ef26b75f9a3bc275bf828b5a806d39ba1a40
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py
willarmiros/opentelemetry-python-contrib
0d34ef26b75f9a3bc275bf828b5a806d39ba1a40
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-11-20T06:31:17.000Z
2021-11-20T06:31:17.000Z
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.886792
79
0.675429
f08c8b45fe7dde2ac39a2a4536441fe789b6ee86
5,605
py
Python
monodepth/utils/vid_to_seq.py
ankann/MEDhof_food-calorie
289c241c459c450a43d3cea93fad7442068b702e
[ "Apache-2.0" ]
null
null
null
monodepth/utils/vid_to_seq.py
ankann/MEDhof_food-calorie
289c241c459c450a43d3cea93fad7442068b702e
[ "Apache-2.0" ]
null
null
null
monodepth/utils/vid_to_seq.py
ankann/MEDhof_food-calorie
289c241c459c450a43d3cea93fad7442068b702e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import argparse import os import shutil def parse_args(): # Construct argument parser. parser = argparse.ArgumentParser(description = "Utility to extract frames from videos.") parser.add_argument("--filename", type = str, help = "Video filename.", required = True) ...
43.449612
177
0.658519
990dbf28f53cb831f3701273c12fc629498b42de
2,216
py
Python
tests/test_options.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
null
null
null
tests/test_options.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
null
null
null
tests/test_options.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from .config import RiveScriptTestCase class ParserOptionTest(RiveScriptTestCase): """File scoped parser option tests.""" def test_concat(self): self.new(""" // Default concat mode = no...
28.779221
84
0.509928
7c783e06a963aadc8193847f6ed9d0b21f58f414
2,204
py
Python
phonenumbers/data/region_IM.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
2
2019-02-22T05:27:22.000Z
2020-12-30T19:33:18.000Z
phonenumbers/data/region_IM.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
phonenumbers/data/region_IM.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. IM metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_IM = PhoneMetadata(id='IM', country_code=44, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[135789]\\d{6,9}', possible_number_patter...
95.826087
195
0.76588
79e7d86404ce8051e48ed48f499309e0a90175bb
939
py
Python
saleor/cart/__init__.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
2
2017-07-11T12:40:59.000Z
2017-10-18T18:02:46.000Z
saleor/cart/__init__.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
12
2017-06-19T07:20:41.000Z
2022-03-15T19:03:33.000Z
saleor/cart/__init__.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import logging from django.utils.translation import pgettext_lazy logger = logging.getLogger(__name__) class CartStatus: OPEN = 'open' SAVED = 'saved' WAITING_FOR_PAYMENT = 'payment' ORDERED = 'ordered' CHECKOUT = 'checkout' CANCELED = ...
30.290323
72
0.602769
07d7622ed0229133f3d614807fadf361abd88b88
237
py
Python
djangoapps/todo/urls.py
yukkeorg/djangoapps
372c8d5a7686744850d2f4bac4dfb6a90dc659f6
[ "Unlicense" ]
null
null
null
djangoapps/todo/urls.py
yukkeorg/djangoapps
372c8d5a7686744850d2f4bac4dfb6a90dc659f6
[ "Unlicense" ]
5
2021-04-08T18:13:45.000Z
2021-09-22T17:36:27.000Z
djangoapps/todo/urls.py
yukkeorg/djangoapps
372c8d5a7686744850d2f4bac4dfb6a90dc659f6
[ "Unlicense" ]
null
null
null
from django.conf.urls import url from . import views app_name = "todo" urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^append$', views.append, name='append'), url(r'^delete$', views.delete, name='delete'), ]
19.75
50
0.632911
4a6f2c5f544163dffd58bc1c7d91b44b15752595
10,633
py
Python
highway_env/vehicle/dynamics.py
hayoung-kim/highway-env
ebaed57de8bfc3da67e14a18fc8f2d8763c94c1a
[ "MIT" ]
2
2020-05-16T19:14:15.000Z
2021-07-31T15:17:48.000Z
highway_env/vehicle/dynamics.py
hayoung-kim/highway-env
ebaed57de8bfc3da67e14a18fc8f2d8763c94c1a
[ "MIT" ]
null
null
null
highway_env/vehicle/dynamics.py
hayoung-kim/highway-env
ebaed57de8bfc3da67e14a18fc8f2d8763c94c1a
[ "MIT" ]
1
2020-11-13T18:47:21.000Z
2020-11-13T18:47:21.000Z
from __future__ import division, print_function import copy import numpy as np import pandas as pd from collections import deque from highway_env import utils from highway_env.logger import Loggable class Vehicle(Loggable): """ A moving vehicle on a road, and its dynamics. The vehicle is repre...
38.948718
120
0.607354
e6408fce42af852a9640de230780084e6ded85ea
2,015
py
Python
src/python/JogadorGuloso.py
guiaguiar27/MinMaxIA
b75d302a54a8cfd9c565a9f15fc4563d6b013012
[ "MIT" ]
1
2021-12-03T17:54:16.000Z
2021-12-03T17:54:16.000Z
python/JogadorGuloso.py
alehchain/Projeto-3-Inteligencia-Artificial
1acadc5f3737692189853184742dc87ee17275ae
[ "MIT" ]
null
null
null
python/JogadorGuloso.py
alehchain/Projeto-3-Inteligencia-Artificial
1acadc5f3737692189853184742dc87ee17275ae
[ "MIT" ]
null
null
null
# Jogador # Created on 11 de Junho de 2021 from Jogador import Jogador from Jogada import Jogada from Tabuleiro import Tabuleiro # Esta Classe implementa o esqueleto de um jogador guloso. # # Ele se conecta no servidor do jogo no host passado pela linha de argumentos e # na porta fornecida pela classe Se...
33.032787
92
0.698263
ead4fdbe62eb08ccf0a0aaf1d638e74e07190078
667
py
Python
tests/pyre.pkg/weaver/document_cxx.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
null
null
null
tests/pyre.pkg/weaver/document_cxx.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:13.000Z
2021-06-10T23:42:13.000Z
tests/pyre.pkg/weaver/document_cxx.py
jlmaurer/pyre
6af38a83621d7d6228d147b4bb94f97fbb10f6e2
[ "BSD-3-Clause" ]
2
2020-08-31T18:07:52.000Z
2021-12-10T08:54:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2020 all rights reserved # """ Exercise a C++ weaver """ def test(): # get the package import pyre.weaver # instantiate a weaver weaver = pyre.weaver.weaver(name="sanity") weaver.language = "C++" ...
15.159091
47
0.490255
bcbd99eebaefe9cd24bc3e38ba904a43b2632a6c
15,397
py
Python
generate_dialogue.py
weiddeng/simpletod
2a9e5dd0e7556aeefec31e763bc3cae578c190dc
[ "BSD-3-Clause" ]
null
null
null
generate_dialogue.py
weiddeng/simpletod
2a9e5dd0e7556aeefec31e763bc3cae578c190dc
[ "BSD-3-Clause" ]
null
null
null
generate_dialogue.py
weiddeng/simpletod
2a9e5dd0e7556aeefec31e763bc3cae578c190dc
[ "BSD-3-Clause" ]
null
null
null
import torch from transformers import GPT2Tokenizer, GPT2LMHeadModel, OpenAIGPTLMHeadModel, OpenAIGPTTokenizer from utils.args_parser import ArgsParser from data.dataset.multiwoz import MultiWozDataset from evaluate_multiwoz import MultiWozDB from utils.multiwoz import dbPointer from utils.simpletod import * import tq...
38.979747
141
0.569462
723da38ece213f3afd16426d8b380b49b947e3da
4,184
py
Python
decibinary.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
decibinary.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
decibinary.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
import pandas as pd df = pd.DataFrame({'grade': {0: 10,1: 12,2: 10,3: 9,4: 10,5: 12,6: 10,7: 11,8: 11,9: 12,10: 12,11: 9,12: 12,13: 12,14: 10,15: 11,16: 11,17: 11,18: 10,19: 12,20: 11,21: 10,22: 10,23: 10,24: 11,25: 9,26: 10,27: 9,28: 10,29: 11,30: 12,31: 11,32: 12,33: 12,34: 12,35: 9,36: 11,37: 10,38: 11,39: 10,40: 12...
139.466667
1,485
0.58413
708ee17fcf7968652c73b19e2f43abbe14916343
8,062
py
Python
torchelastic/rendezvous/api.py
osalpekar/elastic
2b097512a9e7e3c63a8cce0376f8a6e028f070fa
[ "BSD-3-Clause" ]
null
null
null
torchelastic/rendezvous/api.py
osalpekar/elastic
2b097512a9e7e3c63a8cce0376f8a6e028f070fa
[ "BSD-3-Clause" ]
null
null
null
torchelastic/rendezvous/api.py
osalpekar/elastic
2b097512a9e7e3c63a8cce0376f8a6e028f070fa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env/python3 # 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 abc from typing import Any, Callable, Dict, Tuple class RendezvousClosedExceptio...
33.591667
97
0.618209
9c90ad4fd147512cf5e0a3159c98a197c589ffc1
763
py
Python
tuple4.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
tuple4.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
tuple4.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
# Python Program To Modify Or Replace An Existing Element Of A Tuple With A New Elements ''' Function Name : Modify, Replace Element Of A Tuple With New Element. Function Date : 12 Sep 2020 Function Author : Prasad Dangare Input : String,Integer Output : String,Integer ''' n...
23.84375
89
0.648755
266e05c8e13efba4f7dcb7be88250e8181c75785
1,781
py
Python
EXOSIMS/util/statsFun.py
toddytharmonkey/EXOSIMS
526345356e537fd201676b7cc998380fb22229bb
[ "BSD-3-Clause" ]
null
null
null
EXOSIMS/util/statsFun.py
toddytharmonkey/EXOSIMS
526345356e537fd201676b7cc998380fb22229bb
[ "BSD-3-Clause" ]
null
null
null
EXOSIMS/util/statsFun.py
toddytharmonkey/EXOSIMS
526345356e537fd201676b7cc998380fb22229bb
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.optimize import fmin_l_bfgs_b ''' Collection of useful statistics routines ''' def simpSample(f, numTest, xMin, xMax, M = None, verb = False): ''' Use the rejection sampling method to generate a probability distribution according to the given function f, between some ra...
26.58209
85
0.594048
54975ae72fcd6c0313c6da0446b6e6530c4bc98f
3,215
py
Python
mezzanine/forms/fields.py
wrwrwr/mezzanine
b9da5a2353405daa95de086ff972def80cd65621
[ "BSD-2-Clause" ]
1
2020-01-27T20:44:56.000Z
2020-01-27T20:44:56.000Z
mezzanine/forms/fields.py
akshar-raaj/mezzanine
9bba451de281e30393c11eaa68e18385f3029fe3
[ "BSD-2-Clause" ]
null
null
null
mezzanine/forms/fields.py
akshar-raaj/mezzanine
9bba451de281e30393c11eaa68e18385f3029fe3
[ "BSD-2-Clause" ]
null
null
null
from django.core.exceptions import ImproperlyConfigured from django import forms from django.forms.extras import SelectDateWidget from django.utils.translation import ugettext_lazy as _ from mezzanine.conf import settings from mezzanine.core.forms import SplitSelectDateTimeWidget from mezzanine.utils.importing import...
30.619048
76
0.707621
dc4a6b4359ec65312ef7bf81fc39ab4307127c0e
10,205
py
Python
scripts/s3cp.py
leoloe326/aws-training
7aa15731ec24192b373aa646f9d13668a88a44fd
[ "BSD-3-Clause" ]
null
null
null
scripts/s3cp.py
leoloe326/aws-training
7aa15731ec24192b373aa646f9d13668a88a44fd
[ "BSD-3-Clause" ]
null
null
null
scripts/s3cp.py
leoloe326/aws-training
7aa15731ec24192b373aa646f9d13668a88a44fd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # S3 Operation Examples import argparse import random import sys import string import time import uuid import Queue import threading import boto3 import boto3.session import botocore from collections import defaultdict from datetime import datetime from cStringIO import StringIO # Utilities ...
32.396825
88
0.631063
323d2371fb79985fa376c24fef15ba924ab562b4
13,305
py
Python
sdk/python/pulumi_azure_native/eventgrid/v20180915preview/domain.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20180915preview/domain.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20180915preview/domain.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...
45.101695
1,049
0.65885
7a0894adf6003597acfd3fe674d43c685d56a555
1,870
py
Python
faker/providers/hi_IN/person.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2018-06-18T02:30:24.000Z
2018-06-18T02:30:24.000Z
faker/providers/hi_IN/person.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
null
null
null
faker/providers/hi_IN/person.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2021-03-27T01:40:50.000Z
2021-03-27T01:40:50.000Z
# coding=utf-8 from __future__ import unicode_literals from ..person import Provider as PersonProvider class Provider(PersonProvider): formats = ( '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{last_name}}, {{first_name}}' ) first_names = ( 'अभय','आदित्...
62.333333
158
0.4
7ed7b06e9f62763cbb2b3ecb7de9ce5512394001
2,249
py
Python
src/hostphot/image_cleaning.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
src/hostphot/image_cleaning.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
src/hostphot/image_cleaning.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
import numpy as np from astropy import wcs from astropy.nddata.utils import Cutout2D def trim_images(fits_files, pos, size): """Trims the size of the given fits images. Parameters ---------- fits_files: list List of fits images. pos: `~astropy.coordinates.SkyCoord` The position of ...
28.833333
68
0.614495
e2e3f67181f8505d6c0250ea16f3973fc7d1bd31
24,016
py
Python
objectModel/Python/cdm/objectmodel/cdm_attribute_context.py
jasonjberry/CDM
2f532047f0b9e231c1602df6a076c534fba6d73a
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/cdm/objectmodel/cdm_attribute_context.py
jasonjberry/CDM
2f532047f0b9e231c1602df6a076c534fba6d73a
[ "CC-BY-4.0", "MIT" ]
38
2021-09-07T21:23:21.000Z
2022-03-14T01:36:58.000Z
objectModel/Python/cdm/objectmodel/cdm_attribute_context.py
jasonjberry/CDM
2f532047f0b9e231c1602df6a076c534fba6d73a
[ "CC-BY-4.0", "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from typing import cast, List, Optional, Union, TYPE_CHECKING from collections import OrderedDict from cdm.enums import CdmAttributeContextType, CdmObjectType fro...
46.90625
162
0.658478
c2372e82eb0e7227206c4889f158a3d11e7c16ac
1,565
py
Python
tensorflow/tensorflow_tools/simlar_dish_detect/trainer.py
bowen9799/cuisine-detection
c805e82b1d13aede835b5ffb4713addf9dd4f5ec
[ "Apache-2.0" ]
null
null
null
tensorflow/tensorflow_tools/simlar_dish_detect/trainer.py
bowen9799/cuisine-detection
c805e82b1d13aede835b5ffb4713addf9dd4f5ec
[ "Apache-2.0" ]
null
null
null
tensorflow/tensorflow_tools/simlar_dish_detect/trainer.py
bowen9799/cuisine-detection
c805e82b1d13aede835b5ffb4713addf9dd4f5ec
[ "Apache-2.0" ]
null
null
null
from const import const from utils import Utils import os import multiprocessing class Trainer: @staticmethod def train(datadir): print ('copy traindata : %s -> %s' % (datadir, const.TRAIN_SRC)) Utils.randomCopyFile(datadir, const.TRAIN_SRC, const.TRAIN_NUM) p = multiprocessing.Proces...
31.3
73
0.572524
66c672060e5c8c1d6b31d8fe740b8ea9b8d44ff3
14,313
py
Python
utils/lfutils.py
hieuttcse/rip_epinet
9a46737c3246a4b6b5ae9e3c38fc06ae890d185a
[ "MIT" ]
null
null
null
utils/lfutils.py
hieuttcse/rip_epinet
9a46737c3246a4b6b5ae9e3c38fc06ae890d185a
[ "MIT" ]
null
null
null
utils/lfutils.py
hieuttcse/rip_epinet
9a46737c3246a4b6b5ae9e3c38fc06ae890d185a
[ "MIT" ]
null
null
null
# Trung-Hieu Tran @IPVS # 180919 from __future__ import print_function import numpy as np import math import scipy import matplotlib.image as mpimg import scipy.ndimage def disp_scaling(disp,new_shape): return scipy.misc.imresize(disp,new_shape, interp="bicubic",mode="F") def img_...
34.078571
114
0.514008
bf8afaa7bfb6008d6a3118a4e61353acd25ffcbc
12,547
py
Python
onofftf/main.py
hegdepashupati/zero-inflated-gp
fbf0199410f312546bcaa4b143655d909627a9d2
[ "MIT" ]
9
2018-03-18T21:35:16.000Z
2021-07-20T13:57:43.000Z
onofftf/main.py
hegdepashupati/zero-inflated-gp
fbf0199410f312546bcaa4b143655d909627a9d2
[ "MIT" ]
1
2018-07-24T08:40:41.000Z
2018-07-24T08:40:41.000Z
onofftf/main.py
hegdepashupati/zero-inflated-gp
fbf0199410f312546bcaa4b143655d909627a9d2
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf import gpflow as gp from gpflow import transforms from tensorflow.python.framework import random_seed import numpy import matplotlib.pyplot as plt from tensorflow import Variable float_type = tf.float64 jitter_level = 1e-4 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' c...
32.337629
146
0.611541
e25bb1074463bb97cfc42a0d10cd2bc26a1b8eb2
474
py
Python
osint/seek-leak/modules/snusbase.py
skateforever/pentest-scripts
7adc08af2bdf4801bc20a0c6f578cc8a417b2712
[ "MIT" ]
18
2020-06-03T02:06:43.000Z
2022-03-22T01:29:09.000Z
osint/seek-leak/modules/snusbase.py
skateforever/pentest-scripts
7adc08af2bdf4801bc20a0c6f578cc8a417b2712
[ "MIT" ]
11
2020-03-16T22:27:45.000Z
2021-12-15T10:03:03.000Z
osint/seek-leak/modules/snusbase.py
skateforever/pentest-scripts
7adc08af2bdf4801bc20a0c6f578cc8a417b2712
[ "MIT" ]
6
2020-07-11T19:37:06.000Z
2022-03-28T13:42:56.000Z
#!/usr/bin/python3 import requests import json snusbase_headers = { 'User-Agent' : 'seek-leak', 'Content-Type' : 'application/json', #'Authorization' : '67RIoTVZ1BeCAwOnHafAiSRR0sUGOM' 'Authorization' : '5546126669069976' } snusbase_url = "http://api.snusbase.com/v2/search" snusbase_email = '{"type"...
24.947368
85
0.727848
02a1d032b4cf0db95f99102163dfce7960e8569f
180
py
Python
main.py
rolledev/rankfuck
090f8ab61d8f4701ce5276774d194ba123ceab5c
[ "MIT" ]
null
null
null
main.py
rolledev/rankfuck
090f8ab61d8f4701ce5276774d194ba123ceab5c
[ "MIT" ]
null
null
null
main.py
rolledev/rankfuck
090f8ab61d8f4701ce5276774d194ba123ceab5c
[ "MIT" ]
null
null
null
import tweepy auth = tweepy.OAuthHandler("do not","do not") auth.set_access_token = ("do not","do not") api = tweepy.API(auth) tweet = "test" api.update_status(status = (tweet))
20
45
0.7
faf83a0ebab44615193a6e1da07394c0f09f9828
2,503
py
Python
relation/service/model.py
wusaisa/KGQA
1e2f6bc7a3151d79a1af32e12f41d1222fd9b69d
[ "Apache-2.0" ]
null
null
null
relation/service/model.py
wusaisa/KGQA
1e2f6bc7a3151d79a1af32e12f41d1222fd9b69d
[ "Apache-2.0" ]
null
null
null
relation/service/model.py
wusaisa/KGQA
1e2f6bc7a3151d79a1af32e12f41d1222fd9b69d
[ "Apache-2.0" ]
1
2021-01-29T03:04:21.000Z
2021-01-29T03:04:21.000Z
import torch import torch.nn as nn from pytorch_pretrained_bert import BertModel, BertTokenizer key = {0: '别名', 1: '分布区域', 2: '病原学名', 3: '病原中文名', 4: '病原属性', 5: '为害部位', 6: '为害作物', 7: '属目', 8: '属科', 9: '学名', 10: '防治药物', 11: '症状', 12: '病原...
27.206522
92
0.578905
7bc0d03f7e1c269d7e26b3b37ddd73a9c0b618c7
701
py
Python
setup.py
SpielerNogard/PyDB
ea89a90b3870d91dbcb011cb88fd08c83466d6a8
[ "MIT" ]
null
null
null
setup.py
SpielerNogard/PyDB
ea89a90b3870d91dbcb011cb88fd08c83466d6a8
[ "MIT" ]
null
null
null
setup.py
SpielerNogard/PyDB
ea89a90b3870d91dbcb011cb88fd08c83466d6a8
[ "MIT" ]
null
null
null
""" Setup file for PyDB. 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.863636
77
0.63766
d78ca69336159049ee15e18d3b6b7d59a7984bc4
1,582
py
Python
setup.py
Pythagorists/pypiwik
46a556f94b039cc840b94e9c3313f175eed1d651
[ "MIT" ]
null
null
null
setup.py
Pythagorists/pypiwik
46a556f94b039cc840b94e9c3313f175eed1d651
[ "MIT" ]
null
null
null
setup.py
Pythagorists/pypiwik
46a556f94b039cc840b94e9c3313f175eed1d651
[ "MIT" ]
null
null
null
from setuptools import setup import codecs import os import re here = os.path.abspath(os.path.dirname(__file__)) # Read the version number from a source file. # Why read it, and not import? # see https://groups.google.com/d/topic/pypa-dev/0PkjVpcxTzQ/discussion def find_version(*file_paths): # Open in Latin-1 so...
28.763636
74
0.6378
71f949cb75d5e1a89cf4f4d9d650c72fd71425f9
1,339
py
Python
Cryptoslam.io/get_series.py
Starmuckss/Cryptocurrency-Data-Collection-And-Analysis
3977b74babea8326124381375bb3721c6635f65c
[ "MIT" ]
null
null
null
Cryptoslam.io/get_series.py
Starmuckss/Cryptocurrency-Data-Collection-And-Analysis
3977b74babea8326124381375bb3721c6635f65c
[ "MIT" ]
null
null
null
Cryptoslam.io/get_series.py
Starmuckss/Cryptocurrency-Data-Collection-And-Analysis
3977b74babea8326124381375bb3721c6635f65c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 26 17:32:46 2021 take series names and data from main page of cryptoslam @author: HP """ from selenium import webdriver from selenium.webdriver.support.ui import Select import pandas import time from bs4 import BeautifulSoup from selenium.common.exceptions import ElementC...
34.333333
139
0.760269
1e771c18b3c20b2faacdfba4005982e81014788c
67,102
py
Python
aaf2/cfb.py
jminor/pyaaf2
0a9fb73a6de8775afd25f0cc20353b4eb1d2ed43
[ "MIT" ]
80
2017-10-19T20:49:39.000Z
2022-03-14T01:32:37.000Z
aaf2/cfb.py
jminor/pyaaf2
0a9fb73a6de8775afd25f0cc20353b4eb1d2ed43
[ "MIT" ]
94
2018-01-05T22:30:31.000Z
2022-03-26T21:51:38.000Z
aaf2/cfb.py
jminor/pyaaf2
0a9fb73a6de8775afd25f0cc20353b4eb1d2ed43
[ "MIT" ]
29
2018-10-25T14:01:53.000Z
2022-03-03T15:54:04.000Z
from __future__ import ( unicode_literals, absolute_import, print_function, division, ) import logging import sys import os import io import math import weakref from array import array from struct import Struct import struct from collections import deque import random from .utils import ( rea...
30.823151
131
0.571131
c444c19afc69edc6cac60abf3711494a571340a3
9,723
py
Python
neutron/notifiers/nova.py
wwriverrat/neutron
1d0aadb6fcf40048e899df6688bda98744c2a999
[ "Apache-2.0" ]
1
2016-03-25T21:13:13.000Z
2016-03-25T21:13:13.000Z
neutron/notifiers/nova.py
wwriverrat/neutron
1d0aadb6fcf40048e899df6688bda98744c2a999
[ "Apache-2.0" ]
1
2021-03-21T11:39:22.000Z
2021-03-21T11:39:22.000Z
neutron/notifiers/nova.py
wwriverrat/neutron
1d0aadb6fcf40048e899df6688bda98744c2a999
[ "Apache-2.0" ]
1
2021-03-21T11:37:18.000Z
2021-03-21T11:37:18.000Z
# Copyright (c) 2014 OpenStack Foundation. # 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...
41.199153
79
0.605266
ffddadfce6c80f542916bfbd52fa216f83e9b3e6
20,365
py
Python
website/canvas/migrations/0204_set_username_hashes.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
19
2015-11-10T17:36:20.000Z
2021-04-12T07:36:00.000Z
website/canvas/migrations/0204_set_username_hashes.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
1
2021-06-09T03:45:34.000Z
2021-06-09T03:45:34.000Z
website/canvas/migrations/0204_set_username_hashes.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
6
2015-11-11T00:38:38.000Z
2020-07-25T20:10:08.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): import hashlib for ui in orm['canvas.UserInfo'].objects.all().select_related('user'): ui.username_ha...
79.862745
198
0.559686
d8f9df39f3fdf371e42829a93b9a80539fc664b6
213
py
Python
elvaapp/elvaapp/doctype/medicament/test_medicament.py
ovresko/elvadesk
10090244ce5bd379cf16763e216e6011870de937
[ "MIT" ]
1
2020-12-28T16:35:41.000Z
2020-12-28T16:35:41.000Z
elvaapp/elvaapp/doctype/medicament/test_medicament.py
ovresko/elvadesk
10090244ce5bd379cf16763e216e6011870de937
[ "MIT" ]
null
null
null
elvaapp/elvaapp/doctype/medicament/test_medicament.py
ovresko/elvadesk
10090244ce5bd379cf16763e216e6011870de937
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, ovresko tech and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestMedicament(unittest.TestCase): pass
19.363636
51
0.769953
1d0f1c98811a256b430c3fe4048ecb22b959104e
2,350
py
Python
kubernetes_asyncio/test/test_batch_v2alpha1_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_batch_v2alpha1_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_batch_v2alpha1_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
22.169811
124
0.674894
bb6c7827fc5735b9208c2be6176bde68ece452c5
5,469
py
Python
automatminer_dev/graphnet/cgcnn.py
sgbaird/automatminer
9a3996e37672b547f10645b53b816ee670940d56
[ "BSD-3-Clause-LBNL" ]
92
2018-11-28T17:36:42.000Z
2022-03-26T07:45:22.000Z
automatminer_dev/graphnet/cgcnn.py
sgbaird/automatminer
9a3996e37672b547f10645b53b816ee670940d56
[ "BSD-3-Clause-LBNL" ]
249
2018-11-30T22:09:15.000Z
2022-01-06T22:25:12.000Z
automatminer_dev/graphnet/cgcnn.py
sgbaird/automatminer
9a3996e37672b547f10645b53b816ee670940d56
[ "BSD-3-Clause-LBNL" ]
41
2018-11-21T22:33:52.000Z
2022-03-03T02:24:32.000Z
import argparse import os import json import gzip import pickle import pandas as pd import cgcnn import torch import torch.distributed as dist from sklearn.model_selection import KFold, train_test_split from matminer.featurizers.structure import CGCNNFeaturizer __authors__ = "Qi Wang <qwang3@lbl.gov>" def parse_args...
36.704698
88
0.601755
1744e9f1902990d054b42e1b309f2d75adf30586
1,406
py
Python
models.py
ndey96/GCNN-Explainability
6ca838da0ff77991739433778eb744782bc22193
[ "MIT" ]
39
2019-12-27T19:33:59.000Z
2022-03-25T04:39:21.000Z
models.py
ndey96/GCNN-Explainability
6ca838da0ff77991739433778eb744782bc22193
[ "MIT" ]
4
2019-12-16T12:46:40.000Z
2021-08-23T19:26:41.000Z
models.py
ndey96/GCNN-Explainability
6ca838da0ff77991739433778eb744782bc22193
[ "MIT" ]
2
2020-11-03T12:39:57.000Z
2021-03-17T02:44:28.000Z
import torch import torch.nn.functional as F from torch_geometric.nn import GCNConv, ChebConv, global_mean_pool from torch.autograd import Variable class GCN(torch.nn.Module): def __init__(self, H_0, H_1, H_2, H_3): super(GCN, self).__init__() # explainability self.input = None self...
34.292683
77
0.627312
5676c7d4f0825148719d705c4b4fa6671d0e073a
10,713
py
Python
ao/upcloud/models.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
ao/upcloud/models.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
ao/upcloud/models.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
import uuid import base64 import time from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from . import settings STORAGE_TIERS = ( ('hdd', 'hdd'), ('maxiops', 'maxiops'), ) SERVER_STATES = ( ('started', 'started'), ('stopped', 'stopped'), ...
36.192568
111
0.704098
83f49389999bd60215ee9070afbf701171b09813
370
py
Python
lang/py/pylib/04/datetime/datetime_date_math.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/04/datetime/datetime_date_math.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/04/datetime/datetime_date_math.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime today = datetime.date.today() print'Today :',today one_day = datetime.timedelta(days=1) print'One day:',one_day yesterday = today - one_day print'Yesterday:',yesterday tomorrow = today + one_day print'Tomorrow:',tomorrow print print'tomorrow - yesterday:',tomorrow - yesterday ...
19.473684
49
0.759459
134eb2c66f5c96abb61a53d60936596bd0aa8b20
494
py
Python
rchitect/reticulate/__init__.py
joshuaulrich/rchitect
7e56f507d5ef83e7ef54450668f2a31eb698ea5d
[ "MIT" ]
null
null
null
rchitect/reticulate/__init__.py
joshuaulrich/rchitect
7e56f507d5ef83e7ef54450668f2a31eb698ea5d
[ "MIT" ]
null
null
null
rchitect/reticulate/__init__.py
joshuaulrich/rchitect
7e56f507d5ef83e7ef54450668f2a31eb698ea5d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import os from rchitect.interface import rcall, rcopy, set_hook, package_event def configure(): def _configure(): rcall( ("base", "source"), os.path.join(os.path.dirname(__file__), "config.R"), rcall(("base", "new.env"))) if ...
29.058824
82
0.623482
9eb8ad22ab9c6038cca99092f04f772e2f49f260
995
py
Python
fasterpay/signature.py
FasterPay/fasterpay-python3
13174bee70814c6a5cfe4537af14f9d8c6a19888
[ "MIT" ]
null
null
null
fasterpay/signature.py
FasterPay/fasterpay-python3
13174bee70814c6a5cfe4537af14f9d8c6a19888
[ "MIT" ]
null
null
null
fasterpay/signature.py
FasterPay/fasterpay-python3
13174bee70814c6a5cfe4537af14f9d8c6a19888
[ "MIT" ]
null
null
null
import urllib import hashlib, hmac class Signature: def __init__(self, gateway): self.gateway = gateway def ksort(self, params): return [(k, params[k]) for k in sorted(params.keys())] def calculate_hash(self, params, scheme = "v1"): if scheme is "v1": urlencoded_par...
36.851852
138
0.652261
31317774fbc39288194e2ee2b617cbaaef1d672e
21,560
py
Python
timeseriescv/cross_validation.py
AwesomeTrading/timeseriescv
1c7890643df80ef7c5d0bea1daa937d238774dfe
[ "MIT" ]
178
2018-09-10T09:28:12.000Z
2022-03-16T02:00:13.000Z
timeseriescv/cross_validation.py
AwesomeTrading/timeseriescv
1c7890643df80ef7c5d0bea1daa937d238774dfe
[ "MIT" ]
8
2020-01-02T14:29:02.000Z
2022-02-16T00:10:28.000Z
timeseriescv/cross_validation.py
AwesomeTrading/timeseriescv
1c7890643df80ef7c5d0bea1daa937d238774dfe
[ "MIT" ]
59
2018-09-10T11:05:40.000Z
2022-02-23T05:18:50.000Z
import itertools as itt import numbers import numpy as np import pandas as pd from abc import abstractmethod from typing import Iterable, Tuple, List class BaseTimeSeriesCrossValidator: """ Abstract class for time series cross-validation. Time series cross-validation requires each sample has a predictio...
44.823285
120
0.664889
28fe5e99060d87b999cc832a85b43e328a1899c9
24,567
py
Python
openmdao/components/meta_model_unstructured_comp.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
null
null
null
openmdao/components/meta_model_unstructured_comp.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
null
null
null
openmdao/components/meta_model_unstructured_comp.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
null
null
null
"""MetaModel provides basic meta modeling capability.""" from copy import deepcopy from itertools import chain, product import numpy as np from openmdao.core.explicitcomponent import ExplicitComponent from openmdao.surrogate_models.surrogate_model import SurrogateModel from openmdao.utils.class_util import overrides_...
40.011401
99
0.578093
f16051562be9b134dd85b317fbf054a4714c0ac8
3,253
py
Python
hri/disambiguate_ros/disambiguate_ros/disambiguate_client.py
matiov/disambiguate-BT-execution
9e2ca83f77539e81a6124c3e08694d2fc5728672
[ "BSD-3-Clause" ]
2
2022-03-03T05:02:15.000Z
2022-03-28T13:55:53.000Z
hri/disambiguate_ros/disambiguate_ros/disambiguate_client.py
matiov/disambiguate-BT-execution
9e2ca83f77539e81a6124c3e08694d2fc5728672
[ "BSD-3-Clause" ]
null
null
null
hri/disambiguate_ros/disambiguate_ros/disambiguate_client.py
matiov/disambiguate-BT-execution
9e2ca83f77539e81a6124c3e08694d2fc5728672
[ "BSD-3-Clause" ]
null
null
null
"""Client to test the services in disambiguate_ros.""" # Copyright (c) 2022, ABB # All rights reserved. # # Redistribution and use in source and binary forms, with # or without modification, are permitted provided that # the following conditions are met: # # * Redistributions of source code must retain the # abo...
37.390805
96
0.705195
878163f4154400d8a44a379917c82ee5c5ba6359
13,351
py
Python
config/mujoco/args_ant_dir_varibad.py
MasterXiong/varibad
b51f9746ae1c93f992804c50192ee3079a0eccd4
[ "MIT" ]
null
null
null
config/mujoco/args_ant_dir_varibad.py
MasterXiong/varibad
b51f9746ae1c93f992804c50192ee3079a0eccd4
[ "MIT" ]
null
null
null
config/mujoco/args_ant_dir_varibad.py
MasterXiong/varibad
b51f9746ae1c93f992804c50192ee3079a0eccd4
[ "MIT" ]
null
null
null
import argparse from utils.helpers import boolean_argument def get_args(rest_args): parser = argparse.ArgumentParser() # --- GENERAL --- parser.add_argument('--num_frames', type=int, default=1e8, help='number of frames to train') parser.add_argument('--max_rollouts_per_task', type=int, default=2, he...
70.268421
144
0.701371
fbc08c9fbbd08e7ee065b43b5bd5494b420dee31
1,619
py
Python
samples/generated_samples/certificatemanager_v1_generated_certificate_manager_list_dns_authorizations_sync.py
renovate-bot/python-certificatemanager
8e93056d8ccbd6f2fe6f5f8346ad28c104a8b688
[ "Apache-2.0" ]
1
2022-02-22T03:49:14.000Z
2022-02-22T03:49:14.000Z
samples/generated_samples/certificatemanager_v1_generated_certificate_manager_list_dns_authorizations_sync.py
renovate-bot/python-certificatemanager
8e93056d8ccbd6f2fe6f5f8346ad28c104a8b688
[ "Apache-2.0" ]
9
2022-02-16T16:39:24.000Z
2022-03-30T13:17:14.000Z
samples/generated_samples/certificatemanager_v1_generated_certificate_manager_list_dns_authorizations_sync.py
renovate-bot/python-certificatemanager
8e93056d8ccbd6f2fe6f5f8346ad28c104a8b688
[ "Apache-2.0" ]
1
2022-02-16T15:27:03.000Z
2022-02-16T15:27:03.000Z
# -*- coding: utf-8 -*- # Copyright 2022 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...
34.446809
87
0.775788
370409c8504ac07abbcbb66f377aa7721b2cbfc8
1,602
py
Python
openapi_documentor/openapi/migrations/0006_auto_20210321_1802.py
codeasashu/openapi-documentor
dde825edaac85bb117d06adf0a4eabf1f5da44f5
[ "MIT" ]
null
null
null
openapi_documentor/openapi/migrations/0006_auto_20210321_1802.py
codeasashu/openapi-documentor
dde825edaac85bb117d06adf0a4eabf1f5da44f5
[ "MIT" ]
5
2021-04-06T07:46:47.000Z
2022-03-02T13:12:20.000Z
openapi_documentor/openapi/migrations/0006_auto_20210321_1802.py
codeasashu/openapi-documentor
dde825edaac85bb117d06adf0a4eabf1f5da44f5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-21 18:02 from django.db import migrations, models import django.db.models.deletion import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_taggeditem_add_unique_index'), ('contenttypes', '0002_remove_content_type_name...
40.05
209
0.62422
c98caba1530d3ba423d5efbf52b77d9e2c0b7e3c
452
py
Python
database/migrations/0004_study_is_test.py
DMS-medical-informatics/beiwe-backend
55afe3a16e1c9b34501f3655288b5c19c663a083
[ "BSD-3-Clause" ]
1
2019-09-26T04:00:55.000Z
2019-09-26T04:00:55.000Z
database/migrations/0004_study_is_test.py
DMS-medical-informatics/beiwe-backend
55afe3a16e1c9b34501f3655288b5c19c663a083
[ "BSD-3-Clause" ]
2
2020-06-05T21:58:55.000Z
2021-06-10T21:45:08.000Z
database/migrations/0004_study_is_test.py
DMS-medical-informatics/beiwe-backend
55afe3a16e1c9b34501f3655288b5c19c663a083
[ "BSD-3-Clause" ]
1
2019-09-26T03:55:06.000Z
2019-09-26T03:55:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-03-28 21:46 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('database', '0003_auto_20180320_2058'), ] operations = [ migrations.AddField...
21.52381
52
0.617257
407ff72a5ee2384c2270e3b59fa0f4d1b3033ba5
13,516
py
Python
cows/service/imps/geoplot_wms_backend/geoplot_wms_layer.py
cedadev/cows
db9ed729c886b271ce85355b97e39243081e8246
[ "BSD-2-Clause" ]
2
2018-05-09T16:12:43.000Z
2018-08-21T17:10:22.000Z
cows/service/imps/geoplot_wms_backend/geoplot_wms_layer.py
cedadev/cows
db9ed729c886b271ce85355b97e39243081e8246
[ "BSD-2-Clause" ]
null
null
null
cows/service/imps/geoplot_wms_backend/geoplot_wms_layer.py
cedadev/cows
db9ed729c886b271ce85355b97e39243081e8246
[ "BSD-2-Clause" ]
null
null
null
# BSD Licence # Copyright (c) 2010, Science & Technology Facilities Council (STFC) # All rights reserved. # # See the LICENSE file in the source distribution of this software for # the full license text. ''' Created on 9 Jun 2009 @author: pnorton ''' import logging import time import os import numpy from cows.serv...
39.752941
109
0.561779
b97b3f7097632a12e7fef8f3cbc87a24c63f7285
1,406
py
Python
cmake/test/src/settings.py
AlperenCetin0/fprime
7e20febd34019c730da1358567e7a512592de4d8
[ "Apache-2.0" ]
9,182
2017-07-06T15:51:35.000Z
2022-03-30T11:20:33.000Z
cmake/test/src/settings.py
AlperenCetin0/fprime
7e20febd34019c730da1358567e7a512592de4d8
[ "Apache-2.0" ]
719
2017-07-14T17:56:01.000Z
2022-03-31T02:41:35.000Z
cmake/test/src/settings.py
AlperenCetin0/fprime
7e20febd34019c730da1358567e7a512592de4d8
[ "Apache-2.0" ]
1,216
2017-07-12T15:41:08.000Z
2022-03-31T21:44:37.000Z
""" cmake/test/settings.py: Settings for the CMake tests. Mostly constants that must be tracked. """ from pathlib import Path DATA_DIR = Path(__file__).parent.parent / "data" REF_APP_PATH = Path(__file__).parent.parent.parent.parent / "Ref" FRAMEWORK_MODULES = [ "Fw_Cfg", "Fw_Cmd", "Fw_Com", "Fw_Com...
18.746667
68
0.6266
39c6eb8c26571fa2f39eccb9f548850eb1bb5ecf
8,327
py
Python
gammapy/irf/psf/table.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
1
2021-02-02T21:35:27.000Z
2021-02-02T21:35:27.000Z
gammapy/irf/psf/table.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
null
null
null
gammapy/irf/psf/table.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import logging import numpy as np from astropy import units as u from astropy.coordinates import Angle from astropy.io import fits from astropy.table import Table from gammapy.maps import MapAxis from gammapy.utils.array import array_stats_str from gammapy...
30.95539
91
0.590128
42eaf9372b3f92f2fcd8cda12e8c35223d4a145a
4,946
py
Python
BenchENAS_linux_platform/algs/genetic_CNN/main.py
benchenas/BenchENAS
776cd1dd035d73c4af369d0106d010b932f64782
[ "MIT" ]
1
2022-01-21T07:56:13.000Z
2022-01-21T07:56:13.000Z
BenchENAS_linux_platform/algs/genetic_CNN/main.py
benchenas/BenchENA
cfb18a8e4bc6cd654df1011c94e3b8a61cd64da3
[ "MIT" ]
1
2022-02-24T06:07:27.000Z
2022-02-24T06:07:27.000Z
BenchENAS_linux_platform/algs/genetic_CNN/main.py
benchenas/BenchENAS
776cd1dd035d73c4af369d0106d010b932f64782
[ "MIT" ]
1
2022-01-20T07:36:37.000Z
2022-01-20T07:36:37.000Z
from algs.genetic_CNN.utils import Utils from algs.genetic_CNN.genetic.statusupdatetool import StatusUpdateTool from comm.log import Log from comm.utils import GPUFitness from compute.file import get_algo_local_dir from algs.genetic_CNN.genetic.population import Population from algs.genetic_CNN.genetic.evaluate import ...
37.469697
118
0.628993
4ac40b066f1cfa902e54c5bd0971edc957f6bf1f
12,484
py
Python
dpaygo/amount.py
dpays/dpaygo
d0473799e8e9432a618736a281146d23eb433bf4
[ "MIT" ]
null
null
null
dpaygo/amount.py
dpays/dpaygo
d0473799e8e9432a618736a281146d23eb433bf4
[ "MIT" ]
null
null
null
dpaygo/amount.py
dpays/dpaygo
d0473799e8e9432a618736a281146d23eb433bf4
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import bytes, int, str from future.utils import python_2_unicode_compatible from dpaygographenebase.py2...
34.677778
136
0.552868
2e9230d6d43dd3bd0f86474cff98b359701dc740
3,531
py
Python
Chapter02/rest-config.py
PacktPublishing/JUNOS-Automation-Cookbook
d61a007f585207c44d1ad5147c3660d8049ffc7d
[ "MIT" ]
8
2018-02-25T17:22:40.000Z
2021-11-08T13:10:37.000Z
Chapter02/rest-config.py
PacktPublishing/JUNOS-Automation-Cookbook
d61a007f585207c44d1ad5147c3660d8049ffc7d
[ "MIT" ]
null
null
null
Chapter02/rest-config.py
PacktPublishing/JUNOS-Automation-Cookbook
d61a007f585207c44d1ad5147c3660d8049ffc7d
[ "MIT" ]
7
2017-12-28T14:04:09.000Z
2021-06-18T05:08:11.000Z
#!/usr/bin/env python import sys import argparse import getpass import os import io import email import xml.etree.ElementTree as ET import jxmlease import urllib3 import requests import re def onError(exception_type, exception, traceback): sys.stderr.write("%s: %s\n" % (exception_type.__name__, ...
29.425
94
0.622487
d558e27344750feb3ecef51fdd79de19683922e8
5,676
py
Python
sktvdl/__init__.py
makovako/sktvdl
30fbf238168e87aa2ed1a7cbb88819c54bf7ec48
[ "MIT" ]
null
null
null
sktvdl/__init__.py
makovako/sktvdl
30fbf238168e87aa2ed1a7cbb88819c54bf7ec48
[ "MIT" ]
10
2020-04-14T14:25:50.000Z
2020-04-14T21:47:48.000Z
sktvdl/__init__.py
makovako/sktvdl
30fbf238168e87aa2ed1a7cbb88819c54bf7ec48
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from selenium import webdriver from selenium.webdriver.firefox.options import Options from enum import Enum import sys import youtube_dl import re import requests class Television(Enum): NONE = 0 TA3 = 1 MARKIZA = 2 RTVS = 3 JOJ = 4 # YTDL stuff begin class MyLogger(obje...
35.254658
178
0.587385