hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
1c72ce0a57a6b20d9f3b0b840d03685a73126b0e
22,727
py
Python
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
8
2016-08-23T16:56:17.000Z
2021-07-24T16:44:31.000Z
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
1
2018-04-25T14:20:06.000Z
2018-04-25T14:20:06.000Z
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
8
2016-07-26T21:36:44.000Z
2019-08-03T16:38:57.000Z
import discord from discord.ext import commands from .utils import checks from .utils.dataIO import dataIO from __main__ import send_cmd_help from __main__ import settings from datetime import datetime from random import choice from random import sample from copy import deepcopy from collections import namedt...
44.215953
195
0.6267
21,103
0.928543
0
0
18,512
0.814538
17,797
0.783077
6,968
0.306596
1c741e6bc69fc8671df5a15c26f40ce7a3bf09f3
2,839
py
Python
paranuara/citizens/models/citizens.py
SPLAYER-HD/Paranuara
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
null
null
null
paranuara/citizens/models/citizens.py
SPLAYER-HD/Paranuara
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
4
2021-06-08T20:53:43.000Z
2022-03-12T00:13:51.000Z
paranuara/citizens/models/citizens.py
SPLAYER-HD/RestServiceDjango
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
null
null
null
"""Citizens model.""" # Django from django.db import models from django.contrib.auth.models import AbstractUser from django.core.validators import RegexValidator # models from paranuara.companies.models import Company # PostgreSQL fields from django.contrib.postgres.fields import JSONField # Utilities from paranuar...
22.007752
98
0.62205
2,476
0.872138
0
0
0
0
0
0
622
0.219091
1c75ba48ae7018192a5f6740f29aabe6961aa8fd
103
py
Python
tests/utils.py
niwibe/cobrascript
4c6a193d8745771e5fb0e277394f83e47cc7ede8
[ "BSD-3-Clause" ]
1
2015-05-03T00:25:17.000Z
2015-05-03T00:25:17.000Z
tests/utils.py
niwibe/cobrascript
4c6a193d8745771e5fb0e277394f83e47cc7ede8
[ "BSD-3-Clause" ]
null
null
null
tests/utils.py
niwibe/cobrascript
4c6a193d8745771e5fb0e277394f83e47cc7ede8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from cobra.utils import normalize def norm(data): return normalize(data)
14.714286
33
0.669903
0
0
0
0
0
0
0
0
23
0.223301
1c76dc2dd43f773b5f6265abe296c42c73bdff7c
597
py
Python
rgislackbot/dispatcher/dispatchconfig.py
raginggeek/RGISlackBot
9fddf78b37f494eb6605da890a28f41427f37f03
[ "MIT" ]
null
null
null
rgislackbot/dispatcher/dispatchconfig.py
raginggeek/RGISlackBot
9fddf78b37f494eb6605da890a28f41427f37f03
[ "MIT" ]
11
2019-03-08T01:38:40.000Z
2019-03-15T16:21:59.000Z
rgislackbot/dispatcher/dispatchconfig.py
raginggeek/RGISlackBot
9fddf78b37f494eb6605da890a28f41427f37f03
[ "MIT" ]
null
null
null
class DispatchConfig: def __init__(self, raw_config): self.registered_commands = {} for package in raw_config["handlers"]: for command in package["commands"]: self.registered_commands[command] = { "class": package["class"], "fullpat...
37.3125
99
0.572864
596
0.998325
0
0
0
0
0
0
71
0.118928
1c770de3012ff3f97ad6bf07fd17d96b765a28e4
2,442
py
Python
chess/rules.py
DevStrikerTech/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
18
2021-01-26T19:21:45.000Z
2021-01-27T00:32:49.000Z
chess/rules.py
KingCobra2018/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
null
null
null
chess/rules.py
KingCobra2018/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
9
2021-01-26T19:51:20.000Z
2021-01-26T22:39:28.000Z
import pygame from chess.board import Board from .variable_declaration import black_piece, white_piece, position_piece, board_square_size class Rules: def __init__(self, window): self._init() self.window = window def update(self): self.chess_board.draw_pieces(self.window) self...
29.421687
97
0.620393
2,301
0.94226
0
0
0
0
0
0
0
0
1c77f1e65b1460f3b0a09bd95f3c03183aa1bcf6
1,542
py
Python
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
import numpy as np from kivygames.games import Game import kivygames.games.noughtsandcrosses.c as c class CellOccupiedError(Exception): pass class NoughtsAndCrosses(Game): minPlayers = 2 maxPlayers = 2 hasAI = True gridShape = (3, 3) def __init__(self): Game.__init__(self) ...
26.135593
74
0.586252
1,434
0.929961
0
0
0
0
921
0.597276
137
0.088846
1c7894b14ef779955e6bd0f109d8986f10e8fa84
1,206
py
Python
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python import argparse import json import time import urllib.error import urllib.request def main(): parser = argparse.ArgumentParser(description="Download agents from pplapi.com") parser.add_argument("-c", "--count", type=int, default=10, help="Number of agents to download.") parser.add_a...
30.923077
109
0.630182
0
0
0
0
0
0
0
0
304
0.252073
1c78aef6937bac0c47b2a7aeef06915d8ec4cebe
3,681
py
Python
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
import functools import re import asyncio from io import BytesIO from discord.ext import commands import discord from Utils import canvas import random class Images: """ Contains commands for manipulation of images. """ def __init__(self, bot): self.bot = bot self.imageClient = canvas...
41.359551
125
0.620212
3,480
0.945395
0
0
3,264
0.886716
3,075
0.835371
779
0.211627
1c79747bf1ea18f4c3b8be4f42301cb16c8ee8f3
223
py
Python
labJS/conf.py
lpomfrey/django-labjs
f35346ec7f3b87ae24b2d7a01c06001ceb4173bc
[ "MIT" ]
null
null
null
labJS/conf.py
lpomfrey/django-labjs
f35346ec7f3b87ae24b2d7a01c06001ceb4173bc
[ "MIT" ]
null
null
null
labJS/conf.py
lpomfrey/django-labjs
f35346ec7f3b87ae24b2d7a01c06001ceb4173bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from appconf import AppConf from django.conf import settings # noqa class LabjsConf(AppConf): ENABLED = not settings.DEBUG DEBUG_TOGGLE = 'labjs'
18.583333
40
0.730942
86
0.38565
0
0
0
0
0
0
36
0.161435
1c7b1135efb3bd7f94a1f1a7d47294ebfd74cbde
10,416
py
Python
tests/test_nanoevents_vector.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
tests/test_nanoevents_vector.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
tests/test_nanoevents_vector.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
import awkward as ak from coffea.nanoevents.methods import vector import pytest ATOL = 1e-8 def record_arrays_equal(a, b): return (ak.fields(a) == ak.fields(b)) and all(ak.all(a[f] == b[f]) for f in ak.fields(a)) def test_two_vector(): a = ak.zip( { "x": [[1, 2], [], [3], [4]], ...
28.075472
93
0.368856
0
0
0
0
0
0
0
0
505
0.048483
1c7b1f4e4b7bfbf72b788463867c6a1ec1a46c6d
900
py
Python
testing/python/telBuggyScript2.py
sys-bio/rrplugins
03af6ea70d73462ad88103f1e446dc0c5f3f971c
[ "Apache-2.0" ]
null
null
null
testing/python/telBuggyScript2.py
sys-bio/rrplugins
03af6ea70d73462ad88103f1e446dc0c5f3f971c
[ "Apache-2.0" ]
8
2015-12-02T18:20:43.000Z
2021-08-20T17:13:34.000Z
testing/python/telBuggyScript2.py
sys-bio/telPlugins
03af6ea70d73462ad88103f1e446dc0c5f3f971c
[ "Apache-2.0" ]
3
2015-01-27T18:53:45.000Z
2015-07-13T17:07:50.000Z
import roadrunner import teplugins as tel i = 0 #for i in range(100): try: noisePlugin = tel.Plugin ("tel_add_noise") print noisePlugin.listOfProperties() # Create a roadrunner instance rr = roadrunner.RoadRunner() rr.load("sbml_test_0001.xml") # Generate data data = rr.simulate(0, 10, 51...
20
52
0.637778
0
0
0
0
0
0
0
0
346
0.384444
1c7b885a3c4fad049ff2d1a6a859aa95838e0630
2,954
py
Python
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
from renpy import store class Labels(store.object): """Controls how the labels that display Encyclopaedia data appear. Attributes: percentage_label (str): Placed next to the percentage unlocked number page_label (str): Placed before the entry page displayed page_separator_label (str):...
32.461538
94
0.635748
2,927
0.99086
0
0
1,527
0.516926
0
0
1,342
0.454299
1c7bed607992f89cbbe011d8fbb3d755bb77d244
1,816
py
Python
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
import logging from ncservice.ncDeviceOps.nc_device_ops import NcDeviceOps from ncservice.ncDeviceOps.task_report import TaskReport from ncservice.ncDeviceOps.threaded.base_thread_class import BaseThreadClass logger = logging.getLogger('main.{}'.format(__name__)) extra = {'signature': '---SIGNATURE-NOT-SET---'} clas...
37.061224
108
0.643722
1,499
0.825441
0
0
0
0
0
0
223
0.122797
1c7de0aa67e4761191bbc1f1c380a31439d54c36
258
py
Python
CodeHS/Looping/DoubleForLoop.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
2
2021-08-10T18:16:08.000Z
2021-09-26T19:49:26.000Z
CodeHS/Looping/DoubleForLoop.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
CodeHS/Looping/DoubleForLoop.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
""" This program visualizes nested for loops by printing number 0 through 3 and then 0 through 3 for the nested loop. """ for i in range(4): print("Outer for loop: " + str(i)) for j in range(4): print(" Inner for loop: " + str(j))
28.666667
72
0.612403
0
0
0
0
0
0
0
0
164
0.635659
1c7e58a1470bb1ce0a1146ec377bf0292d1e20e6
4,657
py
Python
saleor/graphql/channel/tests/test_base_channel_listing.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/graphql/channel/tests/test_base_channel_listing.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/graphql/channel/tests/test_base_channel_listing.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from collections import defaultdict import graphene import pytest from django.core.exceptions import ValidationError from ....shipping.error_codes import ShippingErrorCode from ..mutations import BaseChannelListingMutation def test_validate_duplicated_channel_ids(channel_PLN, channel_USD): # given channel_i...
30.84106
83
0.721065
0
0
0
0
0
0
0
0
551
0.118317
1c7ea7eccdeaa85272171df846b591a0afd65d34
9,843
py
Python
francoralite/apps/francoralite_front/tools.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
2
2021-07-26T08:29:26.000Z
2021-07-26T08:29:27.000Z
francoralite/apps/francoralite_front/tools.py
lluc/telemeta-integration
c2fb116471235674eae597abac84a7113e0f7c82
[ "BSD-3-Clause" ]
167
2018-10-20T14:34:46.000Z
2021-06-01T10:40:55.000Z
francoralite/apps/francoralite_front/tools.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
1
2021-06-06T12:16:49.000Z
2021-06-06T12:16:49.000Z
# -*- coding: utf-8 -*- # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # Authors: Luc LEGER / Coopérative ARTEFACTS <artefacts.lle@gmail.com> import requests from django.conf import settings from django.contrib impor...
30.286154
90
0.607843
46
0.004665
0
0
0
0
0
0
2,035
0.206369
1c7f5af1d319f74fdb488cde790b4cffce3502aa
5,173
py
Python
python2.7/site-packages/twisted/internet/iocpreactor/client.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
4
2020-10-31T19:52:05.000Z
2021-09-22T11:39:27.000Z
python2.7/site-packages/twisted/internet/iocpreactor/client.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
null
null
null
python2.7/site-packages/twisted/internet/iocpreactor/client.py
84KaliPleXon3/sslstrip-hsts-openwrt
f875ded48078a3ed84bffef1e69dcbeaf2e77ae3
[ "MIT" ]
2
2020-02-27T08:28:35.000Z
2020-09-13T12:39:26.000Z
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. import socket from twisted.persisted import styles from twisted.internet.base import BaseConnector from twisted.internet import defer, interfaces, error from twisted.python import failure from abstract import ConnectedSocket from ops ...
30.429412
127
0.64972
4,749
0.918036
0
0
0
0
0
0
429
0.082931
1c7f78b673d9e154cc86707fcd75f178c99f6089
2,678
py
Python
pypika/tests/dialects/test_mssql.py
uhrm/pypika
b390aa33c980704555d75d27ade5bfa4d1d4bae7
[ "Apache-2.0" ]
null
null
null
pypika/tests/dialects/test_mssql.py
uhrm/pypika
b390aa33c980704555d75d27ade5bfa4d1d4bae7
[ "Apache-2.0" ]
null
null
null
pypika/tests/dialects/test_mssql.py
uhrm/pypika
b390aa33c980704555d75d27ade5bfa4d1d4bae7
[ "Apache-2.0" ]
null
null
null
import unittest from pypika import Table from pypika.analytics import Count from pypika.dialects import MSSQLQuery from pypika.utils import QueryException class SelectTests(unittest.TestCase): def test_normal_select(self): q = MSSQLQuery.from_("abc").select("def") self.assertEqual('SELECT "def" ...
38.257143
118
0.647872
2,519
0.940627
0
0
0
0
0
0
755
0.281927
1c7fbcb14ea301bda84e83c0a6cddb4f13bae6fe
14,860
py
Python
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
import cvxpy as cvx import numpy as np from collections import namedtuple from metric import metric, cd import pandas as pd import sys from helper import make_dataset class Model(namedtuple('Model', 'pred label')): def logits(self): raw_logits = np.clip(np.log(self.pred / (1 - self.pred)), -100, 100) ...
43.323615
113
0.611844
6,337
0.426447
0
0
0
0
0
0
1,939
0.130485
1c802e1801de4019c3b100aff72c042e2ff702ed
1,632
py
Python
tests/test_exceptions.py
nesnahnoj/py3-textract
61290fb44c964cf78ce64593fdf0076143dbcd91
[ "MIT" ]
2
2015-03-03T12:40:17.000Z
2015-03-03T13:05:14.000Z
tests/test_exceptions.py
anderser/textract
8f7b32cadabcd13ad1eab1a56b9aa151901d0453
[ "MIT" ]
null
null
null
tests/test_exceptions.py
anderser/textract
8f7b32cadabcd13ad1eab1a56b9aa151901d0453
[ "MIT" ]
null
null
null
import unittest import os import subprocess import base class ExceptionTestCase(base.GenericUtilities, unittest.TestCase): """This class contains a bunch of tests to make sure that textract fails in expected ways. """ def test_unsupported_extension_cli(self): """Make sure unsupported extensi...
37.090909
72
0.692402
1,572
0.963235
0
0
0
0
0
0
431
0.264093
1c81071b5834983f0325a721292427a8ce6ce5f8
1,998
py
Python
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
"""Queue implementation using circularly linked list for storage.""" class CircularQueue: """Queue implementation using circularly linked list for storage.""" class _Node: """Lightweight, nonpublic class for storing a singly linked node.""" __slots__ = '_element', '_next' def __init__...
29.382353
76
0.578579
1,927
0.964464
0
0
0
0
0
0
739
0.36987
1c828f50eb6739af4655f73774016c25d4ee4ac9
1,389
py
Python
suplemon/helpers.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
null
null
null
suplemon/helpers.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
null
null
null
suplemon/helpers.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 """ Various helper constants and functions. """ import os import re import sys import time import traceback def curr_time(): """Current time in %H:%M""" return time.strftime("%H:%M") def curr_time_sec(): """Current time in %H:%M:%S""" return time.strftime("%H:%M:%S") def mul...
21.369231
83
0.592513
0
0
0
0
0
0
0
0
419
0.301656
1c850ddd900887b33d213aba43297d734592063b
31,713
py
Python
geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
null
null
null
geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
1
2020-10-29T11:42:21.000Z
2020-10-29T11:42:21.000Z
build/lib/geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
1
2020-07-09T18:15:10.000Z
2020-07-09T18:15:10.000Z
""" :mod:`meshes` -- Discretization =============================== Everything related to meshes appropriate for the multigrid solver. """ # Copyright 2018-2020 The emg3d Developers. # # This file is part of emg3d. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except...
35.833898
79
0.590578
4,305
0.135749
0
0
889
0.028033
0
0
20,101
0.633841
1c855f3c4b60017317473eca05c6f77584434cbc
2,464
py
Python
QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py
Hqss/DINK
5fecaa65e2f9da48eb8ac38ef709aa555fca8766
[ "BSD-3-Clause" ]
189
2019-01-16T03:05:23.000Z
2020-09-14T14:54:16.000Z
QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py
jtpils/DINK
5f6b3eaba279126f79ae6607f965311002d7451c
[ "BSD-3-Clause" ]
3
2019-02-11T06:20:15.000Z
2020-04-05T07:03:53.000Z
QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py
jtpils/DINK
5f6b3eaba279126f79ae6607f965311002d7451c
[ "BSD-3-Clause" ]
25
2019-01-16T03:05:24.000Z
2020-04-04T21:07:53.000Z
#! /usr/bin/python2 # -*- coding: utf-8 -*- """ Clock function to take running time following Segmatch. """ # BSD 3-Clause License # # Copyright (c) 2019, FPAI # Copyright (c) 2019, SeriouslyHAO # Copyright (c) 2019, xcj2019 # Copyright (c) 2019, Leonfirst # # All rights reserved. # # Redistribution and use in source a...
39.741935
114
0.745536
683
0.277192
0
0
0
0
0
0
1,727
0.700893
1c8628f13d65ff3439c3fbd013fa30e504e0ca89
918
py
Python
office365/sharepoint/view_collection.py
andebor/Office365-REST-Python-Client
ffd0ab4cf742b2e5ae7d8c44e937495aece41e07
[ "MIT" ]
null
null
null
office365/sharepoint/view_collection.py
andebor/Office365-REST-Python-Client
ffd0ab4cf742b2e5ae7d8c44e937495aece41e07
[ "MIT" ]
null
null
null
office365/sharepoint/view_collection.py
andebor/Office365-REST-Python-Client
ffd0ab4cf742b2e5ae7d8c44e937495aece41e07
[ "MIT" ]
null
null
null
from office365.runtime.client_object_collection import ClientObjectCollection from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation from office365.sharepoint.view import View class ViewCollection(ClientObjectCollection): """Represents a collection of View resources.""" def...
45.9
111
0.734205
703
0.765795
0
0
0
0
0
0
166
0.180828
1c88139e81ccf155fe77c897a8674f07ab2d5797
1,461
py
Python
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
null
null
null
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
null
null
null
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
1
2020-03-11T14:49:00.000Z
2020-03-11T14:49:00.000Z
from common_src.lib.model.post import Post from common_src.lib.model.source import Source from common_src.scrapers.abstract_scraper import make_soup, remove_dups, now SOURCE_CODE = "second_extinction" WEBSITE = "https://www.secondextinctiongame.com/news" ALT_IMAGE = 'https://www.secondextinctiongame.com/static/242486b...
39.486486
119
0.699521
0
0
0
0
0
0
0
0
563
0.385352
1c88d1e1834d792edf9c14b13846bd1ee7d80360
3,860
py
Python
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
7
2021-07-01T17:02:50.000Z
2022-03-29T10:54:41.000Z
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
null
null
null
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
2
2021-07-10T20:57:06.000Z
2022-01-02T10:10:25.000Z
# # alexnet.py # # Author(s): # Matteo Spallanzani <spmatteo@iis.ee.ethz.ch> # # Copyright (c) 2020-2021 ETH Zurich. # # 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...
31.900826
91
0.591192
3,152
0.81658
0
0
0
0
0
0
781
0.202332
1c8a214cb9301b78671cb8aa70f1cebef2a6167b
448
py
Python
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0011_customersetting'), ] operations = [ migrations.AlterField( model_name='customersetting', ...
22.4
93
0.625
339
0.756696
0
0
0
0
0
0
102
0.227679
1c8bf817623bc83ae0e3cfb38c83d93d7647579a
1,068
py
Python
madlib/main.py
FredericIV/PythonPractice
36b3a321eb8fefc38befe83b15a7596418250756
[ "CC0-1.0" ]
null
null
null
madlib/main.py
FredericIV/PythonPractice
36b3a321eb8fefc38befe83b15a7596418250756
[ "CC0-1.0" ]
null
null
null
madlib/main.py
FredericIV/PythonPractice
36b3a321eb8fefc38befe83b15a7596418250756
[ "CC0-1.0" ]
null
null
null
#!/bin/python3 # Libraries import sys import array import textwrap # Variable Declaration madlib_selection = "example.txt" madlib_array = array.array('i') copy_state = False user_filler = "" new_madlib = [] if len(sys.argv) != 1: print(len(sys.argv)) if sys.argv[1] == "-": print("This program takes t...
31.411765
93
0.659176
0
0
0
0
0
0
0
0
292
0.273408
1c8d061b0e5a02933d936632c10e61f84e6418bb
2,558
py
Python
src/tests/control/test_devices.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_devices.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_devices.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import pytest from django.utils.timezone import now from pretix.base.models import Device, Event, Organizer, Team, User from pretix.base.models.devices import generate_api_token @pytest.fixture def organizer(): return Organizer.objects.create(name='Dummy', slug='dummy') @pytest.fixture def event(organizer): ...
30.452381
106
0.713057
0
0
0
0
2,352
0.919468
0
0
462
0.18061
1c8e802ab7e5ab17bb7b662f2406ded9d3de6507
11,773
py
Python
mcp/augmentation/album.py
j20232/moco_image_pipeline
997ae76e795548e75f95e862284c1fc0a3c7541a
[ "BSD-3-Clause" ]
5
2020-03-18T14:36:12.000Z
2022-01-26T09:36:11.000Z
mcp/augmentation/album.py
j20232/moco_image_pipeline
997ae76e795548e75f95e862284c1fc0a3c7541a
[ "BSD-3-Clause" ]
null
null
null
mcp/augmentation/album.py
j20232/moco_image_pipeline
997ae76e795548e75f95e862284c1fc0a3c7541a
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from PIL import Image, ImageOps, ImageEnhance import albumentations as A # ndarray: H x W x C def apply_aug(aug, image): return aug(image=image)["image"] # ----------------------------------- Blur ------------------------------------------- class RandomBlur(): def __init__(self, prob, bl...
35.460843
99
0.599507
5,665
0.481186
0
0
0
0
0
0
2,303
0.195617
1c8ea0dcd3e4b0f8ab68d4a876a677661904e6f8
2,959
py
Python
website/util/sanitize.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
website/util/sanitize.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
website/util/sanitize.py
bdyetton/prettychart
e8b33a7dfdc8c33d15969586be7f68172795f76d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import bleach import json def strip_html(unclean): """Sanitize a string, removing (as opposed to escaping) HTML tags :param unclean: A string to be stripped of HTML tags :return: stripped string :rtype: str """ return bleach.clean(unclean, strip=True, tags=[], attribu...
26.185841
103
0.627239
0
0
0
0
0
0
0
0
1,417
0.478878
1c8eddd2bd80bb485d60b7d54110b5642d861af4
16,525
py
Python
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.tensorboard import SummaryWriter from torch.utils import data from torch import optim import torchvision.models as models from torch.autograd import Variable import torchvision as tv import random import math import time from datetime i...
47.34957
191
0.616884
0
0
0
0
0
0
0
0
4,368
0.264327
1c8fed7e472142a2a42ee1131ff8f6b28599bc16
1,295
py
Python
tools/utils.py
valsworthen/toxic-comment-classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
10
2018-03-26T05:46:39.000Z
2020-04-30T08:03:18.000Z
tools/utils.py
valsworthen/toxic_comment_classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
null
null
null
tools/utils.py
valsworthen/toxic_comment_classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
null
null
null
"""Utilities""" import pandas as pd import numpy as np from attrdict import AttrDict import yaml def average_predictions(cv_predictions, n_splits, num_samples = 153164, num_labels = 6): """Average k-fold predictions stored in a dict""" preds = np.zeros((num_samples, num_labels)) for preds_i in cv_predictio...
33.205128
93
0.67722
0
0
0
0
0
0
0
0
238
0.183784
1c9014f0cf5d96c8108b4c96a94c876f92838ff8
530
py
Python
dags/exercise1.py
mikef-nl/airflow-training-skeleton
85a0e9103772be012a41ee0daa9f67ba401bfddc
[ "Apache-2.0" ]
null
null
null
dags/exercise1.py
mikef-nl/airflow-training-skeleton
85a0e9103772be012a41ee0daa9f67ba401bfddc
[ "Apache-2.0" ]
null
null
null
dags/exercise1.py
mikef-nl/airflow-training-skeleton
85a0e9103772be012a41ee0daa9f67ba401bfddc
[ "Apache-2.0" ]
null
null
null
import airflow from airflow.models import DAG from airflow.operators.dummy_operator import DummyOperator args = { 'owner': 'Mike', 'start_date': airflow.utils.dates.days_ago(2), } dag = DAG( dag_id='exercise1', default_args=args, schedule_interval=None ) t1 = DummyOperator(task_id='task1', dag=da...
23.043478
58
0.70566
0
0
0
0
0
0
0
0
71
0.133962
1c90552cf52e653e519bda73228f741afee1058c
3,148
py
Python
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
12
2019-03-11T12:38:35.000Z
2021-06-26T03:40:18.000Z
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
23
2018-11-22T15:16:12.000Z
2022-03-25T12:55:33.000Z
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
2
2019-04-18T17:47:00.000Z
2021-08-31T04:45:30.000Z
# -*- coding: utf-8 -*- """ Created on Tue Feb 27 10:54:25 2018 @author: jsgosselin """ # ---- Standard Library Imports from itertools import product import os.path as osp import os # ---- Third Party Imports import netCDF4 from geopandas import GeoDataFrame import pandas as pd from shapely.geometry import Point, P...
29.420561
79
0.67249
0
0
0
0
0
0
0
0
917
0.291296
1c90b62f02619f835bc7d89b23d75b9ecf0b6be0
1,803
py
Python
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
# pylint:disable=ungrouped-imports import uuid import pytest import activitylogs from db.models.activitylogs import ActivityLog from events.registry.experiment import EXPERIMENT_DELETED_TRIGGERED from events.registry.user import USER_ACTIVATED from factories.factory_experiments import ExperimentFactory from factorie...
36.795918
68
0.658902
1,377
0.763727
0
0
1,408
0.780921
0
0
34
0.018857
1c9164529ab22e884811a536f6b8ba91eb8bbe19
420
py
Python
tests/framework/test_ingress.py
praus/shapy
7fa5512d9015b4921870f212495280fbb0675164
[ "MIT" ]
54
2015-01-14T10:14:11.000Z
2022-02-25T17:12:10.000Z
tests/framework/test_ingress.py
praus/shapy
7fa5512d9015b4921870f212495280fbb0675164
[ "MIT" ]
1
2015-12-29T07:37:17.000Z
2015-12-30T06:17:41.000Z
tests/framework/test_ingress.py
praus/shapy
7fa5512d9015b4921870f212495280fbb0675164
[ "MIT" ]
14
2015-02-10T15:29:48.000Z
2021-09-22T03:01:13.000Z
import unittest from shapy.framework.tcelements import * from shapy.framework.executor import run from tests import TCTestCase class TestIngress(TCTestCase): def setUp(self): self.interface = Interface('lo') def test_ingress_filter(self): q = IngressQdisc() q.add(RedirectFilter('...
24.705882
54
0.688095
289
0.688095
0
0
0
0
0
0
25
0.059524
1c91c9a08ce7e29a5358fe242bc8b960fc941c8f
1,844
py
Python
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
2
2018-09-20T08:36:11.000Z
2019-08-25T20:06:11.000Z
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
null
null
null
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
1
2020-12-12T18:21:18.000Z
2020-12-12T18:21:18.000Z
from colorsys import hsv_to_rgb from math import fabs, fmod import os from hippietrap.color import Color class Gradient(object): def __init__(self, palette, num_leds = 1): # palletes are in format [ (.345, (128, 0, 128)) ] self._validate_palette(palette) self.palette = palette sel...
29.741935
107
0.58026
1,737
0.941974
0
0
0
0
0
0
246
0.133406
1c95c503cb53578803e2dbe2dd22ba875018dd47
817
py
Python
stix_shifter_modules/elastic/entry_point.py
6un9-h0-Dan/stix-shifter
f99feee8c247b9fc1d79f6db623c301b49685b63
[ "Apache-2.0" ]
1
2020-04-06T21:28:19.000Z
2020-04-06T21:28:19.000Z
stix_shifter_modules/elastic/entry_point.py
6un9-h0-Dan/stix-shifter
f99feee8c247b9fc1d79f6db623c301b49685b63
[ "Apache-2.0" ]
null
null
null
stix_shifter_modules/elastic/entry_point.py
6un9-h0-Dan/stix-shifter
f99feee8c247b9fc1d79f6db623c301b49685b63
[ "Apache-2.0" ]
null
null
null
from stix_shifter_utils.utils.entry_point_base import EntryPointBase from stix_shifter_utils.modules.cim.stix_translation.cim_data_mapper import CimDataMapper from stix_shifter_utils.modules.car.stix_translation.car_data_mapper import CarDataMapper from .stix_translation.stix_to_elastic import StixToElastic class Entr...
74.272727
124
0.812729
507
0.620563
0
0
0
0
0
0
19
0.023256
1c962e345da89a5eb411a0b3f49cfb775dfe43b5
1,850
py
Python
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import (QMainWindow, QToolButton, QWidget, QHBoxLayout) from PyQt5.QtGui import QIcon from PyQt5 import QtCore from math import floor import sys class MainWindow(QMainWindow): def __init__(self, browsers, iconsize=72, displayappname=False, x=0, y=0, callback=lambda v: print(v)): ...
40.217391
148
0.591892
1,683
0.90973
0
0
0
0
0
0
118
0.063784
1c967254ce0d2a6e7d37a5e738a1749e4d64b857
6,324
py
Python
genetic_pwdcrack.py
robotenique/AI-programming
41a690963b452165342cfd3caa81bfad13d1cc76
[ "Unlicense" ]
3
2018-04-05T16:38:48.000Z
2020-11-15T21:24:57.000Z
genetic_pwdcrack.py
robotenique/AI-programming
41a690963b452165342cfd3caa81bfad13d1cc76
[ "Unlicense" ]
null
null
null
genetic_pwdcrack.py
robotenique/AI-programming
41a690963b452165342cfd3caa81bfad13d1cc76
[ "Unlicense" ]
null
null
null
""" Crack a password using a genetic algorithm! """ import random as rnd def main(): """ This file implements a genetic algorithm to solve the problem of cracking a given password, by creating 'generations' of different words, selecting the best, breeeding them, applying a simple crossover (randomi...
34
108
0.669355
0
0
0
0
0
0
0
0
2,956
0.467426
1c9707dc1574081d46ce438a0fbd3d659ca252fc
7,985
py
Python
openverse_catalog/dags/providers/provider_api_scripts/science_museum.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
25
2021-05-06T20:53:45.000Z
2022-03-30T23:18:50.000Z
openverse_catalog/dags/providers/provider_api_scripts/science_museum.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
272
2021-05-17T05:53:00.000Z
2022-03-31T23:57:20.000Z
openverse_catalog/dags/providers/provider_api_scripts/science_museum.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
13
2021-06-12T07:09:06.000Z
2022-03-29T17:39:13.000Z
import logging from common.licenses import get_license_info from common.loader import provider_details as prov from common.requester import DelayedRequester from common.storage.image import ImageStore logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s: %(message)s", level=logging.INFO ) logger ...
30.830116
87
0.628053
0
0
0
0
0
0
0
0
1,128
0.141265
1c97af3344054a3843093ee257c735adccd419f3
1,089
py
Python
digitaltape.py
heerdyes/tapegame
d6e0c6f81fe9c7c85a54edbd037be318ff7ed391
[ "Artistic-2.0" ]
null
null
null
digitaltape.py
heerdyes/tapegame
d6e0c6f81fe9c7c85a54edbd037be318ff7ed391
[ "Artistic-2.0" ]
null
null
null
digitaltape.py
heerdyes/tapegame
d6e0c6f81fe9c7c85a54edbd037be318ff7ed391
[ "Artistic-2.0" ]
null
null
null
# tape variables TS_MAX=1000 # the digital tape model class DTape: def __init__(self,size,alphabet,noopidx=0): if size>TS_MAX: self.size=TS_MAX else: self.size=size if len(alphabet)==0: raise Exception('alphabet has zero symbols') self.alphabet=al...
26.560976
86
0.602388
1,027
0.943067
0
0
0
0
0
0
145
0.13315
1c980836374b3fb5fedf0a12599c8c546395b546
422
py
Python
webhook-cdk/lambda/vars.py
ncalteen/github-webhook-lambda-example
414daf1a70343abf207ff37dc4a9d65d6892197d
[ "MIT" ]
null
null
null
webhook-cdk/lambda/vars.py
ncalteen/github-webhook-lambda-example
414daf1a70343abf207ff37dc4a9d65d6892197d
[ "MIT" ]
null
null
null
webhook-cdk/lambda/vars.py
ncalteen/github-webhook-lambda-example
414daf1a70343abf207ff37dc4a9d65d6892197d
[ "MIT" ]
1
2022-03-29T14:42:25.000Z
2022-03-29T14:42:25.000Z
import json # Output must be returned in the format mentioned below: # https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format lambda_response = { "isBase64Encoded": False, "statusCode": 200, "headers": { ...
26.375
152
0.668246
0
0
0
0
0
0
0
0
296
0.701422
1c988d19204c6f421dff8e8f0c696fe6f0e5ec4f
3,737
py
Python
gym_unblockme/envs/unblockme_render.py
fedingo/gym-unblockme
a4dd20a7608122e09862d681259111e2634f3d4b
[ "MIT" ]
3
2019-02-12T15:53:17.000Z
2019-07-03T12:00:32.000Z
gym_unblockme/envs/unblockme_render.py
fedingo/gym-unblockme
a4dd20a7608122e09862d681259111e2634f3d4b
[ "MIT" ]
null
null
null
gym_unblockme/envs/unblockme_render.py
fedingo/gym-unblockme
a4dd20a7608122e09862d681259111e2634f3d4b
[ "MIT" ]
null
null
null
import pygame import time import numpy as np import sys gray = (150, 150, 150) white = (255, 255, 255) black = (0, 0, 0, ) red_block = (255, 0, 0) red_border = (76, 0, 19) block_color = (255, 128, 0) border_color = (165,42,42) screen = None SIDE = 50 BORDER = 5 MARGIN = 5 LINE = 1 h_switch = True def __draw_hor...
36.637255
116
0.557399
0
0
0
0
0
0
0
0
196
0.052448
1c98d508fd84565e1b07d0b60db1b387344d3b53
2,852
py
Python
scaffolds/__init__.py
chhsiao1981/frontend_template
fcd68c47d9ba3b04c8eb59c684c93baa20a688aa
[ "MIT" ]
null
null
null
scaffolds/__init__.py
chhsiao1981/frontend_template
fcd68c47d9ba3b04c8eb59c684c93baa20a688aa
[ "MIT" ]
null
null
null
scaffolds/__init__.py
chhsiao1981/frontend_template
fcd68c47d9ba3b04c8eb59c684c93baa20a688aa
[ "MIT" ]
null
null
null
# API from pyramid.scaffolds import PyramidTemplate import os import re import logging def _camelcase_to_upper_camel_case(the_str): if not the_str: return '' return the_str[0].upper() + the_str[1:] def _upper_camelcase_to_camelcase(the_str): if not the_str: return '' return the_str[...
29.102041
141
0.678822
2,331
0.817321
0
0
0
0
0
0
448
0.157083
1c990cbd7a7616bc0cdb891dffbb562850c5ab57
21,364
py
Python
phy/cluster/tests/test_supervisor.py
mikailweston/phy
d774cb989152a4b7344ac9b70c79c204a5036763
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/tests/test_supervisor.py
mikailweston/phy
d774cb989152a4b7344ac9b70c79c204a5036763
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/tests/test_supervisor.py
mikailweston/phy
d774cb989152a4b7344ac9b70c79c204a5036763
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test GUI component.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ #from contextlib import contextmanager from pytest import yield_fixture, fixture, raises import ...
27.460154
92
0.637521
1,108
0.051863
332
0.01554
2,792
0.130687
0
0
3,349
0.156759
1c9997692782ea5187e69a11b0059d2cc2e4c11c
2,733
py
Python
Source/CommandManager.py
SOBotics/Botpy
8e3eb48fcc2a46fd60f4d49832941fa1b71bc223
[ "WTFPL" ]
5
2017-09-19T10:19:33.000Z
2020-10-11T13:29:43.000Z
Source/CommandManager.py
SOBotics/Botpy
8e3eb48fcc2a46fd60f4d49832941fa1b71bc223
[ "WTFPL" ]
33
2018-05-14T09:05:06.000Z
2020-04-20T08:48:59.000Z
Source/CommandManager.py
SOBotics/Botpy
8e3eb48fcc2a46fd60f4d49832941fa1b71bc223
[ "WTFPL" ]
1
2017-09-27T10:40:34.000Z
2017-09-27T10:40:34.000Z
# # CommandManager.py # Botpy # # Created by Ashish Ahuja on 4th September 2017. # # import threading import chatexchange as ce class CommandManager: def __init__(self, commands): self.commands = commands self.running_commands = [] def run_command(self, command): if command.privileges...
35.038462
98
0.555799
2,602
0.952067
0
0
0
0
0
0
180
0.065862
1c9a0955e72ca504725f135176d44e72aae8607c
1,237
py
Python
tests/periodicities/gen_makefile.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/periodicities/gen_makefile.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/periodicities/gen_makefile.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import os import glob subdirs = glob.glob("tests/periodicities/*"); subdirs = ['tests/periodicities/Month', 'tests/periodicities/Minute', 'tests/periodicities/Week', 'tests/periodicities/Business_Hour', 'tests/periodicities/Business_Day', 'tests/periodicities/Seco...
32.552632
89
0.5481
0
0
0
0
0
0
0
0
519
0.419563
1c9a500d9b0aad2641a02cde2360c7ed9e056cc6
3,494
py
Python
test/test_util_registry.py
SimulatedANeal/carpedm
22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89
[ "MIT" ]
2
2020-09-30T04:59:06.000Z
2021-03-30T20:42:44.000Z
test/test_util_registry.py
SimulatedANeal/carpedm
22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89
[ "MIT" ]
null
null
null
test/test_util_registry.py
SimulatedANeal/carpedm
22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89
[ "MIT" ]
1
2018-05-25T07:15:16.000Z
2018-05-25T07:15:16.000Z
# # Copyright (C) 2018 Neal Digre. # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. # # # Portions of this module are copied or lightly modified from the # Tensor2Tensor registry_test module, so here is their license: # # Copyright 2018 The Tensor...
29.361345
79
0.697195
2,169
0.620778
0
0
404
0.115627
0
0
1,514
0.433314
1c9a93508b958132a0c4b43ee8f248a5003366fb
383
py
Python
pay-api/migrations/versions/8f7565cf50c1_.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/migrations/versions/8f7565cf50c1_.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/migrations/versions/8f7565cf50c1_.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 8f7565cf50c1 Revises: 872760122cc9, 8652bf9c03ff Create Date: 2020-10-02 11:11:49.823678 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8f7565cf50c1' down_revision = ('872760122cc9', '8652bf9c03ff') branch_labels = None depends_o...
15.32
48
0.741514
0
0
0
0
0
0
0
0
206
0.537859
1c9adb0e11b484554e5e9a324f68f256e624b588
13,217
py
Python
iotronic/wamp/agent.py
smartmeio/stack4things-openstack-iotronic
3e5782eb1fb33b7c3c8c9362e24d30241153c371
[ "Apache-2.0" ]
1
2021-11-04T09:43:49.000Z
2021-11-04T09:43:49.000Z
iotronic/wamp/agent.py
smartmeio/stack4things-openstack-iotronic
3e5782eb1fb33b7c3c8c9362e24d30241153c371
[ "Apache-2.0" ]
null
null
null
iotronic/wamp/agent.py
smartmeio/stack4things-openstack-iotronic
3e5782eb1fb33b7c3c8c9362e24d30241153c371
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 MDSLAB - University of Messina # 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 # # U...
31.544153
81
0.557464
8,981
0.679504
0
0
2,082
0.157524
2,623
0.198457
3,183
0.240826
1c9ae3c6c99371fef5bc7aaa5ea9deed848c23c0
1,406
py
Python
src/export_to_poseviz.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
52
2020-03-10T05:18:02.000Z
2021-12-23T04:03:38.000Z
src/export_to_poseviz.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
2
2020-03-30T08:08:06.000Z
2020-03-31T04:26:10.000Z
src/export_to_poseviz.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
7
2020-04-02T09:02:00.000Z
2020-12-12T07:11:07.000Z
#!/usr/bin/env python3 import argparse import logging import sys import numpy as np import util def main(): flags = initialize() logging.debug(f'Loading from {flags.in_path}') a = np.load(flags.in_path, allow_pickle=True) all_results_3d = {} for image_path, coords3d_pred in zip(a['image_path'],...
29.914894
94
0.69559
0
0
0
0
0
0
0
0
235
0.167141
1c9b5d5805105a181cbbe52dc9cadbd70001e7f9
1,606
py
Python
xcube/core/gen2/local/helpers.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
97
2018-06-26T13:02:55.000Z
2022-03-26T21:03:13.000Z
xcube/core/gen2/local/helpers.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
524
2018-11-09T12:00:08.000Z
2022-03-31T17:00:13.000Z
xcube/core/gen2/local/helpers.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
15
2019-07-09T08:46:03.000Z
2022-02-07T18:47:34.000Z
# The MIT License (MIT) # Copyright (c) 2021 by the xcube development team and contributors # # 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...
41.179487
81
0.71731
0
0
0
0
0
0
0
0
1,129
0.702989
98bad417651d09071c208452c18aa4573b275f66
1,683
py
Python
core/log.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
core/log.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
core/log.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
"""Simulation logs""" from __future__ import annotations # default once 3.10 import sys from enum import Enum from typing import Type, TYPE_CHECKING if TYPE_CHECKING: from core.timeline import Timeline class LogKind(Enum): def __str__(self) -> str: return self.name DEBUG = 0 SIM = 1 class...
25.119403
97
0.60309
1,463
0.869281
0
0
0
0
0
0
229
0.136067
98bba1bb3ab4288928a1669d17e724ae9a0d33c2
3,760
py
Python
zipline/__init__.py
chalant/pluto
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
[ "Apache-2.0" ]
null
null
null
zipline/__init__.py
chalant/pluto
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
[ "Apache-2.0" ]
null
null
null
zipline/__init__.py
chalant/pluto
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
[ "Apache-2.0" ]
null
null
null
# # # # Copyright 2015 Quantopian, Inc. # # # # 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 la...
29.147287
80
0.668617
0
0
0
0
0
0
0
0
3,632
0.965957
98bbff443455dac48b3d58e95d525a9389d58413
7,896
py
Python
smarts/core/utils/traffic_history_service.py
c-h-a-r-l-i-e/SMARTS
6cb8ffda74e235c25d63b74313623b2e03e402f7
[ "MIT" ]
null
null
null
smarts/core/utils/traffic_history_service.py
c-h-a-r-l-i-e/SMARTS
6cb8ffda74e235c25d63b74313623b2e03e402f7
[ "MIT" ]
null
null
null
smarts/core/utils/traffic_history_service.py
c-h-a-r-l-i-e/SMARTS
6cb8ffda74e235c25d63b74313623b2e03e402f7
[ "MIT" ]
null
null
null
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # 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 us...
37.245283
90
0.630699
6,572
0.83232
0
0
2,299
0.29116
0
0
1,742
0.220618
98bd00128cc88c306abd43b1058840e641926a91
195
py
Python
src/basics/sql_lite/update_data.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
src/basics/sql_lite/update_data.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
src/basics/sql_lite/update_data.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
import sqlite3 connect = sqlite3.connect("production.db") cursor = connect.cursor() cursor.execute("UPDATE PERSON SET edad = 19 WHERE nombre = 'Conker'") connect.commit() connect.close()
24.375
70
0.723077
0
0
0
0
0
0
0
0
68
0.348718
98bd3099195cf49ba522ba023294ea3a974ffe7f
1,599
py
Python
calvin/runtime/south/plugins/media/defaultimpl/image.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
1
2016-05-10T22:36:31.000Z
2016-05-10T22:36:31.000Z
calvin/runtime/south/plugins/media/defaultimpl/image.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
calvin/runtime/south/plugins/media/defaultimpl/image.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
import pygame from StringIO import StringIO import cv2 import os import numpy class Image(object): """ Image object """ def __init__(self): self.display = None def show_image(self, image, width, height): """ Show image """ size = (width, height) s...
26.65
69
0.56035
1,518
0.949343
0
0
0
0
0
0
247
0.154472
98bd3fd17ab9f4b238b6d43814353c33f950c7b3
3,340
py
Python
durin/models.py
mlodic/django-rest-durin
b31a7257fb9765a4928c08bb1e68e80f48159229
[ "MIT" ]
null
null
null
durin/models.py
mlodic/django-rest-durin
b31a7257fb9765a4928c08bb1e68e80f48159229
[ "MIT" ]
null
null
null
durin/models.py
mlodic/django-rest-durin
b31a7257fb9765a4928c08bb1e68e80f48159229
[ "MIT" ]
null
null
null
import binascii from os import urandom import humanize from django.conf import settings from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from durin.settings import durin_settings from durin.signals import token_renewed User = settings.AUTH_USER_MO...
26.299213
82
0.606886
2,862
0.856886
0
0
282
0.084431
0
0
303
0.090719
98be793b0386d37224cb563ae56376daaaeb6f10
507
py
Python
linter.py
CudaText-addons/cuda_lint_htmltidy
afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c
[ "MIT" ]
null
null
null
linter.py
CudaText-addons/cuda_lint_htmltidy
afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c
[ "MIT" ]
null
null
null
linter.py
CudaText-addons/cuda_lint_htmltidy
afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c
[ "MIT" ]
null
null
null
# Copyright (c) 2013 Aparajita Fishman # Change for CudaLint: Alexey T. # License: MIT import os from cuda_lint import Linter, util if os.name=='nt': _exe = os.path.join(os.path.dirname(__file__), 'tidy_win32', 'tidy') else: _exe = 'tidy' class HtmlTidy(Linter): syntax = ('HTML', 'HTML_') cmd = (_exe...
26.684211
115
0.627219
256
0.504931
0
0
0
0
0
0
252
0.497041
98bf3939045052dd4fba91a19ad1fdf6be1101a5
640
py
Python
PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
"set operations for multiple sequences" def intersect(*args): res = [] for x in args[0]: # scan the first list for other in args[1:]: # for all other arguments if x not in other: break # this item in each one? else: res.append(x) #...
33.684211
68
0.504688
0
0
0
0
0
0
0
0
218
0.340625
98bf61f5f3abef89b085be204210156d6a5477f5
3,006
py
Python
airtech_api/utils/error_messages/serialization_errors.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
1
2019-04-04T12:27:55.000Z
2019-04-04T12:27:55.000Z
airtech_api/utils/error_messages/serialization_errors.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
34
2019-03-26T11:18:17.000Z
2022-02-10T08:12:36.000Z
airtech_api/utils/error_messages/serialization_errors.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
null
null
null
msg_dict = { 'resource_not_found': 'The resource you specified was not found', 'invalid_gender': "The gender you specified is invalid!!", 'many_invalid_fields': 'Some errors occured while validating some fields. Please check and try again', 'unique': 'The {} you inputted already exists',...
42.338028
83
0.706254
0
0
0
0
0
0
0
0
2,586
0.860279
98c098366590ca27e9adc66a721c84a992752bc9
109
py
Python
blog/be/server/serialization/__init__.py
kamko/lnu_ht19_4ME310_final_project
ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e
[ "MIT" ]
null
null
null
blog/be/server/serialization/__init__.py
kamko/lnu_ht19_4ME310_final_project
ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e
[ "MIT" ]
2
2020-06-07T19:02:54.000Z
2020-06-07T19:03:02.000Z
blog/be/server/serialization/__init__.py
kamko/lnu_ht19_4ME310_final_project
ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e
[ "MIT" ]
null
null
null
from .marshmallow import ma from .schemas import ArticleSchema __all__ = [ 'ma', 'ArticleSchema' ]
12.111111
34
0.688073
0
0
0
0
0
0
0
0
19
0.174312
98c0a5642acac614148ed6f1d7bcaa9979233d3b
8,950
py
Python
scripts/fast_queue.py
ourresearch/openalex-guts
f6c3e9992361e4bb1dbe76fbfb644c80f081319a
[ "MIT" ]
48
2021-11-20T08:17:53.000Z
2022-03-19T13:57:15.000Z
scripts/fast_queue.py
ourresearch/openalex-guts
f6c3e9992361e4bb1dbe76fbfb644c80f081319a
[ "MIT" ]
null
null
null
scripts/fast_queue.py
ourresearch/openalex-guts
f6c3e9992361e4bb1dbe76fbfb644c80f081319a
[ "MIT" ]
2
2022-01-04T16:28:48.000Z
2022-02-05T21:25:01.000Z
import argparse from time import sleep, time from collections import defaultdict from sqlalchemy import orm, text, insert, delete from sqlalchemy.orm import selectinload import models from app import db from app import logger from scripts.queue import JsonWorks, JsonAuthors, JsonConcepts, JsonInstitutions, JsonVenues...
42.216981
149
0.639777
0
0
0
0
0
0
0
0
1,981
0.221341
98c14c64fb91ce8b039d5c03cf8ab0036d83b74c
3,810
py
Python
cogs/memes.py
Code-Cecilia/botman-rewrite
9d8baeebf267c62df975d2f209e85589b81934af
[ "MIT" ]
2
2022-02-21T14:10:15.000Z
2022-02-21T14:10:50.000Z
cogs/memes.py
Code-Cecilia/botman-rewrite
9d8baeebf267c62df975d2f209e85589b81934af
[ "MIT" ]
null
null
null
cogs/memes.py
Code-Cecilia/botman-rewrite
9d8baeebf267c62df975d2f209e85589b81934af
[ "MIT" ]
null
null
null
import json import discord from discord.ext import commands from assets import internet_funcs from assets.list_funcs import chunks class Memes(commands.Cog, description="Memes from https://imgflip.com/"): def __init__(self, bot): self.bot = bot with open("config.json") as configFile: ...
38.877551
109
0.574803
3,628
0.952231
0
0
3,255
0.854331
3,094
0.812073
941
0.246982
98c1adf25f25e2b996bb3df26aef461028014a20
55
py
Python
examples/forest_fire/run.py
fire-suppression-abm/mesa
8498eea3e5d4a739aee3b003107a0e7de59c5026
[ "Apache-2.0" ]
1,704
2015-02-01T17:59:44.000Z
2022-03-30T13:25:47.000Z
examples/forest_fire/run.py
fire-suppression-abm/mesa
8498eea3e5d4a739aee3b003107a0e7de59c5026
[ "Apache-2.0" ]
1,048
2015-01-12T01:16:05.000Z
2022-03-31T11:44:33.000Z
examples/forest_fire/run.py
fire-suppression-abm/mesa
8498eea3e5d4a739aee3b003107a0e7de59c5026
[ "Apache-2.0" ]
831
2015-03-04T13:41:25.000Z
2022-03-30T14:33:17.000Z
from forest_fire.server import server server.launch()
13.75
37
0.818182
0
0
0
0
0
0
0
0
0
0
98c1fbeb0d5441c90960a350fd079ea801185651
2,298
py
Python
scripts/collect_timelines1.py
tedhchen/twitter_timeline_tools
bc21e8c7c4e976409281e2697e1ec75044648eb8
[ "MIT" ]
null
null
null
scripts/collect_timelines1.py
tedhchen/twitter_timeline_tools
bc21e8c7c4e976409281e2697e1ec75044648eb8
[ "MIT" ]
null
null
null
scripts/collect_timelines1.py
tedhchen/twitter_timeline_tools
bc21e8c7c4e976409281e2697e1ec75044648eb8
[ "MIT" ]
null
null
null
# Prep import json, configparser, pickle, csv, logging, os import pandas as pd from tweepy import AppAuthHandler, API, Cursor # Reading in configuation params = configparser.ConfigParser() params.read('config.ini') # Functions # Takes config file and returns authenticated api object def twitter_auth(config): auth = ...
31.479452
150
0.700174
0
0
0
0
0
0
0
0
757
0.329417
98c28b91f69f483e365aff3baa53ce90ba90427d
937
py
Python
aquarius/app/auth_util.py
oceanprotocol/provider-backend
f9e36e3d6b880de548c6b92c38d10d76daf369ba
[ "Apache-2.0" ]
null
null
null
aquarius/app/auth_util.py
oceanprotocol/provider-backend
f9e36e3d6b880de548c6b92c38d10d76daf369ba
[ "Apache-2.0" ]
1
2018-08-15T09:57:01.000Z
2018-08-15T09:57:01.000Z
aquarius/app/auth_util.py
oceanprotocol/provider-backend
f9e36e3d6b880de548c6b92c38d10d76daf369ba
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # from eth_utils import is_address from web3 import Web3 def sanitize_addresses(addresses): return [Web3.toChecksumAddress(a) for a in addresses if is_address(a)] def compare_eth_addresses(address, checker, logger): """ C...
31.233333
77
0.71825
0
0
0
0
0
0
0
0
418
0.446105
98c37885dc6ddaa81fc5bc670f8b3da95afaa94e
673
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_DJ.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_DJ.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_DJ.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. DJ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_DJ = PhoneMetadata(id='DJ', country_code=253, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[27]\\d{7}', possible_length=(8,)), ...
74.777778
132
0.708767
0
0
0
0
0
0
0
0
185
0.274889
98c56839c6c8ff2db03c4e3a4f565347728ce5e0
4,541
py
Python
llvm-7.0.0.src/utils/unicode-case-fold.py
sillywalk/grazz
a0adb1a90d41ff9006d8c1476546263f728b3c83
[ "Apache-2.0" ]
171
2018-09-17T13:15:12.000Z
2022-03-18T03:47:04.000Z
llvm-7.0.0.src/utils/unicode-case-fold.py
sillywalk/grazz
a0adb1a90d41ff9006d8c1476546263f728b3c83
[ "Apache-2.0" ]
51
2019-10-23T11:55:08.000Z
2021-12-21T06:32:11.000Z
llvm-7.0.0.src/utils/unicode-case-fold.py
sillywalk/grazz
a0adb1a90d41ff9006d8c1476546263f728b3c83
[ "Apache-2.0" ]
35
2018-09-18T07:46:53.000Z
2022-03-27T07:59:48.000Z
#!/usr/bin/env python """ Unicode case folding database conversion utility Parses the database and generates a C++ function which implements the case folding algorithm. The database entries are of the form: <code>; <status>; <mapping>; # <name> <status> can be one of four characters: C - Common mappings S - ma...
32.905797
89
0.618146
0
0
466
0.102621
0
0
0
0
2,647
0.582911
98c615953ef0bbcfd93b9c52b023ec8e35bea466
115,101
py
Python
trade_remedies_caseworker/cases/views.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
1
2020-08-27T09:53:00.000Z
2020-08-27T09:53:00.000Z
trade_remedies_caseworker/cases/views.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
7
2020-10-14T16:23:42.000Z
2021-09-24T14:18:47.000Z
trade_remedies_caseworker/cases/views.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
null
null
null
import itertools import json import logging import re from django.views.generic import TemplateView from django.http import HttpResponse from django.views import View from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from django.views.decorators.csrf import csrf_exempt from django.short...
41.063503
150
0.574391
112,809
0.980087
0
0
6,470
0.056212
0
0
23,368
0.203022
98c73bdbed560b9a7619895e79b9cc268edc26d3
10,352
py
Python
analyze-ir-signal.py
hnw/analyze-ir-signal
f810c0ced955ec70c5e4c0d3556efa0a6d0d3138
[ "MIT" ]
null
null
null
analyze-ir-signal.py
hnw/analyze-ir-signal
f810c0ced955ec70c5e4c0d3556efa0a6d0d3138
[ "MIT" ]
null
null
null
analyze-ir-signal.py
hnw/analyze-ir-signal
f810c0ced955ec70c5e4c0d3556efa0a6d0d3138
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np from sklearn.neighbors import KernelDensity # Relative tolerance (in percent) for some comparisons on measured data. TOLERANCE = 25 # Lower tolerance for comparison of measured data LTOL = 100 - TOLERANCE # Upper tolerance for comparison of measured data UTOL = 100 + TOLERANCE...
57.511111
1,100
0.681897
0
0
0
0
0
0
0
0
1,293
0.124879
98c872b368191fe4e11021c3430aca414eab1a34
2,698
py
Python
mmdet/models/emod_ops/ar_module.py
zhenglab/EMOD
68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89
[ "Apache-2.0" ]
2
2020-12-09T08:40:04.000Z
2021-07-27T08:44:46.000Z
mmdet/models/emod_ops/ar_module.py
zhenglab/EMOD
68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89
[ "Apache-2.0" ]
null
null
null
mmdet/models/emod_ops/ar_module.py
zhenglab/EMOD
68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from mmcv.cnn.utils import constant_init, kaiming_init class SimAttention(nn.Module): def __init__(self, in_channels): super(SimAttention, self).__init__() self.conv_attn = nn.Conv2d(in_channels, 1, kernel_size=1) self.softmax = nn.Softmax(dim=2) ...
29.326087
81
0.546331
2,603
0.964789
0
0
0
0
0
0
114
0.042254
98c9bbdcbfc1d4a76b6ddc9df442f68e0236c7a7
519
py
Python
prayer_times_v2.py
danish09/request_api
67aac9079cb30fc0069a9273c8b4074122ea4d3b
[ "MIT" ]
null
null
null
prayer_times_v2.py
danish09/request_api
67aac9079cb30fc0069a9273c8b4074122ea4d3b
[ "MIT" ]
null
null
null
prayer_times_v2.py
danish09/request_api
67aac9079cb30fc0069a9273c8b4074122ea4d3b
[ "MIT" ]
null
null
null
import json import requests from datetime import datetime from playsound import playsound tday=datetime.today().strftime('%Y-%m-%d') right_now=datetime.today().strftime('%I-%M-%p') response = requests.get("https://www.londonprayertimes.com/api/times/?format=json&key=0239f686-4423-408e-9a0c-7968a403d197&year=&mont...
23.590909
137
0.693642
0
0
0
0
0
0
0
0
207
0.398844
98ca5c7bd9f6d4e14adea6a5004535831845ac15
6,763
py
Python
pokemon/pokemon_tests/test_serializers.py
pessman/pokemon_utils
cbe06ebe323cb38a35846274d812bdbe8d0ae8ca
[ "MIT" ]
1
2019-03-11T04:12:50.000Z
2019-03-11T04:12:50.000Z
pokemon/pokemon_tests/test_serializers.py
pessman/pokemon_utils
cbe06ebe323cb38a35846274d812bdbe8d0ae8ca
[ "MIT" ]
null
null
null
pokemon/pokemon_tests/test_serializers.py
pessman/pokemon_utils
cbe06ebe323cb38a35846274d812bdbe8d0ae8ca
[ "MIT" ]
2
2019-03-13T03:17:29.000Z
2019-04-04T20:06:50.000Z
import pytest from django.test import TestCase from rest_framework import serializers as drf_serializers from pokemon import models, serializers @pytest.mark.django_db class StatsSerializer(TestCase): """ Test Module for StatsSerializer """ def setUp(self): models.Nature.objects.create( ...
32.990244
67
0.546799
6,591
0.974567
0
0
6,614
0.977968
0
0
1,061
0.156883
98ca9c54fc93a4a5630df7be404c28ca3e935a2c
4,962
py
Python
sqlpuzzle/_common/argsparser.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
8
2015-03-19T11:25:32.000Z
2020-09-02T11:30:10.000Z
sqlpuzzle/_common/argsparser.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
7
2015-03-23T14:34:28.000Z
2022-02-21T12:36:01.000Z
sqlpuzzle/_common/argsparser.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
4
2018-11-28T21:59:27.000Z
2020-01-05T01:50:08.000Z
from sqlpuzzle.exceptions import InvalidArgumentException __all__ = ('parse_args',) # pylint: disable=dangerous-default-value,keyword-arg-before-vararg def parse_args(options={}, *args, **kwds): """ Parser of arguments. dict options { int min_items: Min of required items to fold one tuple. (defa...
33.755102
112
0.620314
3,284
0.66183
0
0
678
0.136638
0
0
1,477
0.297662
98cab2bad7becb5d77b33c01de7f7ffa0e4c8c44
16,809
py
Python
reviewboard/webapi/tests/test_review_screenshot_comment.py
ParikhKadam/reviewboard
7395902e4c181bcd1d633f61105012ffb1d18e1b
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/webapi/tests/test_review_screenshot_comment.py
ParikhKadam/reviewboard
7395902e4c181bcd1d633f61105012ffb1d18e1b
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/webapi/tests/test_review_screenshot_comment.py
ParikhKadam/reviewboard
7395902e4c181bcd1d633f61105012ffb1d18e1b
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
from __future__ import unicode_literals from django.contrib.auth.models import User from djblets.webapi.errors import PERMISSION_DENIED from reviewboard.reviews.models import ScreenshotComment from reviewboard.webapi.resources import resources from reviewboard.webapi.tests.base import BaseWebAPITestCase from reviewbo...
41.198529
79
0.636861
16,001
0.951931
0
0
0
0
0
0
3,794
0.225712
98caf2eb8158bde50b1d44dd5a0629d9a33340c7
1,163
py
Python
qbapi/app.py
dimddev/qb
fbf9f4cac8aaf14243229e3193960da7114bb7ba
[ "BSD-3-Clause" ]
null
null
null
qbapi/app.py
dimddev/qb
fbf9f4cac8aaf14243229e3193960da7114bb7ba
[ "BSD-3-Clause" ]
null
null
null
qbapi/app.py
dimddev/qb
fbf9f4cac8aaf14243229e3193960da7114bb7ba
[ "BSD-3-Clause" ]
null
null
null
""" Command line tool """ import asyncio from qbapi.request import create_request from qbapi.services.clients import Producer, Consumer async def spider(user_data: tuple) -> None: """spider :param user_data: :type user_data: tuple :rtype: None """ producer_queue = asyncio.Queue() consum...
21.943396
66
0.638005
0
0
0
0
0
0
1,023
0.879622
109
0.093723
98cd18a83142f071207fd03be7967e2e0520ebe6
9,063
py
Python
test/test_literal.py
hrnciar/rdflib
d507fdac93be2ec3e35882e3efaa5e7c7349fa93
[ "BSD-3-Clause" ]
null
null
null
test/test_literal.py
hrnciar/rdflib
d507fdac93be2ec3e35882e3efaa5e7c7349fa93
[ "BSD-3-Clause" ]
null
null
null
test/test_literal.py
hrnciar/rdflib
d507fdac93be2ec3e35882e3efaa5e7c7349fa93
[ "BSD-3-Clause" ]
null
null
null
import unittest import datetime import rdflib # needed for eval(repr(...)) below from rdflib.term import Literal, URIRef, _XSD_DOUBLE, bind, _XSD_BOOLEAN from rdflib.namespace import XSD def uformat(s): return s.replace("u'", "'") class TestLiteral(unittest.TestCase): def setUp(self): pass de...
33.69145
98
0.580051
8,754
0.965905
0
0
727
0.080216
0
0
1,714
0.189121
98cd74ddbd3fcee3b46641490c05dc6a010713cd
2,472
py
Python
src/messages/text/ruling.py
rkulyn/telegram-dutch-taxbot
f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1
[ "MIT" ]
2
2020-02-27T13:15:07.000Z
2020-09-19T15:19:29.000Z
src/messages/text/ruling.py
rkulyn/telegram-dutch-taxbot
f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1
[ "MIT" ]
null
null
null
src/messages/text/ruling.py
rkulyn/telegram-dutch-taxbot
f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1
[ "MIT" ]
null
null
null
import telegram from emoji import emojize from .base import TextMessageBase class RulingHelpTextMessage(TextMessageBase): """ Ruling help message. Taken from: https://www.iamexpat.nl/expat-info/taxation/30-percent-ruling/requirements """ def get_text(self): message = emojize( ...
44.142857
121
0.607605
2,392
0.967638
0
0
0
0
0
0
1,780
0.720065
98cecf3619ad0f5f809b91b86260d60284ee57d7
14,312
py
Python
extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
import os os.environ['CUDA_VISIBLE_DEVICES']='0' from common import * from dataset import * from model import * def valid_augment(image, mask, infor): return image, mask, infor def train_augment(image, mask, infor): u=np.random.choice(3) if u==0: pass elif u==1: image, mask = do_...
33.995249
180
0.523896
0
0
0
0
0
0
0
0
3,571
0.249511
98d09bdc81e45d8b676af2c3e285dd5d038ee1da
1,283
py
Python
city_coord_download.py
Yuchen971/Chinese-city-level-geojson
51f8d3d336f3e335b15bbf37882a9f248f0e6461
[ "MIT" ]
null
null
null
city_coord_download.py
Yuchen971/Chinese-city-level-geojson
51f8d3d336f3e335b15bbf37882a9f248f0e6461
[ "MIT" ]
null
null
null
city_coord_download.py
Yuchen971/Chinese-city-level-geojson
51f8d3d336f3e335b15bbf37882a9f248f0e6461
[ "MIT" ]
null
null
null
import requests import os def get_json(save_dir, adcode): # 获取当前地图轮廓 base_url = 'https://geo.datav.aliyun.com/areas/bound/' + str(adcode) + '.json' full_url = 'https://geo.datav.aliyun.com/areas/bound/' + str(adcode) + '_full.json' base_r = requests.get(base_url) if base_r.status_code == 200: ...
44.241379
87
0.626656
0
0
0
0
0
0
0
0
310
0.234671
98d0ac63dc3b2801dd2a6ec85e229c55affc71b1
703
py
Python
myproject/core/clusterAnalysis.py
xiaoxiansheng19/data_analysis
9e05aada3f545472500e04225d8537b7f0f90a85
[ "MIT" ]
null
null
null
myproject/core/clusterAnalysis.py
xiaoxiansheng19/data_analysis
9e05aada3f545472500e04225d8537b7f0f90a85
[ "MIT" ]
null
null
null
myproject/core/clusterAnalysis.py
xiaoxiansheng19/data_analysis
9e05aada3f545472500e04225d8537b7f0f90a85
[ "MIT" ]
null
null
null
# from sklearn.cluster import DBSCAN,KMeans # # # def run(data,radius=300): # res={} # # 默认参数 epsilon=0.001, min_samples=200 # epsilon = radius / 100000 # # epsilon = 0.003 # min_samples = 100 # db = DBSCAN(eps=epsilon, min_samples=min_samples) # # eps表示两个向量可以被视作为同一个类的最大的距离 # # min_sampl...
33.47619
76
0.627312
0
0
0
0
0
0
0
0
813
0.97599
98d0b391f82dbbbda80cf6f637cf8415548b806e
1,881
py
Python
verticapy/tests/vDataFrame/test_vDF_create.py
sitingren/VerticaPy
aa18f4f1277e264005de2d1a8646c28acd1ba137
[ "Apache-2.0" ]
null
null
null
verticapy/tests/vDataFrame/test_vDF_create.py
sitingren/VerticaPy
aa18f4f1277e264005de2d1a8646c28acd1ba137
[ "Apache-2.0" ]
null
null
null
verticapy/tests/vDataFrame/test_vDF_create.py
sitingren/VerticaPy
aa18f4f1277e264005de2d1a8646c28acd1ba137
[ "Apache-2.0" ]
null
null
null
# (c) Copyright [2018-2021] Micro Focus or one of its affiliates. # 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 applicabl...
34.2
88
0.725678
845
0.449229
255
0.135566
406
0.215843
0
0
742
0.394471
98d33c72cdff1bb8b3302772a68873ef14217bfa
353
py
Python
Solutions/beta/beta_is_it_an_isogram.py
citrok25/Codewars-1
dc641c5079e2e8b5955eb027fd15427e5bdb2e26
[ "MIT" ]
46
2017-08-24T09:27:57.000Z
2022-02-25T02:24:33.000Z
Solutions/beta/beta_is_it_an_isogram.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
null
null
null
Solutions/beta/beta_is_it_an_isogram.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
35
2017-08-01T22:09:48.000Z
2022-02-18T17:21:37.000Z
import re from collections import Counter def is_isogram(word): if not isinstance(word, str) or word == '': return False word = {j for i,j in Counter( re.sub('[^a-z]', '', word.lower()) ).most_common() ...
32.090909
67
0.430595
0
0
0
0
0
0
0
0
12
0.033994
98d39e717fc52a479b273f0813ba804a39854ac0
1,011
py
Python
p23_Merge_k_Sorted_Lists.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p23_Merge_k_Sorted_Lists.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p23_Merge_k_Sorted_Lists.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 23 - Difficulty: Hard - Brief problem description: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 1->1->2->3->4->4->5->6 - Solution Summary: - Used Resources: --- Bo Zhou ''' # ...
20.22
98
0.565776
541
0.535114
0
0
0
0
0
0
461
0.455984
98d3b83719bd7419b5fbeccf9de154866fb50efc
117
py
Python
flocx_ui/content/flocx/views.py
whitel/flocx-ui
3887882f1a7a650850bda9d7627cf6ebcc6c32e8
[ "Apache-2.0" ]
null
null
null
flocx_ui/content/flocx/views.py
whitel/flocx-ui
3887882f1a7a650850bda9d7627cf6ebcc6c32e8
[ "Apache-2.0" ]
null
null
null
flocx_ui/content/flocx/views.py
whitel/flocx-ui
3887882f1a7a650850bda9d7627cf6ebcc6c32e8
[ "Apache-2.0" ]
null
null
null
from django.views import generic class IndexView(generic.TemplateView): template_name = 'project/flocx/index.html'
29.25
44
0.811966
83
0.709402
0
0
0
0
0
0
26
0.222222
98d56156be74bebcd376e40f41b92a8ab49e898e
5,833
py
Python
wificontrol/utils/networkstranslate.py
patrislav1/pywificontrol
1edf9cdb95158804033dba8fcb860e5214ded10f
[ "BSD-3-Clause" ]
1
2019-02-12T14:08:08.000Z
2019-02-12T14:08:08.000Z
wificontrol/utils/networkstranslate.py
patrislav1/pywificontrol
1edf9cdb95158804033dba8fcb860e5214ded10f
[ "BSD-3-Clause" ]
null
null
null
wificontrol/utils/networkstranslate.py
patrislav1/pywificontrol
1edf9cdb95158804033dba8fcb860e5214ded10f
[ "BSD-3-Clause" ]
2
2018-12-05T15:55:22.000Z
2019-01-28T03:44:21.000Z
# Written by Ivan Sapozhkov and Denis Chagin <denis.chagin@emlid.com> # # Copyright (c) 2016, Emlid Limited # All rights reserved. # # Redistribution and use in source and binary forms, # with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code ...
36.006173
113
0.603806
2,987
0.512086
2,305
0.395165
0
0
0
0
2,509
0.430139
98d57c6c79fbcfbe80f6e85abd3550ed59d42da1
22,613
py
Python
src/LaminariaCore.py
MrKelpy/IFXG
695865a8140fdf258a643ee29d6439a59037bc99
[ "MIT" ]
null
null
null
src/LaminariaCore.py
MrKelpy/IFXG
695865a8140fdf258a643ee29d6439a59037bc99
[ "MIT" ]
null
null
null
src/LaminariaCore.py
MrKelpy/IFXG
695865a8140fdf258a643ee29d6439a59037bc99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module is distributed as part of the Laminaria Core (Python Version). Get the Source Code in GitHub: https://github.com/MrKelpy/LaminariaCore The LaminariaCore is Open Source and distributed under the MIT License """ # Built-in Imports import datetime import random import asyncio impo...
35.388106
139
0.618007
0
0
0
0
0
0
17,958
0.794145
12,040
0.532437
98d580323bddffeab7acfa9058f08c58277e005a
1,280
py
Python
examples/api/default_value.py
clamdad/atom
45d8a2e696002914dd5b71c150edbe54e9ba1e59
[ "BSD-3-Clause-Clear" ]
222
2015-01-01T10:16:41.000Z
2022-03-15T21:28:08.000Z
examples/api/default_value.py
clamdad/atom
45d8a2e696002914dd5b71c150edbe54e9ba1e59
[ "BSD-3-Clause-Clear" ]
100
2015-01-28T16:26:04.000Z
2022-03-29T07:17:44.000Z
examples/api/default_value.py
clamdad/atom
45d8a2e696002914dd5b71c150edbe54e9ba1e59
[ "BSD-3-Clause-Clear" ]
45
2015-01-05T14:08:13.000Z
2022-01-31T14:17:20.000Z
# -------------------------------------------------------------------------------------- # Copyright (c) 2013-2021, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # --------------------------------------...
24.615385
88
0.604688
278
0.217188
0
0
0
0
0
0
762
0.595313
98d5c4c121e4fde76563c5c0ac59d5c2ef8f0cbc
23,139
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # # Copyright (C) 2007 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General ...
35.543779
107
0.563075
11,852
0.512209
9,202
0.397684
0
0
0
0
11,552
0.499244
98d7520f9994f6836e73faaf42f63009eee0dc64
697
py
Python
project/cli/event.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/cli/event.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/cli/event.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import click from flask.cli import AppGroup from project import app, db from project.dateutils import berlin_tz from project.services.event import ( get_recurring_events, update_event_dates_with_recurrence_rule, ) event_cli = AppGroup("event") @event_cli.command("update-recurring-dates") def update_recurrin...
24.034483
72
0.746055
0
0
0
0
407
0.583931
0
0
150
0.215208
98d900684301053ffd4e6344e16abaa1c0d10ed9
3,647
py
Python
test/functional/examples/test_examples.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
null
null
null
test/functional/examples/test_examples.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
null
null
null
test/functional/examples/test_examples.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
1
2019-09-11T09:13:18.000Z
2019-09-11T09:13:18.000Z
import os import re import sys import subprocess import pytest from testplan.common.utils.path import change_directory import platform ON_WINDOWS = platform.system() == 'Windows' KNOWN_EXCEPTIONS = [ "TclError: Can't find a usable init\.tcl in the following directories:", # Matplotlib module improperly installe...
34.733333
166
0.636413
0
0
0
0
1,562
0.428297
0
0
1,395
0.382506
98db431598c035c6864fd313e00c493666f532f6
1,223
py
Python
peco/template/template.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
peco/template/template.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
peco/template/template.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
from io import StringIO class Template: """ this has information that parsed source code. you can get rendered text with .render() and .render_string() """ def __init__(self, sentencenode, scope): self.sentencenode = sentencenode self.scope = scope def render(self, stream, ...
23.519231
66
0.555192
1,195
0.977105
0
0
0
0
0
0
631
0.515944
98dc08bcdfcddaf7d2d055024948658ae151bf17
2,342
py
Python
mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
from core import getattr_path from rest_framework import status from credit.tests.test_views.test_credit_list.test_security_credit_list import SecurityCreditListTestCase class CreditListWithBlankStringFiltersTestCase(SecurityCreditListTestCase): def assertAllResponsesHaveBlankField(self, filters, blank_fields, e...
36.59375
105
0.634927
2,168
0.925705
0
0
0
0
0
0
371
0.158412
98dc59660d9259931f06beb23b9db7e987e199a4
3,800
py
Python
vipermonkey/core/filetype.py
lap1nou/ViperMonkey
631d242f43108226bb25ed91e773a274012dc8c2
[ "Unlicense" ]
874
2016-09-29T08:19:00.000Z
2022-03-28T03:34:16.000Z
vipermonkey/core/filetype.py
Mercury-180/ViperMonkey
1045dadcf7bebedc126ca36d25475e413196d053
[ "Unlicense" ]
94
2016-09-30T17:03:36.000Z
2022-03-01T17:25:26.000Z
vipermonkey/core/filetype.py
Mercury-180/ViperMonkey
1045dadcf7bebedc126ca36d25475e413196d053
[ "Unlicense" ]
186
2016-09-29T10:59:37.000Z
2022-03-26T10:20:38.000Z
""" Check for Office file types ViperMonkey is a specialized engine to parse, analyze and interpret Microsoft VBA macros (Visual Basic for Applications), mainly for malware analysis. Author: Philippe Lagadec - http://www.decalage.info License: BSD, see source code or documentation Project Repository: https://github....
33.043478
84
0.678158
0
0
0
0
0
0
0
0
2,518
0.662632
98dec69515aeffc54b77de9f6161248b53aa1b30
2,699
py
Python
packs/kubernetes/tests/test_third_party_resource.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/kubernetes/tests/test_third_party_resource.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/kubernetes/tests/test_third_party_resource.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from st2tests.base import BaseSensorTestCase from third_party_resource import ThirdPartyResource class ThirdPartyResourceTestCase(BaseSensorTestCase): sensor_cls = ThirdPartyResource def test_k8s_object_to_st2_trigger_bad_object(self): k8s_obj = { 'type': 'kanye', 'object': {...
40.283582
90
0.567247
2,598
0.962579
0
0
0
0
0
0
693
0.256762
98df6d63c240e8262eac8f0396a8b8f0ecd76ac8
10,728
py
Python
PrometheusScrapper/scrapper.py
masterchef/webscraper
f47220e941980e2a6dda593d74696062784062e1
[ "MIT" ]
null
null
null
PrometheusScrapper/scrapper.py
masterchef/webscraper
f47220e941980e2a6dda593d74696062784062e1
[ "MIT" ]
null
null
null
PrometheusScrapper/scrapper.py
masterchef/webscraper
f47220e941980e2a6dda593d74696062784062e1
[ "MIT" ]
null
null
null
import datetime import getpass import logging import os import pathlib import platform import re import smtplib import sys from contextlib import contextmanager from email.message import EmailMessage from functools import wraps import azure.functions as func import click import gspread import pandas as pd from apsched...
34.495177
175
0.646905
0
0
788
0.073453
6,201
0.57802
0
0
2,828
0.263609