hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
94ccca7ffc987cbe5df4c550743671afebadd79c
507
py
Python
benchmarks/models/__init__.py
maudl3116/GPS
381a8e209bfec4c06b43ed4b69445bdf5c365409
[ "Apache-2.0" ]
null
null
null
benchmarks/models/__init__.py
maudl3116/GPS
381a8e209bfec4c06b43ed4b69445bdf5c365409
[ "Apache-2.0" ]
null
null
null
benchmarks/models/__init__.py
maudl3116/GPS
381a8e209bfec4c06b43ed4b69445bdf5c365409
[ "Apache-2.0" ]
1
2021-01-30T12:58:46.000Z
2021-01-30T12:58:46.000Z
from .train_gpkconv1d import train_gpkconv1d_classifier from .train_gprnn import train_gprnn_classifier from .train_gpsig import train_gpsig_classifier from .train_gpsig_ import train_gpsig_classifier_ from .train_gpsig_regression import train_gpsig_regressor from .train_gpsig_vosf import train_gpsig_vosf_classifier ...
39
67
0.905325
94ce46151c1716825bf8cd7802cd6c9c77ce147e
1,640
py
Python
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
user/views.py
RadySonabu/ThesisAPI
dc986623ff8d831ced17396a1121d256fa1f66d6
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from rest_framework import generics from .models import MyUser from .forms.forms import UserRegisterForm, UpdateUserForm
27.333333
101
0.629268
94cfbf4917cc9d4f379b439e74351ccc9e7a2864
247
py
Python
backend/apis/pacient/admin.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
1
2020-10-17T03:39:56.000Z
2020-10-17T03:39:56.000Z
backend/apis/pacient/admin.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
backend/apis/pacient/admin.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
"""Admin de los pacientes""" # Django from django.contrib import admin # Modelos from apis.pacient.models import Pacient
17.642857
39
0.724696
94d04637bffae0e0fc3be1a7c8a83bf0c64798a7
341
py
Python
Leetcode/532. K-diff Pairs in an Array/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/532. K-diff Pairs in an Array/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/532. K-diff Pairs in an Array/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
from collections import Counter
26.230769
65
0.545455
94d087215fbf2f5407c35967629e1295250a1425
1,660
py
Python
src/BanzaiDB/mapping.py
mscook/BanzaiDB
84d6402a3aecb16edca237bf3954abbf8a66fc6a
[ "ECL-2.0" ]
3
2015-04-27T02:16:42.000Z
2017-12-09T08:45:31.000Z
src/BanzaiDB/mapping.py
mscook/BanzaiDB
84d6402a3aecb16edca237bf3954abbf8a66fc6a
[ "ECL-2.0" ]
null
null
null
src/BanzaiDB/mapping.py
mscook/BanzaiDB
84d6402a3aecb16edca237bf3954abbf8a66fc6a
[ "ECL-2.0" ]
null
null
null
# Copyright 2013-2014 Mitchell Stanton-Cook Licensed under the # Educational Community 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.osedu.org/licenses/ECL-2.0 # # Unless required by applicable law or a...
34.583333
74
0.650602
94d1665972f91bfcdbc4a5f569453d0ea57d3e9e
155
py
Python
res_mods/mods/packages/xvm_battle/python/__version__.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
res_mods/mods/packages/xvm_battle/python/__version__.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
1
2016-04-03T13:31:39.000Z
2016-04-03T16:48:26.000Z
res_mods/mods/packages/xvm_tooltips/python/__version__.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
# This file was created automatically from build script __revision__ = '7581' __branch__ = 'default' __node__ = 'c386bcd24648e215a00249e32d2d4bbd1a6992db'
31
55
0.819355
94d29e2296f9233cdb585fa571d29d93761c5b3a
626
py
Python
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
src/smtv_api/setup_test_environment.py
AdamDomagalsky/smtv-micro-scpr
87195f4c0f738a687648b3218a0976c3450d0b6c
[ "Apache-2.0" ]
null
null
null
import os
31.3
90
0.693291
94d4af3fad97a3a0b09ecceadcf7c059f78ba5ab
1,056
py
Python
Interview/Zupee/1_DsAlgo/code2.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Interview/Zupee/1_DsAlgo/code2.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Interview/Zupee/1_DsAlgo/code2.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
# You have given an array of non-negative integers. # Each element in the array represents your maximum jump length at that position, # you are initially positioned at the first index of the array. # Return the minimum number of jumps required to reach the last index. # If it is not possible to reach the last index, re...
29.333333
81
0.650568
94d50451f51f25b4381946b320306f94fc198f0e
2,343
py
Python
Unfollowers For Inta/unfollowers.py
Kanishka-96/engineering-blog-samples
535d5ac2c905557f01b1112df35b2c725c21c719
[ "MIT" ]
null
null
null
Unfollowers For Inta/unfollowers.py
Kanishka-96/engineering-blog-samples
535d5ac2c905557f01b1112df35b2c725c21c719
[ "MIT" ]
null
null
null
Unfollowers For Inta/unfollowers.py
Kanishka-96/engineering-blog-samples
535d5ac2c905557f01b1112df35b2c725c21c719
[ "MIT" ]
null
null
null
from instagram_private_api import Client, ClientCompatPatch import numpy as np import time import getpass import sys print("\n \nIMPORTANT DISCLAIMER: DO NOT USE THIS TOOL TOO FREQUENTLY (MORE THAN SEVERAL TIMES IN A MINUTE), YOUR ACCOUNT MIGHT GET FLAGGED! \n \n ") USER_NAME = input("What is your instagram usernam...
40.396552
149
0.737516
94d7d35515c333dfd9a0474a1d86a98db0e415bf
3,259
py
Python
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
wikionary/wikionary.py
DedInc/wikionary
45d595044aa980d129479b6aff6c31c1b329e9d8
[ "MIT" ]
null
null
null
from lxml import html, etree from requests import get from urllib.parse import unquote agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36'
36.617978
230
0.567659
94d910ff228a053d83d0e7d3ff441bc16db11713
88
py
Python
frictionless_dfour/__main__.py
cividi/frictionless-dfour
02e2a3720f980ca31ad5d5443980f8d9d399868b
[ "MIT" ]
2
2021-09-27T07:52:40.000Z
2021-12-13T12:56:18.000Z
frictionless_dfour/__main__.py
cividi/frictionless-dfour
02e2a3720f980ca31ad5d5443980f8d9d399868b
[ "MIT" ]
7
2021-07-30T09:56:33.000Z
2021-08-20T11:43:04.000Z
frictionless_dfour/__main__.py
cividi/frictionless-dfour
02e2a3720f980ca31ad5d5443980f8d9d399868b
[ "MIT" ]
null
null
null
from .program import program if __name__ == "__main__": program(prog_name="dfour")
17.6
30
0.715909
94da001e21816a78cf7e5e0028d8f8b03ea11e1b
3,144
py
Python
tennis/Player.py
reecebenson/DADSA-Tennis-PartB
59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8
[ "MIT" ]
null
null
null
tennis/Player.py
reecebenson/DADSA-Tennis-PartB
59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8
[ "MIT" ]
null
null
null
tennis/Player.py
reecebenson/DADSA-Tennis-PartB
59a0162adbb9c42c7d9cd8a86b3cf12dcedcfbc8
[ "MIT" ]
null
null
null
""" # Data Structures and Algorithms - Part B # Created by Reece Benson (16021424) """
31.44
63
0.630725
94dac3b4eafe4e1f3cf44a39e7110d561f9e7e30
17,728
py
Python
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
scripts/analysis_wfc3.py
Lachimax/COMP777
9bf73cc451e1353763fa47ae124062b53bf09ded
[ "CC0-1.0" ]
null
null
null
# Code by Lachlan Marnoch, 2018 import numpy as np import matplotlib.pyplot as plt # import math as m from astropy import wcs from astropy.coordinates import SkyCoord from astropy.io import fits import random as r # Distance modulus (correction for absolute madnitudes, which are the values we have in the isoc...
32.52844
119
0.668152
94dd6870e70005057e8cff11eab7a5220bef77b3
435
py
Python
spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
5
2019-06-24T14:15:54.000Z
2021-05-14T23:16:31.000Z
spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
2
2018-06-19T09:56:18.000Z
2018-11-20T12:02:44.000Z
spkcspider/apps/spider_tags/migrations/0005_spidertag_updateable_by.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-11 20:15 import jsonfield.fields from django.db import migrations
21.75
71
0.632184
94ddbc269422cd58ff07684a2795facf93d242e3
449
py
Python
rpi_object_detection_opencv_python/picamera/camera.py
altanai/Ramudroid
7594ccad895871dc52ed636b23ab18d7030ec679
[ "MIT" ]
15
2019-07-23T01:47:56.000Z
2021-12-14T22:51:33.000Z
webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py
Ramudroid/Ramudroid
10425397b68763e0a8e89e2a949df737d7e945ee
[ "MIT" ]
4
2019-11-17T12:32:45.000Z
2021-12-13T20:19:00.000Z
webrtc_stream_objectdetection/rpi_object_detection_opencv_python/picamera/camera.py
Ramudroid/Ramudroid
10425397b68763e0a8e89e2a949df737d7e945ee
[ "MIT" ]
6
2019-07-23T01:48:03.000Z
2022-03-03T03:28:24.000Z
from picamera import PiCamera from time import sleep camera = PiCamera() # preview # camera.start_preview() # sleep(5) # camera.stop_preview() # take 5 pics camera.start_preview() for i in range(5): sleep(5) camera.capture('/home/pi/Desktop/image%s.jpg' % i) camera.stop_preview() # video record # camera.sta...
19.521739
55
0.726058
94de5ebc7c73b43d6ef0f7006cc1fd474681a311
5,466
py
Python
mod/db/models.py
MoreliaTalk/Server
5d42cf999682271ef8d54b5c6e09f06bed08d946
[ "Unlicense" ]
null
null
null
mod/db/models.py
MoreliaTalk/Server
5d42cf999682271ef8d54b5c6e09f06bed08d946
[ "Unlicense" ]
null
null
null
mod/db/models.py
MoreliaTalk/Server
5d42cf999682271ef8d54b5c6e09f06bed08d946
[ "Unlicense" ]
null
null
null
""" Copyright (c) 2020 - present NekrodNIK, Stepan Skriabin, rus-ai and other. Look at the file AUTHORS.md(located at the root of the project) to get the full list. This file is part of Morelia Server. Morelia Server is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General ...
40.488889
79
0.679839
94dfdb1b54e79583c61a59cf0f6bbffe1fd6e3cf
13,086
py
Python
numerics/ODE.py
MGokcayK/numerics
17d199f475a004911359db568d7b83939aa12481
[ "MIT" ]
null
null
null
numerics/ODE.py
MGokcayK/numerics
17d199f475a004911359db568d7b83939aa12481
[ "MIT" ]
null
null
null
numerics/ODE.py
MGokcayK/numerics
17d199f475a004911359db568d7b83939aa12481
[ "MIT" ]
null
null
null
""" Author : Mehmet Gokcay Kabatas Mail : mgokcaykdev@gmail.com Version : 0.1 Date : 04/12/2019 Update : 14/12/2019 Python : 3.6.5 Update Note : Arranging system of ODE methods and descriptions. This script written by @Author for personal usage. Prerequest : numpy """ import numpy as np ...
25.558594
120
0.404707
94e0a76fde2cf1e193101637e66e23379e96d8e0
224
py
Python
cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py
ghassanmas/edx-cookiecutters
b186021f7322d9c493f1875fff797ebae33157b0
[ "Apache-2.0" ]
23
2016-09-13T17:57:46.000Z
2020-03-29T09:30:48.000Z
cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py
ghassanmas/edx-cookiecutters
b186021f7322d9c493f1875fff797ebae33157b0
[ "Apache-2.0" ]
40
2020-05-11T16:50:12.000Z
2021-12-20T02:19:23.000Z
cookiecutter-django-app/{{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/__init__.py
ghassanmas/edx-cookiecutters
b186021f7322d9c493f1875fff797ebae33157b0
[ "Apache-2.0" ]
7
2017-05-31T14:13:52.000Z
2020-05-12T21:18:48.000Z
""" {{ cookiecutter.project_short_description }}. """ __version__ = '{{ cookiecutter.version }}' default_app_config = '{{ cookiecutter.app_name }}.apps.{{ cookiecutter.config_class_name }}' # pylint: disable=invalid-name
28
124
0.723214
94e12cd9710f6c79b7d5368f138b150067c7b158
6,314
py
Python
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
Bot/cogs/search.py
andrewlee91/DiscordBot
b20cfa95f90e0a7299a9f117eca48fc2c59adf9f
[ "MIT" ]
null
null
null
import json import logging import discord import requests from discord.ext import commands logger = logging.getLogger(__name__)
32.885417
92
0.509819
94e2484bd934870ec83c679e77977061aaba0d29
6,867
py
Python
adbiclient/adbi/adbi.py
Samsung/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
312
2016-02-04T11:03:17.000Z
2022-03-18T11:30:10.000Z
adbiclient/adbi/adbi.py
NickHardwood/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
4
2016-02-04T11:05:40.000Z
2017-07-27T04:22:27.000Z
adbiclient/adbi/adbi.py
NickHardwood/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
85
2016-02-04T12:48:30.000Z
2021-01-14T06:23:24.000Z
from rsock import ReliableSocket from packet import Packet, Header, Payload from collections import namedtuple import struct Symbol = namedtuple('Symbol', 'address name') Tracepoint = namedtuple('Tracepoint', 'address handler') Injectable = namedtuple('Injectable', 'id filename refs type name comment')
33.014423
92
0.567642
94e42a20e811b3c4c8adc67aee484d21ee61eb8f
432
py
Python
src/pythonFEA/templates/property.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/templates/property.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/templates/property.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
from .errors import * from .basic import Basic import logging
19.636364
55
0.708333
94e46dab588b249b888b14d393509caa3e2c7213
1,042
py
Python
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
deque.py
iliankostadinov/hackerrank-python
4082eb5a6da7ab11ead9b687fdc2d9a846f59f99
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from collections import deque if __name__ == "__main__": # number of testcases t = int(input()) results = [] for _ in range(t): d = deque() # number of cubes n = int(input()) # side lenght of each cube row_of_cubes = map(int, input().spl...
22.170213
50
0.432821
94e47510d912939867b8bf4137069b8df856ea63
12,864
py
Python
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
Psience/DVR/BaseDVR.py
McCoyGroup/Coordinerds
058a4f5b29f157e499cec3c8f2da8b216f0210ef
[ "MIT" ]
null
null
null
""" Redoes what was originally PyDVR but in the _right_ way using proper subclassing and abstract properties """ import abc, numpy as np, scipy.sparse as sp, scipy.interpolate as interp from McUtils.Data import UnitsData __all__ = ["BaseDVR", "DVRResults", "DVRException"]
32.900256
125
0.54773
94e54ce08093f7eeec968430ff2c16c5e73a50b8
3,802
py
Python
Weight-Converter-GUI/weight_con_gui.py
avinashkranjan/PraticalPythonProjects
12c1f7cedae57a843ceb6aba68cca48df505f341
[ "MIT" ]
930
2020-09-05T22:07:28.000Z
2022-03-30T07:56:18.000Z
Weight-Converter-GUI/weight_con_gui.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
893
2020-09-04T07:57:24.000Z
2022-02-08T02:12:26.000Z
Weight-Converter-GUI/weight_con_gui.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
497
2020-09-05T08:16:24.000Z
2022-03-31T00:55:57.000Z
# import libraries from tkinter import * # initialized window root = Tk() root.geometry('480x350') root.resizable(0, 0) root.title('Weight Converter') # defining the function for converting weights # creating a label to display l1 = Label(root, text="Enter the weight in kilograms (kg) : ") l1.grid(row=1, column=1,...
26.964539
76
0.653603
94e8d2a632eeca6338d3e4d6466fdec1e8bb6e14
3,789
py
Python
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/pooling.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # 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 agre...
36.432692
84
0.611771
94e94b722e8d9c3a8b216d12bcf8c0b49e28c1e0
363
py
Python
testing/test_caching_obj.py
jkpubsrc/python-module-jk-cachefunccalls
f49779001b7b19a460155d8bd2cbf5e22b5c947d
[ "Apache-1.1" ]
null
null
null
testing/test_caching_obj.py
jkpubsrc/python-module-jk-cachefunccalls
f49779001b7b19a460155d8bd2cbf5e22b5c947d
[ "Apache-1.1" ]
null
null
null
testing/test_caching_obj.py
jkpubsrc/python-module-jk-cachefunccalls
f49779001b7b19a460155d8bd2cbf5e22b5c947d
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python3 import collections import typing import inspect import time from jk_cachefunccalls import cacheCalls from _test_and_evaluate import testAndEvaluate # o = MyTestClass() testAndEvaluate(o.returnSomething)
10.371429
46
0.760331
94ec60d726d1c7025eb5dc2c24a497e98d0c9056
15,039
py
Python
Ch18/gpc.py
quietcoolwu/MLCode
b4bdb7ee3468da597e5d16cfb58728e3c29ca889
[ "Xnet", "X11" ]
null
null
null
Ch18/gpc.py
quietcoolwu/MLCode
b4bdb7ee3468da597e5d16cfb58728e3c29ca889
[ "Xnet", "X11" ]
null
null
null
Ch18/gpc.py
quietcoolwu/MLCode
b4bdb7ee3468da597e5d16cfb58728e3c29ca889
[ "Xnet", "X11" ]
null
null
null
# Code from Chapter 18 of Machine Learning: An Algorithmic Perspective (2nd Edition) # by Stephen Marsland (http://stephenmonika.net) # You are free to use, change, or redistribute the code in any way you wish for # non-commercial purposes, but please maintain the name of the original author. # This code comes with no...
37.041872
122
0.541924
94ee81700cccc92d145a91273dcbf30469d045b5
2,130
py
Python
MoinMoin/datastruct/backends/composite_groups.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/composite_groups.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - group access via various backends. The composite_groups is a backend that does not have direct storage, but composes other backends to a new one, so group definitions are retrieved from several backends. This allows to mix different backends. @copyright: 2009 DmitrijsMilaje...
30
82
0.630516
94ef7d0044d15bba93e634290af3a6fddf02e79a
15,192
py
Python
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
experiments/distributed/detection/main_fedavg_fasterrcnn.py
RicardLake/FedDetection
a4004593a4d07126447db73b98b53a7e56e0472b
[ "MIT" ]
null
null
null
import argparse import logging import os import random import socket import sys import datetime import numpy as np import psutil import setproctitle import torch import torchvision.models #import wandb # add the FedML root directory to the python path sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../...
45.349254
154
0.635729
94f1a97363b5f6d9cb9e80535531efb052a4d58d
1,678
py
Python
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
1
2019-11-28T02:39:31.000Z
2019-11-28T02:39:31.000Z
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
src/ship_detector/main.py
dzubke/ship_detector
28212be681914ad739544f6b849152f502289ff3
[ "MIT" ]
null
null
null
# standard libraries import time # non-standard libraries from sklearn.linear_model import LogisticRegression # all of the local modules from prep_data import read_images, dataset_split from explore_data import array_info, image_info from models import run_model from assess_model import count_time, roc_assess, F1sco...
29.438596
151
0.722884
94f1ff09cb84288db3c23319870e98e03bf23f8d
17,246
py
Python
panic/gui/actions.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
1
2019-09-20T08:10:32.000Z
2019-09-20T08:10:32.000Z
panic/gui/actions.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
null
null
null
panic/gui/actions.py
MaxIV-KitsControls/app-cells-panicgui
58c5610970135e6fbb7b715094514b33bc1bc9c1
[ "CC-BY-3.0" ]
null
null
null
""" This file belongs to the PANIC Alarm Suite, developed by ALBA Synchrotron for Tango Control System GPL Licensed """ import sys, re, os, traceback, time import PyTango, fandango from fandango.functional import * from fandango import Catched import taurus, taurus.qt.qtgui.base from taurus.core import TaurusEventTy...
39.195455
85
0.548591
94f3547b6d861aa035a7b7758d5e02a28082e623
197
py
Python
application.py
phenopolis/phenopolis_genomics_browser
b67778fac41d16445eb983af9c505ef17e1949b2
[ "MIT" ]
3
2021-11-20T04:52:32.000Z
2022-03-21T17:42:30.000Z
application.py
phenopolis/phenopolis_genomics_browser
b67778fac41d16445eb983af9c505ef17e1949b2
[ "MIT" ]
21
2021-10-20T16:39:38.000Z
2022-03-04T12:47:46.000Z
application.py
phenopolis/phenopolis_genomics_browser
b67778fac41d16445eb983af9c505ef17e1949b2
[ "MIT" ]
null
null
null
""" Flask app """ from views import APP_ENV, application if __name__ == "__main__": application.debug = False if APP_ENV == "debug": application.debug = True application.run()
17.909091
38
0.649746
94f3b18944a11c75445cef1a85dda665ee609119
46,746
py
Python
lib/jnpr/healthbot/swagger/api/organization_api.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
10
2019-10-23T12:54:37.000Z
2022-02-07T19:24:30.000Z
lib/jnpr/healthbot/swagger/api/organization_api.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
5
2019-09-30T04:29:25.000Z
2022-02-16T12:21:06.000Z
lib/jnpr/healthbot/swagger/api/organization_api.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
4
2019-09-30T01:17:48.000Z
2020-08-25T07:27:54.000Z
# coding: utf-8 """ Paragon Insights APIs API interface for PI application # noqa: E501 OpenAPI spec version: 4.0.0 Contact: healthbot-feedback@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # py...
46.980905
164
0.648013
94f3f49e86448de339f43f2ca616b2920b9513bb
465
py
Python
json/utils.py
verbalsaintmars/python_util
3cc018f36607e3f4715bb96cb76ec7097838b1ce
[ "MIT" ]
null
null
null
json/utils.py
verbalsaintmars/python_util
3cc018f36607e3f4715bb96cb76ec7097838b1ce
[ "MIT" ]
null
null
null
json/utils.py
verbalsaintmars/python_util
3cc018f36607e3f4715bb96cb76ec7097838b1ce
[ "MIT" ]
null
null
null
import json def extract_value(expect_keys, json_dict): """ expect_keys: tuple , e.g ("nodeuser", "user") return: None if no value, else value """ temp_val = json_dict.get(expect_keys[0]) if isinstance(temp_val, dict) and len(expect_keys) > 1: return extract_value(expect_keys[1:], tem...
22.142857
59
0.649462
94f4ba6ed64d50cbeeb879a9d70560a5dacf3d3b
321
py
Python
rssant_worker/main.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
1,176
2019-12-24T01:51:22.000Z
2022-03-29T06:00:25.000Z
rssant_worker/main.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
33
2020-03-06T03:29:46.000Z
2022-03-11T06:24:26.000Z
rssant_worker/main.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
110
2019-12-29T05:49:24.000Z
2022-03-28T06:44:21.000Z
import os if os.getenv('MODULE_GRAPH_HOOKER') in ('1', 'true', 'True'): import module_graph module_graph.setup_hooker(save_to='data/rssant_worker_module_graph.json', verbose=True) from rssant_common.actor_helper import start_actor # noqa: F402 if __name__ == "__main__": start_actor('worker', port=6792)...
26.75
91
0.744548
94f4ddecf6b729fadb8142b50b2738a3b687fb16
6,816
py
Python
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
1
2020-12-01T23:25:58.000Z
2020-12-01T23:25:58.000Z
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
2
2020-10-07T01:03:06.000Z
2020-10-12T19:08:55.000Z
index_server/containers/bgsplit_mapper/handler.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
import numpy as np import aiohttp import asyncio import os.path from pathlib import Path import torch import torch.nn.functional as F from torchvision import transforms, utils, io from typing import Dict, List, Optional, Tuple, Union, Any from enum import Enum from knn import utils from knn.mappers import Mapper from ...
36.063492
89
0.577171
94f52a5e553ca733b3138d1b081bb226e35c66cc
17,794
py
Python
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/volume/volume_attributes.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.volume.volume_hybrid_cache_attributes import VolumeHybridCacheAttributes from netapp.volume.volume_mirror_attributes import VolumeMirrorAttributes from netapp.volume.volume_space_attributes import VolumeSpaceAttributes from netapp.volume.volume_directory_attributes import VolumeDirectoryAttributes from neta...
41.868235
143
0.694785
94f9d7fbfdb6b3a2de5dcc04f68b6e728b2be5ff
4,517
py
Python
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
bin/plot_matches.py
hidden-ar/OpenSfM
3ea1216d4dedc94b93ea9f7aa51cd8efd7377922
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import os.path from itertools import combinations import matplotlib.cm as cm import matplotlib.pyplot as pl import numpy as np from opensfm import dataset from opensfm import features from opensfm import io from numpy import ndarray from typing import List if __name__ == "_...
33.213235
88
0.593314
94fa2681b04226b78da641bf14ffbff25cef7b0f
3,738
py
Python
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
sarabande/.ipynb_checkpoints/main-checkpoint.py
James11222/sarabande
387cafede311be8c7069e5ae6fe3cf42c198ccda
[ "MIT" ]
null
null
null
import numpy as np from subprocess import call import astropy.io.fits as pyf import time from .utils import *
46.148148
142
0.578384
94fb48e24e8d440a0f32b5d2f24b262ed6774874
9,631
py
Python
lib/aggregate_all_epitopes.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
96
2017-11-06T18:53:19.000Z
2022-02-28T07:36:12.000Z
lib/aggregate_all_epitopes.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
521
2017-11-29T16:27:54.000Z
2022-03-30T13:57:38.000Z
lib/aggregate_all_epitopes.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
53
2017-11-29T19:40:27.000Z
2022-01-14T16:51:12.000Z
import pandas as pd import numpy as np
44.382488
208
0.553214
94fb7a6413d1406843ebe3c5eaf0726aecee2e7a
2,600
py
Python
profiles_api/views.py
teomoney1999/profiles-rest-api-final
452f70f06abd423c61e8a8153a6ff64abd2730b0
[ "MIT" ]
null
null
null
profiles_api/views.py
teomoney1999/profiles-rest-api-final
452f70f06abd423c61e8a8153a6ff64abd2730b0
[ "MIT" ]
7
2020-06-06T01:55:15.000Z
2022-02-10T13:59:01.000Z
profiles_api/views.py
teomoney1999/profiles-rest-api-final
452f70f06abd423c61e8a8153a6ff64abd2730b0
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response """List of HTTP status code""" from rest_framework import status from profiles_api import serializer from rest_framework import viewsets
28.26087
74
0.706154
94fcd28600d0a6e91aed228789715089ef0fff56
3,624
py
Python
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
PRM_Django_REST_API/projects/models.py
maciejKusy/Project_Risk_Management_Django_REST_API
f654a3dedbe395d5ad80a3572e22bc0502326a48
[ "MIT" ]
null
null
null
from django.db import models from django.utils.datetime_safe import datetime from simple_history.models import HistoricalRecords
37.360825
116
0.564018
94ff17cb22d926e85be26c7e19448a851ae82e4b
309
py
Python
mowgli_etl/loader/json/json_node_loader.py
tetherless-world/mowgli
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
4
2021-01-15T15:36:23.000Z
2021-09-01T06:52:05.000Z
mowgli_etl/loader/json/json_node_loader.py
tetherless-world/mowgli
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
63
2020-05-04T13:48:04.000Z
2020-06-06T02:32:58.000Z
mowgli_etl/loader/json/json_node_loader.py
tetherless-world/mowgli-etl
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
null
null
null
from mowgli_etl.loader._kg_node_loader import _KgNodeLoader from mowgli_etl.loader.json._json_loader import _JsonLoader
28.090909
59
0.802589
a20090b70ca8a9617c581b36665d20b93d432a85
234
py
Python
class1/p29_add_subtract_multiply_divide.py
anlei2014/ML-code
4f501720ee94abc27534cf0aa7c30a8ecbf62398
[ "MIT" ]
null
null
null
class1/p29_add_subtract_multiply_divide.py
anlei2014/ML-code
4f501720ee94abc27534cf0aa7c30a8ecbf62398
[ "MIT" ]
null
null
null
class1/p29_add_subtract_multiply_divide.py
anlei2014/ML-code
4f501720ee94abc27534cf0aa7c30a8ecbf62398
[ "MIT" ]
null
null
null
import tensorflow as tf a = tf.ones([1, 3]) b = tf.fill([1, 3], 3.) print("a:", a) print("b:", b) print("a+b:", tf.add(a, b)) print("a-b:", tf.subtract(a, b)) print("a*b:", tf.multiply(a, b)) print("b/a:", tf.divide(b, a))
21.272727
33
0.521368
a201fccda177475fd273262409fcc95c610514db
1,823
py
Python
tools/building_script/native_method_collector/base_native_method_collector.py
zhouyanlt/llbc
a8cc4662401e9b077be7ee0058350b35fdd86060
[ "MIT" ]
83
2015-11-10T09:52:56.000Z
2022-01-12T11:53:01.000Z
tools/building_script/native_method_collector/base_native_method_collector.py
zhouyanlt/llbc
a8cc4662401e9b077be7ee0058350b35fdd86060
[ "MIT" ]
30
2017-09-30T07:43:20.000Z
2022-01-23T13:18:48.000Z
tools/building_script/native_method_collector/base_native_method_collector.py
caochunxi/llbc
2ff4af937f1635be67a7e24602d0a3e87c708ba7
[ "MIT" ]
34
2015-11-14T12:37:44.000Z
2021-12-16T02:38:36.000Z
# -*- coding: utf-8 -*- """ nativec/c++native """ import re from os import path as op from cpputils import * from c import Cfg from defs import LangType
32.553571
151
0.660998
a20244ac84e009282501e8057bf8b16d29cf894f
2,490
py
Python
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
8
2021-07-27T01:13:56.000Z
2022-03-15T01:12:40.000Z
aries_cloudagent/vc/tests/document_loader.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
from .contexts import ( DID_V1, SECURITY_V1, SECURITY_V2, SECURITY_V3_UNSTABLE, CREDENTIALS_V1, EXAMPLES_V1, BBS_V1, CITIZENSHIP_V1, ODRL, SCHEMA_ORG, ) from ..ld_proofs.constants import ( SECURITY_CONTEXT_V2_URL, SECURITY_CONTEXT_V1_URL, DID_V1_CONTEXT_URL, SECUR...
34.583333
148
0.736145
a203cf5cfdc6a8501d530dc5088e0a158e658e1d
288
py
Python
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
13
2016-09-24T02:20:59.000Z
2017-04-27T09:15:02.000Z
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
null
null
null
pandoc/filters/codeblocks_common.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
1
2019-01-28T06:17:15.000Z
2019-01-28T06:17:15.000Z
from collections import OrderedDict
22.153846
52
0.631944
a2044c1186ed483ffd6b0bcb3da7937d377f7460
1,740
py
Python
openconfig/ydk/models/openconfig/openconfig_aaa.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
177
2016-03-15T17:03:51.000Z
2022-03-18T16:48:44.000Z
openconfig/ydk/models/openconfig/openconfig_aaa.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
18
2016-03-30T10:45:22.000Z
2020-07-14T16:28:13.000Z
openconfig/ydk/models/openconfig/openconfig_aaa.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
85
2016-03-16T20:38:57.000Z
2022-02-22T04:26:02.000Z
""" openconfig_aaa This module defines configuration and operational state data related to authorization, authentication, and accounting (AAA) management. Portions of this model reuse data definitions or structure from RFC 7317 \- A YANG Data Model for System Management """ import sys from collections import Ordere...
26.769231
126
0.697701
a2069227330d2f68ac9581598475c67af9bc9bb2
361
py
Python
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
python/libfuzzer/python-atheris/src/mayhemit.py
ForAllSecure/mayhem-examples
bae123373c7e760c8b0ea0d9fb182f6acfbe5381
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import atheris import sys import os atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput) atheris.Fuzz()
21.235294
58
0.556787
a2075dd6f8477f9a928e6816e1109df1a8072a85
496
py
Python
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2020-04-21T15:09:18.000Z
2020-04-21T15:09:18.000Z
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
70
2019-04-10T22:32:32.000Z
2022-03-11T23:12:54.000Z
djfw/tinymce/urls.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2019-04-12T14:55:39.000Z
2019-04-12T14:55:39.000Z
from django.conf import urls from djfw.tinymce import views app_name = 'djfw.tinymce' urlpatterns = [ urls.re_path(r'^$', views.Smiles.as_view(), name='index'), urls.re_path( r'^emotions/emotions.htm$', views.Smiles.as_view(), name='smiles'), urls.re_path( r'^uploaded_files/$',...
27.555556
77
0.622984
a20954b9e637aa56b6ab4112e01b278d49be666a
115
py
Python
python_vuejs/__init__.py
star1990luck/perk-python-vue
d4ac81291142980df1e8b21cf42285f4af054526
[ "MIT" ]
47
2017-05-24T12:39:11.000Z
2021-02-26T06:59:01.000Z
python_vuejs/__init__.py
star1990luck/perk-python-vue
d4ac81291142980df1e8b21cf42285f4af054526
[ "MIT" ]
67
2017-05-29T15:02:31.000Z
2018-09-12T19:17:28.000Z
python_vuejs/__init__.py
star1990luck/perk-python-vue
d4ac81291142980df1e8b21cf42285f4af054526
[ "MIT" ]
7
2017-08-17T23:02:41.000Z
2018-02-12T02:34:53.000Z
# -*- coding: utf-8 -*- __author__ = """Christian Strappazzon""" __email__ = 'lab@strap.it' __version__ = '1.0.9'
19.166667
40
0.634783
a209d7ff8a1321cfe4ae1ee153251f97d85b8910
22,345
py
Python
tools/gn/secondary/build/config/win/get_msvc_config_real.py
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
build/config/win/get_msvc_config_real.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2015-08-31T06:39:59.000Z
2021-12-04T14:53:28.000Z
build/config/win/get_msvc_config_real.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This file copies the logic from GYP to find the MSVC configuration. It's not # currently used because it is too slow. We will probably build this # fun...
38.793403
81
0.606086
a20ac73d96760f73577ad1337bb13f563b0d5cff
314
py
Python
test/conftest.py
koreiklein/dist_zero
68ef5a0603edc53925daeec1f4bb684025cacbd4
[ "Unlicense" ]
1
2019-03-18T13:27:35.000Z
2019-03-18T13:27:35.000Z
test/conftest.py
koreiklein/dist_zero
68ef5a0603edc53925daeec1f4bb684025cacbd4
[ "Unlicense" ]
null
null
null
test/conftest.py
koreiklein/dist_zero
68ef5a0603edc53925daeec1f4bb684025cacbd4
[ "Unlicense" ]
null
null
null
import pytest import dist_zero.ids from dist_zero.spawners.simulator import SimulatedSpawner from dist_zero.spawners.docker import DockerSpawner from dist_zero.spawners.cloud.aws import Ec2Spawner from dist_zero.system_controller import SystemController from .demo import demo, cloud_demo from .common import dz
28.545455
57
0.863057
a20bc93fee8de2b40c212fc499e721856e4ab411
661
py
Python
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
config/settings/test.py
andrewtcrooks/taskorganizer
661b1ae790d06f351871b5ef5f3f820055ddb704
[ "MIT" ]
null
null
null
"""taskorganizer.config.settings.test .""" from .base import * import json # JSON-based secrets module with open('test_secrets.json') as f: secrets = json.loads(f.read()) def get_secret(setting, secrets=secrets): """Get the secret variable or return explicit exception.""" try: return secrets[sett...
23.607143
70
0.655068
a20e3bed418b96fae7ddcec8794e7d98aa58b03f
7,727
py
Python
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
salina_examples/rl/LoP/agents.py
jbgaya/salina
9f957d4c74974fb4db188c291b4cad039582e4e2
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.normal import Normal from salina import Agent, TAgent from brax.envs.to_torch import JaxToTorchWrapper from salina_examples.rl.LoP.envs import create_gym_env from salina_examples.rl.LoP.subspace import Linear,...
41.543011
147
0.589362
a20ea27ba3117ed58af13893be1fa36390eb8161
219
py
Python
BAEKJOON/Python/2439.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
BAEKJOON/Python/2439.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
BAEKJOON/Python/2439.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
num = int(input()) for i in range(num): no_star = num-i-1 yes_star = i+1 for i1 in range(no_star): print(" ",sep="",end="") for i2 in range(yes_star): print("*",sep="",end="") print()
24.333333
32
0.515982
a2103e8445d872bf5cb390f93bde6d7bd4043e05
275
py
Python
examples/getdata.py
Commensalism1997/gpop.py
976c48a77026455441e57f2e975d0f70e060911b
[ "MIT" ]
null
null
null
examples/getdata.py
Commensalism1997/gpop.py
976c48a77026455441e57f2e975d0f70e060911b
[ "MIT" ]
1
2022-01-19T13:39:45.000Z
2022-01-19T13:39:45.000Z
examples/getdata.py
Commensalism1997/gpop.py
976c48a77026455441e57f2e975d0f70e060911b
[ "MIT" ]
null
null
null
import gpop while True: nick = input() data = gpop.get_data(nick) print(f''' {nick} stats: Level: {data.level} Time played: {data.time} Levels played: {data.played} Levels created: {data.created} Views: {data.views} G-Coins: {data.coins} GBobs: {data.gbobs} ''')
18.333333
30
0.669091
a211435c327ed70ae065e1343ef2dfb4cbf26da9
1,541
py
Python
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
1
2015-04-28T22:54:05.000Z
2015-04-28T22:54:05.000Z
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
null
null
null
setup.py
Zincr0/pyscrap
69b4c2bd42dbec125444ad68a1f76168fab7607e
[ "Apache-2.0" ]
null
null
null
# -*- coding=utf-8 -*- #Copyright 2012 Daniel Osvaldo Mondaca Seguel # #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 appli...
30.215686
73
0.686567
a211ebfcbf069a00aa69ab75205d588df2ae8176
10,615
py
Python
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
4
2017-08-18T11:49:54.000Z
2019-04-02T11:35:28.000Z
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
null
null
null
densenet.py
BingoH/ReinventingWheel
5232d0ab697ad57a039c766355545bbde3b2a200
[ "MIT" ]
null
null
null
#!/usr/bin/env python ##### # simple implementation of "Densely Connected Convolutional Networks, CVPR 2017" ##### import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torch.optim as optim import torchvision import torchvision.transforms as transforms import...
34.576547
103
0.581912
a2151a048539906496fa27e828dec6baba159d3b
97
py
Python
PythonCode/debugging_example.py
Spstolar/BMachine
319e5efb72cd3ab07b8538b7c43bd93e75f2e38a
[ "MIT" ]
null
null
null
PythonCode/debugging_example.py
Spstolar/BMachine
319e5efb72cd3ab07b8538b7c43bd93e75f2e38a
[ "MIT" ]
3
2017-04-02T15:41:22.000Z
2017-04-03T06:43:06.000Z
PythonCode/debugging_example.py
Spstolar/BMachine
319e5efb72cd3ab07b8538b7c43bd93e75f2e38a
[ "MIT" ]
null
null
null
start = 3 for i in range(6): start = double_it(start)
12.125
28
0.639175
a2157079ef9ffaffcc108a55445091fe2efede1e
13,871
py
Python
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
2
2021-06-23T17:23:21.000Z
2022-01-14T01:28:57.000Z
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
null
null
null
centpy/solver2d.py
olekravchenko/centpy
e10d1b92c0ee5520110496595b6875b749fa4451
[ "MIT" ]
null
null
null
from .solver1d import * # p coefficient functions
32.791962
88
0.443443
a21a620a2dc472c716f0c4a791cee689f1e97aaa
942
py
Python
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
9
2020-12-22T19:14:01.000Z
2022-03-17T04:34:06.000Z
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
32
2020-12-28T07:46:44.000Z
2022-03-31T01:25:01.000Z
tests/unit/cluster/test_cluster.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
2
2021-07-30T16:44:46.000Z
2022-01-12T20:15:17.000Z
from sadie.cluster import Cluster from sadie.airr import AirrTable, LinkedAirrTable
37.68
118
0.721868
a21d4928f175025df7eb53ecd52295a8549f7c02
3,313
py
Python
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
1
2019-08-05T14:45:24.000Z
2019-08-05T14:45:24.000Z
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
null
null
null
datasets/import_yelp.py
dallascard/proportions
f01502428333e45310654a36d26503612fe45234
[ "Apache-2.0" ]
null
null
null
import os import re import sys from collections import Counter from optparse import OptionParser import numpy as np import pandas as pd from util import file_handling as fh if __name__ == '__main__': main()
33.806122
182
0.561425
a21e97a3119d9596c35d2805249f2abdd428f597
393
py
Python
examples/network/UDPSend_python/UDPecho.py
sicrisembay/mbed_target
dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8
[ "Apache-2.0" ]
20
2017-10-12T10:49:10.000Z
2022-03-16T03:21:46.000Z
examples/network/UDPSend_python/UDPecho.py
sicrisembay/mbed_target
dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8
[ "Apache-2.0" ]
2
2018-06-22T16:00:02.000Z
2019-09-01T13:32:27.000Z
examples/network/UDPSend_python/UDPecho.py
sicrisembay/mbed_target
dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8
[ "Apache-2.0" ]
9
2017-08-13T12:15:32.000Z
2021-11-21T07:57:08.000Z
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = '' server_port = 10001 server = (server_address, server_port) sock.bind(server) print("Listening on " + server_address + ":" + str(server_port)) while True: payload, client_address = sock.recvfrom(1024) print("Echoing data back...
26.2
64
0.753181
a221601389defa2b881d9bc404d9a902c1823fb3
129
py
Python
FaceSwap-master/pytorch_stylegan_encoder/image.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
1
2020-06-21T13:45:26.000Z
2020-06-21T13:45:26.000Z
FaceSwap-master/pytorch_stylegan_encoder/image.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
null
null
null
FaceSwap-master/pytorch_stylegan_encoder/image.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
3
2020-09-02T03:18:45.000Z
2021-01-27T08:24:05.000Z
version https://git-lfs.github.com/spec/v1 oid sha256:0b658b7b289160eaf9545f85d87f9c8baa0c04e58f265cf125e952a2fb821816 size 1379
32.25
75
0.883721
a2218eb8e774cc37ae6e91146172fc4b0d506e5d
1,496
py
Python
dev/logger.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
dev/logger.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
2
2018-03-28T19:47:46.000Z
2021-12-13T20:56:31.000Z
dev/logger.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
# logger.py # App logger initialization function # r1 # TODO: logger.propagate using import logging from logging.handlers import RotatingFileHandler from helpers.config import Config
28.226415
96
0.66377
a224241137af1e2beb8c8dfb0f5f9fc3ff31834a
852
py
Python
segmentation/algorithm/quickshift_test.py
peternara/graph-based-image-classification-gcn
60e93b47691e960b7f06f7a5dc11191efe881178
[ "MIT" ]
44
2017-02-26T16:52:48.000Z
2022-02-17T18:50:02.000Z
segmentation/algorithm/quickshift_test.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
2
2018-11-14T05:11:25.000Z
2020-06-23T16:24:41.000Z
segmentation/algorithm/quickshift_test.py
hungerzs/graph-based-image-classification
d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8
[ "MIT" ]
13
2018-04-26T07:46:35.000Z
2022-02-28T15:38:53.000Z
import tensorflow as tf from .quickshift import quickshift
30.428571
77
0.467136
a2288fb94c080ace0de40f0b975efab9344f4528
1,777
py
Python
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
content.py
bguenthe/mpwebswitch
d598fc0ff74a5fef0535fa8ccf45029add2fbb16
[ "MIT" ]
null
null
null
# Micropython Http Server # Erni Tron ernitron@gmail.com # Copyright (c) 2016 # Content Callback functions. # They should receive parameters and return a HTML formatted string # By convention they start with cb_ import gc import time from config import save_config, set_config, get_config # Content Functions
25.753623
113
0.585819
bf3e58c7c4f6441c3bd403bedd53cbdc604438db
4,512
py
Python
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
5
2019-09-27T17:34:21.000Z
2020-07-28T01:42:31.000Z
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
null
null
null
comparator/__init__.py
dchaplinsky/comparator
664eee047debe654b0b9d74e725af787a5306516
[ "MIT" ]
null
null
null
__version__ = "1.0.0" __all__ = ["full_compare"] import re from functools import reduce from itertools import permutations, product, islice, zip_longest from operator import mul from Levenshtein import jaro, jaro_winkler if __name__ == "__main__": import sys if len(sys.argv) > 1: test_file(...
26.080925
94
0.585993
bf3e74e6f6ce3ba1a29bca66409ff4b07faabce7
6,134
py
Python
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
1
2021-12-08T21:35:55.000Z
2021-12-08T21:35:55.000Z
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
1
2022-01-08T02:45:09.000Z
2022-01-08T02:45:09.000Z
matt/day4/2hap.py
brianfay/aoc-2021
08894c6b9e62777f93d2252896b8909b174b04e6
[ "Unlicense" ]
null
null
null
# Parse input: # line 1 = call_numbers separated by , # Matrices separated by blank row # Store input: # Bingo Cards: Dictionary of Dictionaires of lists? (card - column - numbers) # call_numbers: list # function to x numbers as called # function to check if card(s) won # function to add all unmarked numbers on win...
34.077778
175
0.469188
bf3eb6b868a5e43fd91faea2606c647531478b26
3,120
py
Python
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/graphs/lodopab_200_performance.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from dliplib.utils.helper import set_use_latex plt.style.use('seaborn-whitegrid') set_use_latex() sizes = [0.0001, 0.001, 0.01, 0.10, 1.00] ticks = range(len(sizes)) # performance on the different data sizes learnedgd = {'PSNR [db]': [29.87, 31.28, 31.83, 32.7, 32...
33.548387
109
0.575
bf3ef1247bc316b19c823cb48904b6ec5fce2e57
1,448
py
Python
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
1
2020-12-02T11:34:42.000Z
2020-12-02T11:34:42.000Z
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
null
null
null
16/Part2.py
iammanish17/AOC2020
afbed26492b8cd0025e6c6b196e1a944e0a84109
[ "MIT" ]
1
2020-12-23T06:56:51.000Z
2020-12-23T06:56:51.000Z
s = open('input.txt','r').read() s = [k for k in s.split("\n")] di = {} ok = False ans = 0 f = [set() for i in range(20)] nums = set() cnt = 0 for line in s: for each in line.split(" "): if "-" in each: x, y = each.split("-") x, y = int(x), int(y) if line.split(":")[0]...
23.737705
47
0.410912
bf3f318dea8bdb40dfcc7f44d11dbe3ea8396aae
3,089
py
Python
src/restApi/accounts/api/views.py
nightwarriorftw/restApi
41bb572f55d27fbdb104a3624a15cbb959b92cf7
[ "MIT" ]
null
null
null
src/restApi/accounts/api/views.py
nightwarriorftw/restApi
41bb572f55d27fbdb104a3624a15cbb959b92cf7
[ "MIT" ]
10
2020-06-05T20:12:44.000Z
2022-03-12T00:08:39.000Z
src/restApi/accounts/api/views.py
nightwarriorftw/restApi
41bb572f55d27fbdb104a3624a15cbb959b92cf7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.db.models import Q from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import permissions, generics from rest_framework_jwt.settings import api_settings from acc...
35.918605
84
0.652315
bf3f371bc17442142ae43aa519da8c21f6e05bbe
1,176
py
Python
tests/conftest.py
prajmus/pypi_changes
52aa64676fa650694ad0cbd85187fea1706265a8
[ "MIT" ]
24
2021-11-04T11:02:31.000Z
2022-01-08T14:31:53.000Z
tests/conftest.py
prajmus/pypi_changes
52aa64676fa650694ad0cbd85187fea1706265a8
[ "MIT" ]
8
2021-11-04T13:23:01.000Z
2022-01-11T20:53:18.000Z
tests/conftest.py
prajmus/pypi_changes
52aa64676fa650694ad0cbd85187fea1706265a8
[ "MIT" ]
5
2021-11-05T17:54:29.000Z
2022-03-26T11:46:06.000Z
from __future__ import annotations import sys from pathlib import Path from unittest.mock import MagicMock, create_autospec import pytest from _pytest.monkeypatch import MonkeyPatch from pypi_changes._cli import Options from tests import MakeDist
28
99
0.72534
bf40bec63820957e6761ed0c250696ce749bea12
2,578
py
Python
src/DataProcessing/CO2_GDP/treemapdata.py
KKDJOSEPH/Analysis_on_Global_Warming
02376517b61c08d2c2858d2ca2e994eb0ec04c89
[ "MIT" ]
null
null
null
src/DataProcessing/CO2_GDP/treemapdata.py
KKDJOSEPH/Analysis_on_Global_Warming
02376517b61c08d2c2858d2ca2e994eb0ec04c89
[ "MIT" ]
null
null
null
src/DataProcessing/CO2_GDP/treemapdata.py
KKDJOSEPH/Analysis_on_Global_Warming
02376517b61c08d2c2858d2ca2e994eb0ec04c89
[ "MIT" ]
null
null
null
def treegenerator(region, cleancountryco2): """ @Author Haoyang Ding generate a dictionary in a special format treedata={"value": co2 emission in a specific region "name": region's name "children": [{country's name: co2 emission data}, {}....] } :param region: lis...
34.837838
116
0.623351
bf4206dbcc7426fe08c0679c20acc8aa9437d1eb
3,472
py
Python
core/aws_ddk_core/pipelines/stage.py
vemel/aws-ddk
d34bd1d98f5a170026a1b65f9629e909ca839930
[ "Apache-2.0" ]
null
null
null
core/aws_ddk_core/pipelines/stage.py
vemel/aws-ddk
d34bd1d98f5a170026a1b65f9629e909ca839930
[ "Apache-2.0" ]
null
null
null
core/aws_ddk_core/pipelines/stage.py
vemel/aws-ddk
d34bd1d98f5a170026a1b65f9629e909ca839930
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
29.423729
104
0.580069
bf42ac1b125502bb6adf579b40a034bc662330a7
1,640
py
Python
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
1
2022-02-07T17:29:42.000Z
2022-02-07T17:29:42.000Z
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
null
null
null
classes/utils.py
sicko7947/Nike
aa028412977f4a730e4b1ad97c29e157a9304d02
[ "MIT" ]
1
2021-08-07T04:39:55.000Z
2021-08-07T04:39:55.000Z
import datetime,threading,random from termcolor import cprint, colored import colorama
25.230769
80
0.589024
bf43755e187af099cccae06e2ad0a561bdda3853
7,486
py
Python
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
null
null
null
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
null
null
null
old_code/soil_heat_model.py
miksch/atm233-midterm-winter2020
0b7f33deb398f268efdcb77c7e7ddbc2ab2b2704
[ "MIT" ]
1
2020-03-03T18:28:21.000Z
2020-03-03T18:28:21.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import xarray as xr from scipy import signal import timeit from numba import jit import datashader as ds import xarray as xr from datashader import transfer_functions as tf #1. Define the boundary conditions # Needed: surface temperature forcing (s...
31.720339
123
0.64841
bf4435708cd1cd1a00c510e8d61acff73e2fc0ba
5,901
py
Python
qced_dti_analysis.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
1
2016-02-08T18:31:36.000Z
2016-02-08T18:31:36.000Z
qced_dti_analysis.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
null
null
null
qced_dti_analysis.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
null
null
null
#!/usr/bin/python import os import sys import glob import argparse from scai_utils import * REQ_FSL_VER = "5.0" DATA_DIR = "/users/cais/STUT/DATA" DTIPREP_DIR = "/users/cais/STUT/analysis/dti" DTI_BASE = "/users/cais/STUT/analysis/dti2" EDDY_CORRECT_SPLINE_BIN = "/users/cais/STUT/scripts/eddy_correct_spline" #FDT_RO...
37.585987
114
0.629724
bf462c8fa1454512e16f250d30d5dc8b3cd688cc
2,803
py
Python
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
5
2020-10-26T13:14:51.000Z
2021-01-13T16:52:49.000Z
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
1
2021-02-13T00:45:32.000Z
2021-02-13T08:21:31.000Z
extensions/mute.py
meisme-dev/Gardenbot
a8c7b30b28aa4ad2dcba367eedfbd856f63f5eca
[ "MIT" ]
5
2020-10-26T02:21:36.000Z
2020-11-28T04:10:24.000Z
# MIT License # Copyright (c) 2020 me is me # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
40.623188
120
0.717802
bf4644e52957de9dd091d9578f984983baf2e266
142
py
Python
gmenu/apps.py
Ione03/gmenu
ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8
[ "MIT" ]
null
null
null
gmenu/apps.py
Ione03/gmenu
ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8
[ "MIT" ]
null
null
null
gmenu/apps.py
Ione03/gmenu
ef427cee6fcdbf2e3aa5b6532f7c01499b9748e8
[ "MIT" ]
null
null
null
from django.apps import AppConfig
20.285714
56
0.753521
bf47205a4f9eeafd2447693a448c4ddc628fc8cd
3,405
py
Python
pyadept/rcommands.py
semeniuta/pyadept
cd8677ef4e6033c811f1783d23de459778b83737
[ "BSD-3-Clause" ]
2
2018-10-05T10:08:46.000Z
2020-05-14T18:45:09.000Z
pyadept/rcommands.py
semeniuta/pyadept
cd8677ef4e6033c811f1783d23de459778b83737
[ "BSD-3-Clause" ]
null
null
null
pyadept/rcommands.py
semeniuta/pyadept
cd8677ef4e6033c811f1783d23de459778b83737
[ "BSD-3-Clause" ]
1
2020-12-01T15:45:50.000Z
2020-12-01T15:45:50.000Z
import numpy as np from pyadept.strutil import vec_to_str DELIMITER = b'\r\n' BREAK_CMD = b'break' + DELIMITER
23.482759
80
0.6558
bf487798f8e7882fa1a70476d00ee5b869483959
15,839
py
Python
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
1
2017-02-20T13:49:48.000Z
2017-02-20T13:49:48.000Z
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
null
null
null
app/sova/views.py
ivoras/sova
bb555e53a48f0e92874ab90e8651b314e2df0e8d
[ "BSD-2-Clause" ]
null
null
null
import base64 from datetime import datetime, timedelta import re import os from django.core.mail import EmailMultiAlternatives from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect, Http404, HttpResponseBadRequest from django.urls import reverse from django.core.validators...
44.366947
480
0.696067
bf48c12f766440fe89efdec56fd4ce8b427adc83
653
py
Python
Python3/1429-First-Unique-Number/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1429-First-Unique-Number/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1429-First-Unique-Number/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
# Your FirstUnique object will be instantiated and called as such: # obj = FirstUnique(nums) # param_1 = obj.showFirstUnique() # obj.add(value)
27.208333
82
0.601838
bf4a21121167372f015ea33b342a6de5c9c4381e
737
py
Python
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
108
2015-02-26T16:33:23.000Z
2022-01-05T22:47:59.000Z
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
74
2015-01-26T11:15:08.000Z
2021-12-17T05:29:07.000Z
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
81
2015-01-22T09:55:59.000Z
2022-03-23T04:53:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-24 15:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
27.296296
100
0.629579
bf50573fc8c7f1473140c678218ca5ff24e7755c
514
py
Python
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
""" A new python package to learn how to create python packages """ import sys __version__ = '0.0.22' def hello(name='world'): """ Return a greeting for the given name """ return 'Hello, {}'.format(name) def main(): """ Reads input from the args passed into the script and prints the out...
16.580645
67
0.571984
bf5564f8800b67c13332af3f8707a95b96113e55
93
py
Python
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
121
2020-04-28T01:00:15.000Z
2021-10-06T06:44:00.000Z
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
2
2021-06-05T04:16:13.000Z
2021-10-12T13:48:34.000Z
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
23
2020-05-29T04:31:10.000Z
2021-09-07T18:35:43.000Z
from . import gridworld from . import utility # some alias GridWorld = gridworld.GridWorld
13.285714
31
0.774194
bf562b96a69896118fd044a0894e367ce47403f6
4,666
py
Python
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
17
2021-01-08T10:35:04.000Z
2022-03-23T07:13:54.000Z
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
null
null
null
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
5
2021-01-11T08:31:07.000Z
2022-01-11T06:28:04.000Z
import numpy as np from Sphere import ObjVal from CalculateGreatness import CalculateGreatness from GreatnessOrder import GreatnessOrder from FrictionSurface import FrictionSurface from tournement_selection import tournement_selection
32.17931
115
0.541149
bf56a4ec5c9c9f5034ff21cf5feff393693d48db
22,712
py
Python
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
1
2021-06-08T08:20:31.000Z
2021-06-08T08:20:31.000Z
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
import os import sys from time import time as timer import gym import numpy as np import numpy.random as rd import torch import torch.nn as nn import torch.nn.functional as F """ beta2 PPO ZFlt stable, running state mean std, def run_eval() beta1 GPU, def get_eva_reward() """ from collections import namedtuple ...
33.949178
121
0.608401
bf582559e0911ceac34a3c025dbda5c3487ce0a3
759
py
Python
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
import ruamel.yaml from ansiblelint import AnsibleLintRule
29.192308
101
0.621871
bf588f3851b0b3222aeb9120dab2bdad11f953db
2,966
py
Python
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
2
2021-06-09T20:55:17.000Z
2021-11-03T03:07:37.000Z
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
null
null
null
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
1
2020-07-26T02:31:38.000Z
2020-07-26T02:31:38.000Z
import tweepy import datetime as dt import requests import re from GetTweetProperties import get_tweet_properties, get_tweet_semantics dow_ratios = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0} ''' Step 3 Calculating Twitter User Account Properties Component ''' # Send all the urls out to Google's SafeBrowsing API t...
27.719626
117
0.618678
bf58f80c1eddf33be62a39e2715221f40903b812
2,712
py
Python
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
17
2019-04-18T15:28:55.000Z
2020-06-11T15:49:19.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
4
2020-06-27T04:43:49.000Z
2022-03-23T11:38:25.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
1
2021-08-07T22:55:03.000Z
2021-08-07T22:55:03.000Z
import argparse import logging import math import re import sys from fontTools.misc.fixedTools import otRound from fontTools.misc.transform import Identity from fontTools.ttLib import TTFont, TTLibError from fontTools.voltLib.parser import Parser from io import StringIO log = logging.getLogger() anchor_re = re.compil...
30.818182
88
0.592183
bf597e9b79cff3a9a7086f9c848f3046668b7b67
1,376
py
Python
bnb/utils/general_utils.py
elanmart/bnb-full
6d86964d6580436816a84d1dd822ede02f4bc56f
[ "MIT" ]
4
2018-04-28T14:29:11.000Z
2019-02-08T19:09:04.000Z
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
import inspect import os from collections import namedtuple from contextlib import contextmanager from pathlib import Path from typing import * import git
24.140351
69
0.686773
bf5a9cb5d3e9f2267ebde9027febc965b300c8da
8,379
py
Python
source/aws/services/transit_gateway_peering_attachments.py
josete89/serverless-transit-network-orchestrator
6a69e1f7ebcbcba20100f80bc2040f0d2ae86cf8
[ "Apache-2.0" ]
42
2019-11-16T18:00:32.000Z
2021-09-16T01:10:53.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
38
2020-01-31T03:31:29.000Z
2021-09-16T03:20:23.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
31
2019-12-09T17:20:03.000Z
2021-03-30T06:52:02.000Z
############################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). # ...
46.038462
80
0.509488
bf5d47be37cf903e8580c7840db1fffd47cb12b1
86
py
Python
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
from berth.builder.backends.base import * from berth.builder.backends.sphinx import *
28.666667
43
0.813953
bf5da77aeabd12ceb0b5e356d617cea7f17c6b26
138
py
Python
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
8
2019-04-13T14:08:55.000Z
2022-03-06T10:53:44.000Z
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
16
2019-03-31T20:22:21.000Z
2022-01-15T11:43:57.000Z
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
null
null
null
from . import views routeList = ( (r"customers", views.CustomerViewSet), (r"customer_products", views.CustomerProductViewSet), )
19.714286
57
0.717391
bf5ea75c0a67371f89833cc073f335bc92883e04
1,064
py
Python
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
''' Define subcommands for 'esdsl'. ''' import json import click from escher import __version__ cli.add_command(match_all, name="match-all") cli.add_command(match_none, name="match-none")
20.075472
72
0.660714
bf5eb68165231d8bd2e30af9eab24faf05a5f7d7
675
py
Python
ui/AutoSelectSettingDialog.py
Zhehua-Hu/Enchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
12
2017-02-20T05:54:12.000Z
2020-02-13T18:26:29.000Z
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
null
null
null
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
3
2017-02-23T06:35:13.000Z
2020-06-18T07:06:17.000Z
#!/usr/bin/env python # coding=utf-8 """ Provide AutoSelectSettingDialog Class """ from PyQt5.QtWidgets import QDialog, QSpinBox from AutoSelectSetting import Ui_AutoSelectSetting
21.774194
61
0.700741
bf5f3141b7f3a28885d055ded4aacbbcd9bfd9e3
9,432
py
Python
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
1
2019-07-13T10:52:32.000Z
2019-07-13T10:52:32.000Z
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
3
2018-08-01T13:44:55.000Z
2020-01-22T09:28:36.000Z
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
null
null
null
import re from django.contrib.contenttypes.models import ContentType from apis_core.apis_metainfo.models import Text from apis_highlighter.models import Annotation
36.416988
303
0.513147
bf5f7e78f69402cb12269c29faa4e2ec83813aa8
13,409
py
Python
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
2
2020-03-19T20:04:11.000Z
2021-12-07T16:38:11.000Z
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from aiida.orm.data.parameter import ParameterData from aiida.parsers.parser import Parser from aiida.parsers.exceptions import OutputParsingError from aiida_gollum.calculations.gollum import GollumCalculation __copyright__ = u"Copyright (c), 2015, ECOLE POLYTECHNIQUE FEDERAL...
35.757333
278
0.572899