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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ad86ff306f582b52295bb807123e900f16d76f5 | 818 | py | Python | rss_skill/models.py | frybin/Alexa-Python-Skill | b729d303524a7e7b72c9becb7b7044afea6597fc | [
"MIT"
] | null | null | null | rss_skill/models.py | frybin/Alexa-Python-Skill | b729d303524a7e7b72c9becb7b7044afea6597fc | [
"MIT"
] | null | null | null | rss_skill/models.py | frybin/Alexa-Python-Skill | b729d303524a7e7b72c9becb7b7044afea6597fc | [
"MIT"
] | null | null | null | ####################################
# File name: models.py #
# Author: Fred Rybin #
####################################
from rss_skill import db
| 31.461538 | 71 | 0.572127 |
5adaa94654c12d575666ad0a6b6cf47ac7a0cb0e | 1,120 | py | Python | examples/cartpole_example/test/cartpole_plot_model_NN_cloop.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | 17 | 2019-11-15T06:27:05.000Z | 2021-10-02T14:24:25.000Z | examples/cartpole_example/test/cartpole_plot_model_NN_cloop.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | null | null | null | examples/cartpole_example/test/cartpole_plot_model_NN_cloop.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | 4 | 2020-09-03T17:01:34.000Z | 2021-11-05T04:09:24.000Z | import os
import pandas as pd
import matplotlib.pyplot as plt
from examples.cartpole_example.cartpole_dynamics import RAD_TO_DEG, DEG_TO_RAD
if __name__ == '__main__':
#df_model = pd.read_csv(os.path.join("data", "pendulum_data_PID.csv"))
#df_nn = pd.read_csv(os.path.join("data", "pendulum_data_PID_NN_model.c... | 35 | 91 | 0.655357 |
5ae07991afc23cb7d9a2fd6ee5c2c60cb7e50a1b | 2,560 | py | Python | unit_tests/test_extract_initial_rules.py | fensta/bracid2019 | ad9bf0b4e44c19f66c1597e857ef6cf70f56a646 | [
"MIT"
] | null | null | null | unit_tests/test_extract_initial_rules.py | fensta/bracid2019 | ad9bf0b4e44c19f66c1597e857ef6cf70f56a646 | [
"MIT"
] | null | null | null | unit_tests/test_extract_initial_rules.py | fensta/bracid2019 | ad9bf0b4e44c19f66c1597e857ef6cf70f56a646 | [
"MIT"
] | null | null | null | from unittest import TestCase
import pandas as pd
from scripts.utils import extract_initial_rules
| 49.230769 | 115 | 0.551563 |
5ae084aea517a9f9539f0a2bcb3c98aac39ffea6 | 2,801 | py | Python | utils/ICMPMaker.py | lanfis/Spider | c66f1d134733318a8714c544050ca42e08b9fe0e | [
"MIT"
] | null | null | null | utils/ICMPMaker.py | lanfis/Spider | c66f1d134733318a8714c544050ca42e08b9fe0e | [
"MIT"
] | null | null | null | utils/ICMPMaker.py | lanfis/Spider | c66f1d134733318a8714c544050ca42e08b9fe0e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# license removed for brevity
from scapy.all import *
import sys
| 27.732673 | 43 | 0.49875 |
5ae239fa618e4a3a7c9f061bc545037094e16454 | 4,462 | py | Python | src/5 - rmn-master-original-adapt/viz.py | barbarasilveiraf/rmn-id-post | 894cd50a65902275bea3553cbe4f1acd8c2b709b | [
"MIT"
] | 99 | 2016-04-12T06:19:35.000Z | 2021-07-23T16:19:10.000Z | src/5 - rmn-master-original-adapt/viz.py | barbarasilveiraf/rmn-id-post | 894cd50a65902275bea3553cbe4f1acd8c2b709b | [
"MIT"
] | 3 | 2018-02-22T21:35:00.000Z | 2019-03-17T09:10:59.000Z | src/5 - rmn-master-original-adapt/viz.py | barbarasilveiraf/rmn-id-post | 894cd50a65902275bea3553cbe4f1acd8c2b709b | [
"MIT"
] | 20 | 2016-04-21T22:23:42.000Z | 2021-04-27T11:49:50.000Z | import csv, cPickle
from numpy import *
import matplotlib.pyplot as plt
import matplotlib
from cycler import cycler
# parse learned descriptors into a dict
# read learned trajectories file
# compute locations to write labels
# only write labels when the
if __name__ == '__main__':
wmap, cmap, bmap = cPickle.lo... | 33.298507 | 86 | 0.536755 |
5ae33aa8d62f63600348c0e8b3870cf2f541e67e | 224 | py | Python | translate.py | vipul-khatana/Hinglish-Sentiment-Analysis | 27b0d0aca736194b8f06b8cccb3e68537d91709f | [
"MIT"
] | 19 | 2017-12-03T14:17:13.000Z | 2022-02-23T19:06:07.000Z | translate.py | vipul-khatana/Hinglish-Sentiment-Analysis | 27b0d0aca736194b8f06b8cccb3e68537d91709f | [
"MIT"
] | 2 | 2018-12-14T12:43:47.000Z | 2020-03-31T15:27:31.000Z | translate.py | vipul-khatana/Hinglish-Sentiment-Analysis | 27b0d0aca736194b8f06b8cccb3e68537d91709f | [
"MIT"
] | 23 | 2018-12-14T04:37:47.000Z | 2022-03-25T09:58:26.000Z | # -*- coding: utf-8 -*-
import numpy as np
from googletrans import Translator
translator = Translator(service_urls=['translate.google.co.in'])
| 22.4 | 64 | 0.727679 |
5ae33bc829b96d32b0f8a98265306f77e0baf4b1 | 3,327 | py | Python | tests/test_views.py | localmed/django-assetfiles | 34089780126989f49e6b890b85a90047704fde37 | [
"MIT"
] | null | null | null | tests/test_views.py | localmed/django-assetfiles | 34089780126989f49e6b890b85a90047704fde37 | [
"MIT"
] | 2 | 2017-02-11T20:10:46.000Z | 2017-02-11T20:10:56.000Z | tests/test_views.py | localmed/django-assetfiles | 34089780126989f49e6b890b85a90047704fde37 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_nose.tools import *
from tests.base import AssetfilesTestCase
| 44.36 | 79 | 0.643823 |
5ae4b5cc0aeea03900ca797b02f8cd9bb0c7e4f9 | 8,083 | py | Python | CHT/cht_data.py | aryam7/WASP | 39f3ac2e8ad3b97124b52cc17e97902e3ec1fbc9 | [
"Apache-2.0"
] | 72 | 2015-03-01T20:59:06.000Z | 2022-03-28T08:48:39.000Z | CHT/cht_data.py | bmvdgeijn/WASP | d3b8447fd7719fffa00b856fd1f27c845554693e | [
"Apache-2.0"
] | 93 | 2015-01-14T23:49:12.000Z | 2022-03-26T16:31:52.000Z | CHT/cht_data.py | aryam7/WASP | 39f3ac2e8ad3b97124b52cc17e97902e3ec1fbc9 | [
"Apache-2.0"
] | 51 | 2015-02-19T23:49:17.000Z | 2021-12-16T01:40:37.000Z | import sys
import gzip
import os
import numpy as np
import util
dup_snp_warn = True
def read_count_matrices(input_filename, shuffle=False, skip=0,
min_counts=0, min_as_counts=0, sample=0):
"""Given an input file that contains paths to input files for all individuals, a... | 35.143478 | 107 | 0.584189 |
5ae519116b2d3198ee0c6685afe6a91a67c62aa2 | 1,023 | py | Python | restaurant/admin.backup.py | syahnur197/restaurant-backend | a0f320b69f3fed293555634f6ac094eaa0574c45 | [
"MIT"
] | null | null | null | restaurant/admin.backup.py | syahnur197/restaurant-backend | a0f320b69f3fed293555634f6ac094eaa0574c45 | [
"MIT"
] | null | null | null | restaurant/admin.backup.py | syahnur197/restaurant-backend | a0f320b69f3fed293555634f6ac094eaa0574c45 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.contenttypes.admin import GenericStackedInline
from .models import Image, Product
"""
To register generics
"""
| 19.673077 | 66 | 0.57087 |
5ae5219951f2f425f340756b442acd6b639dbefb | 1,025 | py | Python | test/twistedutils/test_deferred_deque.py | Wizmann/STUP-Protocol | e06a3442082e5061d2be32be3ffd681675e7ffb5 | [
"MIT"
] | 14 | 2017-05-06T10:14:32.000Z | 2018-07-17T02:58:00.000Z | test/twistedutils/test_deferred_deque.py | Wizmann/STUP-Protocol | e06a3442082e5061d2be32be3ffd681675e7ffb5 | [
"MIT"
] | 2 | 2017-06-13T05:40:18.000Z | 2017-06-13T16:23:01.000Z | test/twistedutils/test_deferred_deque.py | Wizmann/STUP-Protocol | e06a3442082e5061d2be32be3ffd681675e7ffb5 | [
"MIT"
] | 4 | 2017-06-09T20:20:54.000Z | 2018-07-17T02:58:10.000Z | #coding=utf-8
from __future__ import absolute_import
import pytest
import twisted
from twisted.trial import unittest
from twisted.internet.defer import Deferred
from twisted.python import log
from stup.twistedutils.deferred_deque import *
| 27.702703 | 67 | 0.656585 |
5ae7e92c23080d64d3b2328bffafe05bd7e29760 | 1,845 | py | Python | quickspy/net/netengine.py | kirte2849/Quickspy | 767d0fb8ded283aa0d8122d77e15dc411f553994 | [
"MIT"
] | 1 | 2020-07-11T13:41:40.000Z | 2020-07-11T13:41:40.000Z | quickspy/net/netengine.py | kirte2849/Quickspy | 767d0fb8ded283aa0d8122d77e15dc411f553994 | [
"MIT"
] | null | null | null | quickspy/net/netengine.py | kirte2849/Quickspy | 767d0fb8ded283aa0d8122d77e15dc411f553994 | [
"MIT"
] | null | null | null | from lxml import etree
import socket
import re
import aiohttp
from quickspy.color import *
| 24.932432 | 77 | 0.58374 |
5ae91679bd447b62dfc5e7a20c1d3f70d03392e4 | 1,577 | py | Python | yamlapi/demo/tool/read_write_json.py | Ironkubi/yamlapi | efd80cf15a182b0dde03e923f6b3d86c43e5a355 | [
"MIT"
] | 19 | 2020-05-29T09:28:42.000Z | 2022-02-21T06:09:42.000Z | yamlapi/demo/tool/read_write_json.py | Ironkubi/yamlapi | efd80cf15a182b0dde03e923f6b3d86c43e5a355 | [
"MIT"
] | 1 | 2020-03-05T05:45:19.000Z | 2020-07-12T03:08:40.000Z | yamlapi/demo/tool/read_write_json.py | Ironkubi/yamlapi | efd80cf15a182b0dde03e923f6b3d86c43e5a355 | [
"MIT"
] | 7 | 2020-10-21T02:24:44.000Z | 2022-02-21T06:09:22.000Z | import demjson
from setting.project_config import *
def read_json(json_absolute_path):
"""
json
:param json_absolute_path: json
:return:
"""
with open(json_absolute_path, "r", encoding="utf-8") as f:
data_list = demjson.decode(f.read(), encoding="utf-8")
return data_list
#
... | 23.537313 | 77 | 0.590996 |
5aeb5490b47cc2c338ecc2ddb29c186d556812da | 834 | py | Python | instascrape/commands/whoami.py | tnychn/instascrape | 7aaf3c1a1786bbe80059ed6e0d93442a19a6f475 | [
"MIT"
] | 80 | 2020-05-28T17:22:14.000Z | 2022-03-25T07:15:51.000Z | instascrape/commands/whoami.py | AlphaXenon/InstaScrape | 7aaf3c1a1786bbe80059ed6e0d93442a19a6f475 | [
"MIT"
] | 23 | 2020-05-25T12:45:40.000Z | 2022-03-06T05:44:41.000Z | instascrape/commands/whoami.py | AlphaXenon/InstaScrape | 7aaf3c1a1786bbe80059ed6e0d93442a19a6f475 | [
"MIT"
] | 14 | 2020-06-28T05:52:28.000Z | 2022-03-28T04:27:50.000Z | from instascrape.commands import pretty_print, load_obj
from colorama import Fore, Style
| 37.909091 | 110 | 0.651079 |
5aeccbb2cf767b475bd8dc50612ec4c125139aee | 20,131 | py | Python | tests/test_attack_log.py | Thorsten-Sick/PurpleDome | 297d746ef2e17a4207f8274b7fccbe2ce43c4a5f | [
"MIT"
] | 7 | 2021-11-30T19:54:29.000Z | 2022-03-05T23:15:23.000Z | tests/test_attack_log.py | Thorsten-Sick/PurpleDome | 297d746ef2e17a4207f8274b7fccbe2ce43c4a5f | [
"MIT"
] | null | null | null | tests/test_attack_log.py | Thorsten-Sick/PurpleDome | 297d746ef2e17a4207f8274b7fccbe2ce43c4a5f | [
"MIT"
] | 2 | 2021-11-30T11:16:27.000Z | 2022-02-02T13:36:01.000Z | #!/usr/bin/env python3
# Testing the attack log class
import unittest
from app.attack_log import AttackLog
import app.attack_log
# from unittest.mock import patch, call
# from app.exceptions import ConfigurationError
# https://docs.python.org/3/library/unittest.html
| 45.035794 | 136 | 0.581442 |
5aecff436e5a3929428f67cdb7fbb6a29d787f25 | 208 | py | Python | wthpython/return_none/nothing.py | Nobodylesszb/python_study | 56c419df4c5deffa3d14c2ffb03c6a39a7d945be | [
"MIT"
] | null | null | null | wthpython/return_none/nothing.py | Nobodylesszb/python_study | 56c419df4c5deffa3d14c2ffb03c6a39a7d945be | [
"MIT"
] | null | null | null | wthpython/return_none/nothing.py | Nobodylesszb/python_study | 56c419df4c5deffa3d14c2ffb03c6a39a7d945be | [
"MIT"
] | null | null | null | some_list = [1, 2, 3]
some_dict = {
"key_1": 1,
"key_2": 2,
"key_3": 3
}
some_list = some_list.append(4)
some_dict = some_dict.update({"key_4": 4})
print(some_list,some_list)
"""
output:
None None
""" | 13.866667 | 42 | 0.629808 |
5aed22439a90e2493b4099bcd8a18e6edf2db414 | 2,254 | py | Python | python/LPG/CRUD.py | andreluizdsantos/Curso_ADS | bdff1f96cfc22f91423bc14f383f3e69b93deb6f | [
"MIT"
] | 1 | 2020-08-31T16:53:18.000Z | 2020-08-31T16:53:18.000Z | python/LPG/CRUD.py | andreluizdsantos/Curso_ADS | bdff1f96cfc22f91423bc14f383f3e69b93deb6f | [
"MIT"
] | null | null | null | python/LPG/CRUD.py | andreluizdsantos/Curso_ADS | bdff1f96cfc22f91423bc14f383f3e69b93deb6f | [
"MIT"
] | null | null | null | import sqlite3 #importa a bibliotca sqlite3
desc = ["Cdigo", "Nome", "Telefone"]
lista = [None, None]
menu = [' 1 - Cadastrar:', ' 2 - Consultar:', ' 3 - Excluir/Criar Tabela:', ' 9 - Sair e Salvar']
conector = sqlite3.connect('teste.db') #conecta o banco de dados
cursor = conector.cursor() #inicia o cursor
while Tru... | 49 | 170 | 0.632209 |
5af27277b4b6e81b6335be53146342bffc0587f3 | 638 | py | Python | tests/test_CodonDesign.py | dzhang32/codino | 7e799e1ebe52073f26d449a088600769ca46d661 | [
"MIT"
] | null | null | null | tests/test_CodonDesign.py | dzhang32/codino | 7e799e1ebe52073f26d449a088600769ca46d661 | [
"MIT"
] | null | null | null | tests/test_CodonDesign.py | dzhang32/codino | 7e799e1ebe52073f26d449a088600769ca46d661 | [
"MIT"
] | null | null | null | from codino.data import CodonDesign
cd = CodonDesign()
| 29 | 67 | 0.454545 |
5af6d73e24f9be5da73ff272a9a33f09624bf320 | 125 | py | Python | daraja_api/clients/b2c_api_client.py | jakhax/python_daraja_api | 7584679d0c5eaa2beafbfa221254e6370f40f12d | [
"MIT"
] | 4 | 2019-10-30T09:19:58.000Z | 2020-04-18T12:32:09.000Z | daraja_api/clients/b2c_api_client.py | jakhax/python_daraja_api | 7584679d0c5eaa2beafbfa221254e6370f40f12d | [
"MIT"
] | 2 | 2019-10-31T20:39:57.000Z | 2019-10-31T20:41:32.000Z | daraja_api/clients/b2c_api_client.py | jakhax/python_daraja_api | 7584679d0c5eaa2beafbfa221254e6370f40f12d | [
"MIT"
] | 3 | 2020-04-17T23:03:25.000Z | 2021-05-14T08:26:07.000Z | from daraja_api.clients.abstract_api_client import AbstractApiClient | 31.25 | 68 | 0.872 |
5af8db425d863a789a0d294d5dea7672f67dc1bf | 2,085 | py | Python | imdbCrawler/items.py | irfanandriansyah1997/imdbCrawler | 04206b779735777c9025160f8bd8dad34517edfe | [
"MIT"
] | null | null | null | imdbCrawler/items.py | irfanandriansyah1997/imdbCrawler | 04206b779735777c9025160f8bd8dad34517edfe | [
"MIT"
] | null | null | null | imdbCrawler/items.py | irfanandriansyah1997/imdbCrawler | 04206b779735777c9025160f8bd8dad34517edfe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
| 27.8 | 51 | 0.693046 |
5afabc1c92de296fe846af7a2b027458e2772a60 | 3,355 | py | Python | test/query_test.py | mochen1228/PyQuakes | 8e57c72d45e33812e9af5bd01fbce6c96bcd936d | [
"MIT"
] | 2 | 2021-06-07T21:23:30.000Z | 2021-06-08T17:07:52.000Z | test/query_test.py | mochen1228/PyQuakes | 8e57c72d45e33812e9af5bd01fbce6c96bcd936d | [
"MIT"
] | null | null | null | test/query_test.py | mochen1228/PyQuakes | 8e57c72d45e33812e9af5bd01fbce6c96bcd936d | [
"MIT"
] | 1 | 2021-06-07T21:30:09.000Z | 2021-06-07T21:30:09.000Z | import os
import sys
import unittest
from datetime import datetime
import requests
sys.path.append(os.path.abspath('..'))
from src.earthquake_query import EarthquakeQuery
from src.timeframe import TimeFrame
from src.location import Rectangle, Circle, RadiusUnit, GeoRectangle
from src.enum.contributor import Contribut... | 40.914634 | 112 | 0.692697 |
5afbc89d9111d4e29b3746a8d7c2d9d9aed991d4 | 476 | py | Python | requests_respectful/__init__.py | OpenHumans/oh-rescuetime-source | 527aa550d83731521c473a61df385139a8ae75ac | [
"MIT"
] | 113 | 2016-12-14T19:11:22.000Z | 2021-12-21T10:57:27.000Z | requests_respectful/__init__.py | OpenHumans/oh-rescuetime-source | 527aa550d83731521c473a61df385139a8ae75ac | [
"MIT"
] | 39 | 2020-03-25T09:17:52.000Z | 2020-07-23T08:06:42.000Z | requests_respectful/__init__.py | OpenHumans/oh-rescuetime-source | 527aa550d83731521c473a61df385139a8ae75ac | [
"MIT"
] | 17 | 2017-02-02T06:27:35.000Z | 2021-08-17T08:55:19.000Z | """
requests-respectful
A simple but powerful addon to the beloved requests library.
Seamlessly respect service rate limits. Be a good Netizen.
Keeps track of any amount of realms simultaneously. Split-second precision.
:copyright: (c) 2016 by Nicholas Brochu.
:license: Apache 2, see LICENSE f... | 28 | 79 | 0.743697 |
5afbcaba91ba4365de573ce472da35c76ce04cae | 23,170 | py | Python | intersight/models/sdwan_router_node.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/sdwan_router_node.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/sdwan_router_node.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight OpenAPI specification.
The Cisco Intersight OpenAPI specification.
OpenAPI spec version: 1.0.9-1461
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
def to_str(self):
... | 33.77551 | 738 | 0.646137 |
5afce0b13a04c2e681d1b3f1a01d8ccfeafdc806 | 2,256 | py | Python | 2021/day_10.py | tony-sappe/aoc-2021 | 526bec249467c5a28bbf68516c1918b8be9c8045 | [
"MIT"
] | 1 | 2022-02-19T10:13:54.000Z | 2022-02-19T10:13:54.000Z | 2021/day_10.py | tony-sappe/aoc-2021 | 526bec249467c5a28bbf68516c1918b8be9c8045 | [
"MIT"
] | null | null | null | 2021/day_10.py | tony-sappe/aoc-2021 | 526bec249467c5a28bbf68516c1918b8be9c8045 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Iterable, List, Tuple
Sample_Input = """[({(<(())[]>[[{[]{<()<>>
[(()[<>])]({[<{<<[]>>(
{([(<{}[<>[]}>{[]{[(<()>
(((({<>}<{<{<>}{[]{[]{}
[[<[([]))<([[{}[[()]]]
[{[{({}]{}}([{[{{{}}([]
{<[[]]>}<{[{[{[]{()[[[]
[<(<(<(<{}))><([]([]()
<{([([[(<>()){}]>(<<{{
<{([{{}}[<[[[<>{}]]]>... | 26.541176 | 96 | 0.47828 |
85019f3d7d1cae80676d5bebcb02bf3cf14e54ec | 4,028 | py | Python | src/maestro_driver.py | EnstaBretagneClubRobo/ros_maestro | dae1f264beb22e1527eb597a2bed854abba91b96 | [
"MIT"
] | null | null | null | src/maestro_driver.py | EnstaBretagneClubRobo/ros_maestro | dae1f264beb22e1527eb597a2bed854abba91b96 | [
"MIT"
] | null | null | null | src/maestro_driver.py | EnstaBretagneClubRobo/ros_maestro | dae1f264beb22e1527eb597a2bed854abba91b96 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Author : Simon
# Notes : Utilise un message specifique
# Input : Reois les commandes des autres noeuds pour les moteurs sous la forme d'une pin et d'une commande en pwm
import rospy
from std_msgs.msg import Float32
from maestro.maestro import Controller
# from maestro_sim.maest... | 35.964286 | 126 | 0.634558 |
8502fa85f9bc5db59d062f1bedd1d8a262689de3 | 8,733 | py | Python | examples/6tisch/simple-node/simulations/simulation.py | lucasschnugger/contiki-ng | d61a7c60790382168f3ef4823e80a32e1c307f29 | [
"BSD-3-Clause"
] | null | null | null | examples/6tisch/simple-node/simulations/simulation.py | lucasschnugger/contiki-ng | d61a7c60790382168f3ef4823e80a32e1c307f29 | [
"BSD-3-Clause"
] | null | null | null | examples/6tisch/simple-node/simulations/simulation.py | lucasschnugger/contiki-ng | d61a7c60790382168f3ef4823e80a32e1c307f29 | [
"BSD-3-Clause"
] | null | null | null | import os, time, shutil, random, re
from xml.etree import cElementTree as ET
if os.path.isdir("/home/user/"):
cooja_jar = "/home/user/contiki-ng/tools/cooja/dist/cooja.jar"
run_dir = "/home/user/contiki-ng/examples/6tisch/simple-node/"
sim_dir = "/home/user/contiki-ng/examples/6tisch/simple-node/... | 42.6 | 169 | 0.642276 |
850420df0410ab05f70f13324e6ce9a306169223 | 520 | py | Python | app/recipe/urls.py | mans-18/recipe-app-api | 6263bf90e5923d314b725a1cd6b6919378fc0141 | [
"MIT"
] | null | null | null | app/recipe/urls.py | mans-18/recipe-app-api | 6263bf90e5923d314b725a1cd6b6919378fc0141 | [
"MIT"
] | null | null | null | app/recipe/urls.py | mans-18/recipe-app-api | 6263bf90e5923d314b725a1cd6b6919378fc0141 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from recipe import views
# The DefaultRouter auto generates the urls for a viewset.
# One viewset may have multiple urls.
router = DefaultRouter()
router.register('tags', views.TagViewSet)
router.register('ingredients', views.Ingre... | 27.368421 | 58 | 0.769231 |
8506b84f31a4d3a7cbcf45361a19e0b5e9647f9e | 5,217 | py | Python | web2py-appliances-master/TinyWebsite/controllers/pages.py | wantsomechocolate/WantsomeBeanstalk | 8c8a0a80490d04ea52661a3114fd3db8de65a01e | [
"BSD-3-Clause"
] | null | null | null | web2py-appliances-master/TinyWebsite/controllers/pages.py | wantsomechocolate/WantsomeBeanstalk | 8c8a0a80490d04ea52661a3114fd3db8de65a01e | [
"BSD-3-Clause"
] | null | null | null | web2py-appliances-master/TinyWebsite/controllers/pages.py | wantsomechocolate/WantsomeBeanstalk | 8c8a0a80490d04ea52661a3114fd3db8de65a01e | [
"BSD-3-Clause"
] | null | null | null | #from gluon.debug import dbg
def show_page():
"""
Show the requested page
"""
from gluon.tools import prettydate
manager_toolbar = ManagerToolbar('page')
if request.args(0) and request.args(0).isdigit():
page = db.page(request.args(0))
else:
page = db(db.page.url==reque... | 44.589744 | 115 | 0.593253 |
850800f055d743a3abfb7230c39b201f6bb9fe52 | 4,307 | py | Python | tests/unit/test_units.py | timothygebhard/hsr4hci | 0b38c26fac2fee9e564a9ab981fca715d5577e1e | [
"BSD-3-Clause"
] | 1 | 2022-03-24T04:33:06.000Z | 2022-03-24T04:33:06.000Z | tests/unit/test_units.py | timothygebhard/hsr4hci | 0b38c26fac2fee9e564a9ab981fca715d5577e1e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_units.py | timothygebhard/hsr4hci | 0b38c26fac2fee9e564a9ab981fca715d5577e1e | [
"BSD-3-Clause"
] | null | null | null | """
Tests for units.py
"""
# -----------------------------------------------------------------------------
# IMPORTS
# -----------------------------------------------------------------------------
from astropy.units import Quantity, UnitsError, UnitConversionError
import numpy as np
import pytest
from hsr4hci.units... | 34.18254 | 79 | 0.618296 |
8508ac206895abe5c9050cca651b7662bc4d25d1 | 2,309 | py | Python | bpn_init.py | praneethnamburi/blender-ScriptViz | 95554873ecebc0aa6b151d90d2ecf952be4b8880 | [
"MIT"
] | 10 | 2020-06-12T06:39:11.000Z | 2022-02-03T00:24:28.000Z | bpn_init.py | praneethnamburi/blender-ScriptViz | 95554873ecebc0aa6b151d90d2ecf952be4b8880 | [
"MIT"
] | null | null | null | bpn_init.py | praneethnamburi/blender-ScriptViz | 95554873ecebc0aa6b151d90d2ecf952be4b8880 | [
"MIT"
] | 1 | 2021-04-13T01:55:16.000Z | 2021-04-13T01:55:16.000Z | """
Initialization code for apps using Praneeth's blender python module.
Also useful for initalizing blender's workspace.
Usage:
from bpn_init import *
pn.reload() # useful when developing the module alongside the app
env.reset() # if you want to delete objects, this is useful!
"""
#pylint:disable=unused-i... | 29.227848 | 118 | 0.725422 |
850acd6db723d84ce7aaa424a7eb7c331b08e2c7 | 81 | py | Python | main.py | iuliansimion/Chevalley | 9122b1002db99c352533c99f7e143f5be8f8c34b | [
"MIT"
] | null | null | null | main.py | iuliansimion/Chevalley | 9122b1002db99c352533c99f7e143f5be8f8c34b | [
"MIT"
] | null | null | null | main.py | iuliansimion/Chevalley | 9122b1002db99c352533c99f7e143f5be8f8c34b | [
"MIT"
] | null | null | null | import chevalley as chv
tmp = chv.LieType("a", 2)
tmp.curtis.report_latex_all()
| 16.2 | 29 | 0.740741 |
850ce0650d166e24edaa3081144f34f40dfdab65 | 45,045 | py | Python | pynmrstar/entry.py | uwbmrb/PyNMRSTAR | c6e3cdccb4aa44dfbc3b4e984837a6bcde3cf171 | [
"MIT"
] | 16 | 2017-02-02T05:00:50.000Z | 2021-05-25T11:13:15.000Z | pynmrstar/entry.py | uwbmrb/PyNMRSTAR | c6e3cdccb4aa44dfbc3b4e984837a6bcde3cf171 | [
"MIT"
] | 29 | 2016-07-14T21:02:18.000Z | 2021-06-26T17:24:07.000Z | pynmrstar/entry.py | bmrb-io/PyNMRSTAR | 55df5bf7de192e7a6c95f37e0756f09e3f504170 | [
"MIT"
] | 4 | 2016-04-14T16:29:49.000Z | 2017-02-28T02:01:57.000Z | import hashlib
import json
import logging
import warnings
from io import StringIO
from typing import TextIO, BinaryIO, Union, List, Optional, Dict, Any, Tuple
from pynmrstar import definitions, utils, loop as loop_mod, parser as parser_mod, saveframe as saveframe_mod
from pynmrstar._internal import _json_serialize, _i... | 47.971246 | 120 | 0.561772 |
850e1110baca1c14a7d48fb08c645b57e4e9158c | 2,862 | py | Python | tests/compilation/yaml/test_yaml_load_inclusion.py | lasta/preacher | 5e50f8eb930fac72a788e7614eb5a85903f7bde6 | [
"MIT"
] | null | null | null | tests/compilation/yaml/test_yaml_load_inclusion.py | lasta/preacher | 5e50f8eb930fac72a788e7614eb5a85903f7bde6 | [
"MIT"
] | null | null | null | tests/compilation/yaml/test_yaml_load_inclusion.py | lasta/preacher | 5e50f8eb930fac72a788e7614eb5a85903f7bde6 | [
"MIT"
] | null | null | null | import os
from io import StringIO
from pytest import mark, raises
from preacher.compilation.yaml import YamlError, load
| 33.670588 | 87 | 0.636268 |
850f175e41fd56a4797f57b9509f4632b0f87cf8 | 657 | py | Python | death_functions.py | Yamgrenade/Gou | fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded | [
"MIT"
] | null | null | null | death_functions.py | Yamgrenade/Gou | fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded | [
"MIT"
] | 9 | 2019-08-30T15:02:25.000Z | 2019-10-03T17:33:54.000Z | death_functions.py | Yamgrenade/Gou | fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded | [
"MIT"
] | 1 | 2020-07-13T16:29:19.000Z | 2020-07-13T16:29:19.000Z | import tcod as libtcod
from render_functions import RenderOrder
from game_states import GameStates
from game_messages import Message
| 26.28 | 87 | 0.730594 |
850fc416eea9a42898354a3b01b19081bd0c187e | 2,370 | py | Python | facebook_post_scrapper.py | dev-strender/facebook_scrapper | 400a16bf54e2b3dcb3fd3bac62df96e5fe418b15 | [
"MIT"
] | 2 | 2015-03-08T12:27:22.000Z | 2015-03-08T12:27:24.000Z | facebook_post_scrapper.py | dev-strender/facebook_scrapper | 400a16bf54e2b3dcb3fd3bac62df96e5fe418b15 | [
"MIT"
] | null | null | null | facebook_post_scrapper.py | dev-strender/facebook_scrapper | 400a16bf54e2b3dcb3fd3bac62df96e5fe418b15 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
#from datetime import datetime
#import facebook
import urllib2
import mechanize
import json
import sys, os
from config import fb_email, fb_pass, app_id, group_id, limit
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
facebook_app_link='https://www.facebook.com/dialog/oauth?scope=manage_... | 34.852941 | 340 | 0.693249 |
85105c4f6fcd9260004a2cb0b270501f073f2833 | 77 | py | Python | curfuel/__init__.py | tamentis/curfuel | 0cf2d06efc452f05d5eedbe53fb48c86c5ec4023 | [
"ISC",
"MIT"
] | 1 | 2020-11-30T10:38:07.000Z | 2020-11-30T10:38:07.000Z | curfuel/__init__.py | tamentis/curfuel | 0cf2d06efc452f05d5eedbe53fb48c86c5ec4023 | [
"ISC",
"MIT"
] | null | null | null | curfuel/__init__.py | tamentis/curfuel | 0cf2d06efc452f05d5eedbe53fb48c86c5ec4023 | [
"ISC",
"MIT"
] | null | null | null | from daemonapp import DaemonApp
from tank import Tank
__version__ = "0.1.1"
| 15.4 | 31 | 0.779221 |
8515a99b3eb2ef4eb36f62853a3bd0233a514cfc | 4,458 | py | Python | tests/cache_test.py | arnib/ssm-cache-python | 298bfc38a15cfd4b0de42412a335b61b9971ba22 | [
"MIT"
] | 1 | 2020-05-25T08:26:55.000Z | 2020-05-25T08:26:55.000Z | tests/cache_test.py | benkehoe/ssm-cache-python | c21c536b7ba38494bfccafea311a853f50360609 | [
"MIT"
] | null | null | null | tests/cache_test.py | benkehoe/ssm-cache-python | c21c536b7ba38494bfccafea311a853f50360609 | [
"MIT"
] | null | null | null | import os
import sys
from datetime import datetime, timedelta
import boto3
from moto import mock_ssm
from . import TestBase
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from ssm_cache import SSMParameter, InvalidParam
| 35.951613 | 82 | 0.651189 |
851700e39249d084847a674d19f6747456e04470 | 8,797 | py | Python | bk7084/graphics/util.py | bk7084/framework | c364174409c63dbee90e36d8b08fde17df482e8c | [
"Apache-2.0"
] | 1 | 2022-03-29T10:25:10.000Z | 2022-03-29T10:25:10.000Z | bk7084/graphics/util.py | bk7084/framework | c364174409c63dbee90e36d8b08fde17df482e8c | [
"Apache-2.0"
] | 3 | 2021-11-18T23:35:40.000Z | 2021-12-02T20:00:06.000Z | bk7084/graphics/util.py | bk7084/framework | c364174409c63dbee90e36d8b08fde17df482e8c | [
"Apache-2.0"
] | null | null | null | import abc
import atexit
import enum
import re
import OpenGL.error
from .variable import glsl_types
from .. import gl
import uuid
def delete(self):
self._delete()
# Valid OpenGL buffer binding targets.
# Valid OpenGL buffer data storage.
# https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/g... | 33.704981 | 125 | 0.636353 |
85184c796f1842707b6d4adf1b17e780221e13fb | 1,403 | py | Python | autograd/optim.py | brandontrabucco/autograd | 38687c67d253a1347c1bba6445169e43f1db63e4 | [
"MIT"
] | null | null | null | autograd/optim.py | brandontrabucco/autograd | 38687c67d253a1347c1bba6445169e43f1db63e4 | [
"MIT"
] | null | null | null | autograd/optim.py | brandontrabucco/autograd | 38687c67d253a1347c1bba6445169e43f1db63e4 | [
"MIT"
] | null | null | null | """Author: Brandon Trabucco, Copyright 2019
Implements dynamic computational graphs with an interface like pytorch.
Also uses the ADAM optimizer."""
import numpy as np
import autograd.nodes
####################
#### OPTIMIZERS ####
####################
| 31.886364 | 82 | 0.570919 |
85193cd46f2b51d89264d567ad17c94fb2c3a891 | 1,524 | py | Python | src/lcmap/client/api/auth.py | lcmap/client-py | fc356d9b2917f8e2d0e73048c9bf86982caa6676 | [
"NASA-1.3"
] | null | null | null | src/lcmap/client/api/auth.py | lcmap/client-py | fc356d9b2917f8e2d0e73048c9bf86982caa6676 | [
"NASA-1.3"
] | null | null | null | src/lcmap/client/api/auth.py | lcmap/client-py | fc356d9b2917f8e2d0e73048c9bf86982caa6676 | [
"NASA-1.3"
] | null | null | null | """
The authentication module holds the Auth class which is is not only responsible
for the action of logging in, but also providing accessor method to the data
obtained upon a successful login.
"""
import logging
from lcmap.client.api import routes
log = logging.getLogger(__name__)
context = routes.auth_context
lo... | 27.214286 | 79 | 0.629265 |
851a2df4a087af1647dab5ee2a5866f9b05132bb | 1,132 | py | Python | epsilon/projects/models.py | ulyssesalmeida/epsilon | 3d322a883f976d5ec0ae399f4dbbad955fc7f354 | [
"MIT"
] | null | null | null | epsilon/projects/models.py | ulyssesalmeida/epsilon | 3d322a883f976d5ec0ae399f4dbbad955fc7f354 | [
"MIT"
] | null | null | null | epsilon/projects/models.py | ulyssesalmeida/epsilon | 3d322a883f976d5ec0ae399f4dbbad955fc7f354 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext as _
from datetime import date
# Create your models here. | 39.034483 | 91 | 0.672261 |
851ada71457a99d2701c22836c3b69a5e678b2e0 | 872 | py | Python | src/code_challenges/8_5_20.py | rupol/Hash-Tables-Lecture | 5b692ad08a0604e81c7d12d09e912925fa12c512 | [
"MIT"
] | null | null | null | src/code_challenges/8_5_20.py | rupol/Hash-Tables-Lecture | 5b692ad08a0604e81c7d12d09e912925fa12c512 | [
"MIT"
] | null | null | null | src/code_challenges/8_5_20.py | rupol/Hash-Tables-Lecture | 5b692ad08a0604e81c7d12d09e912925fa12c512 | [
"MIT"
] | null | null | null | '''
Print out all of the strings in the following array in alphabetical order, each on a separate line.
['Waltz', 'Tango', 'Viennese Waltz', 'Foxtrot', 'Cha Cha', 'Samba', 'Rumba', 'Paso Doble', 'Jive']
The expected output is:
'Cha Cha'
'Foxtrot'
'Jive'
'Paso Doble'
'Rumba'
'Samba'
'Tango'
'Viennese Waltz'
'Waltz'
You ... | 27.25 | 164 | 0.683486 |
851b02d0eb709b35d28a8b9da557a4b933cbb342 | 7,740 | py | Python | builders/layers/scenegenerators.py | leosampaio/scene-designer | 8a7276067acfde1997d386942aabc44d92436a1a | [
"MIT"
] | 9 | 2021-08-18T17:49:42.000Z | 2022-02-22T02:15:07.000Z | builders/layers/scenegenerators.py | leosampaio/scene-designer | 8a7276067acfde1997d386942aabc44d92436a1a | [
"MIT"
] | null | null | null | builders/layers/scenegenerators.py | leosampaio/scene-designer | 8a7276067acfde1997d386942aabc44d92436a1a | [
"MIT"
] | 1 | 2021-10-02T19:53:03.000Z | 2021-10-02T19:53:03.000Z | import tensorflow as tf
import tensorflow_addons as tfa
import builders
from builders.layers.helpers import build_cnn, get_normalization_2d
from builders.layers import stylegan
from builders.layers.spectral import SNConv2D
from builders.layers.syncbn import SyncBatchNormalization
| 40.736842 | 166 | 0.624548 |
851ccf02531e4e7ff2823ea6d2824dfc6a043bbd | 3,993 | py | Python | nbviewer/tests/base.py | AI-Collaboratory/nbviewer | 1a40e04cc8aad67aa96bb840603f8f568c08d44d | [
"BSD-3-Clause-Clear"
] | 1,840 | 2015-01-01T13:25:44.000Z | 2022-03-17T08:33:01.000Z | nbviewer/tests/base.py | AI-Collaboratory/nbviewer | 1a40e04cc8aad67aa96bb840603f8f568c08d44d | [
"BSD-3-Clause-Clear"
] | 605 | 2015-01-01T16:45:01.000Z | 2022-03-14T15:25:25.000Z | nbviewer/tests/base.py | AI-Collaboratory/nbviewer | 1a40e04cc8aad67aa96bb840603f8f568c08d44d | [
"BSD-3-Clause-Clear"
] | 513 | 2015-01-07T20:54:49.000Z | 2022-02-17T16:04:30.000Z | """Base class for nbviewer tests.
Derived from IPython.html notebook test case in 2.0
"""
# -----------------------------------------------------------------------------
# Copyright (C) Jupyter Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distribut... | 27.163265 | 79 | 0.604308 |
851d822d8861c61e39a3e49eb1c83275bf94c9b9 | 1,311 | py | Python | versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 5 | 2015-04-26T19:39:44.000Z | 2018-12-24T13:17:42.000Z | versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 7 | 2016-03-23T16:52:32.000Z | 2018-07-24T03:08:05.000Z | versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 28 | 2015-04-08T22:39:07.000Z | 2021-12-25T22:16:36.000Z | import sys
import codecs
import json
import os
from extraction.Landmark import RuleSet
from extraction import Landmark
if __name__ == '__main__':
sys.exit(main()) | 31.97561 | 118 | 0.606407 |
851eb3b01fc05359defcd79a79da1cdab1358706 | 322 | py | Python | server.py | cloxichjc/python-web | 5949472af291053243c2f4348a20795ca62f9ddb | [
"Apache-2.0"
] | null | null | null | server.py | cloxichjc/python-web | 5949472af291053243c2f4348a20795ca62f9ddb | [
"Apache-2.0"
] | null | null | null | server.py | cloxichjc/python-web | 5949472af291053243c2f4348a20795ca62f9ddb | [
"Apache-2.0"
] | null | null | null | # server.py
# coding:utf-8
# wsgiref
from wsgiref.simple_server import make_server
# application:
from wsgi import application
# IP8000application:
httpd = make_server('', 8000, application)
print("Serving HTTP on port 8000...")
# HTTP:
httpd.serve_forever()
print("Listening") | 24.769231 | 45 | 0.785714 |
851edb7f446fce929abe41c0aa3fb8e6f6bcca40 | 481 | py | Python | src/bxgateway/services/gateway_broadcast_service.py | blockchain-development-resources/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | 1 | 2021-11-26T07:49:24.000Z | 2021-11-26T07:49:24.000Z | src/bxgateway/services/gateway_broadcast_service.py | beepool/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | null | null | null | src/bxgateway/services/gateway_broadcast_service.py | beepool/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | 1 | 2021-09-06T02:10:08.000Z | 2021-09-06T02:10:08.000Z | from bxcommon.connections.abstract_connection import AbstractConnection
from bxcommon.messages.abstract_message import AbstractMessage
from bxcommon.services.broadcast_service import BroadcastService
| 48.1 | 111 | 0.837838 |
85226a980a1a03102f137cc51fddc714bf4ccf38 | 78 | py | Python | vk_advanced_api/__init__.py | Ar4ikov/vk_advanced_api | 73bd2770f987441fa6b0db8c87e108cbc2b226e8 | [
"MIT"
] | 11 | 2018-03-14T07:51:41.000Z | 2022-02-16T08:20:23.000Z | vk_advanced_api/__init__.py | Ar4ikov/vk_advanced_api | 73bd2770f987441fa6b0db8c87e108cbc2b226e8 | [
"MIT"
] | 1 | 2018-04-10T21:12:07.000Z | 2018-04-17T07:36:41.000Z | vk_advanced_api/__init__.py | Ar4ikov/vk_advanced_api | 73bd2770f987441fa6b0db8c87e108cbc2b226e8 | [
"MIT"
] | 1 | 2018-03-30T07:28:45.000Z | 2018-03-30T07:28:45.000Z | from vk_advanced_api.vkapi import VKAPI
from vk_advanced_api.Auth import Auth | 39 | 40 | 0.871795 |
8523860c41be0e36cd1d844b36558c0d7b16343b | 4,960 | py | Python | active_reward_learning/common/policy.py | david-lindner/idrl | 54cfad330b0598ad4f6621796f2411644e50a6ba | [
"MIT"
] | 9 | 2021-11-20T18:14:38.000Z | 2022-03-20T16:29:48.000Z | active_reward_learning/common/policy.py | david-lindner/idrl | 54cfad330b0598ad4f6621796f2411644e50a6ba | [
"MIT"
] | null | null | null | active_reward_learning/common/policy.py | david-lindner/idrl | 54cfad330b0598ad4f6621796f2411644e50a6ba | [
"MIT"
] | null | null | null | import datetime
import os
import pickle
from abc import ABC, abstractmethod
import gym
import numpy as np
| 30.060606 | 87 | 0.599194 |
8524f725e1219424eff7106f2965054cd2eeb4a1 | 8,384 | py | Python | raft/servers/zre_server.py | adsharma/raft | 49c7bfd472af4c97cc69d7e7e4ffc26808ed88db | [
"MIT"
] | 4 | 2021-01-20T20:29:19.000Z | 2021-09-21T18:20:08.000Z | raft/servers/zre_server.py | adsharma/raft | 49c7bfd472af4c97cc69d7e7e4ffc26808ed88db | [
"MIT"
] | 11 | 2021-01-07T19:06:42.000Z | 2021-08-22T17:57:27.000Z | raft/servers/zre_server.py | adsharma/raft | 49c7bfd472af4c97cc69d7e7e4ffc26808ed88db | [
"MIT"
] | null | null | null | import asyncio
import logging
import threading
import uuid
from cachetools import TTLCache
from pyre import Pyre
from serde.msgpack import from_msgpack, to_msgpack
from typing import List, Union
from ..boards.memory_board import MemoryBoard
from ..messages.append_entries import AppendEntriesMessage, LogEntry, Command... | 35.982833 | 87 | 0.563216 |
8525422df5c9d907c2e3e52b44632726d4428acd | 6,828 | py | Python | loops/ornekUygulama.py | mrtyasar/PythonLearn | b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4 | [
"Apache-2.0"
] | null | null | null | loops/ornekUygulama.py | mrtyasar/PythonLearn | b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4 | [
"Apache-2.0"
] | null | null | null | loops/ornekUygulama.py | mrtyasar/PythonLearn | b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4 | [
"Apache-2.0"
] | null | null | null | #----------------------------------------------#
# Karakter Dizilerinin eriini Karlatrma
#----------------------------------------------#
#elimizde iki farkl metin var
ilkMetin = "asdasfddgdhfjfdgdfkgjdfklgjdfklgjdfkghdfjghjklsdhajlsdhjkjhkhjjh"
ikinciMetin = "sdfsudoryeufsjkdfhdjklghjdfklruseldhfjlkdshfljskeeuf"
#pr... | 35.936842 | 747 | 0.733304 |
8527867363759e9aaf795447f6ea1b7805273895 | 476 | py | Python | tests/constraints/test_minLength.py | vincentchevrier/tableschema-py | d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1 | [
"MIT"
] | 224 | 2017-04-11T11:29:48.000Z | 2022-03-26T18:34:50.000Z | tests/constraints/test_minLength.py | vincentchevrier/tableschema-py | d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1 | [
"MIT"
] | 111 | 2017-03-28T19:02:01.000Z | 2021-12-20T08:42:21.000Z | tests/constraints/test_minLength.py | vincentchevrier/tableschema-py | d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1 | [
"MIT"
] | 40 | 2017-04-01T08:21:57.000Z | 2021-02-28T23:52:07.000Z | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import pytest
from tableschema import constraints
# Tests
| 23.8 | 67 | 0.735294 |
85284fae5ffd5fddbef7db877d1222f08e75fa2f | 16,667 | py | Python | bubble/bubble_runner.py | cp105/ai611_project | 2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb | [
"Apache-2.0"
] | 1 | 2020-05-18T03:18:11.000Z | 2020-05-18T03:18:11.000Z | bubble/bubble_runner.py | cp105/ai611_project | 2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb | [
"Apache-2.0"
] | null | null | null | bubble/bubble_runner.py | cp105/ai611_project | 2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb | [
"Apache-2.0"
] | 1 | 2020-11-02T08:46:32.000Z | 2020-11-02T08:46:32.000Z | # coding=utf-8
# Copyright 2018 The Dopamine Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 42.845758 | 122 | 0.638927 |
8528bb78af4c1e85b701d3605f8b9052440870fe | 10,830 | py | Python | Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py | hatching/content | 5e00808969b9d56c3f5cbdcb9068b65ac1a6de84 | [
"MIT"
] | 1 | 2021-04-20T10:58:15.000Z | 2021-04-20T10:58:15.000Z | Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py | hatching/content | 5e00808969b9d56c3f5cbdcb9068b65ac1a6de84 | [
"MIT"
] | null | null | null | Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py | hatching/content | 5e00808969b9d56c3f5cbdcb9068b65ac1a6de84 | [
"MIT"
] | 1 | 2021-04-20T20:02:06.000Z | 2021-04-20T20:02:06.000Z | import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
import json
def set_sample_profile(client: Client, **args) -> str:
"""
Used to move a submitted sample from static analysis to behavioural by giving it a profile to run under
"""
sample_id = args... | 27.912371 | 113 | 0.634257 |
85292da369d136efa8309c43f2e4a8b1ef5317f0 | 557 | py | Python | medgen/vocab.py | reece/medgen | 8d57c058315f77769f2a2827737d56682e15dc91 | [
"Apache-2.0"
] | null | null | null | medgen/vocab.py | reece/medgen | 8d57c058315f77769f2a2827737d56682e15dc91 | [
"Apache-2.0"
] | null | null | null | medgen/vocab.py | reece/medgen | 8d57c058315f77769f2a2827737d56682e15dc91 | [
"Apache-2.0"
] | null | null | null | NCBI_GeneID = "NCBI:GeneID"
HGNC_GeneName = "HGNC:Symbol"
UMLS_ConceptID = "UMLS:CUI"
MedGen_ConceptID= "MedGen:UID" | 26.52381 | 61 | 0.664273 |
852c0ab02a12f08a6f0bb83704cd9fe9581e2543 | 7,390 | py | Python | typeddfs/_mixins/_retype_mixin.py | dmyersturnbull/typed-dfs | 57504da6cf2085e96ef62f35afcc2f733a9910e0 | [
"Apache-2.0"
] | 5 | 2020-07-14T14:03:35.000Z | 2022-01-15T03:34:15.000Z | typeddfs/_mixins/_retype_mixin.py | kokellab/typed-dfs | 11c80080446a28e618a379569606f1c1ba387062 | [
"Apache-2.0"
] | 83 | 2021-01-06T06:19:12.000Z | 2022-03-28T03:06:18.000Z | typeddfs/_mixins/_retype_mixin.py | kokellab/typed-dfs | 11c80080446a28e618a379569606f1c1ba387062 | [
"Apache-2.0"
] | null | null | null | """
Mixin that overrides Pandas functions to retype.
"""
import pandas as pd
from pandas.core.frame import DataFrame as _InternalDataFrame
from typeddfs.df_errors import UnsupportedOperationError
__all__ = ["_RetypeMixin"]
| 31.313559 | 94 | 0.620568 |
852c717ab6013f61566b41226504075417ed71cd | 551 | py | Python | djbver/db/models.py | springkjw/djbver | 671de8090fec885c15ded7a1a8aacc19d544d094 | [
"MIT"
] | null | null | null | djbver/db/models.py | springkjw/djbver | 671de8090fec885c15ded7a1a8aacc19d544d094 | [
"MIT"
] | 5 | 2021-03-30T13:47:57.000Z | 2021-09-22T19:15:26.000Z | djbver/db/models.py | springkjw/djbver | 671de8090fec885c15ded7a1a8aacc19d544d094 | [
"MIT"
] | null | null | null | from django.db import models
__all__ = [
'GenericModel',
'GenericAtiveModel',
]
| 21.192308 | 60 | 0.68784 |
852cff807d09b429ab0d23969412105f94b87e2b | 89 | py | Python | citrination_client/util/quote_finder.py | matSciMalcolm/python-citrination-client | a59a2ddd49b3a4323a3393ce13c81172c9b1b645 | [
"Apache-2.0"
] | 20 | 2016-06-15T18:40:50.000Z | 2022-03-21T11:59:13.000Z | citrination_client/util/quote_finder.py | matSciMalcolm/python-citrination-client | a59a2ddd49b3a4323a3393ce13c81172c9b1b645 | [
"Apache-2.0"
] | 91 | 2015-12-23T18:13:43.000Z | 2020-07-21T21:33:13.000Z | citrination_client/util/quote_finder.py | matSciMalcolm/python-citrination-client | a59a2ddd49b3a4323a3393ce13c81172c9b1b645 | [
"Apache-2.0"
] | 18 | 2016-07-19T15:33:18.000Z | 2022-03-02T19:42:24.000Z | try:
from urllib.parse import quote
except ImportError:
from urllib import quote
| 17.8 | 34 | 0.752809 |
516b7b328aa661fb5cfc6cbe4557688406fd3782 | 488 | py | Python | doi_request/controller.py | joffilyfe/doi_request | 870c6b346d7b28789e45cfdae01dcc0f47dafd43 | [
"BSD-2-Clause"
] | null | null | null | doi_request/controller.py | joffilyfe/doi_request | 870c6b346d7b28789e45cfdae01dcc0f47dafd43 | [
"BSD-2-Clause"
] | null | null | null | doi_request/controller.py | joffilyfe/doi_request | 870c6b346d7b28789e45cfdae01dcc0f47dafd43 | [
"BSD-2-Clause"
] | null | null | null | import logging
from tasks.celery import registry_dispatcher_document
logger = logging.getLogger(__name__)
| 23.238095 | 69 | 0.651639 |
516f59ae351411499e663fe5fdd1c79c63235791 | 181 | py | Python | tasks/read_txt_file.py | Adamage/python-training | dd58868420656dc575c4a32304028bdd0215f415 | [
"Apache-2.0"
] | 2 | 2018-09-06T15:29:25.000Z | 2019-09-18T08:59:24.000Z | tasks/read_txt_file.py | Adamage/python-training | dd58868420656dc575c4a32304028bdd0215f415 | [
"Apache-2.0"
] | 1 | 2017-09-13T17:31:43.000Z | 2021-03-15T14:59:50.000Z | tasks/read_txt_file.py | Adamage/python-training | dd58868420656dc575c4a32304028bdd0215f415 | [
"Apache-2.0"
] | null | null | null | with open('example.txt') as file:
all_lines = file.readlines()
print(all_lines)
for line in all_lines:
if line == "\n":
continue
print(line)
| 22.625 | 33 | 0.563536 |
51700dec9f70b821831074e4298daf70b42e93d4 | 698 | py | Python | tests/common.py | VFXetc/sgsession | 6ae016e376fda26ac8c2fbb48d96b878bd446da2 | [
"BSD-3-Clause"
] | 9 | 2017-04-05T12:38:53.000Z | 2021-06-25T15:41:07.000Z | tests/common.py | vfxetc/sgsession | 6ae016e376fda26ac8c2fbb48d96b878bd446da2 | [
"BSD-3-Clause"
] | null | null | null | tests/common.py | vfxetc/sgsession | 6ae016e376fda26ac8c2fbb48d96b878bd446da2 | [
"BSD-3-Clause"
] | 3 | 2017-07-04T22:59:15.000Z | 2018-05-19T22:47:26.000Z | from pprint import pprint, pformat
import datetime
import os
from sgmock import Fixture
from sgmock import TestCase
_shotgun_server = os.environ.get('SHOTGUN', 'mock')
if _shotgun_server == 'mock':
from sgmock import Shotgun, ShotgunError, Fault
else:
from shotgun_api3 import ShotgunError, Fault
import sh... | 24.928571 | 87 | 0.739255 |
5170d881c7a8df80f7334c36da539ccea741fdfe | 1,729 | py | Python | PI_SimData1.py | pbuckner/xppython3-demos | 8b6441da93c8982faa90d84d81f7c8b1ba7b1571 | [
"MIT"
] | 1 | 2021-09-21T18:48:38.000Z | 2021-09-21T18:48:38.000Z | PI_SimData1.py | pbuckner/xppython3-demos | 8b6441da93c8982faa90d84d81f7c8b1ba7b1571 | [
"MIT"
] | 1 | 2022-01-11T05:56:15.000Z | 2022-01-16T15:53:21.000Z | PI_SimData1.py | pbuckner/xppython3-demos | 8b6441da93c8982faa90d84d81f7c8b1ba7b1571 | [
"MIT"
] | null | null | null | """
SimData1.py
Ported to Python by Sandy Barbour - 28/04/2005
Ported to XPPython3 by Peter Buckner - 2-Aug-2020
This example demonstrates how to interact with X-Plane by reading and writing
data. This example creates menus items that change the nav-1 radio frequency.
"""
import xp
| 35.285714 | 116 | 0.651822 |
5173842aa5e2f1c4e322cf90b90360c1906a92d2 | 2,964 | py | Python | chimera_app/config.py | lennyhans/steam-buddy | 73a6c820a33302c86ef5c5988550dd48bc110ed5 | [
"MIT"
] | 76 | 2019-11-30T17:35:55.000Z | 2021-06-06T23:12:31.000Z | chimera_app/config.py | tsimouris/AppHub | 8925366da6cb001117be5f39af5417a3107ff3b4 | [
"MIT"
] | 130 | 2019-11-16T00:34:12.000Z | 2021-06-13T13:14:01.000Z | chimera_app/config.py | tsimouris/AppHub | 8925366da6cb001117be5f39af5417a3107ff3b4 | [
"MIT"
] | 15 | 2019-11-07T18:32:25.000Z | 2021-06-12T20:55:40.000Z | import os
from chimera_app.settings import Settings
import chimera_app.context as context
from chimera_app.ftp.server import Server as FTPServer
from chimera_app.authenticator import Authenticator, generate_password
from chimera_app.ssh_keys import SSHKeys
from chimera_app.steamgrid.steamgrid import Steamgrid
from chim... | 31.870968 | 71 | 0.661943 |
5173f3bf7eb06fb274030ee5d5c05a3722df00ba | 18,234 | py | Python | main.py | KlaudijaMedeksaite/GBUI-voice-project | bd2cd979483e3ac43de5009d148e2e0403f50eda | [
"MIT"
] | null | null | null | main.py | KlaudijaMedeksaite/GBUI-voice-project | bd2cd979483e3ac43de5009d148e2e0403f50eda | [
"MIT"
] | null | null | null | main.py | KlaudijaMedeksaite/GBUI-voice-project | bd2cd979483e3ac43de5009d148e2e0403f50eda | [
"MIT"
] | null | null | null | import time
import playsound
import os
import random
from gtts.lang import tts_langs
from deep_translator import (GoogleTranslator)
import pickle
import json
# my classes
import random_test
import mike
import lang_tests
import level_one
import level_two
import level_three
import extras
# game progress vars
parts = {"... | 27.585477 | 111 | 0.530109 |
517478985ae408d05857add2bf5a7f8926b3712f | 268 | py | Python | ztlearn/datasets/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 30 | 2018-03-12T19:16:27.000Z | 2021-12-16T05:32:38.000Z | ztlearn/datasets/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-06-13T03:47:15.000Z | 2018-11-05T21:33:34.000Z | ztlearn/datasets/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-04-30T07:42:47.000Z | 2022-01-31T11:35:53.000Z | # -*- coding: utf-8 -*-
# import module(s)
from . import pima
from . import iris
from . import mnist
from . import cifar
from . import digits
from . import boston
from . import fashion
from . import data_set
# import from data_utils.py
from .data_set import DataSet
| 17.866667 | 29 | 0.727612 |
51754b6a4b3d3608f20c547765de1308a45663f9 | 2,135 | py | Python | changes/utils/shards.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 443 | 2015-01-03T16:28:39.000Z | 2021-04-26T16:39:46.000Z | changes/utils/shards.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 12 | 2015-07-30T19:07:16.000Z | 2016-11-07T23:11:21.000Z | changes/utils/shards.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 47 | 2015-01-09T10:04:00.000Z | 2020-11-18T17:58:19.000Z | import heapq
from flask import current_app
from typing import Any, Callable, cast, Dict, List, Tuple, TypeVar # NOQA
Normalized = TypeVar('Normalized')
def shard(objects, max_shards, object_stats, avg_time, normalize_object_name=cast(Callable[[str], Normalized], lambda x: x)):
# type: (List[str], int, Dict[No... | 41.862745 | 125 | 0.671194 |
51773f027e0351f9e76dd4ae0f17318c0af9c884 | 2,250 | py | Python | lpd/metrics/metric_base.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 4 | 2020-10-02T10:04:19.000Z | 2022-01-19T12:45:02.000Z | lpd/metrics/metric_base.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 1 | 2020-10-06T17:43:57.000Z | 2020-10-06T17:47:43.000Z | lpd/metrics/metric_base.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 1 | 2020-10-03T17:21:32.000Z | 2020-10-03T17:21:32.000Z | from lpd.enums.metric_method import MetricMethod
import torch as T
from lpd.enums.confusion_matrix_based_metric import ConfusionMatrixBasedMetric
| 45.918367 | 164 | 0.725778 |
5177c744c2f039219154881a88b3bbbb875e7877 | 5,989 | py | Python | main.py | Joeization/pyGaen | 172db8a1609da7d6c698d552e5d915df912e9e2d | [
"MIT"
] | 1 | 2019-06-16T16:13:18.000Z | 2019-06-16T16:13:18.000Z | main.py | Joeization/pyGaen | 172db8a1609da7d6c698d552e5d915df912e9e2d | [
"MIT"
] | null | null | null | main.py | Joeization/pyGaen | 172db8a1609da7d6c698d552e5d915df912e9e2d | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pygame
try:
import pygame._view
except ImportError:
pass
from choice import *
from bgm import *
from dialog import *
from settings import *
from text import *
from log import *
#if python says run, then we should run
if __name__ == '__main__':
main()
| 27.855814 | 85 | 0.393054 |
5178c24558ef71ed70c83cdfa68e492916a169e6 | 3,045 | py | Python | ModelDGI.py | shiqitao/AutoGraph | 41f5956c859ff0fb6f87109d5f8731276bdcc2ef | [
"MIT"
] | null | null | null | ModelDGI.py | shiqitao/AutoGraph | 41f5956c859ff0fb6f87109d5f8731276bdcc2ef | [
"MIT"
] | null | null | null | ModelDGI.py | shiqitao/AutoGraph | 41f5956c859ff0fb6f87109d5f8731276bdcc2ef | [
"MIT"
] | null | null | null | import numpy as np
import torch
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from torch.nn import PReLU
from torch_geometric.nn import GCNConv, DeepGraphInfomax
from Result import Result
| 34.602273 | 104 | 0.60821 |
51792436ea974d474c1f1d84607900ce05ba5464 | 4,496 | py | Python | conf/views.py | OnlineJudgeNextGeneration/qduoj2 | c4889d70850bd91ae7f662c02524d0555b6a3ce7 | [
"MIT"
] | 1 | 2018-01-28T07:48:13.000Z | 2018-01-28T07:48:13.000Z | conf/views.py | OnlineJudgeNextGeneration/qduoj2 | c4889d70850bd91ae7f662c02524d0555b6a3ce7 | [
"MIT"
] | null | null | null | conf/views.py | OnlineJudgeNextGeneration/qduoj2 | c4889d70850bd91ae7f662c02524d0555b6a3ce7 | [
"MIT"
] | null | null | null | import hashlib
from django.utils import timezone
from account.decorators import super_admin_required
from judge.dispatcher import process_pending_task
from judge.languages import languages, spj_languages
from options.options import SysOptions
from utils.api import APIView, CSRFExemptAPIView, validate_serializer
from ... | 37.466667 | 101 | 0.627002 |
517946e1d2fb85e5f713dbfc6bcd270e2147f166 | 15,026 | py | Python | gamse/pipelines/__init__.py | wangleon/gamse | ed2a3730469a1eeef3def1beca990e9d2641a53b | [
"Apache-2.0"
] | 10 | 2019-04-10T15:05:50.000Z | 2021-11-28T15:31:38.000Z | gamse/pipelines/__init__.py | wangleon/gamse | ed2a3730469a1eeef3def1beca990e9d2641a53b | [
"Apache-2.0"
] | 15 | 2020-04-07T07:29:27.000Z | 2022-02-19T15:47:04.000Z | gamse/pipelines/__init__.py | wangleon/gamse | ed2a3730469a1eeef3def1beca990e9d2641a53b | [
"Apache-2.0"
] | 2 | 2020-04-02T09:04:27.000Z | 2020-10-14T15:29:10.000Z | import os
import re
import sys
import shutil
import logging
logger = logging.getLogger(__name__)
import configparser
import numpy as np
import astropy.io.fits as fits
import matplotlib.pyplot as plt
import matplotlib.ticker as tck
from ..utils.obslog import read_obslog
from ..utils.misc import write_system_info
fr... | 34.542529 | 80 | 0.535605 |
51799bf4b379e2c4be804aba7006121b1c6cccf6 | 2,137 | py | Python | smartmin/csv_imports/models.py | nickhargreaves/smartmin | 660a67ec2619af2a766970b3fe3b4369fffb5741 | [
"BSD-3-Clause"
] | 166 | 2015-01-13T13:40:17.000Z | 2022-03-23T09:40:52.000Z | smartmin/csv_imports/models.py | nickhargreaves/smartmin | 660a67ec2619af2a766970b3fe3b4369fffb5741 | [
"BSD-3-Clause"
] | 71 | 2015-01-08T17:02:31.000Z | 2022-02-10T12:43:27.000Z | smartmin/csv_imports/models.py | nickhargreaves/smartmin | 660a67ec2619af2a766970b3fe3b4369fffb5741 | [
"BSD-3-Clause"
] | 34 | 2015-01-14T07:19:27.000Z | 2021-02-19T20:41:02.000Z | import os
from django.db import models
from django.utils import timezone
from django.utils.module_loading import import_string
from smartmin.models import SmartModel
| 30.971014 | 119 | 0.685073 |
517c72830a031351a68c7d69fc4b0b87b4a8a950 | 975 | py | Python | src/django/api/management/commands/processfixtures.py | azavea/open-apparel-registry | 20f7a6d502d9152c85ee7f2696b25b6badf98924 | [
"MIT"
] | 32 | 2019-01-26T05:04:03.000Z | 2022-03-11T15:09:09.000Z | src/django/api/management/commands/processfixtures.py | azavea/open-apparel-registry | 20f7a6d502d9152c85ee7f2696b25b6badf98924 | [
"MIT"
] | 1,586 | 2019-01-15T21:54:42.000Z | 2022-03-31T17:38:14.000Z | src/django/api/management/commands/processfixtures.py | azavea/open-apparel-registry | 20f7a6d502d9152c85ee7f2696b25b6badf98924 | [
"MIT"
] | 7 | 2019-02-28T03:32:46.000Z | 2021-11-04T17:03:46.000Z | from django.core.management import call_command
from django.core.management.base import BaseCommand
| 29.545455 | 66 | 0.524103 |
517de1b2145783b157190e784d0cdca748f5eaca | 4,835 | py | Python | processfiles.py | peterfabakker/zipline-utils | 07ad6f56910b7c34c2cb45442b282213eae0efc6 | [
"MIT"
] | null | null | null | processfiles.py | peterfabakker/zipline-utils | 07ad6f56910b7c34c2cb45442b282213eae0efc6 | [
"MIT"
] | null | null | null | processfiles.py | peterfabakker/zipline-utils | 07ad6f56910b7c34c2cb45442b282213eae0efc6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
changefiles.py
Created by Peter Bakker on 2017-10-04.
Copyright (c) 2017 . All rights reserved.
"""
import sys
import os
import numpy as np
import pandas as pd
import datetime
from pytz import timezone
import pytz
import zipline.utils.calendars as cal
from zipline.data.ses... | 43.954545 | 131 | 0.657704 |
517e5c58602149b79c48537ced18f8cf6bd13fb7 | 1,422 | py | Python | walking_char/char_coords.py | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 4 | 2018-07-09T19:38:27.000Z | 2021-03-02T19:31:38.000Z | walking_char/char_coords.py | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | null | null | null | walking_char/char_coords.py | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 2 | 2020-04-25T18:05:30.000Z | 2020-07-14T21:19:17.000Z | # Goes through coordinates of body pieces and find where they are
# relative to the head.
#
# The coordinate values were manually found out by looking at the image
# in gimp. There was a fully "mounted" character at ~2400,~370 on the image
# (y goes up from top->bottom in these coordinates). The values were looked up
#... | 35.55 | 78 | 0.653305 |
517f77cbabf48a0a733c8e41ba122363120f82f4 | 3,773 | py | Python | src/FreeShadownSocks.py | flyou/FreeSSClient | 7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2 | [
"Apache-2.0"
] | 17 | 2017-07-24T12:05:38.000Z | 2019-03-30T19:18:14.000Z | src/FreeShadownSocks.py | flyou/FreeSSClient | 7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2 | [
"Apache-2.0"
] | 3 | 2017-07-25T09:18:09.000Z | 2017-12-05T17:00:31.000Z | src/FreeShadownSocks.py | flyou/FreeSSClient | 7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2 | [
"Apache-2.0"
] | 8 | 2017-07-24T09:24:29.000Z | 2021-05-01T04:55:07.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# --------------------------
# Author fzl
# Date 2017/7/20 15:13
# EMAIL fangjalylong@qq.com
# Desc
# --------------------------
import json
import requests
import sys
from ExeUtil import ExeUtil
type = sys.getfilesystemencoding()
print( "**********************************... | 36.990196 | 102 | 0.424331 |
51830277eec8fa5abb205846898e8caf0f167a74 | 3,651 | py | Python | tests/test_status.py | Nulifier/hp-status | a97132d9c9e037ceb601a506c2742d3dd8610f9b | [
"MIT"
] | null | null | null | tests/test_status.py | Nulifier/hp-status | a97132d9c9e037ceb601a506c2742d3dd8610f9b | [
"MIT"
] | null | null | null | tests/test_status.py | Nulifier/hp-status | a97132d9c9e037ceb601a506c2742d3dd8610f9b | [
"MIT"
] | null | null | null | import unittest
from unittest import mock
from tests import mocks
from hpstatus import status
if __name__ == "__main__":
unittest.main()
| 34.121495 | 104 | 0.751301 |
518478984b76dc79b0984af18a409fa92718c2e2 | 10,703 | py | Python | ngram/language_model.py | brightp-py/rnng-and-rts | c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33 | [
"MIT"
] | null | null | null | ngram/language_model.py | brightp-py/rnng-and-rts | c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33 | [
"MIT"
] | null | null | null | ngram/language_model.py | brightp-py/rnng-and-rts | c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33 | [
"MIT"
] | null | null | null | #!/bin/env python
"""
language_model.py.
Written by joshualoehr.
https://github.com/joshualoehr/ngram-language-model
Edited by Brighton Pauli, 4/20/2022.
"""
import argparse
from itertools import product
from pathlib import Path
import numpy as np
import nltk
from preprocess import preprocess, EOS, UNK
def load_d... | 36.780069 | 79 | 0.608521 |
51854f42a0ad4da0db518cc4b31ddad382a8ad3b | 11,484 | py | Python | code/pyorg/globals/mt_seg.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 12 | 2020-01-08T01:33:02.000Z | 2022-03-16T00:25:34.000Z | code/pyorg/globals/mt_seg.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 8 | 2019-12-19T19:34:56.000Z | 2022-03-10T10:11:28.000Z | code/pyorg/globals/mt_seg.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 2 | 2022-03-30T13:12:22.000Z | 2022-03-30T18:12:10.000Z | """
Collection of functions for helping to segment microtubes in tomograms
# Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry)
# Date: 1.07.17
"""
import csv
import vtk
from .utils import *
from sklearn.cluster import MeanShift
__author__ = 'Antonio Martinez-Sanchez'
# Clean an directory con... | 36.113208 | 120 | 0.638628 |
5185cdb155f8a40b6e352433978a230edcb7bda5 | 2,518 | py | Python | beast.py | Sahil1923/Hacking-Tools | d1d891f84f766a2aee2d579ef16b08136dac1cc6 | [
"Apache-2.0"
] | null | null | null | beast.py | Sahil1923/Hacking-Tools | d1d891f84f766a2aee2d579ef16b08136dac1cc6 | [
"Apache-2.0"
] | null | null | null | beast.py | Sahil1923/Hacking-Tools | d1d891f84f766a2aee2d579ef16b08136dac1cc6 | [
"Apache-2.0"
] | null | null | null | import os
import time
import pyfiglet
os.system("clear")
time.sleep(1)
print(" ############################")
print(" # Script By Mr.Jh #")
print(" # INDIAN HACKERS #")
print(" ############################")
print()
print(" ##################################")
print()
char1 = input("E... | 38.738462 | 85 | 0.605639 |
518655f8a3ef06d9584a599c64e86a70b2d75a88 | 1,725 | py | Python | Medium/396.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 6 | 2017-09-25T18:05:50.000Z | 2019-03-27T00:23:15.000Z | Medium/396.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 1 | 2017-10-29T12:04:41.000Z | 2018-08-16T18:00:37.000Z | Medium/396.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | null | null | null | # ------------------------------
# 396. Rotate Function
#
# Description:
# Given an array of integers A and let n to be its length.
#
# Assume Bk to be an array obtained by rotating the array A k positions clock-wise,
# we define a "rotation function" F on A as follow:
#
# F(k) = 0 * Bk[0] + 1 * Bk[1] + ... + (n-1)... | 28.278689 | 84 | 0.441159 |
5186a078b3e41d3d4070e1fffd53ee9e9fbf03e2 | 1,482 | py | Python | python/932.beautiful-array.py | Zhenye-Na/leetcode | 95196a45f5709ccf7b970ee5ac84a4bf8fe2301e | [
"MIT"
] | 10 | 2019-09-15T00:23:57.000Z | 2022-01-05T12:53:42.000Z | python/932.beautiful-array.py | Zhenye-Na/leetcode | 95196a45f5709ccf7b970ee5ac84a4bf8fe2301e | [
"MIT"
] | 3 | 2021-06-30T00:39:26.000Z | 2021-08-01T07:13:59.000Z | python/932.beautiful-array.py | Zhenye-Na/leetcode | 95196a45f5709ccf7b970ee5ac84a4bf8fe2301e | [
"MIT"
] | 6 | 2020-02-08T02:55:22.000Z | 2022-01-02T22:48:18.000Z | #
# @lc app=leetcode id=932 lang=python3
#
# [932] Beautiful Array
#
# https://leetcode.com/problems/beautiful-array/description/
#
# algorithms
# Medium (61.61%)
# Likes: 650
# Dislikes: 933
# Total Accepted: 29K
# Total Submissions: 46K
# Testcase Example: '4'
#
# An array nums of length n is beautiful if:
#
... | 21.794118 | 79 | 0.571525 |
51874c89c5717dcfb607658189272652ac7ef4e4 | 892 | py | Python | word2vec_train.py | kyucheolsim/gs-word2vec | 14a08f4320cd913694dab5980a5c4467c0ed9613 | [
"MIT"
] | null | null | null | word2vec_train.py | kyucheolsim/gs-word2vec | 14a08f4320cd913694dab5980a5c4467c0ed9613 | [
"MIT"
] | 2 | 2021-03-31T20:05:56.000Z | 2021-12-13T20:46:58.000Z | word2vec_train.py | kyucheolsim/gs-word2vec | 14a08f4320cd913694dab5980a5c4467c0ed9613 | [
"MIT"
] | null | null | null | from konlpy.tag import Mecab
from gensim.models.word2vec import Word2Vec
from W2VData import tokenize, W2VData
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
ADD_POS = True
LOWER = True
SG = 0
ITER = 10
MIN_COUNT = 3
EMBED_SIZE = 100
VOCAB_SIZE = 10000
tok... | 30.758621 | 187 | 0.748879 |
518a5d915b98f8e18ba518f211b0e46a72f71a18 | 3,338 | py | Python | india-covid19india-py/main.py | vpt101/covid-19_data_analysis | 1d02385ad75b650e584e119a8891433aa70e90d8 | [
"CC0-1.0"
] | null | null | null | india-covid19india-py/main.py | vpt101/covid-19_data_analysis | 1d02385ad75b650e584e119a8891433aa70e90d8 | [
"CC0-1.0"
] | null | null | null | india-covid19india-py/main.py | vpt101/covid-19_data_analysis | 1d02385ad75b650e584e119a8891433aa70e90d8 | [
"CC0-1.0"
] | null | null | null | # encoding: utf-8
import sys
sys.path.append(r'./Ind')
from IndStatePlotter import IndStatePlotter
from IndTypes import IndType
from ModellingMode import ModellingMode
import Meta as cc
from Ind import IndParser
from Ind import IndStateAnalyzer as Isa
# from IndStateAnalyzer import IndStateAnalyzer
DEFAULT_MODE... | 30.623853 | 123 | 0.639305 |
518bffc883589adb5a823d3a5c5dcc651a157b64 | 4,203 | py | Python | test/test.py | mtdsousa/antlr4-verilog | c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad | [
"MIT"
] | 3 | 2022-02-15T15:51:43.000Z | 2022-02-21T13:18:09.000Z | test/test.py | mtdsousa/antlr4-verilog | c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad | [
"MIT"
] | 1 | 2022-02-21T12:35:10.000Z | 2022-02-21T16:45:56.000Z | test/test.py | mtdsousa/antlr4-verilog-python | c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad | [
"MIT"
] | null | null | null | '''
Copyright (c) 2022 Marco Diniz Sousa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | 38.916667 | 109 | 0.655722 |
518e296fcd47480555619d28da9b1f803d91b6a5 | 543 | py | Python | test/ep/file_test.py | alanjimenez1/qualibrate-api | d005e35029303ac9dfd8e66cb09c79393a472cad | [
"MIT"
] | null | null | null | test/ep/file_test.py | alanjimenez1/qualibrate-api | d005e35029303ac9dfd8e66cb09c79393a472cad | [
"MIT"
] | null | null | null | test/ep/file_test.py | alanjimenez1/qualibrate-api | d005e35029303ac9dfd8e66cb09c79393a472cad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Test module for User endpoint responses
"""
__author__ = "@canimus"
__license__ = "MIT"
__revision__ = "1.0"
import unittest
from test.ep.utils import ApiRequest as http_client
| 25.857143 | 108 | 0.664825 |
518f9bd6632a478fd29c87c47bda80684e792457 | 1,286 | py | Python | ZDF/CSCI 6212/QuickSelect.py | zdf0221/leetcode | 66e92e29e6619d138401658fa656f41404ccabe3 | [
"MIT"
] | null | null | null | ZDF/CSCI 6212/QuickSelect.py | zdf0221/leetcode | 66e92e29e6619d138401658fa656f41404ccabe3 | [
"MIT"
] | null | null | null | ZDF/CSCI 6212/QuickSelect.py | zdf0221/leetcode | 66e92e29e6619d138401658fa656f41404ccabe3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name QuickSelect
Description :
Author : zdf
date 2018/9/26
-------------------------------------------------
Change Activity:
2018/9/26:13:11
------------------------------------------... | 27.361702 | 88 | 0.452566 |
5194f2f707886fc733209274dbe61c98c74c61c8 | 3,009 | py | Python | main.py | ResByte/torch-gcp-fn | eb343dd144c6a5d828e666db084cb39b70896ff8 | [
"Apache-2.0"
] | 1 | 2020-03-31T21:49:37.000Z | 2020-03-31T21:49:37.000Z | main.py | ResByte/torch-gcp-fn | eb343dd144c6a5d828e666db084cb39b70896ff8 | [
"Apache-2.0"
] | null | null | null | main.py | ResByte/torch-gcp-fn | eb343dd144c6a5d828e666db084cb39b70896ff8 | [
"Apache-2.0"
] | null | null | null | import os
import io
import json
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import models,transforms
from PIL import Image
import time
from flask import jsonify
import logging
logging.basicConfig(level=logging.INFO)
# lazy global
device = None
model = None
imagenet_clas... | 27.605505 | 78 | 0.627119 |
519570b06f319b34b830bc38363fe48ded0d8966 | 3,686 | py | Python | ressonantes/core/models/organization/organization.py | ag-castro/brazil-ongs-mapping | 80f7542d437913ad92cd74b6e456760f61be32ad | [
"Unlicense"
] | 1 | 2020-09-07T17:33:42.000Z | 2020-09-07T17:33:42.000Z | ressonantes/core/models/organization/organization.py | ag-castro/brazil-ongs-mapping | 80f7542d437913ad92cd74b6e456760f61be32ad | [
"Unlicense"
] | null | null | null | ressonantes/core/models/organization/organization.py | ag-castro/brazil-ongs-mapping | 80f7542d437913ad92cd74b6e456760f61be32ad | [
"Unlicense"
] | null | null | null | import random
import string
from datetime import date
from django.db import models
from django.core.validators import validate_email
from django.core.validators import validate_slug
from django.core.validators import validate_unicode_slug
from django.contrib.auth import get_user_model
from django.utils.translation impo... | 30.213115 | 69 | 0.645958 |
5196b7f30facdbb359a3288ac6d9df2fd67191b7 | 988 | py | Python | source/svlib/tests/conftest.py | DomBalint/SecureVision | 311e4744fdc8513079c2e7dcfbc2316035f92793 | [
"MIT"
] | null | null | null | source/svlib/tests/conftest.py | DomBalint/SecureVision | 311e4744fdc8513079c2e7dcfbc2316035f92793 | [
"MIT"
] | null | null | null | source/svlib/tests/conftest.py | DomBalint/SecureVision | 311e4744fdc8513079c2e7dcfbc2316035f92793 | [
"MIT"
] | null | null | null | import os
import pytest
files = ['test1.yaml', 'test2.yaml', 'test3.yaml']
params_configs = [
{
'mail_server': {
'host': 'example11.securevison.intra.net',
'port': '28031'
}
},
{
'kafka': {
'bootstrap_servers': 'example22.securevision.intra.n... | 20.163265 | 75 | 0.574899 |
5196f9c7d01c0adec8869c697882fc216857847d | 643 | py | Python | app.py | miccarrer/copbot | 44c549afd6d80ae516c8615d6b18518b745f9020 | [
"MIT"
] | null | null | null | app.py | miccarrer/copbot | 44c549afd6d80ae516c8615d6b18518b745f9020 | [
"MIT"
] | null | null | null | app.py | miccarrer/copbot | 44c549afd6d80ae516c8615d6b18518b745f9020 | [
"MIT"
] | null | null | null | import logging
from src.config import get_env_var, get_yaml_file
from src.discord.bot import DiscordBot
from src.service import AppService
if __name__ == '__main__':
base_config = get_yaml_file('base')
logging.basicConfig(**base_config['logging'])
try:
logging.info('Starting Bot')
discord... | 29.227273 | 59 | 0.698289 |
51984836ae6425428be2132a8038261f69705e21 | 3,691 | py | Python | app/views/user.py | WishesFire/Epam-Python-Project | d54bbe48d539b0810d9b42b0839a64b035021c6d | [
"Apache-2.0"
] | 1 | 2021-11-18T11:57:02.000Z | 2021-11-18T11:57:02.000Z | app/views/user.py | WishesFire/Epam-project | d54bbe48d539b0810d9b42b0839a64b035021c6d | [
"Apache-2.0"
] | null | null | null | app/views/user.py | WishesFire/Epam-project | d54bbe48d539b0810d9b42b0839a64b035021c6d | [
"Apache-2.0"
] | null | null | null | """
Views:
- `sign_up (/signup)`: Register a new user in the system
- `login (/login)`: Sign in to an existing account
- `logout (/logout)`: Sing out from current account
- `profile (/profile)`: User profile with functions:
- Shows user vacancies
- Create a new vacancy
"""
# pylint: disa... | 30.504132 | 96 | 0.666486 |
51992a037bb72c62719a2b885a904c938dc3ece2 | 9,821 | py | Python | main.py | zypangpang/example_of_lightgbm | c4862253cbb4233f1143c21608f3dd6ff9f59d78 | [
"MIT"
] | null | null | null | main.py | zypangpang/example_of_lightgbm | c4862253cbb4233f1143c21608f3dd6ff9f59d78 | [
"MIT"
] | null | null | null | main.py | zypangpang/example_of_lightgbm | c4862253cbb4233f1143c21608f3dd6ff9f59d78 | [
"MIT"
] | 1 | 2021-10-22T02:36:10.000Z | 2021-10-22T02:36:10.000Z | import numpy as np
import pandas as pd
import lightgbm as lgb
from pathlib import Path
from functools import reduce
from sklearn.metrics import roc_auc_score
import hyperopt
from hyperopt import STATUS_OK, Trials, hp, space_eval, tpe
import utils, feature_selector, preprocess
global_params = {
'CK_var_threshold': ... | 38.363281 | 112 | 0.68099 |
5199e96e2dc3b8315e0ada1e424873f01260bd26 | 174 | py | Python | visualdl/server/log.py | gmhou/VisualDL | fa7b30e09b91c336b1eb900ad799f71cf0db9f94 | [
"Apache-2.0"
] | 1 | 2018-01-19T10:54:38.000Z | 2018-01-19T10:54:38.000Z | visualdl/server/log.py | gmhou/VisualDL | fa7b30e09b91c336b1eb900ad799f71cf0db9f94 | [
"Apache-2.0"
] | null | null | null | visualdl/server/log.py | gmhou/VisualDL | fa7b30e09b91c336b1eb900ad799f71cf0db9f94 | [
"Apache-2.0"
] | null | null | null | import logging
logger = logging
logger.basicConfig(
format='[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s')
logger.getLogger().setLevel(logging.INFO)
| 21.75 | 77 | 0.718391 |
5199f14fdf88726ac3b8eabf6653de80b8972703 | 103 | py | Python | rcnn/dataset/__init__.py | qilei123/MASK_4_RETINA2 | c02a516f37877c52abc6df9d69bb2ac34ab85950 | [
"Apache-2.0"
] | null | null | null | rcnn/dataset/__init__.py | qilei123/MASK_4_RETINA2 | c02a516f37877c52abc6df9d69bb2ac34ab85950 | [
"Apache-2.0"
] | null | null | null | rcnn/dataset/__init__.py | qilei123/MASK_4_RETINA2 | c02a516f37877c52abc6df9d69bb2ac34ab85950 | [
"Apache-2.0"
] | null | null | null | from imdb import IMDB
from pascal_voc import PascalVOC
from coco import coco
from retina import retina
| 20.6 | 32 | 0.84466 |
519bee9e5276c118445215e895dd293662cda568 | 2,693 | py | Python | heic-conv.py | shihaocao/heic-converter | 5a6b068dfbf69c982397d20b69d9c67e260eee82 | [
"MIT"
] | null | null | null | heic-conv.py | shihaocao/heic-converter | 5a6b068dfbf69c982397d20b69d9c67e260eee82 | [
"MIT"
] | 1 | 2021-12-24T07:36:25.000Z | 2021-12-25T23:17:20.000Z | heic-conv.py | shihaocao/heic-converter | 5a6b068dfbf69c982397d20b69d9c67e260eee82 | [
"MIT"
] | 1 | 2021-12-24T01:06:11.000Z | 2021-12-24T01:06:11.000Z | '''A python script for batch converting heic files.'''
import argparse
import os
import subprocess
import time
CMD = "heif-convert"
QUALITY = "-q"
QUALITY_ARG = "99"
AUX_FILE_SUFFIX = "-urn:com:apple:photo:2020:aux:hdrgainmap"
def parse_args() -> argparse.Namespace:
'''Get the args from the command line'''
... | 34.525641 | 112 | 0.678054 |
519d2e3dfdf9c558c8b3e16c368955fda216a00c | 1,251 | py | Python | generate_images.py | rwg1234/sticks | 4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f | [
"MIT"
] | null | null | null | generate_images.py | rwg1234/sticks | 4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f | [
"MIT"
] | null | null | null | generate_images.py | rwg1234/sticks | 4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f | [
"MIT"
] | null | null | null | # Script to create www/assets/sprites/{box,stack}_*.png
# This file is NOT a part of the www/ folder and DOES NOT need to be deployed. It is used for development only.
from PIL import Image
SOURCE_DIRECTORY = "www/assets/matches gens_1-12"
DEST_DIRECTORY = "www/assets/sprites"
for i in range(1, 13):
original_fil... | 43.137931 | 135 | 0.692246 |
519e717718802250addcc03ae24b702964950e74 | 15,237 | py | Python | api/backend/app/namespace/api.py | radsec/ottr | 411559a2bac307594c92d4d14667143cd04625ff | [
"Apache-2.0"
] | 207 | 2021-10-29T20:35:04.000Z | 2022-03-02T08:04:06.000Z | api/backend/app/namespace/api.py | wngn123/ottr | 411559a2bac307594c92d4d14667143cd04625ff | [
"Apache-2.0"
] | 3 | 2021-11-05T05:50:57.000Z | 2022-01-03T06:07:18.000Z | api/backend/app/namespace/api.py | wngn123/ottr | 411559a2bac307594c92d4d14667143cd04625ff | [
"Apache-2.0"
] | 19 | 2021-11-03T06:34:46.000Z | 2022-03-21T14:06:54.000Z | """
Copyright 2021-present Airbnb, 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 law or agreed to in writing, sof... | 50.121711 | 800 | 0.64829 |
519f171ce6f44a916c5bc406a1cd821a75880bb1 | 2,803 | py | Python | my_robot/launch/robot_description.launch.py | arpit6232/ros2_gazebo_integration | a57c781824166722d68b555e21fc48fcf856a0bd | [
"Apache-2.0"
] | null | null | null | my_robot/launch/robot_description.launch.py | arpit6232/ros2_gazebo_integration | a57c781824166722d68b555e21fc48fcf856a0bd | [
"Apache-2.0"
] | null | null | null | my_robot/launch/robot_description.launch.py | arpit6232/ros2_gazebo_integration | a57c781824166722d68b555e21fc48fcf856a0bd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os
import yaml
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.actions import IncludeLaunchDescription
from launch.conditions import IfCondition
from launch.launch_descri... | 30.139785 | 99 | 0.699251 |
51a0718e8863a5231ddc644bc610b93556c2f43d | 1,429 | py | Python | wouso/games/grandchallenge/views.py | AlexandruGhergut/wouso | f26244ff58ae626808ae8c58ccc93d21f9f2666f | [
"Apache-2.0"
] | 117 | 2015-01-02T18:07:33.000Z | 2021-01-06T22:36:25.000Z | wouso/games/grandchallenge/views.py | AlexandruGhergut/wouso | f26244ff58ae626808ae8c58ccc93d21f9f2666f | [
"Apache-2.0"
] | 229 | 2015-01-12T07:07:58.000Z | 2019-10-12T08:27:01.000Z | wouso/games/grandchallenge/views.py | AlexandruGhergut/wouso | f26244ff58ae626808ae8c58ccc93d21f9f2666f | [
"Apache-2.0"
] | 96 | 2015-01-07T05:26:09.000Z | 2020-06-25T07:28:51.000Z | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, render_to_response
from django.template import RequestContext
from models import GrandChallengeGame, GrandChallengeUser
from wouso.core.ui import register_sidebar_block
from wouso.interfac... | 42.029412 | 110 | 0.748775 |
51a2c3962a3a17215f77501362d5256d9fd5774a | 4,091 | py | Python | day_16.py | JamesOwers/aoc2017 | 682e73c3c80562e59cb9a3ce44c152fbd1994b97 | [
"MIT"
] | null | null | null | day_16.py | JamesOwers/aoc2017 | 682e73c3c80562e59cb9a3ce44c152fbd1994b97 | [
"MIT"
] | null | null | null | day_16.py | JamesOwers/aoc2017 | 682e73c3c80562e59cb9a3ce44c152fbd1994b97 | [
"MIT"
] | null | null | null | from __future__ import division, print_function
import os
from my_utils.tests import test_function
import string
MOVE_FUN = {
's': spin,
'x': exchange,
'p': partner
}
def part_1(inst_string, programs=list(string.ascii_lowercase[:16])):
"""Function which calculates the solution to part 1
A... | 30.080882 | 94 | 0.615742 |