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
5bc4a23038ee5b6bc88961f946ddd85c58bb965b
10,688
py
Python
model.py
nuguziii/ResidualDenoising
f3ae8a10a1fab86a80cd7bbbe6d6fb92e7bd9a6d
[ "MIT" ]
null
null
null
model.py
nuguziii/ResidualDenoising
f3ae8a10a1fab86a80cd7bbbe6d6fb92e7bd9a6d
[ "MIT" ]
null
null
null
model.py
nuguziii/ResidualDenoising
f3ae8a10a1fab86a80cd7bbbe6d6fb92e7bd9a6d
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.init as init import os import torch.nn.functional as F from utils import *
34.477419
141
0.57747
5bc51f065eb8ca85aa842d7f3d633a1dccfbb3b5
18,655
py
Python
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
6
2017-09-15T20:54:14.000Z
2021-05-07T21:32:43.000Z
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
null
null
null
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
5
2017-09-20T17:39:41.000Z
2020-05-03T23:24:43.000Z
############################################################################### # The MIT License (MIT) # # Copyright (c) 2017 Justin Lovinger # # 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 Softwar...
40.032189
96
0.633021
5bc51fad17b918c59dfbd3c6e2853790185f1367
2,921
py
Python
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
8
2019-01-30T13:51:59.000Z
2022-01-08T03:26:53.000Z
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
286
2019-01-18T21:35:51.000Z
2022-03-24T18:53:59.000Z
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
4
2019-02-11T13:38:30.000Z
2021-03-02T20:59:00.000Z
import logging from django.apps import apps from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.http import Http404 logger = logging.getLogger(__name__)
38.434211
97
0.683328
5bc67afba8ed5dc9591c0f85d1fe2b5abb56dd2e
546
py
Python
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
198
2018-08-31T22:30:28.000Z
2022-03-27T14:21:36.000Z
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
24
2018-10-01T23:44:25.000Z
2022-01-08T09:05:14.000Z
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
44
2018-09-30T02:09:56.000Z
2022-03-25T07:37:36.000Z
# test128_row.py Test for device driver on 96 row display import machine from ssd1351 import SSD1351 as SSD # Initialise hardware ssd = setup() ssd.fill(0) ssd.line(0, 0, 127, 127, ssd.rgb(0, 255, 0)) ssd.rect(0, 0, 15, 15, ssd.rgb(255, 0, 0)) ssd.show()
28.736842
63
0.664835
5bca10654ae55fb2d3ea1b8dd68b0e38ebec9051
2,202
py
Python
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
4
2019-05-30T01:52:12.000Z
2021-09-29T21:12:13.000Z
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
null
null
null
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Interpolate onto a volume # Parameters for debugging NPts = 1000000 math = vtk.vtkMath() math.RandomSeed(31415) # create pipeline # points = vtk.vtkBoundedPointSour...
23.934783
75
0.752044
5bcb12dcfb1374d0b8ca8119dc8c19584b673c4b
384
py
Python
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
from paver.easy import * import paver.doctools from paver.setuputils import setup setup( name='PyOptimizer', version='1.0', packages=['PyOptimizer'], url='https://github.com/alesgaco/PyOptimizer', license='MIT', author='Aldo Esteban Garces Correa', author_email='aegarcesc@unal.edu.co', d...
27.428571
66
0.713542
5bcd24af92ff2049a8f1702bee4c476fb75c0379
3,381
py
Python
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
2
2020-05-18T21:33:55.000Z
2021-03-11T17:38:37.000Z
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
8
2020-02-14T02:26:41.000Z
2021-09-22T18:32:00.000Z
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
null
null
null
import nltk from nltk import word_tokenize import string from nltk.stem import WordNetLemmatizer from wordcloud import WordCloud, STOPWORDS #nltk.download('punkt') #nltk.download('averaged_perceptron_tagger') #nltk.download('wordnet')
28.411765
139
0.597456
5bce24c724e70cff167c31edd656705461d5000b
248
py
Python
server/ffstore/constant/WxToken.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
1
2017-05-02T10:02:28.000Z
2017-05-02T10:02:28.000Z
server/ffstore/constant/WxToken.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
server/ffstore/constant/WxToken.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding:utf-8 -*- """ Author: AsherYang Email: ouyangfan1991@gmail.com Date: 2018/6/21 Desc: ffStore AppId, AppSecret """ APP_ID = 'wx72877ae8bdff79b0' APP_SECRET = '35c17c2b6f81e7b03735f17f546820bc'
19.076923
49
0.729839
5bd0c05ae4e8061d76b12526917129097eb9bc66
1,037
py
Python
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import re import os import unicodedata import math import six from django.utils.module_loading import import_string from filebrowser.settings import NORMALIZE_FILENAME, CONVERT_FILENAME def convert_filename(value): """ Convert Filename. """ if NORMALIZE_FILENAME: chunks = v...
22.06383
69
0.600771
5bd19aef2b594e4beb08b1c61935213131c03545
1,985
py
Python
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
null
null
null
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
8
2021-02-13T15:11:58.000Z
2021-02-15T17:39:00.000Z
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # This script is used for custom compilation scripts with selected # modules in order to achieve a selected enviroment for the running # code. This is done using the test.json file located in every test. # # The first argument is the name of the test enviroment, being the # folder name where test....
24.8125
88
0.611083
5bd351c81bdbf7b0fc4d0428569a34e08fce0261
1,512
py
Python
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os.path import argparse from src.app import main as app_main if __name__ == '__main__': run()
24
75
0.64418
5bd3f111c1e1343f5f5a3b4a6545c2bf77669071
8,310
py
Python
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
import os import json import base64 import hashlib from Crypto import Random from Crypto.Cipher import AES from steembase import PrivateKey from appdirs import user_data_dir import logging log = logging.getLogger(__name__) appname = "piston" appauthor = "Fabian Schuh" walletFile = "wallet.dat" prefix = "STM" # prefix ...
31.83908
105
0.530806
5bd6578ea2175e2c0717d77a3e1374d7b421f590
1,710
py
Python
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
#!/bin/env python # Demonstration of the imposition of a simple cartesian geometry on a set of # processes. In this case we generate a uniform 2-D grid in which each # element passes a value to its nearest neighbour to the right. from mpi4py import MPI import numpy as np import sys if __name__ == "__main__": # I...
38.863636
79
0.673684
5bd7df91b4668904964e69e486f54f6977162982
2,300
py
Python
tick2ohlc.py
nu11ptr/tick2ohlc
b9cc8cc148533dc4feb9c76aaeb7896600c53873
[ "BSD-3-Clause" ]
1
2021-10-19T03:10:33.000Z
2021-10-19T03:10:33.000Z
tick2ohlc.py
nu11ptr/tick2ohlc
b9cc8cc148533dc4feb9c76aaeb7896600c53873
[ "BSD-3-Clause" ]
null
null
null
tick2ohlc.py
nu11ptr/tick2ohlc
b9cc8cc148533dc4feb9c76aaeb7896600c53873
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import sys # NOTE: Each list below must be divisible by last entry of prev list # (15 by 5, 30 by 15, 1D by 6H, etc.) _UNITS = [ ["1min"], ["5min"], ["15min"], ["30min"], ["1H"], ["4H", "6H"], ["1D"], ["3D", "1W", "1M"], ] _DATE_FORMAT = "%m/%d/%Y" _TIME_FORMAT = "%H...
27.380952
83
0.563913
5bd87c7f3cf4dbb87910b47eb4c9320d786e3c84
3,131
py
Python
promoterz/representation/chromosome.py
emillj/gekkoJaponicus
d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7
[ "MIT" ]
null
null
null
promoterz/representation/chromosome.py
emillj/gekkoJaponicus
d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7
[ "MIT" ]
null
null
null
promoterz/representation/chromosome.py
emillj/gekkoJaponicus
d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7
[ "MIT" ]
1
2021-11-29T20:18:25.000Z
2021-11-29T20:18:25.000Z
#!/bin/python from deap import base from deap import creator from deap import tools from copy import deepcopy import random from .. import functions getPromoterFromMap = lambda x: [x[z] for z in list(x.keys())]
30.696078
94
0.661131
5bd912416252f099d311b6a7bf71cbb0a03fb0aa
1,124
py
Python
Python/esys/lsm/vis/vtk/pointExtractor.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/vis/vtk/pointExtractor.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/vis/vtk/pointExtractor.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
############################################################# ## ## ## Copyright (c) 2003-2017 by The University of Queensland ## ## Centre for Geoscience Computing ## ## http://earth.uq.edu.au/centre-geoscience-computing ## ## ...
40.142857
64
0.47242
5bd9266ab2b8b9521255499e10166243811219e3
2,266
py
Python
modules/images/module_slap.py
Fogapod/KiwiBot
49743118661abecaab86388cb94ff8a99f9011a8
[ "MIT" ]
18
2018-05-25T08:50:12.000Z
2021-10-04T07:13:09.000Z
modules/images/module_slap.py
Fogapod/BotMyBot
49743118661abecaab86388cb94ff8a99f9011a8
[ "MIT" ]
4
2018-10-20T21:10:38.000Z
2019-06-25T13:12:07.000Z
modules/images/module_slap.py
Fogapod/BotMyBot
49743118661abecaab86388cb94ff8a99f9011a8
[ "MIT" ]
6
2018-10-20T21:06:24.000Z
2021-11-08T05:51:14.000Z
from objects.modulebase import ModuleBase import discord from io import BytesIO from PIL import Image from PIL.ImageOps import mirror from utils.funcs import find_image
27.975309
85
0.566637
5bdaca6657ffcf8af132b8355ef2a3c0fd26d275
308
py
Python
tests/test_helpers.py
pyapp-org/pyapp.aiosmtplib
f928a7eb838b041d279d974f7cb555964764a410
[ "BSD-3-Clause" ]
null
null
null
tests/test_helpers.py
pyapp-org/pyapp.aiosmtplib
f928a7eb838b041d279d974f7cb555964764a410
[ "BSD-3-Clause" ]
20
2020-07-31T05:07:07.000Z
2022-02-11T19:02:03.000Z
tests/test_helpers.py
pyapp-org/pyapp.aiosmtplib
f928a7eb838b041d279d974f7cb555964764a410
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import Mock from pyapp_ext.aiosmtplib import helpers
22
64
0.707792
5bdc283f9a85f238ab321674c1684e85da942ecb
1,444
py
Python
pywizlight/tests/test_bulb_light_strip_1_21_4.py
mikemakaroff/pywizlight
0b32b917a064d9ca1be0ce9fb24ea68ce89993ed
[ "MIT" ]
1
2022-03-30T22:42:51.000Z
2022-03-30T22:42:51.000Z
pywizlight/tests/test_bulb_light_strip_1_21_4.py
mikemakaroff/pywizlight
0b32b917a064d9ca1be0ce9fb24ea68ce89993ed
[ "MIT" ]
null
null
null
pywizlight/tests/test_bulb_light_strip_1_21_4.py
mikemakaroff/pywizlight
0b32b917a064d9ca1be0ce9fb24ea68ce89993ed
[ "MIT" ]
null
null
null
"""Tests for the Bulb API with a light strip.""" from typing import AsyncGenerator import pytest from pywizlight import PilotBuilder, wizlight from pywizlight.bulblibrary import BulbClass, BulbType, Features, KelvinRange from pywizlight.tests.fake_bulb import startup_bulb
32.088889
85
0.701524
5bdc65f7f7f6d8254722d6ccff4a26998def2d9d
47,068
py
Python
casim/casim.py
pdebuyl/cancer_sim
305492d5108e1fb50783e4f13ddf2e1cf5b08976
[ "MIT" ]
1
2022-02-16T03:34:44.000Z
2022-02-16T03:34:44.000Z
casim/casim.py
pdebuyl/cancer_sim
305492d5108e1fb50783e4f13ddf2e1cf5b08976
[ "MIT" ]
12
2020-03-16T20:59:21.000Z
2020-09-18T08:41:09.000Z
casim/casim.py
pdebuyl/cancer_sim
305492d5108e1fb50783e4f13ddf2e1cf5b08976
[ "MIT" ]
3
2020-09-16T12:41:19.000Z
2021-03-11T23:19:24.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python3 __author__ = 'Luka Opasic, MD' __email__ = 'opasic@evolbio.mpg.de' __version__ = '1.1.0' from argparse import ArgumentParser from operator import itemgetter from random import shuffle from scipy.sparse import lil_matrix from time import sleep, time from timeit import def...
39.028192
225
0.640754
5bdc70ca06cc34e56b74c48fa1591b6c52375528
8,973
py
Python
src/stimulus_create.py
JohnKirwan/StimulPy
4cce54856a19de56d1b266f2013e66987459ed3c
[ "MIT" ]
null
null
null
src/stimulus_create.py
JohnKirwan/StimulPy
4cce54856a19de56d1b266f2013e66987459ed3c
[ "MIT" ]
null
null
null
src/stimulus_create.py
JohnKirwan/StimulPy
4cce54856a19de56d1b266f2013e66987459ed3c
[ "MIT" ]
null
null
null
def stimulus_create(type, wl, va, ratio): # STIMULUS_CREATE generates a 2D stimulus vector for phototaxis experiments of desired type and resolution # Inputs: # type - type of stimulus, e.g. 'bar'/'dog'/'square'/'log' (see below for full list) # wl - "width" or "wavelength" of pattern in degre...
70.653543
146
0.608381
5bde1f82acb41df2e414dc677ad1aaaf4d992610
7,296
py
Python
asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py
ssnover/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
3
2021-01-07T07:46:50.000Z
2021-11-17T10:48:39.000Z
asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py
ssnover/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
3
2018-02-19T20:30:30.000Z
2018-04-20T23:25:29.000Z
asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py
ssnover95/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
1
2021-01-07T07:46:52.000Z
2021-01-07T07:46:52.000Z
#!/usr/bin/python3 """ file: app.py purpose: Holds the view for the Flask web application and handling of the database. """ from .gui_constants import GUI_CONSTANTS, DANGER, ENVIRONMENT, STATE import datetime from flask import Flask, request, session, g, redirect, url_for, abort, \ render_temp...
30.915254
174
0.626234
5bdf01b0a0a5bb6669ac8ad449e7895990ac364b
945
py
Python
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- from django.http import HttpResponse, HttpResponseRedirect from datetime import datetime, date from apps.seguridad.decorators import login_required, credential_required from apps.seguridad.models import Usuario, Perfil from apps.titulos.models.TituloNacional import TituloNacional import csv fro...
37.8
159
0.767196
5bdf6fd05d5925e9877b48b6e99ef373ee445894
463
py
Python
PerceptronsORBitOperator.py
Jayasagar/neural-networks-and-fundamentals
3ba730f723f92dd1eab4f88b4d968f66fa866e7b
[ "MIT" ]
null
null
null
PerceptronsORBitOperator.py
Jayasagar/neural-networks-and-fundamentals
3ba730f723f92dd1eab4f88b4d968f66fa866e7b
[ "MIT" ]
null
null
null
PerceptronsORBitOperator.py
Jayasagar/neural-networks-and-fundamentals
3ba730f723f92dd1eab4f88b4d968f66fa866e7b
[ "MIT" ]
null
null
null
# Stimulate OR bit operator using Perceptron neural function # Bias = 0 and Weight = 1 print('ORBitwiseOperation: 0,0', ORBitwiseOperation(0, 0, 0)) print('ORBitwiseOperation: 0,1', ORBitwiseOperation(0, 1, 0)) print('ORBitwiseOperation: 1,0', ORBitwiseOperation(1, 0, 0)) print('ORBitwiseOperation: 1,1', ORBitwiseOpe...
30.866667
61
0.697624
5be18ef0ed38e04271a5246710a5e01dc9b41ee1
3,642
py
Python
raster_aggregation/admin.py
geodesign/django-raster-aggregation
2a4c155071f1f05923819da78f5f854b212b6926
[ "BSD-3-Clause" ]
9
2016-07-03T21:07:09.000Z
2019-02-19T01:26:00.000Z
raster_aggregation/admin.py
geodesign/django-raster-aggregation
2a4c155071f1f05923819da78f5f854b212b6926
[ "BSD-3-Clause" ]
2
2017-06-11T23:12:33.000Z
2018-04-03T22:33:15.000Z
raster_aggregation/admin.py
geodesign/django-raster-aggregation
2a4c155071f1f05923819da78f5f854b212b6926
[ "BSD-3-Clause" ]
6
2016-12-14T04:53:43.000Z
2021-08-24T14:32:46.000Z
from __future__ import unicode_literals from raster.models import RasterLayer from django import forms from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME from django.contrib.gis import admin from django.http import HttpResponseRedirect from django.shortcuts import render from .models import AggregationAre...
33.109091
102
0.661999
5be1b30055f7a9152abd85250240eb463b7bd006
2,624
py
Python
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """get_matches_api.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1QpfVmsmtCPV9dhTsq6pRW7l7bXjwzKzr Author: Aminu Habib Import Libraries """ import requests import json from prettytable import PrettyTable #import sqlite...
31.238095
332
0.739329
5be3e7aecb0aee54a7b66c2e2430fa5ba14e5ada
2,554
py
Python
src/yeahml/build/components/callbacks/objects/printer.py
JackBurdick/yensor
b51faff6625db5980151a4a5fac7bb49313df5c1
[ "Apache-2.0" ]
4
2019-04-21T05:19:22.000Z
2020-04-20T20:51:48.000Z
src/yeahml/build/components/callbacks/objects/printer.py
JackBurdick/YeahML
b51faff6625db5980151a4a5fac7bb49313df5c1
[ "Apache-2.0" ]
1
2020-08-24T23:23:14.000Z
2020-09-13T03:55:36.000Z
src/yeahml/build/components/callbacks/objects/printer.py
JackBurdick/YeahML
b51faff6625db5980151a4a5fac7bb49313df5c1
[ "Apache-2.0" ]
1
2020-08-07T00:41:02.000Z
2020-08-07T00:41:02.000Z
from yeahml.build.components.callbacks.objects.base import TrainCallback
17.613793
72
0.53289
5be40c75d2881dfa910d5ccbe37999de02fdbebd
3,043
py
Python
differential-privacy-library-main/tests/tools/test_histogram2d.py
gonzalo-munillag/Exponential_Randomised_Response
1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4
[ "MIT" ]
597
2019-06-19T11:26:50.000Z
2022-03-30T13:23:42.000Z
differential-privacy-library-main/tests/tools/test_histogram2d.py
gonzalo-munillag/Exponential_Randomised_Response
1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4
[ "MIT" ]
45
2019-06-20T08:03:31.000Z
2022-03-30T14:02:02.000Z
differential-privacy-library-main/tests/tools/test_histogram2d.py
gonzalo-munillag/Exponential_Randomised_Response
1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4
[ "MIT" ]
163
2019-06-19T23:56:19.000Z
2022-03-26T23:59:24.000Z
import numpy as np from unittest import TestCase from diffprivlib.accountant import BudgetAccountant from diffprivlib.tools.histograms import histogram2d from diffprivlib.utils import global_seed, PrivacyLeakWarning, BudgetError
37.109756
104
0.564574
5be50f9d777ded17c518467854d968e5956e5137
11,453
py
Python
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
import gym import numpy as np import torch import stable_baselines3 as sb3 from stable_baselines3.common.evaluation import evaluate_policy from stable_baselines3.common.env_util import make_vec_env import pybullet_envs import pandas as pd import pickle import os import matplotlib.pyplot as plt import seaborn as sns s...
42.735075
97
0.611805
5be520c176df8c9950327e78b398e3917a490a73
572
py
Python
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
2
2021-03-11T12:25:28.000Z
2021-03-13T13:35:59.000Z
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
2
2021-04-05T09:42:10.000Z
2021-09-01T17:34:20.000Z
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
3
2020-10-30T11:11:28.000Z
2021-03-21T00:17:32.000Z
import torch import torch.nn.functional as F from ..registry import LOSSES from .metric_learning_base import BaseMetricLearningLoss
27.238095
95
0.708042
5be64c3df5a23af2df35e9b3ccd2de6766d07112
576
py
Python
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
11
2015-07-18T02:23:43.000Z
2021-11-15T11:43:21.000Z
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
null
null
null
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
5
2015-02-24T15:37:36.000Z
2021-10-10T16:42:22.000Z
import base64
30.315789
77
0.534722
5be7a876f3c5105b6d3efdc5c28655fc0ede865f
84
py
Python
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
11
2021-05-06T12:39:39.000Z
2022-03-14T11:58:44.000Z
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
null
null
null
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
11
2021-06-10T21:19:42.000Z
2022-02-21T04:03:06.000Z
from setuptools import setup setup(name="some_module", py_modules=["some_module"])
21
53
0.785714
5be96b53f19ce400d2e6a873c5503c0517f91811
93
py
Python
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
3
2018-10-17T13:03:32.000Z
2020-11-11T10:51:21.000Z
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
null
null
null
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This file was created automatically longversion = '0.2.2-1-g9c91991'
23.25
37
0.741935
5bebef964e9e8885b1a9cb0a5ad817b18a2a5dc4
787
py
Python
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
11
2022-03-12T06:41:29.000Z
2022-03-15T06:15:52.000Z
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
4
2022-03-14T12:01:09.000Z
2022-03-26T20:19:52.000Z
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
2
2022-03-12T03:49:20.000Z
2022-03-15T05:41:41.000Z
from enum import Enum, auto
22.485714
63
0.533672
5bedc842eb7b3b97c410dd8ff5e9293a731be138
12,016
py
Python
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
1
2021-02-26T10:10:43.000Z
2021-02-26T10:10:43.000Z
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Basic classes for running Genetic Algorithms. """ __author__ = "Justin Hocking" __copyright__ = "Copyright 2021, Zipfian Science" __credits__ = [] __license__ = "" __version__ = "0.0.1" __maintainer__ = "Justin Hocking" __email__ = "justin.hocking@zipfian.science" __status__ = "Development" ...
35.134503
135
0.604194
5bef9dd75f6bd3b7b7d6aa908b20235fbd72a39c
615
py
Python
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
39
2016-10-31T23:28:59.000Z
2022-01-15T00:00:42.000Z
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
1,690
2017-02-07T23:39:48.000Z
2022-03-31T22:30:44.000Z
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
25
2017-02-08T18:25:31.000Z
2021-09-20T22:55:25.000Z
import pytest from sqlalchemy.ext.asyncio import AsyncSession from virtool.uploads.models import Upload
30.75
84
0.695935
5bf071101faa3aefed0673b302d38405eb0bab30
3,029
py
Python
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
1
2021-08-31T22:05:15.000Z
2021-08-31T22:05:15.000Z
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
null
null
null
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
null
null
null
# Copyright Jamie Allsop 2013-2018 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #------------------------------------------------------------------------------- # CompileMethod #---------...
36.493976
116
0.526576
5bf4bd9bfb15b22cd17a71e718232ade00af3a48
593
py
Python
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
3
2021-04-13T00:18:20.000Z
2021-07-15T08:25:22.000Z
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
null
null
null
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
5
2021-05-05T12:58:19.000Z
2021-09-12T10:28:33.000Z
import json import os try: os.rename(os.path.join(os.getcwd(),'config','like.json'),os.path.join(os.getcwd(),'config','like_copy.json')) except: print("") f = open(os.path.join(os.getcwd(),'config','like_copy.json'),mode='r',encoding='utf8') likes = json.loads(f.read()) list = {"likes":[{"name":"","contents"...
31.210526
113
0.639123
5bf81eaf34d29539cf6fc4ab7d86334be33a32aa
8,440
py
Python
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
null
null
null
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
1
2020-12-22T09:02:20.000Z
2020-12-22T09:02:20.000Z
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
null
null
null
# %% import libraries import numpy as np import random import cv2 import PIL import matplotlib.pyplot as plt from copy import deepcopy # %% 1 Extract Harris interest points def get_points(img, threshold=0.1, coordinate=False): """ Extract harris points of given image :param img: An image of type open c...
36.223176
113
0.638981
5bfc12035df037a7d9db7f30808756998f54bdee
6,592
py
Python
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
1
2022-01-05T15:42:44.000Z
2022-01-05T15:42:44.000Z
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
import torch import os.path as osp from PIL import Image from torch.utils.data import Dataset import numpy as np from torchvision import transforms as T import glob import re from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True def read_image(img_path): """Keep reading image until succe...
33.979381
103
0.556887
5bfc9c9dc6bfe8a46625975c2ef7e96d083e2b69
407
py
Python
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
1
2021-11-30T20:08:17.000Z
2021-11-30T20:08:17.000Z
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
null
null
null
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
2
2019-07-13T11:27:21.000Z
2020-01-27T07:13:09.000Z
from starlette.requests import Request from starlette.responses import JSONResponse, Response
25.4375
54
0.70516
5bfebd468f13a1c5d7579d8f57fd8f03fb649c4e
1,726
py
Python
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
import gnupg import os GNUPG_KEY_TYPE = "RSA" GNUPG_KEY_LENGTH = 2048
31.962963
77
0.6292
5bff6a5a233a953254c76067336649d556192ab7
4,966
py
Python
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
null
null
null
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
1
2015-08-19T05:24:09.000Z
2019-07-01T01:47:12.000Z
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
2
2016-06-06T09:48:24.000Z
2021-04-19T15:33:50.000Z
""" Django settings for project. """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0]) ALLOWED_HOSTS = ['*'] # Application definition INSTALLED_APPS = ( 'django.contri...
30.654321
118
0.681232
7504ff9da64147dd9f11150a10c7e67cc0d2ab82
895
py
Python
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
from itertools import count from common import mymath g = GouGu() thres = 100# * 1000 lst = [] while 1: v = g.next() lst.append(v) if v > thres * 2: break primeGouGu = frozenset([i for i in lst if i <= thres]) print primeGouGu from sys import exit exit() oneGouGu = [] for i in primeGouGu: FL...
21.309524
68
0.46257
7505d44db8a60afab4853b6715130e001e8c0b30
587
py
Python
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
1
2021-02-24T10:22:19.000Z
2021-02-24T10:22:19.000Z
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
null
null
null
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
null
null
null
''' import analyze any = analyze.Analyze() # #text = '2014' #text = '1980912' knowledge = any.knowledge(text) print(knowledge) ''' from medext import getTriples text = "=: 1. 2." #text = "5" result = getTriples(text) print(result)
39.133333
156
0.810903
75075401a18228befc57b214cb804403c7d028e7
4,460
py
Python
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
1
2022-03-19T10:27:12.000Z
2022-03-19T10:27:12.000Z
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
null
null
null
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2017 Dean Jackson <deanishe@deanishe.net> # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2017-05-06 # """Unit tests for Workflow's XML feedback generation.""" import sys from contextlib import contextmanager from xml.etree import Eleme...
26.081871
87
0.609865
7507a6580b66db203bf852283bb2de39d367b47f
2,323
py
Python
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
10
2016-02-14T05:59:27.000Z
2019-12-08T11:54:17.000Z
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
2
2018-01-15T15:41:40.000Z
2018-01-23T00:47:42.000Z
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
8
2016-10-06T14:07:58.000Z
2019-01-11T19:44:20.000Z
from coc.api import ClashOfClans from os import environ import pytest slow_test = pytest.mark.skipif( not pytest.config.getoption("--runslow"), reason="need --runslow option to run" )
27.654762
61
0.716315
750808c8295fb8a3000d23694263942f06120b62
4,618
py
Python
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
5
2021-02-16T01:04:39.000Z
2021-09-01T01:36:02.000Z
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
null
null
null
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
null
null
null
# coding=utf-8 """Evaluation of different training and test sizes.""" import argparse import logging import random import mlflow import numpy import torch import tqdm from kgm.data import get_dataset_by_name from kgm.eval.matching import evaluate_matching_model from kgm.models import GCNAlign from kgm.modules import ...
31.848276
87
0.561498
7508d691984e7e548e24d4c98d154e16ac09c939
212
py
Python
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
17
2020-01-15T12:14:25.000Z
2022-01-21T10:16:55.000Z
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
10
2020-01-15T12:21:04.000Z
2021-12-25T18:19:09.000Z
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
3
2020-04-10T08:49:39.000Z
2021-08-15T01:54:16.000Z
# SPDX-FileCopyrightText: David Fritzsche # SPDX-License-Identifier: CC0-1.0 import re from pytest_mypy_testing import __version__
19.272727
56
0.716981
750a34fed3230d5f5f9e5491dc14d2f490974ee6
5,204
py
Python
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
1
2017-07-30T10:17:38.000Z
2017-07-30T10:17:38.000Z
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
from microsoft.gestures.fingertip_placement_relation import FingertipPlacementRelation from microsoft.gestures.fingertip_distance_relation import FingertipDistanceRelation from xml.etree.ElementTree import Element, SubElement, Comment, tostring from microsoft.gestures.relative_placement import RelativePlacement from mi...
57.186813
166
0.683128
750c2cbca31d1cd5b27e82c3d58caffc08d7d742
1,650
py
Python
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
5
2018-04-22T22:44:02.000Z
2021-04-26T20:44:44.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
250
2018-04-24T12:04:11.000Z
2022-03-09T06:56:47.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
8
2019-04-28T11:33:03.000Z
2022-02-26T13:30:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-09-15 20:02 from django.db import migrations, models
31.730769
98
0.485455
750d6d782ee25a5fe5c2ee7163c23181ca5c4289
281
py
Python
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
3
2020-11-20T15:44:14.000Z
2020-11-21T12:18:15.000Z
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Todo
20.071429
84
0.669039
750d8e497e21c46d3ed340b4abc7623e18ad44e4
7,027
py
Python
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
from .get_imformation import GI
27.342412
81
0.477871
750db8dedf746751bad013c1015bec9f1774f4f4
680
py
Python
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
5
2021-06-25T16:44:38.000Z
2021-12-31T01:29:00.000Z
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
null
null
null
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
1
2021-06-25T20:33:47.000Z
2021-06-25T20:33:47.000Z
from .basemoveeffect import BaseMoveEffect from game.combat.effects.genericeffect import GenericEffect
37.777778
84
0.616176
750e4085fb2729c790fdc37560668ec0186b9389
2,945
py
Python
mlserve/utils.py
jettify/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
17
2018-08-06T09:38:17.000Z
2018-08-14T10:55:58.000Z
mlserve/utils.py
ml-libs/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
63
2018-09-07T21:40:16.000Z
2022-02-10T17:11:13.000Z
mlserve/utils.py
jettify/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
1
2019-05-06T10:18:59.000Z
2019-05-06T10:18:59.000Z
import json import os import trafaret as t import yaml from dataclasses import dataclass, asdict from pathlib import Path from typing import Any, List, Dict ModelMeta = t.Dict( { t.Key('name'): t.String, t.Key('description'): t.String, t.Key('model_path'): t.String, t.Key('data_s...
27.018349
79
0.609168
750f07c7e86e349dd91bdbbb50528afd0a003a01
2,844
py
Python
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
"""this script crawls for the profile pictures of researchers in google scholar and saves them in a folder called [figures] the crawler exploit the informations via the description of the tags in the html of google scholar be aware that too many requests to a server might interrupt your script, please ...
30.913043
102
0.621308
750f1f7f1d0eb84c9cf6a66afb31539b4f352e2a
2,246
py
Python
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
5
2018-10-17T05:57:39.000Z
2021-07-05T15:38:24.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
2
2021-04-14T00:48:43.000Z
2021-04-14T02:20:50.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
3
2019-03-02T14:36:19.000Z
2022-03-18T10:12:09.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # redisClient.py # chdb # # "Here's to the crazy ones. The misfits. The rebels. # The troublemakers. The round pegs in the square holes. # The ones who see things differently. They're not found # of rules. And they have no respect for the status quo. # You can quote the...
31.194444
86
0.675868
7510b10f0b56bd6f23e065d973fded7927aa8141
3,438
py
Python
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
1
2020-01-13T15:21:11.000Z
2020-01-13T15:21:11.000Z
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
32
2019-11-21T08:46:48.000Z
2020-01-12T07:53:02.000Z
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
437
2019-11-21T06:11:13.000Z
2021-04-22T22:11:23.000Z
import csv import matplotlib.pyplot as plt import requests
29.135593
219
0.538685
75110cf2b69cd80e1422da4c443d622bdec91b65
1,227
py
Python
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
''' , . , , . 1, 2, 3, , N (1- N-), N 100. : N , i j , , , . i j . . ( ), . ''' if __name__ == "__main__": l = list(map(int, input().split())) l = sorted(l) i = l[0] j = l[1] n = l[2] res = main_funct...
35.057143
268
0.712306
7513ff5add6b73fcd1384d95d2b1837bb279a0e4
236
py
Python
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
null
null
null
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
15
2020-06-06T00:44:36.000Z
2022-03-12T00:18:42.000Z
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from django.urls import path, include from .views import * router = DefaultRouter() router.register('user', User, basename='user') urlpatterns = [ path('', include(router.urls)) ]
19.666667
48
0.741525
7515c9edf4c6cfe592909aca896e0ddefbb578de
7,110
py
Python
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
#################################### # author: Gonzalo Salazar # course: Python for Data Science and Machine Learning Bootcamp # purpose: lecture notes # description: Section 15 - Linear Regression # other: N/A #################################### #%% import os from numpy.lib.function_base import corrcoef import panda...
38.852459
97
0.715752
75160826b98614b47f394cd26909f4c19c70ebbb
1,994
py
Python
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
null
null
null
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
2
2016-02-09T17:39:02.000Z
2016-05-09T14:44:26.000Z
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import argparse from ctypes import * import sys ################################ Load library: ################################ lib_name = 'libhypot.so' try: # try to use the one the OS finds (e.g. in /usr/local/lib) libhypot = CDLL(lib_name) except OSError: # lib...
32.688525
91
0.474925
7517b754bad63bbf7e6aee8bffbb95a5574b2ca6
3,066
py
Python
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
21
2016-08-25T10:26:44.000Z
2022-03-23T00:43:19.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
9
2016-08-30T23:49:51.000Z
2020-12-22T09:05:58.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
7
2017-05-21T17:39:31.000Z
2020-07-04T12:37:30.000Z
import time import json from redis import ConnectionError import logging import jsonpickle from retrying import retry log = logging.getLogger("redis-conn")
33.326087
94
0.639596
751835fbbe2d4d0b3a1f8607d3b130e6bcbf8669
560
py
Python
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
import pytest import pytest_inmanta.plugin import os import sys import pkg_resources pytest_plugins = ["pytester"]
20.740741
72
0.728571
7518af78dd738d705f4d7fb31902451a4006b080
41
py
Python
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
1
2021-03-23T13:46:09.000Z
2021-03-23T13:46:09.000Z
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
1
2021-10-09T08:37:55.000Z
2021-10-09T08:37:55.000Z
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
null
null
null
# __init__.py from .weheartit import whi
13.666667
26
0.780488
75195768b9bfe7c08dd3ea0eaa74f62fb37dc728
1,546
py
Python
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
18
2020-04-18T09:18:52.000Z
2021-10-19T02:42:39.000Z
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
143
2020-04-18T16:58:20.000Z
2022-03-07T22:16:03.000Z
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
1
2021-01-07T07:38:53.000Z
2021-01-07T07:38:53.000Z
import itertools from contextlib import ExitStack as does_not_raise # noqa: N813 import pandas as pd import pytest from sid.vaccination import vaccinate_individuals
29.169811
88
0.513583
751abaf1ab249f31eecee3f3846c229b7dc366a5
12,216
py
Python
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
128
2021-12-21T04:20:17.000Z
2022-03-31T03:05:53.000Z
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
15
2022-01-07T02:39:58.000Z
2022-03-30T14:12:30.000Z
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
24
2021-12-21T05:06:08.000Z
2022-03-31T13:42:13.000Z
import argparse import json import numpy as np import prettytable as pt import torch import torch.autograd import torch.nn as nn import transformers from sklearn.metrics import precision_recall_fscore_support, f1_score from torch.utils.data import DataLoader import config import data_loader import utils ...
39.406452
126
0.564014
751af216f0939b9c18826cc307ee3065d3b19f72
764
py
Python
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
print(odd_one(eval(input().strip())))
23.875
37
0.332461
7520daaefeeb0c9c5796df3c4843be9297dde1df
30,800
py
Python
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-AppV-SharedPerformance GUID : fb4a19ee-eb5a-47a4-bc52-e71aac6d0859 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from ...
28.025478
123
0.717305
75236691d5db825780da5c44e8b2462836a5e0a4
147
py
Python
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
76
2015-03-01T11:46:57.000Z
2022-02-18T10:57:44.000Z
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
119
2015-01-14T11:53:08.000Z
2022-03-30T08:22:50.000Z
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
46
2015-02-09T23:50:57.000Z
2022-01-06T16:04:40.000Z
from typing import Dict from urllib.parse import quote
21
60
0.680272
752440db344a6e89f896a64ed24d2a9cb97df493
522
py
Python
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
1
2019-03-11T15:10:16.000Z
2019-03-11T15:10:16.000Z
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from heyvector import cache, github
24.857143
58
0.559387
7528a707d7cd810fb6f1250d9781c45b722c4ed4
3,965
py
Python
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
from __future__ import print_function from math import atan2, cos, sin, pi, sqrt, tan from utils import dist, lerp, frpart from array import array from PIL import Image
26.433333
74
0.473644
752b31bd8d886628893665de61a27a8654c3bbbd
79,991
py
Python
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
482
2015-04-13T23:43:42.000Z
2022-03-31T14:44:50.000Z
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
168
2016-01-06T14:30:05.000Z
2022-02-17T22:14:36.000Z
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
80
2015-05-03T18:10:58.000Z
2022-02-17T22:54:25.000Z
# -*- coding:utf-8 -*- query = 'https://en.wikipedia.org/w/api.php?action=parse&formatversion=2&contentmodel=text&disableeditsection=&disablelimitreport=&disabletoc=&prop=text|iwlinks|parsetree|wikitext|displaytitle|properties&redirects&page=Blue%20Train%20%28album%29' response = r""" { "parse": { "title"...
3,076.576923
56,407
0.69184
752d121311dd12e755c6822eb5eb0468f439d38f
4,812
py
Python
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
58
2015-04-25T10:47:27.000Z
2022-03-31T15:37:58.000Z
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
1
2017-03-29T11:33:33.000Z
2018-01-02T20:19:28.000Z
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
18
2016-02-11T14:06:58.000Z
2022-03-15T11:13:39.000Z
# Glasnost Parser v2. # Developed 2011/2012 by Hadi Asghari (http://deeppacket.info) # # Statistics about test streams #
39.442623
152
0.568786
752daa07c16402e3055f39a32f880e876f78b385
2,563
py
Python
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
1
2021-01-21T12:52:37.000Z
2021-01-21T12:52:37.000Z
import numpy as np from GPy.kern.src.kern import Kern from GPy.core.parameterization import Param from paramz.transformations import Logexp from paramz.caching import Cache_this
34.173333
148
0.65002
752e21ffea89f00b97756d8ff46ca51435646c62
12,829
py
Python
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
# This file shows some example usage of Python functions to read an OCT file. # To use exectute this test reader, scroll to the bottom and pass an OCT file to the function unzip_OCTFile. # Find the comment #Example usage. # # Additional modules to be installed should be 'xmltodict', 'shutil', and 'gdown'. # Tested in P...
44.391003
140
0.706057
752e54d82b6baced0d7e1660f4b291e11de5b92b
1,095
py
Python
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 28 13:19:06 2019 @author: juangabriel """ # Plantilla de Pre Procesado - Datos Categricos # Cmo importar las libreras import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importar el data set dataset = pd.read_csv('Data.csv') ...
31.285714
137
0.722374
752e72698ce6c406e4123fed3e680fc56ab5c8db
7,281
py
Python
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
23
2018-01-12T20:09:19.000Z
2022-02-26T13:39:36.000Z
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
3
2018-01-15T11:10:40.000Z
2019-05-20T07:37:20.000Z
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
11
2018-01-12T11:07:56.000Z
2021-09-29T18:02:27.000Z
# Copyright 2018 Saphetor S.A. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
49.195946
119
0.631232
752ee5b4eeb5208d629fa9b4144505411d1f467e
77,806
py
Python
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
37.623791
102
0.527029
753028e8ebdf1300490ed13c919d16e0ca4beb04
7,068
py
Python
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
8
2021-06-07T09:16:56.000Z
2022-03-30T13:30:31.000Z
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
1
2021-06-27T13:56:29.000Z
2021-06-30T20:52:08.000Z
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
2
2021-12-05T06:58:27.000Z
2022-02-09T15:18:02.000Z
import pathlib from unittest import TestCase from unittest.mock import patch from DALI import Annotations from lyre.data import DaliDataset, Chunk from lyre.utils import sample2time
47.436242
119
0.535088
7531279b17d08fe57f535c79acfe22fd680a12a8
434
py
Python
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
1
2018-12-17T06:40:53.000Z
2018-12-17T06:40:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: houzhiwei # time: 2019/7/13 19:12 import json import os import re from JSON2OWL.OwlConvert.OwlUtils import OWLUtils module_path = os.path.dirname(__file__) with open(module_path + '/grass.json', 'r') as f: jdata = json.load(f) # list for i,d in enumerate(jdat...
21.7
49
0.705069
7531c0f4b4056b7e460c08361366e9674000dff4
1,861
py
Python
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
4
2021-07-02T08:58:05.000Z
2022-02-02T03:02:32.000Z
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
309
2020-11-02T19:46:14.000Z
2022-03-24T21:35:28.000Z
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
7
2020-11-30T22:22:06.000Z
2022-02-02T03:09:12.000Z
# Copyright (c) 2021, Galois, Inc. # # All Rights Reserved # # This material is based upon work supported by the Defense Advanced Research # Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. # # Any opinions, findings and conclusions or recommendations expressed in this # material are those of the author(s) ...
29.078125
78
0.631381
7531c29be32f4d71954813624b8633e9ae001662
1,215
py
Python
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
null
null
null
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
null
null
null
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
4
2020-10-04T12:24:14.000Z
2022-01-16T17:01:59.000Z
if __name__ == "__main__": print("MyRange") my_range = MyRange(0, 4) for it in my_range: print(it, end=' ') print() for it in MyRange(0, 12, 4): print(it, end=' ') print() # my_iter = iter(my_range) # print(next(my_iter)) # print(next(my_iter)) # print(next(my_...
27.613636
69
0.609877
7534ae5cc5b96433aa0f386fbb142a34d3826eed
932
py
Python
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-09-27T01:17:01.000Z
2021-10-17T01:44:37.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
17
2021-10-21T04:22:12.000Z
2021-12-07T00:39:43.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-10-21T03:38:45.000Z
2021-12-21T23:38:49.000Z
from rest_framework.test import APITestCase, APIClient from django.urls import include, path, reverse from ..views import posts from ..utils import methods, generate_id # https://www.django-rest-framework.org/api-guide/testing/
44.380952
176
0.714592
7535ce0082f77b6c6e4fb97656d034c5dc25e071
11,399
py
Python
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
7
2017-07-19T07:06:43.000Z
2022-01-04T01:47:27.000Z
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
null
null
null
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
1
2018-09-08T06:35:26.000Z
2018-09-08T06:35:26.000Z
# helper functions for testing properties of candidate schedules import requests from sets import Set import json import calendar import itertools import os from collections import OrderedDict import random from definitions import ROOT_DIR, lessonTypeCodes, LOCAL_API_DIR from z3 import * LUNCH_HOURS = [11, 12, 13] def...
38.904437
136
0.59821
7538ab8f5f22694310200299efb04d802b7c2277
42
py
Python
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
8
2020-10-18T22:48:23.000Z
2022-01-10T09:16:14.000Z
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
238
2019-09-04T14:37:54.000Z
2020-04-15T16:24:24.000Z
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
5
2019-09-20T04:23:49.000Z
2020-01-16T17:45:14.000Z
"""Docker container registry commands """
14
37
0.738095
753a71640be1f2fee9267c9fd8f2b67b64a0df78
2,484
py
Python
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' This script has been used perform functional load calculations on CANCORP. author: Andrea Ceolin date: February 2021 ''' from collections import Counter import math ''' Get the token frequencies of the corpus ''' words_tokens = Counter() for line in open('cantonese...
29.571429
109
0.67351
753d0a15ee14b8c547bc4f3f4bb5ef8f44343ac6
15,401
py
Python
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
1
2018-10-20T07:53:21.000Z
2018-10-20T07:53:21.000Z
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
null
null
null
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
null
null
null
import random import matplotlib.pyplot as plt import tensorflow as tf import keras as K from os import path from src.lib import * #from src.logging import * from copy import deepcopy from datetime import datetime def load_model(fld, learning_rate): s = open(os.path.join(fld,'QModel.txt'),'r').re...
31.62423
129
0.703006
753d88404d166a84eabbbafeb2f4b21a47e63a44
3,036
py
Python
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --- Day 3: Binary Diagnostic --- from typing import Dict, List, Tuple from copy import deepcopy MOST_COMMON = 1 LEAST_COMMON = 0 EXAMPLE = """\ 00100 11110 10110 10111 10101 01111 00111 11100 10000 11001 00010 01010\ """ report = lines_to_matrix(EXAMPLE.split("\n")) assert len(report)...
25.3
88
0.65975
753db29f7ca0b3d57786f6d579849804ab41f79a
665
py
Python
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
# -*- coding:utf-8 -*- __author__ = 'Ren Kang' __date__ = '2018/3/27 19:05' from django.http import JsonResponse
24.62963
75
0.574436
753f674ed26d4491ca57d504a35abe01191fc849
1,760
py
Python
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
# from keras.datasets import imdb (train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000) # import numpy as np x_train = vectorize_sequences(train_data) x_test = vectorize_sequences(test_data) y_train = np.asarray(train_labels).astype('float32') y_test = np.asarray(test_labels).a...
27.936508
89
0.684659
7541d9a58c21b2c720ff96f890ac21f3d9664e8d
2,268
py
Python
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
18
2015-02-04T01:09:11.000Z
2021-11-25T03:10:39.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
2,323
2015-01-15T19:45:10.000Z
2022-03-21T19:57:06.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
9
2015-01-15T19:29:26.000Z
2022-02-11T04:51:23.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import logging import traceback from myuw.dao import get_netid_of_current_user from myuw.dao.gws import is_student, is_applicant from myuw.dao.pws import get_display_name_of_current_user from myuw.dao.password import get_pw_json fro...
36
79
0.636243
7543dea3c9674d80aef0a63052820d06eac3ab3f
79
py
Python
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
1
2021-09-15T04:48:14.000Z
2021-09-15T04:48:14.000Z
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
6
2019-08-06T15:34:28.000Z
2021-10-12T01:08:23.000Z
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
null
null
null
from django.apps import AppConfig
13.166667
33
0.721519
75447c4c912f2a5090056786cfa6c9e6c3619652
413
py
Python
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../_base_/models/memory_r50-d8.py', '../../_base_/datasets/camvid_video.py', '../../_base_/default_runtime.py', '../../_base_/schedules/schedule_80k.py' ] optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005) model = dict( decode_head=dict(num_classes=12), auxiliary_head=di...
37.545455
84
0.677966
754549096ab2413b6e0b65054d236c8339afe626
5,721
py
Python
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
29
2021-04-20T07:15:41.000Z
2022-03-01T06:32:40.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
4
2021-04-25T06:49:13.000Z
2021-10-07T11:00:14.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
5
2021-04-28T21:52:41.000Z
2022-02-21T07:16:35.000Z
""" Modified from WikiSQL/lib/dbengine.py BSD 3-Clause License Copyright (c) 2017, Salesforce Research All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ...
45.768
123
0.646565
754964acc6a0fdb092682d40acbf5109a1947819
59
py
Python
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
print('demo') for x in range(1000): print(x, end=' ')
11.8
21
0.559322
754ca8a8829402ac4848e0cd1a56270189f5a5eb
2,195
py
Python
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
null
null
null
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
7
2016-01-10T09:48:48.000Z
2016-07-28T20:40:55.000Z
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
null
null
null
""" """ import os import json import logging from maya import cmds __title__ = 'mayaprefs' __version__ = '0.1.6' __author__ = 'Marcus Albertsson <marcus.arubertoson@gmail.com>' __url__ = 'http://github.com/arubertoson/maya-mayaprefs' __license__ = 'MIT' __copyright__ = 'Copyright 2016 Marcus Albertsson' ...
23.351064
68
0.627335
754e46227a36ce0c61ab7d1430c85a2c94c9f76f
1,567
py
Python
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
8
2016-04-01T02:22:03.000Z
2019-01-03T01:42:37.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
2
2020-09-19T20:04:10.000Z
2020-09-23T07:21:39.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
3
2016-03-31T00:15:08.000Z
2019-06-13T09:45:39.000Z
#!/usr/bin/python """ Sonos Node Server for Polyglot by Einstein.42(James Milne) milne.james@gmail.com""" from polyglot.nodeserver_api import SimpleNodeServer, PolyglotConnector from sonos_types import SonosSpeaker, SonosControl VERSION = "0.2.1" if __name__ == "__main__": main()
29.018519
91
0.631142
754e707729e5a852fcfee89bbfbf837d1fd7207c
2,973
py
Python
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
293
2017-05-26T14:41:15.000Z
2022-03-28T09:56:16.000Z
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
217
2017-05-29T15:48:14.000Z
2022-03-24T16:16:55.000Z
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
126
2017-05-25T19:17:32.000Z
2022-03-25T11:23:24.000Z
"""A cube bouncing inside a box. (5 seconds) This is used to test the rigid body equations. """ import numpy as np from pysph.base.kernels import CubicSpline from pysph.base.utils import get_particle_array_rigid_body from pysph.sph.equation import Group from pysph.sph.integrator import EPECIntegrator from pysph.so...
30.649485
79
0.539522
7550b302b143fc382ccf3fdfe9024a6e71f17aa5
4,986
py
Python
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
null
null
null
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
3
2016-09-08T03:20:33.000Z
2016-12-08T05:19:57.000Z
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
null
null
null
import subprocess, os, time, shutil from datetime import datetime import jarvis_cli as jc from jarvis_cli import config, client from jarvis_cli.client import log_entry as cle # TODO: Must test. This code was lifted from jarvis_migrate.py and reworked to be # library calls.
33.918367
86
0.648416