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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a29454fa75452cb28ef7fa8567271f51c49e623f | 3,132 | py | Python | tests/run_examples.py | theGreenJedi/neon | b85ba0fbbb0458d8a8599e5ead335959b10318c1 | [
"Apache-2.0"
] | null | null | null | tests/run_examples.py | theGreenJedi/neon | b85ba0fbbb0458d8a8599e5ead335959b10318c1 | [
"Apache-2.0"
] | 3 | 2021-06-08T23:56:39.000Z | 2022-03-12T00:56:34.000Z | tests/run_examples.py | theGreenJedi/neon | b85ba0fbbb0458d8a8599e5ead335959b10318c1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# this script runs all examples and checks that they all
# run without throwing an exception
from __future__ import print_function
import os
import sys
from glob import glob
import subprocess as subp
from datetime import timedelta
from timeit import default_timer as timer
# Modify the following t... | 31.959184 | 98 | 0.678799 |
a296a4a9d7aba1261750f949b22f9a0ca56bbbcf | 5,888 | py | Python | critical/rankorder.py | NECOTIS/CRITICAL | eba2dc9c90936f9cf51e04374081509be433ed10 | [
"BSD-3-Clause"
] | 1 | 2022-02-16T00:59:50.000Z | 2022-02-16T00:59:50.000Z | critical/rankorder.py | NECOTIS/CRITICAL | eba2dc9c90936f9cf51e04374081509be433ed10 | [
"BSD-3-Clause"
] | null | null | null | critical/rankorder.py | NECOTIS/CRITICAL | eba2dc9c90936f9cf51e04374081509be433ed10 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012-2018, NECOTIS
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and th... | 34.432749 | 119 | 0.640625 |
a29750f0ca25c86bb147bca122dfcaad2818dc92 | 2,007 | py | Python | trac/wiki/tests/web_api.py | clubturbo/Trac-1.4.2 | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | [
"BSD-3-Clause"
] | null | null | null | trac/wiki/tests/web_api.py | clubturbo/Trac-1.4.2 | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | [
"BSD-3-Clause"
] | null | null | null | trac/wiki/tests/web_api.py | clubturbo/Trac-1.4.2 | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2014-2020 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at https://trac.edgewall.org/wiki/TracLicense.
#
# This soft... | 34.016949 | 77 | 0.620329 |
a2983711f38540e1e3b5409d4bc00bd0c00c0ae8 | 5,814 | py | Python | main.py | eyalnaor/DeepTemporalSR | 7d8c821431dec3a4c480550c61a6033fcac5e640 | [
"MIT"
] | 38 | 2020-09-04T10:53:50.000Z | 2021-08-29T13:10:41.000Z | main.py | eyalnaor/DeepTemporalSR | 7d8c821431dec3a4c480550c61a6033fcac5e640 | [
"MIT"
] | 1 | 2021-02-24T17:20:58.000Z | 2021-02-24T17:20:58.000Z | main.py | eyalnaor/DeepTemporalSR | 7d8c821431dec3a4c480550c61a6033fcac5e640 | [
"MIT"
] | 7 | 2020-12-03T12:11:49.000Z | 2021-08-16T14:43:28.000Z | import torch
import Network
import Network_res3d
from data_handler import *
import cProfile
import io
import pstats
parser = utils.create_parser()
args = parser.parse_args()
if __name__ == '__main__':
# open comment to allow profiling
# pr = cProfile.Profile()
# pr.enable()
# main()
# pr.disabl... | 46.887097 | 171 | 0.626935 |
a298626351e920d8afa27758b5249b92283fda64 | 308 | py | Python | package_name/__init__.py | netserf/template-python-repo | f6a2612b0e2dfd766c1287abb6e17f13fca44b93 | [
"MIT"
] | null | null | null | package_name/__init__.py | netserf/template-python-repo | f6a2612b0e2dfd766c1287abb6e17f13fca44b93 | [
"MIT"
] | null | null | null | package_name/__init__.py | netserf/template-python-repo | f6a2612b0e2dfd766c1287abb6e17f13fca44b93 | [
"MIT"
] | null | null | null | # `name` is the name of the package as used for `pip install package`
name = "package-name"
# `path` is the name of the package for `import package`
path = name.lower().replace("-", "_").replace(" ", "_")
version = "0.1.0"
author = "Author Name"
author_email = ""
description = "" # summary
license = "MIT"
| 30.8 | 69 | 0.655844 |
a29a495e3f7946f01ad82f159c0ca13bc042ba05 | 1,826 | py | Python | signaling_trajectories.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | signaling_trajectories.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | signaling_trajectories.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | """Transform signaling data to smoothed trajectories."""
import sys
import numpy
import pandas as pd
import geopandas as gpd
import shapely.geometry
import matplotlib.patches
import matplotlib.pyplot as plt
import mobilib.voronoi
SAMPLING = pd.Timedelta('00:01:00')
STD = pd.Timedelta('00:05:00')
if __name__ ==... | 33.2 | 125 | 0.661555 |
a29c18ce763ea0eb8b5497234efc7ee7fced0caa | 440 | py | Python | home/pi/_testing/logging-test.py | rc-bellergy/pxpi | e3d6d1d1a1f6d1fdf53341d314e7d549c8e84a68 | [
"MIT"
] | 26 | 2020-02-16T09:14:16.000Z | 2022-03-28T07:39:47.000Z | home/pi/_testing/logging-test.py | rc-bellergy/pxpi | e3d6d1d1a1f6d1fdf53341d314e7d549c8e84a68 | [
"MIT"
] | 1 | 2020-10-04T03:48:09.000Z | 2020-10-05T01:47:09.000Z | home/pi/_testing/logging-test.py | rc-bellergy/pxpi | e3d6d1d1a1f6d1fdf53341d314e7d549c8e84a68 | [
"MIT"
] | 7 | 2020-10-04T03:45:36.000Z | 2022-02-28T16:54:36.000Z | #!/usr/bin/env python
import logging
import logging.handlers
import os
# Logging to file
dir_path = os.path.dirname(os.path.realpath(__file__))
logging.basicConfig(filename=dir_path + "/test.log", format='%(asctime)s - %(message)s', level=logging.INFO, filemode='w')
# Logging messages to the console
console = loggin... | 25.882353 | 122 | 0.747727 |
a29c642613fdef33219868f8958a1851ae0b81aa | 1,556 | py | Python | test_client.py | ericjmartin/slackview | 28797ca06e13f5c9f97c1755e613c0e402ae0ea4 | [
"MIT"
] | null | null | null | test_client.py | ericjmartin/slackview | 28797ca06e13f5c9f97c1755e613c0e402ae0ea4 | [
"MIT"
] | null | null | null | test_client.py | ericjmartin/slackview | 28797ca06e13f5c9f97c1755e613c0e402ae0ea4 | [
"MIT"
] | null | null | null | import os
from slack_sdk.web import WebClient
from slack_sdk.socket_mode import SocketModeClient
# Initialize SocketModeClient with an app-level token + WebClient
client = SocketModeClient(
# This app-level token will be used only for establishing a connection
app_token=os.environ.get("SLACK_APP_TOKEN")
# ... | 39.897436 | 85 | 0.720437 |
a29c710e6a5af2c146c941aed7a01353e7cc6f77 | 1,968 | py | Python | utils/misc.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 67 | 2021-12-02T05:53:44.000Z | 2022-03-31T07:21:26.000Z | utils/misc.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 13 | 2021-12-05T14:23:46.000Z | 2022-03-25T21:07:20.000Z | utils/misc.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 16 | 2022-01-11T11:48:24.000Z | 2022-03-27T19:20:58.000Z | import os
import time
import random
import logging
import torch
import numpy as np
import yaml
from easydict import EasyDict
from logging import Logger
from tqdm.auto import tqdm
| 24.911392 | 87 | 0.676829 |
a29d7acbfba5a243e1f4a49be6ce4cba089c4b1f | 2,928 | py | Python | tests/test_api.py | mattjm/iam-idbase | d96d1bada5adf4dbad9be212f1015e3d7399a63d | [
"Apache-2.0"
] | null | null | null | tests/test_api.py | mattjm/iam-idbase | d96d1bada5adf4dbad9be212f1015e3d7399a63d | [
"Apache-2.0"
] | null | null | null | tests/test_api.py | mattjm/iam-idbase | d96d1bada5adf4dbad9be212f1015e3d7399a63d | [
"Apache-2.0"
] | null | null | null | from idbase.api import RESTDispatch, LoginStatus
from idbase import exceptions
from django.http import HttpResponse
from mock import MagicMock
import pytest
import json
def test_rest_dispatch_run_get_basic(rest_dispatch, req):
response = rest_dispatch.run(req)
assert response.status_code == 200
assert ... | 30.185567 | 70 | 0.730874 |
a2a205807fc1a9002dcff612423d88ef56c86c00 | 5,885 | py | Python | volatility/volatility/plugins/mac/adiummsgs.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | 2 | 2018-07-16T13:30:40.000Z | 2018-07-17T12:02:05.000Z | volatility/volatility/plugins/mac/adiummsgs.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | volatility/volatility/plugins/mac/adiummsgs.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | 35.884146 | 138 | 0.497026 |
a2a490d7174747d1795eadc9407c26effc4b112a | 14,165 | py | Python | mod_equations-master/mod_equations.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | mod_equations-master/mod_equations.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | mod_equations-master/mod_equations.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Author @55-AA
19 July, 2016
'''
import copy
def gcd(a, b):
"""
Return the greatest common denominator of integers a and b.
gmpy2.gcd(a, b)
"""
while b:
a, b = b, a % b
return a
def egcd(a, b):
"""
ax + by = 1
ax 1 mod b
R... | 27.34556 | 266 | 0.454712 |
a2a4ec18f82420451b7a78afd24b5244e8356daf | 451 | py | Python | main.py | attakei/lantis-web-radio | febf5fe156da4bd60ef9d1d09fe57a62c435a380 | [
"MIT"
] | null | null | null | main.py | attakei/lantis-web-radio | febf5fe156da4bd60ef9d1d09fe57a62c435a380 | [
"MIT"
] | null | null | null | main.py | attakei/lantis-web-radio | febf5fe156da4bd60ef9d1d09fe57a62c435a380 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf8 -*-
import sys
import argparse
from lantis.webradio.commands import bind_subparsers
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers()
bind_subparsers(subparsers)
if __name__ == '__main__':
ret = main()
sys.exit(ret)
| 18.791667 | 52 | 0.687361 |
a2a5a42b6d09e31e44930e2b97a11e3ac6f3bf02 | 6,304 | py | Python | vnpy/app/portfolio_strategy/strategies/daily_amplitude_2_days_volitility_strategy.py | franklili3/vnpy | 4d710553302eb3587e4acb2ff8ce151660fb9c17 | [
"MIT"
] | null | null | null | vnpy/app/portfolio_strategy/strategies/daily_amplitude_2_days_volitility_strategy.py | franklili3/vnpy | 4d710553302eb3587e4acb2ff8ce151660fb9c17 | [
"MIT"
] | null | null | null | vnpy/app/portfolio_strategy/strategies/daily_amplitude_2_days_volitility_strategy.py | franklili3/vnpy | 4d710553302eb3587e4acb2ff8ce151660fb9c17 | [
"MIT"
] | null | null | null | from typing import List, Dict
from datetime import datetime
import numpy as np
from vnpy.app.portfolio_strategy import StrategyTemplate, StrategyEngine
from vnpy.trader.utility import BarGenerator, ArrayManager
from vnpy.trader.object import BarData
from vnpy.trader.constant import Interval
| 32 | 92 | 0.584391 |
a2a878b865e7dd158c1f4d9b527b4dc267ffa7f3 | 7,065 | py | Python | old_game/hotmaps.py | jwvhewitt/dmeternal | bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb | [
"Apache-2.0"
] | 53 | 2015-07-03T21:25:36.000Z | 2022-02-18T23:08:38.000Z | old_game/hotmaps.py | jwvhewitt/dmeternal | bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb | [
"Apache-2.0"
] | 5 | 2015-07-03T21:27:12.000Z | 2016-12-08T14:40:38.000Z | old_game/hotmaps.py | jwvhewitt/dmeternal | bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb | [
"Apache-2.0"
] | 14 | 2016-02-02T06:49:51.000Z | 2022-02-24T13:24:35.000Z | # Pathfinding algorithm.
import pygame
import random
if __name__=='__main__':
import timeit
from . import maps
import random
import pygame
myscene = maps.Scene( 100 , 100 )
for x in range( 5, myscene.width ):
for y in range( 5, myscene.height ):
if random.randint(1,3)... | 34.802956 | 165 | 0.501062 |
a2a927903851fa866273d2e9c394ad0c65d802fb | 960 | py | Python | upload_menu.py | jaypee-f/webhook | 4fc8e47c6dd7fd3c90b4db076bfd075ffdd44054 | [
"MIT"
] | null | null | null | upload_menu.py | jaypee-f/webhook | 4fc8e47c6dd7fd3c90b4db076bfd075ffdd44054 | [
"MIT"
] | null | null | null | upload_menu.py | jaypee-f/webhook | 4fc8e47c6dd7fd3c90b4db076bfd075ffdd44054 | [
"MIT"
] | null | null | null | import json
import jsonpickle
from pprint import pprint
prods = Object()
prods.accountId="5c76ae99c6489f0001bc6b0a"
prods.locationId="5db938536d49b300017efcc3"
prods.products=[]
prods.categories=[]
with open ('pl.json', 'r') as f:
products_dict = json.load(f)
for item in products_dict["models"]:
prod = Obj... | 20.869565 | 46 | 0.691667 |
a2a95220c05c2685607d88d70a06cedd80129fc1 | 2,489 | py | Python | CareerTinderServer/CareerTinder/migrations/0002_auto_20160918_0011.py | sarojaerabelli/HVGS | 86ec3d2de496540ca439c40f4a0c58c47aa181cf | [
"MIT"
] | 1 | 2016-09-18T16:40:27.000Z | 2016-09-18T16:40:27.000Z | CareerTinderServer/CareerTinder/migrations/0002_auto_20160918_0011.py | sarojaerabelli/HVGS | 86ec3d2de496540ca439c40f4a0c58c47aa181cf | [
"MIT"
] | null | null | null | CareerTinderServer/CareerTinder/migrations/0002_auto_20160918_0011.py | sarojaerabelli/HVGS | 86ec3d2de496540ca439c40f4a0c58c47aa181cf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-18 04:11
from __future__ import unicode_literals
import CareerTinder.listfield
from django.db import migrations, models
| 30.728395 | 143 | 0.546002 |
a2aa47ea240a66801a3fa533dadd5d9026710eb3 | 4,259 | py | Python | cadence/activity_loop.py | mfateev/cadence-python | f8e6e2eb3a010dcd1df76a2e4e59afbb8c11f1db | [
"MIT"
] | null | null | null | cadence/activity_loop.py | mfateev/cadence-python | f8e6e2eb3a010dcd1df76a2e4e59afbb8c11f1db | [
"MIT"
] | null | null | null | cadence/activity_loop.py | mfateev/cadence-python | f8e6e2eb3a010dcd1df76a2e4e59afbb8c11f1db | [
"MIT"
] | null | null | null | import datetime
import logging
import json
from cadence.activity import ActivityContext
from cadence.cadence_types import PollForActivityTaskRequest, TaskListMetadata, TaskList, PollForActivityTaskResponse, \
RespondActivityTaskCompletedRequest, RespondActivityTaskFailedRequest
from cadence.conversions import json... | 48.954023 | 120 | 0.630195 |
a2aacc4cece05e2f823b764750ce6c88673d5b7a | 3,666 | py | Python | support/fetch_validators_load.py | sonofmom/ton-zabbix-scripts | b43471d058873c5ba78a92fa79d334380df5f6fc | [
"MIT"
] | null | null | null | support/fetch_validators_load.py | sonofmom/ton-zabbix-scripts | b43471d058873c5ba78a92fa79d334380df5f6fc | [
"MIT"
] | null | null | null | support/fetch_validators_load.py | sonofmom/ton-zabbix-scripts | b43471d058873c5ba78a92fa79d334380df5f6fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
import argparse
import datetime
import time
import requests
import Libraries.arguments as ar
import Classes.AppConfig as AppConfig
import Classes.LiteClient as LiteClient
import Classes.TonNetwo... | 39.847826 | 139 | 0.642117 |
a2aacc4feda333eaff912d30b183a58db7aa86b3 | 8,324 | py | Python | packnet_sfm/loggers/wandb_logger.py | asmith9455/packnet-sfm | 60a034ac42d2e72314d002b27efcdfc769dbc3fc | [
"MIT"
] | 982 | 2020-02-27T02:48:29.000Z | 2022-03-31T12:33:50.000Z | packnet_sfm/loggers/wandb_logger.py | asmith9455/packnet-sfm | 60a034ac42d2e72314d002b27efcdfc769dbc3fc | [
"MIT"
] | 205 | 2020-03-24T06:44:30.000Z | 2022-03-30T09:13:14.000Z | packnet_sfm/loggers/wandb_logger.py | asmith9455/packnet-sfm | 60a034ac42d2e72314d002b27efcdfc769dbc3fc | [
"MIT"
] | 253 | 2020-01-25T16:14:45.000Z | 2022-03-30T05:57:40.000Z | # Copyright 2020 Toyota Research Institute. All rights reserved.
# Adapted from Pytorch-Lightning
# https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/loggers/wandb.py
from argparse import Namespace
from collections import OrderedDict
import numpy as np
import torch.nn as nn
import w... | 30.379562 | 102 | 0.608602 |
a2ab5037304159997115ed0a2b381a23c81c1548 | 5,781 | py | Python | source_code/trans.py | shinyfe74/EN_KOR_translator | 910e6924b2b7b27a6e111ae35554cbff7e39ac20 | [
"MIT"
] | null | null | null | source_code/trans.py | shinyfe74/EN_KOR_translator | 910e6924b2b7b27a6e111ae35554cbff7e39ac20 | [
"MIT"
] | null | null | null | source_code/trans.py | shinyfe74/EN_KOR_translator | 910e6924b2b7b27a6e111ae35554cbff7e39ac20 | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter import ttk
import numpy as np
from PIL import ImageGrab
from PIL import Image
from pytesseract import *
import re
import cv2
from googletrans import Translator as google_translator
from pypapago import Translator as papago_translator
from kakaotrans import Translator as kakao_translat... | 28.477833 | 95 | 0.59488 |
a2ab67ac5edaa66589f9eee8088e666122ba3bce | 7,869 | py | Python | src/data/data_processing.py | ChrisPedder/Medieval_Manuscripts | 40bfcf9c273385cfd8aa66e63b2fb80078fef33b | [
"MIT"
] | null | null | null | src/data/data_processing.py | ChrisPedder/Medieval_Manuscripts | 40bfcf9c273385cfd8aa66e63b2fb80078fef33b | [
"MIT"
] | 5 | 2020-12-28T15:28:35.000Z | 2022-02-10T03:26:44.000Z | src/data/data_processing.py | ChrisPedder/Medieval_Manuscripts | 40bfcf9c273385cfd8aa66e63b2fb80078fef33b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 3 17:20:06 2018
@author: chrispedder
A routine to crop sections from the images of different manuscripts in the two
datasets to the same size, and with the same magnification, so that the average
script size doesn't create a feature that the neura... | 38.385366 | 80 | 0.648367 |
a2ac4d61989a683d4c9f7b828fb2128fcf9a33a2 | 7,934 | py | Python | ivy/container/gradients.py | Aarsh2001/ivy | 827164d7d31bd08c5287bbd1ac9ccce588b733bc | [
"Apache-2.0"
] | null | null | null | ivy/container/gradients.py | Aarsh2001/ivy | 827164d7d31bd08c5287bbd1ac9ccce588b733bc | [
"Apache-2.0"
] | null | null | null | ivy/container/gradients.py | Aarsh2001/ivy | 827164d7d31bd08c5287bbd1ac9ccce588b733bc | [
"Apache-2.0"
] | null | null | null | from typing import Optional, Union, List, Dict
# local
import ivy
from ivy.container.base import ContainerBase
# noinspection PyMissingConstructor
| 25.511254 | 70 | 0.515755 |
a2adbf90bc22cca044acdd78bea2c9355ce557e4 | 2,848 | py | Python | desktop/core/ext-py/Mako-1.0.7/test/test_cmd.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/Mako-1.0.7/test/test_cmd.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/Mako-1.0.7/test/test_cmd.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | from __future__ import with_statement
from contextlib import contextmanager
from test import TemplateTest, eq_, raises, template_base, mock
import os
from mako.cmd import cmdline
| 39.013699 | 78 | 0.581812 |
a2b000534f69d5e5c990ba8c2baa88de9b69fc99 | 1,920 | py | Python | corefacility/core/models/module.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/models/module.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/models/module.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | import uuid
from django.db import models
| 60 | 117 | 0.621354 |
a2b0828f0ce39bb552f2d2231688d2adacf5b85e | 1,986 | py | Python | sphinx-sources/Examples/Commands/LensFresnel_Convert.py | jccmak/lightpipes | 1a296fe08bdd97fc9a0e11f92bab25c85f68e57d | [
"BSD-3-Clause"
] | 132 | 2017-03-15T15:28:46.000Z | 2022-03-09T00:28:25.000Z | sphinx-sources/Examples/Commands/LensFresnel_Convert.py | jccmak/lightpipes | 1a296fe08bdd97fc9a0e11f92bab25c85f68e57d | [
"BSD-3-Clause"
] | 63 | 2017-01-26T15:46:55.000Z | 2022-01-25T04:50:59.000Z | sphinx-sources/Examples/Commands/LensFresnel_Convert.py | jccmak/lightpipes | 1a296fe08bdd97fc9a0e11f92bab25c85f68e57d | [
"BSD-3-Clause"
] | 37 | 2017-02-17T16:11:38.000Z | 2022-01-25T18:03:47.000Z | from LightPipes import *
import matplotlib.pyplot as plt
TheExample(100) #100 x 100 grid
TheExample(1000) #1000 x 1000 grid
| 29.641791 | 95 | 0.606244 |
a2b0a81878fe2e8c89e23970f4f8db084dca00c6 | 598 | py | Python | delira/models/backends/chainer/__init__.py | gedoensmax/delira | 545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6 | [
"BSD-2-Clause"
] | 1 | 2019-10-03T21:00:20.000Z | 2019-10-03T21:00:20.000Z | delira/models/backends/chainer/__init__.py | gedoensmax/delira | 545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6 | [
"BSD-2-Clause"
] | null | null | null | delira/models/backends/chainer/__init__.py | gedoensmax/delira | 545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6 | [
"BSD-2-Clause"
] | null | null | null | from delira import get_backends as _get_backends
if "CHAINER" in _get_backends():
from delira.models.backends.chainer.abstract_network import \
AbstractChainerNetwork
from delira.models.backends.chainer.data_parallel import \
DataParallelChainerNetwork
from delira.models.backends.chainer.da... | 42.714286 | 65 | 0.789298 |
a2b0f8e387546b569d1ef99efb66f95e406a0935 | 1,071 | py | Python | src/deepproblog/examples/Forth/Add/data/extract.py | vossenwout/gtadeepproblog | 65509b740518af422b96e84ef10716e0ac246e75 | [
"Apache-2.0"
] | 54 | 2021-06-23T08:03:23.000Z | 2022-03-10T01:02:43.000Z | src/deepproblog/examples/Forth/Add/data/extract.py | Damzwan/deepproblog | 56bcf5208e79c17510b5d288068fabc6cd64f3cf | [
"Apache-2.0"
] | 2 | 2021-06-30T23:48:25.000Z | 2022-03-18T10:45:05.000Z | src/deepproblog/examples/Forth/Add/data/extract.py | Damzwan/deepproblog | 56bcf5208e79c17510b5d288068fabc6cd64f3cf | [
"Apache-2.0"
] | 12 | 2021-06-30T10:47:52.000Z | 2022-03-09T23:51:48.000Z | import re
for train in [2, 4, 8]:
for test in [8, 64]:
for mode in ["train", "test", "dev"]:
with open("train{}_test{}/{}.txt".format(train, test, mode)) as f:
text = f.read()
matches = re.findall("\[([0-9 ]*)\]\t\[([0-9 ]*) (\d) (\d*)\]", text)
text = li... | 38.25 | 83 | 0.388422 |
a2b26dec93877fc20d8f5328e080c0557abecb6c | 16,519 | py | Python | app/location/crawler.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 1 | 2019-04-28T12:21:51.000Z | 2019-04-28T12:21:51.000Z | app/location/crawler.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 5 | 2018-07-30T05:44:44.000Z | 2020-06-05T18:56:41.000Z | app/location/crawler.py | maro99/yapen | 0de7aa9d4b152aadd18511be6e536e89645452d9 | [
"MIT"
] | 5 | 2018-07-23T05:21:41.000Z | 2018-08-08T05:00:42.000Z | import re
import requests
from bs4 import BeautifulSoup
import time
from urllib import parse
from selenium import webdriver
from location.models import Pension, RoomImage, PensionImage, Room, Location, SubLocation
# string, 100,00 0 int
# 5 .
# location_name_list
| 36.225877 | 140 | 0.603971 |
a2b2ffb533dae5272cd3fbc1cefbb22e54b5762b | 1,181 | py | Python | 14-semparsing/ucca/scripts/find_constructions.py | ariasjose/nn4nlp-code | 7327ea3e93161afbc8c008e287b646daa802be4d | [
"Apache-2.0"
] | null | null | null | 14-semparsing/ucca/scripts/find_constructions.py | ariasjose/nn4nlp-code | 7327ea3e93161afbc8c008e287b646daa802be4d | [
"Apache-2.0"
] | null | null | null | 14-semparsing/ucca/scripts/find_constructions.py | ariasjose/nn4nlp-code | 7327ea3e93161afbc8c008e287b646daa802be4d | [
"Apache-2.0"
] | null | null | null | from argparse import ArgumentParser
from ucca import constructions
from ucca.ioutil import read_files_and_dirs
if __name__ == "__main__":
argparser = ArgumentParser(description="Extract linguistic constructions from UCCA corpus.")
argparser.add_argument("passages", nargs="+", help="the corpus, given as... | 47.24 | 113 | 0.624047 |
a2b4cc002608cb98fc1f6000c06a7afefddd34dc | 3,870 | py | Python | multicache/__init__.py | bargulg/SimpleCache | 52f6fd18381e9ccb21194b83288d631d6e2cf28e | [
"MIT"
] | 1 | 2017-02-21T14:46:45.000Z | 2017-02-21T14:46:45.000Z | multicache/__init__.py | bargulg/multicache | 52f6fd18381e9ccb21194b83288d631d6e2cf28e | [
"MIT"
] | null | null | null | multicache/__init__.py | bargulg/multicache | 52f6fd18381e9ccb21194b83288d631d6e2cf28e | [
"MIT"
] | null | null | null | import hashlib
import os
import pickle
import tempfile
import zlib
from threading import Lock
from time import time
from multicache.base import BaseCache
try:
from multicache.redis import RedisCache
except ImportError:
pass
lock = Lock()
| 27.062937 | 74 | 0.509044 |
a2b509c564ad0b2601ed7a285ba7c94de901b242 | 754 | py | Python | 01_numbers.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | 1 | 2016-10-02T00:51:43.000Z | 2016-10-02T00:51:43.000Z | 01_numbers.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | null | null | null | 01_numbers.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | null | null | null | x = 1 #x recebe 1
#print ir printar(mostrar) o valor desejado;
print(x) # resultado: 1
print(x + 4) # possvel somar uma varivel com um nmero, desde que a varivel tenha um valor definido - resultado: 5
print(2 * 2) #um asterisco usado para multiplicar - resultado: 4
print(3 ** 3) #dois asterisco usado para elevar a p... | 53.857143 | 119 | 0.706897 |
a2b518c79f5318969c38eb1d484323f66909f1f2 | 3,648 | py | Python | schematizer/models/redshift_sql_entities.py | Yelp/schematizer | 035845d27945a05db475f00eb76f59e8825dbaa4 | [
"Apache-2.0"
] | 86 | 2016-11-17T17:39:13.000Z | 2021-06-01T15:19:05.000Z | schematizer/models/redshift_sql_entities.py | tomzhang/schematizer | 035845d27945a05db475f00eb76f59e8825dbaa4 | [
"Apache-2.0"
] | 2 | 2016-12-01T20:57:43.000Z | 2021-09-28T09:26:25.000Z | schematizer/models/redshift_sql_entities.py | tomzhang/schematizer | 035845d27945a05db475f00eb76f59e8825dbaa4 | [
"Apache-2.0"
] | 26 | 2016-11-29T22:38:11.000Z | 2021-03-02T19:44:17.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp 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 ag... | 33.46789 | 76 | 0.625 |
a2b5bf13bb08e8ae97991098e42fc0fd73145597 | 50,707 | py | Python | modules/templates/WACOP/config.py | mswdresden/AsylumEden | a68ee08f9f7031974ec12ec327d00c5d975a740a | [
"MIT"
] | 1 | 2017-07-22T18:49:34.000Z | 2017-07-22T18:49:34.000Z | modules/templates/WACOP/config.py | mswdresden/AsylumEden | a68ee08f9f7031974ec12ec327d00c5d975a740a | [
"MIT"
] | null | null | null | modules/templates/WACOP/config.py | mswdresden/AsylumEden | a68ee08f9f7031974ec12ec327d00c5d975a740a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import OrderedDict
from gluon import current
from gluon.storage import Storage
def config(settings):
"""
Template for WA-COP + CAD Cloud Integration
"""
T = current.T
# =========================================================================
# S... | 42.080498 | 142 | 0.428264 |
a2b8296c9037d221e852aad4ef00a8219c5bd0cc | 1,185 | py | Python | main.py | guysoft/kivy-external-storage-permission | a1eefedcabab2e82af948362271a21b4a8b89b56 | [
"MIT"
] | 1 | 2020-04-07T15:13:12.000Z | 2020-04-07T15:13:12.000Z | main.py | guysoft/kivy-external-storage-permission | a1eefedcabab2e82af948362271a21b4a8b89b56 | [
"MIT"
] | null | null | null | main.py | guysoft/kivy-external-storage-permission | a1eefedcabab2e82af948362271a21b4a8b89b56 | [
"MIT"
] | null | null | null | import kivy
from kivy.app import App
from kivy.uix.button import Button
import android
import os
import time
from android.permissions import Permission, request_permission, check_permission
from kivy.clock import Clock
if __name__ == '__main__':
MyApp().run()
| 25.76087 | 113 | 0.672574 |
a2bc3a31cc03d9c0efb26d0509eb49d178d88baf | 401 | py | Python | my_oop/oop05.py | xxwqlee/pylearn | 6eb9ad61bc68b3d0ca0b093f9876df3105efd98e | [
"Apache-2.0"
] | 1 | 2019-03-14T05:04:02.000Z | 2019-03-14T05:04:02.000Z | my_oop/oop05.py | xxwqlee/pylearn | 6eb9ad61bc68b3d0ca0b093f9876df3105efd98e | [
"Apache-2.0"
] | null | null | null | my_oop/oop05.py | xxwqlee/pylearn | 6eb9ad61bc68b3d0ca0b093f9876df3105efd98e | [
"Apache-2.0"
] | null | null | null | """
"""
a = A()
b = B()
a.a_say()
b.a_say()
print("*" * 50)
b.b_say() #
print("*" * 50)
B().b_say()
| 13.366667 | 44 | 0.506234 |
a2bc5af81309d6409de30031673fb2592880c8d4 | 8,852 | py | Python | python/tests/sbp/utils.py | zk20/libsbp | 041c5055f5db422258ebb3ce3f8e9f6e5d3e5fa9 | [
"MIT"
] | null | null | null | python/tests/sbp/utils.py | zk20/libsbp | 041c5055f5db422258ebb3ce3f8e9f6e5d3e5fa9 | [
"MIT"
] | null | null | null | python/tests/sbp/utils.py | zk20/libsbp | 041c5055f5db422258ebb3ce3f8e9f6e5d3e5fa9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2015 Swift Navigation Inc.
# Contact: https://support.swiftnav.com
#
# This source is subject to the license found in the file 'LICENSE' which must
# be be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WA... | 32.189091 | 95 | 0.703344 |
a2bd09228744e69177dc7286c70d7e20bc69a6fd | 2,453 | py | Python | train_arg_parser.py | DaringDane/Image-Classifier | 6e6a835bd72453c1ee9c5b57cf4959fc9011971b | [
"MIT"
] | null | null | null | train_arg_parser.py | DaringDane/Image-Classifier | 6e6a835bd72453c1ee9c5b57cf4959fc9011971b | [
"MIT"
] | null | null | null | train_arg_parser.py | DaringDane/Image-Classifier | 6e6a835bd72453c1ee9c5b57cf4959fc9011971b | [
"MIT"
] | null | null | null | import argparse
'''
Example commands for the command line:
- Select directory to save checkpoints in: python train.py data_directory --save_dir save_directory
- Select training architecture: python train.py data_directory --arch "densenet121"
- Set hyperparameters: python train.py data_directory --learning... | 62.897436 | 185 | 0.721565 |
a2bd0fd34368e4604144c29b0f69a07f59c44be6 | 12,878 | py | Python | ckanext-hdx_org_group/ckanext/hdx_org_group/tests/test_controller/test_member_controller.py | alexandru-m-g/hdx-ckan | 647f1f23f0505fa195601245b758edcaf4d25985 | [
"Apache-2.0"
] | null | null | null | ckanext-hdx_org_group/ckanext/hdx_org_group/tests/test_controller/test_member_controller.py | alexandru-m-g/hdx-ckan | 647f1f23f0505fa195601245b758edcaf4d25985 | [
"Apache-2.0"
] | null | null | null | ckanext-hdx_org_group/ckanext/hdx_org_group/tests/test_controller/test_member_controller.py | alexandru-m-g/hdx-ckan | 647f1f23f0505fa195601245b758edcaf4d25985 | [
"Apache-2.0"
] | null | null | null | '''
Created on Jun 23, 2015
@author: alexandru-m-g
'''
import logging
import mock
import ckan.model as model
import ckan.common as common
import ckan.lib.helpers as h
import ckan.lib.mailer as mailer
import ckanext.hdx_users.controllers.mailer as hdx_mailer
import ckanext.hdx_theme.tests.hdx_test_base as hdx_test_b... | 43.802721 | 115 | 0.656701 |
a2bd228991060d0a29b89ddd1eb606ca0ff8fed6 | 1,044 | py | Python | bulletin/factories.py | ralphqq/ph-earthquake-dashboard | b9a599e92844b13fd1f7e3f54e087ec0ab6bc53a | [
"MIT"
] | null | null | null | bulletin/factories.py | ralphqq/ph-earthquake-dashboard | b9a599e92844b13fd1f7e3f54e087ec0ab6bc53a | [
"MIT"
] | 7 | 2020-06-05T20:14:42.000Z | 2022-03-02T15:00:30.000Z | bulletin/factories.py | ralphqq/ph-earthquake-dashboard | b9a599e92844b13fd1f7e3f54e087ec0ab6bc53a | [
"MIT"
] | null | null | null | from datetime import timedelta
import random
from django.utils import timezone
import factory
| 23.2 | 70 | 0.573755 |
a2beade77d575c19dad94b1f0e0efaa28bdb3efa | 792 | py | Python | figure2/Initialization.py | QianLab/Soft_MOCU | 516ab0c9fffcde0542576c5c9b20132880ea2dc1 | [
"MIT"
] | 1 | 2021-02-24T19:33:32.000Z | 2021-02-24T19:33:32.000Z | figure2/Initialization.py | QianLab/Soft_MOCU | 516ab0c9fffcde0542576c5c9b20132880ea2dc1 | [
"MIT"
] | null | null | null | figure2/Initialization.py | QianLab/Soft_MOCU | 516ab0c9fffcde0542576c5c9b20132880ea2dc1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
py_eq_z = None
classnum = 2
multiclass = False | 26.4 | 87 | 0.597222 |
a2bef8254bccb013d26eb0c1c08e9ae8163682c2 | 14,153 | py | Python | plex_export_watched_history.py | chazlarson/plex-watched-tools | ef3e34e733ec9555353d695ced582395bdc73480 | [
"MIT"
] | null | null | null | plex_export_watched_history.py | chazlarson/plex-watched-tools | ef3e34e733ec9555353d695ced582395bdc73480 | [
"MIT"
] | null | null | null | plex_export_watched_history.py | chazlarson/plex-watched-tools | ef3e34e733ec9555353d695ced582395bdc73480 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# python3 -m pip install --force -U --user PlexAPI
"""
Metadata to be handled:
* Audiobooks
* Playlists -- https://github.com/pkkid/python-plexapi/issues/551
"""
import copy
import json
import time
import logging
import collections
from urllib.parse import urlparse
... | 33.458629 | 106 | 0.637603 |
a2c10a54ceee9affb03ce15e17008ad6f880f4e9 | 414 | py | Python | src/models/product.py | superxuu/fastapi_pony_2 | 297ef01cc009a40af891593018565fe5b06b4ee8 | [
"MIT"
] | 2 | 2020-06-17T09:53:13.000Z | 2020-10-23T18:20:13.000Z | src/models/product.py | superxuu/fastapi_pony_2 | 297ef01cc009a40af891593018565fe5b06b4ee8 | [
"MIT"
] | null | null | null | src/models/product.py | superxuu/fastapi_pony_2 | 297ef01cc009a40af891593018565fe5b06b4ee8 | [
"MIT"
] | null | null | null | from datetime import datetime
from decimal import Decimal
from src.models import db, Required, Optional
| 25.875 | 71 | 0.729469 |
a2c13ed5fd70470e8dadf6ddcecfc8a4c03d41b3 | 32,397 | py | Python | tgthemer/themer.py | eskilop/TgThemer-py | 3ebb7d1c3c78c32754cee82aa92a6c97ac18f27f | [
"MIT"
] | 1 | 2020-05-12T21:33:56.000Z | 2020-05-12T21:33:56.000Z | tgthemer/themer.py | eskilop/TgThemer-py | 3ebb7d1c3c78c32754cee82aa92a6c97ac18f27f | [
"MIT"
] | null | null | null | tgthemer/themer.py | eskilop/TgThemer-py | 3ebb7d1c3c78c32754cee82aa92a6c97ac18f27f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from .color import Color
import shutil
import os
std_none = "#FF000000"
| 52.763844 | 96 | 0.619131 |
a2c331cfd9f663070b5e40ecc3ae373845f2e7c4 | 662 | py | Python | plotly/validators/layout/xaxis/_constraintoward.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 12 | 2020-04-18T18:10:22.000Z | 2021-12-06T10:11:15.000Z | plotly/validators/layout/xaxis/_constraintoward.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 27 | 2020-04-28T21:23:12.000Z | 2021-06-25T15:36:38.000Z | plotly/validators/layout/xaxis/_constraintoward.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 6 | 2020-04-18T23:07:08.000Z | 2021-11-18T07:53:06.000Z | import _plotly_utils.basevalidators
| 26.48 | 70 | 0.560423 |
a2c3c1fae06adac5e17ba36e3e5bcfafc2b96e97 | 4,057 | py | Python | openmdao/core/test/test_group_derivatives.py | jcchin/project_clippy | ed38e11a96848a81c024c5a0e5821bc5db04fdc7 | [
"Apache-2.0"
] | null | null | null | openmdao/core/test/test_group_derivatives.py | jcchin/project_clippy | ed38e11a96848a81c024c5a0e5821bc5db04fdc7 | [
"Apache-2.0"
] | null | null | null | openmdao/core/test/test_group_derivatives.py | jcchin/project_clippy | ed38e11a96848a81c024c5a0e5821bc5db04fdc7 | [
"Apache-2.0"
] | null | null | null | """ Testing group-level finite difference. """
import unittest
import numpy as np
from openmdao.components.param_comp import ParamComp
from openmdao.core.component import Component
from openmdao.core.group import Group
from openmdao.core.problem import Problem
from openmdao.test.converge_diverge import ConvergeDiverg... | 32.456 | 90 | 0.562731 |
a2c3dab8b5c5b5fea5c21366ad80b3c046f70f38 | 2,235 | py | Python | rsbroker/core/user.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | rsbroker/core/user.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | rsbroker/core/user.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import ujson
from rsbroker.core.upstream import RTCWebSocketClient
| 25.988372 | 82 | 0.521253 |
a2c3e3fd647b669204ee60f34d14ceb1b5e30f77 | 12,756 | py | Python | src/constraint_solver.py | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | src/constraint_solver.py | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | src/constraint_solver.py | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | from pgm.pgmplayer import PGMPlayer
import cps_constraints as con
from operator import itemgetter
import uuid
import os
| 43.835052 | 93 | 0.409768 |
a2c43ed1aafc32a3c7c2532f7e7717a9aecd874b | 1,901 | py | Python | cpu_ver/funkyyak/tests/test_util.py | bigaidream-projects/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 119 | 2016-02-24T17:20:50.000Z | 2021-05-28T21:35:16.000Z | cpu_ver/funkyyak/tests/test_util.py | LinZichuan/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 8 | 2016-02-25T03:13:38.000Z | 2017-09-15T00:54:52.000Z | cpu_ver/funkyyak/tests/test_util.py | LinZichuan/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 31 | 2016-03-10T04:57:11.000Z | 2021-05-02T01:00:04.000Z | import numpy as np
import itertools as it
from funkyyak import grad
from copy import copy
| 33.350877 | 88 | 0.602315 |
a2c46503127480012c6964e3561a31835e11fb15 | 2,772 | py | Python | game_main.py | smarTHh2019/melody_path_finder | 79cf0108afa12dd18be099d2c8c6291be992ff0d | [
"MIT"
] | null | null | null | game_main.py | smarTHh2019/melody_path_finder | 79cf0108afa12dd18be099d2c8c6291be992ff0d | [
"MIT"
] | null | null | null | game_main.py | smarTHh2019/melody_path_finder | 79cf0108afa12dd18be099d2c8c6291be992ff0d | [
"MIT"
] | null | null | null | import time
import random
import pygame
import pygame.midi
import numpy as np
from typing import Tuple
__author__ = "Thomas Heller"
AV_SIZE = 20
WIN_X = 30 * AV_SIZE
WIN_Y = 30 * AV_SIZE
DIFF_MAX = np.sqrt(WIN_X**2 + WIN_Y**2)
if __name__=="__main__":
main() | 31.862069 | 121 | 0.636364 |
a2c538a523c20cc3cd74501dba0bcc96fa5757c1 | 4,806 | py | Python | lib/preproc.py | ayshrv/paperpile-notion | 0fe73aee1e6bfcf3105b9a417182736a285ec797 | [
"Apache-2.0"
] | null | null | null | lib/preproc.py | ayshrv/paperpile-notion | 0fe73aee1e6bfcf3105b9a417182736a285ec797 | [
"Apache-2.0"
] | null | null | null | lib/preproc.py | ayshrv/paperpile-notion | 0fe73aee1e6bfcf3105b9a417182736a285ec797 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List
def format_entry(entry: Dict[str, str], journals: List[Dict[str, str]], conferences: List[Dict[str, str]]) -> Dict[str, Dict[str, str]]:
""" Produces a dictionary in format column_name: {type: x, value: y} for each value in the entry"""
########## VENUE ########################... | 38.448 | 136 | 0.52913 |
a2c5873d31b6625bca48f32ced06274ab2625243 | 12,181 | py | Python | twitter/Update.py | bhargavz/py-twitter-sentiment-analysis | fc611df592ed607e58c2600bd20fceffa309108c | [
"MIT"
] | null | null | null | twitter/Update.py | bhargavz/py-twitter-sentiment-analysis | fc611df592ed607e58c2600bd20fceffa309108c | [
"MIT"
] | null | null | null | twitter/Update.py | bhargavz/py-twitter-sentiment-analysis | fc611df592ed607e58c2600bd20fceffa309108c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# FILE: Update.py
#
# This class provides mechanisms to update, reply to, retweet status
# messages and send direct messages
#
# Copyright by Author. All rights reserved. Not for reuse without
# express permissions.
#
import sys, time, json, logging
from sochi.twit... | 33.190736 | 153 | 0.531566 |
a2c66a4215e8e48df86487ea705d0d4b4b919ca2 | 654 | py | Python | library/utils/time.py | zjjott/html | 68429832d8b022602915a267a62051f4869f430f | [
"MIT"
] | null | null | null | library/utils/time.py | zjjott/html | 68429832d8b022602915a267a62051f4869f430f | [
"MIT"
] | null | null | null | library/utils/time.py | zjjott/html | 68429832d8b022602915a267a62051f4869f430f | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals, absolute_import
from datetime import datetime
from pytz import UTC
from dateutil.parser import parse
fmt = '%Y-%m-%d %H:%M:%S'
utc_fmt = "%Y-%m-%dT%H:%M:%SZ"
def isotime(at=None):
"""Stringify time in ISO 8601 format"""
if not at:
at = datetime.... | 21.8 | 56 | 0.652905 |
a2ce4992ffbad38fcb41d65444677ff2a942a09e | 5,612 | py | Python | aguas_altas/build_gdb/build_gdb_table.py | PEM-Humboldt/caracterizacion_paisajes_sonoros_ppii | 2b99a69faeb5cc094e582a2b6929ef18bd4a3c4e | [
"MIT"
] | null | null | null | aguas_altas/build_gdb/build_gdb_table.py | PEM-Humboldt/caracterizacion_paisajes_sonoros_ppii | 2b99a69faeb5cc094e582a2b6929ef18bd4a3c4e | [
"MIT"
] | null | null | null | aguas_altas/build_gdb/build_gdb_table.py | PEM-Humboldt/caracterizacion_paisajes_sonoros_ppii | 2b99a69faeb5cc094e582a2b6929ef18bd4a3c4e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Build Geo Database for PaisajesSonorosTB
----------------------------------------
This script compiles output from multiple scripts that should be executed previously:
- audio_metadata
- acoustic_indices
- graphical_soundscapes
- soundscape_composition... | 48.37931 | 128 | 0.541162 |
a2cef5581d6639f72a0f834dc67419807bab8ec4 | 759 | py | Python | dear_petition/petition/migrations/0008_auto_20200208_0222.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 4 | 2020-04-01T14:42:45.000Z | 2021-12-12T21:11:11.000Z | dear_petition/petition/migrations/0008_auto_20200208_0222.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 142 | 2019-08-12T19:08:34.000Z | 2022-03-29T23:05:35.000Z | dear_petition/petition/migrations/0008_auto_20200208_0222.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 8 | 2020-02-04T20:37:00.000Z | 2021-03-28T13:28:32.000Z | # Generated by Django 2.2.4 on 2020-02-08 02:22
from django.db import migrations
| 29.192308 | 76 | 0.671937 |
a2cf483b7a318378a4b51126b7de177267f4c55e | 23 | py | Python | auto_ml/_version.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 1,671 | 2016-08-09T04:44:48.000Z | 2022-03-27T01:29:23.000Z | auto_ml/_version.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 428 | 2016-08-08T00:13:04.000Z | 2022-01-19T10:09:05.000Z | auto_ml/_version.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 334 | 2016-08-29T12:34:18.000Z | 2022-01-31T09:14:30.000Z | __version__ = "2.9.10"
| 11.5 | 22 | 0.652174 |
a2d07750f771787adbd733681780afac8dc73bc5 | 3,442 | py | Python | maya/libs/sceneutils.py | bhsingleton/dcc | 9ad59f1cb8282df938062e15c020688dd268a722 | [
"MIT"
] | 1 | 2021-08-06T16:04:24.000Z | 2021-08-06T16:04:24.000Z | maya/libs/sceneutils.py | bhsingleton/dcc | 9ad59f1cb8282df938062e15c020688dd268a722 | [
"MIT"
] | null | null | null | maya/libs/sceneutils.py | bhsingleton/dcc | 9ad59f1cb8282df938062e15c020688dd268a722 | [
"MIT"
] | 1 | 2021-08-06T16:04:31.000Z | 2021-08-06T16:04:31.000Z | import maya.cmds as mc
import os
import logging
logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
def isNewScene():
"""
Method used to check if this is an untitled scene file.
:rtype: bool
"""
return len(mc.file(query=True, sceneName=True)) == 0
def isSaveRequ... | 20.011628 | 92 | 0.621732 |
a2d10542879056ad7800cdebe98204d350251551 | 346 | py | Python | diffir/__init__.py | capreolus-ir/diffir | 90906ce4b7d5f23d6190eea26020f9e4096cb0cd | [
"Apache-2.0"
] | 12 | 2021-03-10T17:04:05.000Z | 2022-01-13T15:44:34.000Z | diffir/__init__.py | capreolus-ir/diffir | 90906ce4b7d5f23d6190eea26020f9e4096cb0cd | [
"Apache-2.0"
] | 7 | 2021-05-19T21:28:52.000Z | 2021-12-16T16:01:40.000Z | diffir/__init__.py | capreolus-ir/diffir | 90906ce4b7d5f23d6190eea26020f9e4096cb0cd | [
"Apache-2.0"
] | null | null | null | __version__ = "0.2.0"
from diffir.weight import Weight
from diffir.weight.custom import CustomWeight
from diffir.weight.unsupervised import ExactMatchWeight
from diffir.measure import Measure
from diffir.measure.qrels import QrelMeasure
from diffir.measure.unsupervised import TopkMeasure
from diffir.weight.weights_bui... | 34.6 | 55 | 0.858382 |
a2d1763a00e0070a7178e1445d0a7e1fdef3a6a9 | 34,160 | py | Python | tool/pylib/generator/output/PartBuilder.py | mever/qooxdoo | 2bb08cb6c4ddfaf2425e6efff07deb17e960a050 | [
"MIT"
] | 1 | 2021-02-05T23:00:25.000Z | 2021-02-05T23:00:25.000Z | tool/pylib/generator/output/PartBuilder.py | mever/qooxdoo | 2bb08cb6c4ddfaf2425e6efff07deb17e960a050 | [
"MIT"
] | 3 | 2019-02-18T04:22:52.000Z | 2021-02-21T15:02:54.000Z | tool/pylib/generator/output/PartBuilder.py | mever/qooxdoo | 2bb08cb6c4ddfaf2425e6efff07deb17e960a050 | [
"MIT"
] | 1 | 2021-06-03T23:08:44.000Z | 2021-06-03T23:08:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# qooxdoo - the new era of web development
#
# http://qooxdoo.org
#
# Copyright:
# 2006-2010 1&1 Internet AG, Germany, http://www.1und1.de
#
# License:
# MIT: https://opensource.org... | 42.593516 | 157 | 0.600907 |
a2d2d2628caff1c2156c6ad988dc74d14a5fd8cd | 6,486 | py | Python | factorizer/datasets/wmh.py | pashtari/factorizer | 730f295b403a90c1c691f99b529d5d32b635d0c6 | [
"Apache-2.0"
] | 7 | 2022-03-05T00:43:29.000Z | 2022-03-07T01:23:08.000Z | factorizer/datasets/wmh.py | pashtari/factorizer | 730f295b403a90c1c691f99b529d5d32b635d0c6 | [
"Apache-2.0"
] | null | null | null | factorizer/datasets/wmh.py | pashtari/factorizer | 730f295b403a90c1c691f99b529d5d32b635d0c6 | [
"Apache-2.0"
] | 1 | 2022-03-21T05:28:23.000Z | 2022-03-21T05:28:23.000Z | import sys
import numpy as np
import torch
from monai import transforms, data
from ..data import DataModule, ReadImaged, Renamed, Inferer
###################################
# Transform
###################################
###################################
# Data module
###################################
... | 31.033493 | 79 | 0.561671 |
a2d721ef72b39de52022137d721dac292cbddcad | 890 | py | Python | Python/Topics/Sending-Email/05-pdf-attachment.py | shihab4t/Software-Development | 0843881f2ba04d9fca34e44443b5f12f509f671e | [
"Unlicense"
] | null | null | null | Python/Topics/Sending-Email/05-pdf-attachment.py | shihab4t/Software-Development | 0843881f2ba04d9fca34e44443b5f12f509f671e | [
"Unlicense"
] | null | null | null | Python/Topics/Sending-Email/05-pdf-attachment.py | shihab4t/Software-Development | 0843881f2ba04d9fca34e44443b5f12f509f671e | [
"Unlicense"
] | null | null | null | import imghdr
import smtplib
import os
from email.message import EmailMessage
EMAIL_ADDRESS = os.environ.get("GMAIL_ADDRESS")
EMAIL_PASSWORD = os.environ.get("GMAIL_APP_PASS")
pdfs = ["/home/shihab4t/Downloads/Profile.pdf"]
with smtplib.SMTP_SSL("smtp.gmail.com", 465) as smtp:
smtp.login(EMAIL_ADDRESS, EMAIL_P... | 26.969697 | 69 | 0.665169 |
a2d7927bd74ff2bc70037658a7110cb4dffa918c | 43 | py | Python | rcds/project/__init__.py | jordanbertasso/rcds | d3d655a59a350042d65476793db84e761de04829 | [
"BSD-3-Clause"
] | 5 | 2020-07-13T12:40:02.000Z | 2021-08-21T11:18:28.000Z | rcds/project/__init__.py | jordanbertasso/rcds | d3d655a59a350042d65476793db84e761de04829 | [
"BSD-3-Clause"
] | 144 | 2020-07-06T11:26:49.000Z | 2022-02-01T14:33:28.000Z | rcds/project/__init__.py | jordanbertasso/rcds | d3d655a59a350042d65476793db84e761de04829 | [
"BSD-3-Clause"
] | 7 | 2020-07-22T12:38:32.000Z | 2021-12-21T14:27:54.000Z | from .project import Project # noqa: F401
| 21.5 | 42 | 0.744186 |
a2d972366674ffee05dbeed1f54a9dc88de6bb40 | 163 | py | Python | MyEircode.py | MrBrianMonaghan/mapping | 1b525eaaad3b22709a53167b46c901ece365ecab | [
"Apache-2.0"
] | null | null | null | MyEircode.py | MrBrianMonaghan/mapping | 1b525eaaad3b22709a53167b46c901ece365ecab | [
"Apache-2.0"
] | null | null | null | MyEircode.py | MrBrianMonaghan/mapping | 1b525eaaad3b22709a53167b46c901ece365ecab | [
"Apache-2.0"
] | null | null | null | import selenium
from selenium import webdriver
try:
browser = webdriver.Firefox()
browser.get('mikekus.com')
except KeyboardInterrupt:
browser.quit()
| 18.111111 | 33 | 0.742331 |
a2d986e45466635f24a005d6cc044f9cdfb62b88 | 740 | py | Python | tests/test_rotor/rotor_test.py | axevalley/enigma | fdfa5a85dbd4675f195e00e4b7e22d976a3d9015 | [
"MIT"
] | null | null | null | tests/test_rotor/rotor_test.py | axevalley/enigma | fdfa5a85dbd4675f195e00e4b7e22d976a3d9015 | [
"MIT"
] | 28 | 2019-07-30T16:15:52.000Z | 2022-03-14T19:14:25.000Z | tests/test_rotor/rotor_test.py | lukeshiner/enigma | 917066c8f33f67b43f092800ba46220d107f622b | [
"MIT"
] | null | null | null | """Base class for rotor tests."""
import unittest
from enigma.rotor.reflector import Reflector
from enigma.rotor.rotor import Rotor
| 24.666667 | 65 | 0.631081 |
a2deabeee99e67fa9e9a47d417ca86a406f16c31 | 2,186 | py | Python | kyu_8/check_the_exam/test_check_exam.py | pedrocodacyorg2/codewars | ba3ea81125b6082d867f0ae34c6c9be15e153966 | [
"Unlicense"
] | 1 | 2022-02-12T05:56:04.000Z | 2022-02-12T05:56:04.000Z | kyu_8/check_the_exam/test_check_exam.py | pedrocodacyorg2/codewars | ba3ea81125b6082d867f0ae34c6c9be15e153966 | [
"Unlicense"
] | 182 | 2020-04-30T00:51:36.000Z | 2021-09-07T04:15:05.000Z | kyu_8/check_the_exam/test_check_exam.py | pedrocodacyorg2/codewars | ba3ea81125b6082d867f0ae34c6c9be15e153966 | [
"Unlicense"
] | 4 | 2020-04-29T22:04:20.000Z | 2021-07-13T20:04:14.000Z | # Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
# FUNDAMENTALS ARRAYS NUMBERS BASIC LANGUAGE FEATURES
import unittest
import allure
from utils.log_func import print_log
from kyu_8.check_the_exam.check_exam import check_exam
| 34.15625 | 94 | 0.531565 |
a2dec2415ed78800e66aae16391df2b37d8f56eb | 1,193 | py | Python | pysoup/venv/__init__.py | illBeRoy/pysoup | 742fd6630e1be27c275cb8dc6ee94412472cb20b | [
"MIT"
] | 4 | 2016-02-21T12:40:44.000Z | 2019-06-13T13:23:19.000Z | pysoup/venv/__init__.py | illBeRoy/pysoup | 742fd6630e1be27c275cb8dc6ee94412472cb20b | [
"MIT"
] | null | null | null | pysoup/venv/__init__.py | illBeRoy/pysoup | 742fd6630e1be27c275cb8dc6ee94412472cb20b | [
"MIT"
] | 1 | 2020-07-16T12:22:12.000Z | 2020-07-16T12:22:12.000Z | import os.path
from twisted.internet import defer
import pysoup.utils
| 29.097561 | 134 | 0.668064 |
a2df2293ad90461c1622171c3d5669f2f6f7fd84 | 2,791 | py | Python | yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | from yggdrasil.metaschema.datatypes import MetaschemaTypeError
from yggdrasil.metaschema.datatypes.MetaschemaType import MetaschemaType
from yggdrasil.metaschema.datatypes.JSONObjectMetaschemaType import (
JSONObjectMetaschemaType)
from yggdrasil.metaschema.properties.ArgsMetaschemaProperty import (
ArgsMetasch... | 34.036585 | 78 | 0.636331 |
a2df9c5cd443a1cdbe81e54c4e448271480f6781 | 368 | py | Python | battleships/migrations/0004_auto_20181202_1852.py | ArturAdamczyk/Battleships | 748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24 | [
"MIT"
] | null | null | null | battleships/migrations/0004_auto_20181202_1852.py | ArturAdamczyk/Battleships | 748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24 | [
"MIT"
] | null | null | null | battleships/migrations/0004_auto_20181202_1852.py | ArturAdamczyk/Battleships | 748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-12-02 17:52
from django.db import migrations
| 19.368421 | 51 | 0.589674 |
a2e147bc50d8522b84f76610398b1cf2e73d60bb | 11,168 | py | Python | jme/stagecache/text_metadata.py | jmeppley/stagecache | a44f93b7936e1c6ea40dec0a31ad9c19d2415f3a | [
"MIT"
] | null | null | null | jme/stagecache/text_metadata.py | jmeppley/stagecache | a44f93b7936e1c6ea40dec0a31ad9c19d2415f3a | [
"MIT"
] | null | null | null | jme/stagecache/text_metadata.py | jmeppley/stagecache | a44f93b7936e1c6ea40dec0a31ad9c19d2415f3a | [
"MIT"
] | null | null | null | """
Functions for storing and retrieving cache metadata from text files.
Each Cache asset is a path: /path/filename
There are four metadata files in the cache for each:
/path/.stagecache.filename/size The size of the asset in bytes
/path/.stagecache.filename/cache_lock The requested end time of the cache... | 36.980132 | 86 | 0.576916 |
a2e1fed84d2ed3d71ec400a1f6a513cfa6d50f07 | 3,858 | py | Python | lib/roi_data/minibatch.py | BarneyQiao/pcl.pytorch | 4e0280e5e1470f705e620eda26f881d627c5016c | [
"MIT"
] | 233 | 2019-05-10T07:17:42.000Z | 2022-03-30T09:24:16.000Z | lib/roi_data/minibatch.py | Michael-Steven/Crack_Image_WSOD | 4e8591a7c0768cee9eb7240bb9debd54824f5b33 | [
"MIT"
] | 78 | 2019-05-10T21:10:47.000Z | 2022-03-29T13:57:32.000Z | lib/roi_data/minibatch.py | Michael-Steven/Crack_Image_WSOD | 4e8591a7c0768cee9eb7240bb9debd54824f5b33 | [
"MIT"
] | 57 | 2019-05-10T07:17:37.000Z | 2022-03-24T04:43:24.000Z | import numpy as np
import numpy.random as npr
import cv2
from core.config import cfg
import utils.blob as blob_utils
def get_minibatch_blob_names(is_training=True):
"""Return blob names in the order in which they are read by the data loader.
"""
# data blob: holds a batch of N images, each with 3 channel... | 33.842105 | 80 | 0.630897 |
a2e200b1e2fac4ccc713c3e1526076efebc09cea | 1,288 | py | Python | src/PrimaryInputs.py | elastacloud/input-output-tables | 82f932c8627071bc245e178f5b47a7c1104c4e4c | [
"Apache-2.0"
] | null | null | null | src/PrimaryInputs.py | elastacloud/input-output-tables | 82f932c8627071bc245e178f5b47a7c1104c4e4c | [
"Apache-2.0"
] | null | null | null | src/PrimaryInputs.py | elastacloud/input-output-tables | 82f932c8627071bc245e178f5b47a7c1104c4e4c | [
"Apache-2.0"
] | null | null | null | import abc
import os
import pandas as pd
import numpy as np
from EoraReader import EoraReader
| 35.777778 | 96 | 0.615683 |
a2e589c4ee6ca6ac8b468da944e0f2d14d31872f | 695 | py | Python | toto/methods/client_error.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | toto/methods/client_error.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | toto/methods/client_error.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | import logging
from toto.invocation import *
| 36.578947 | 91 | 0.723741 |
a2e5b6c37644bb0cda6e0ffc3d078b3332260604 | 1,945 | py | Python | parallelformers/policies/gptj.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 454 | 2021-07-18T02:51:23.000Z | 2022-03-31T04:00:53.000Z | parallelformers/policies/gptj.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 16 | 2021-07-18T10:47:21.000Z | 2022-03-22T18:49:57.000Z | parallelformers/policies/gptj.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 33 | 2021-07-18T04:48:28.000Z | 2022-03-14T22:16:36.000Z | # Copyright 2021 TUNiB 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, softw... | 28.188406 | 74 | 0.607712 |
a2e61afbf4f6a03e376d0464c7acf87dc5bb080e | 503 | py | Python | app/modules/checkerbox.py | hboueix/PyCheckers | c1339a004f30f76a33461b52f9633bbbd1204bb0 | [
"MIT"
] | null | null | null | app/modules/checkerbox.py | hboueix/PyCheckers | c1339a004f30f76a33461b52f9633bbbd1204bb0 | [
"MIT"
] | null | null | null | app/modules/checkerbox.py | hboueix/PyCheckers | c1339a004f30f76a33461b52f9633bbbd1204bb0 | [
"MIT"
] | null | null | null | import pygame
| 23.952381 | 65 | 0.606362 |
a2e6d1a1d562ff46afccc16626cb0e1d9bd964d4 | 1,319 | py | Python | tests/python/test_talos_walk_sl1m_topt.py | daeunSong/multicontact-locomotion-planning | 0aeabe6a7a8d49e54d6996a6126740cc90aa0050 | [
"BSD-2-Clause"
] | 31 | 2019-11-08T14:46:03.000Z | 2022-03-25T08:09:16.000Z | tests/python/test_talos_walk_sl1m_topt.py | pFernbach/multicontact-locomotion-planning | 86c3e64fd0ee57b1e4061351a16e43e6ba0e15c2 | [
"BSD-2-Clause"
] | 21 | 2019-04-12T13:13:31.000Z | 2021-04-02T14:28:15.000Z | tests/python/test_talos_walk_sl1m_topt.py | pFernbach/multicontact-locomotion-planning | 86c3e64fd0ee57b1e4061351a16e43e6ba0e15c2 | [
"BSD-2-Clause"
] | 11 | 2019-04-12T13:03:55.000Z | 2021-11-22T08:19:06.000Z | # Copyright (c) 2020, CNRS
# Authors: Pierre Fernbach <pfernbac@laas.fr>
import unittest
import subprocess
import time
from mlp import LocoPlanner, Config
from utils import check_motion
from hpp.corbaserver.rbprm.utils import ServerManager
if __name__ == '__main__':
unittest.main()
| 36.638889 | 125 | 0.718726 |
a2e7779c3e2b321cf059e7d364c94dc2593aa13c | 212 | py | Python | definitions.py | elpeix/kaa | b840613cb5eba876d937faf32031651332e5b5f6 | [
"MIT"
] | null | null | null | definitions.py | elpeix/kaa | b840613cb5eba876d937faf32031651332e5b5f6 | [
"MIT"
] | null | null | null | definitions.py | elpeix/kaa | b840613cb5eba876d937faf32031651332e5b5f6 | [
"MIT"
] | null | null | null | import os
import logging
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = True
LOG = logging.getLogger()
NAME = 'Sample Server'
VERSION = 'v1.0'
SERVER = 'example.SampleServer'
ENABLE_CORS = True
| 16.307692 | 53 | 0.740566 |
a2e9b6f6bd695b4f20c44aff1b1aeaa6c236f680 | 9,567 | py | Python | uncertainty_baselines/datasets/smcalflow.py | y0ast/uncertainty-baselines | 8d32c77ba0803ed715c1406378adf10ebd61ab74 | [
"Apache-2.0"
] | null | null | null | uncertainty_baselines/datasets/smcalflow.py | y0ast/uncertainty-baselines | 8d32c77ba0803ed715c1406378adf10ebd61ab74 | [
"Apache-2.0"
] | null | null | null | uncertainty_baselines/datasets/smcalflow.py | y0ast/uncertainty-baselines | 8d32c77ba0803ed715c1406378adf10ebd61ab74 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2021 The Uncertainty Baselines 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 ap... | 35.831461 | 93 | 0.691126 |
a2eb8907fa9fa5c982005554035cbb22b3ce7287 | 1,098 | py | Python | 1-FrequencyDivisionMultiplexing.py | mahnooranjum/Demo_CommunicationSystems | 6c3be46f9ad4a38bfe553b9a01855156713e49d9 | [
"MIT"
] | null | null | null | 1-FrequencyDivisionMultiplexing.py | mahnooranjum/Demo_CommunicationSystems | 6c3be46f9ad4a38bfe553b9a01855156713e49d9 | [
"MIT"
] | null | null | null | 1-FrequencyDivisionMultiplexing.py | mahnooranjum/Demo_CommunicationSystems | 6c3be46f9ad4a38bfe553b9a01855156713e49d9 | [
"MIT"
] | null | null | null | '''
==============================================================================
Author:
Mahnoor Anjum
Description:
Digital Multiplexing Techniques:
1- Frequency Division Multiplexing
Contact:
manomaq@gmail.com
===========================================================... | 21.115385 | 78 | 0.547359 |
a2ebe5b887b32f0561c68f37282697177b6753ec | 3,880 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension ATI.text_fragment_shader
This module customises the behaviour of the
OpenGL.raw.GL.ATI.text_fragment_shader to provide a more
Python-friendly API
Overview (from the spec)
The ATI_fragment_shader extension exposes a powerful fragment
processing model that provides a very general means of expr... | 46.190476 | 71 | 0.802835 |
a2ed46d6b33e4e8573f56ac8afc0ade0ec58667b | 7,311 | py | Python | vhog3d.py | parthsuresh/3dvhog | 9a439687a0ce30b86b7730a61733b3f3845d27c5 | [
"MIT"
] | 3 | 2021-05-18T07:48:39.000Z | 2021-12-23T06:35:41.000Z | vhog3d.py | parthsuresh/3dvhog | 9a439687a0ce30b86b7730a61733b3f3845d27c5 | [
"MIT"
] | null | null | null | vhog3d.py | parthsuresh/3dvhog | 9a439687a0ce30b86b7730a61733b3f3845d27c5 | [
"MIT"
] | null | null | null | import numpy as np
import math
from scipy.ndimage import convolve
from tqdm import tqdm
def hog3d(vox_volume, cell_size, block_size, theta_histogram_bins, phi_histogram_bins, step_size=None):
"""
Inputs
vox_volume : a [x x y x z] numpy array defining voxels with values in the range 0-1
cell_size : s... | 43.778443 | 117 | 0.591164 |
a2ee6d19098aed822e580f589bbcc0c4df0bf0c1 | 320 | py | Python | tests/urls.py | skioo/django-datatrans | c2159b08935cd0c70355ca6e8ff92bbe86d372cd | [
"MIT"
] | 9 | 2017-09-12T12:45:30.000Z | 2022-03-30T13:53:57.000Z | tests/urls.py | skioo/django-datatrans | c2159b08935cd0c70355ca6e8ff92bbe86d372cd | [
"MIT"
] | null | null | null | tests/urls.py | skioo/django-datatrans | c2159b08935cd0c70355ca6e8ff92bbe86d372cd | [
"MIT"
] | 1 | 2021-11-08T10:21:01.000Z | 2021-11-08T10:21:01.000Z | from django.urls import include, path
from datatrans.views import example
urlpatterns = [
path(r'^datatrans/', include('datatrans.urls')),
path(r'^example/register-credit-card$', example.register_credit_card, name='example_register_credit_card'),
path(r'^example/pay$', example.pay, name='example_pay'),
]
| 32 | 111 | 0.7375 |
a2f252e2b9ab4a63f342c14ab8d8666d4956f841 | 11,160 | py | Python | gibbs/minimization.py | volpatto/gibbs | 776acff6166dd4fd3039d55074542d995ac91754 | [
"MIT"
] | 28 | 2019-05-25T14:50:00.000Z | 2022-01-18T00:54:22.000Z | gibbs/minimization.py | volpatto/gibbs | 776acff6166dd4fd3039d55074542d995ac91754 | [
"MIT"
] | 10 | 2019-06-15T06:07:14.000Z | 2021-09-01T04:32:50.000Z | gibbs/minimization.py | volpatto/gibbs | 776acff6166dd4fd3039d55074542d995ac91754 | [
"MIT"
] | 5 | 2019-08-04T05:37:34.000Z | 2022-01-18T10:10:40.000Z | import attr
import types
from typing import Union
from enum import Enum
import numpy as np
from scipy.optimize import differential_evolution
import pygmo as pg
| 38.088737 | 133 | 0.664606 |
a2f4994690266aa4a640429912d46124db104724 | 1,461 | py | Python | tests/unittests/types/test_array.py | TrigonDev/apgorm | 5b593bfb5a200708869e079248c25786608055d6 | [
"MIT"
] | 8 | 2022-01-21T23:07:29.000Z | 2022-03-26T12:03:57.000Z | tests/unittests/types/test_array.py | TrigonDev/apgorm | 5b593bfb5a200708869e079248c25786608055d6 | [
"MIT"
] | 22 | 2021-12-23T00:43:41.000Z | 2022-03-23T13:17:32.000Z | tests/unittests/types/test_array.py | TrigonDev/apgorm | 5b593bfb5a200708869e079248c25786608055d6 | [
"MIT"
] | 3 | 2022-01-15T20:58:33.000Z | 2022-01-26T21:36:13.000Z | # MIT License
#
# Copyright (c) 2021 TrigonDev
#
# 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, pu... | 38.447368 | 79 | 0.750171 |
a2f56add77b1581d6619a3c899c2460cc7dc3102 | 137 | py | Python | cisco_support/__version__.py | rothdennis/cisco_support | c20b955794400eb565fa5c178749c2ee6ef7dc0f | [
"MIT"
] | 4 | 2021-09-09T07:24:13.000Z | 2022-03-04T19:51:01.000Z | cisco_support/__version__.py | rothdennis/cisco_support | c20b955794400eb565fa5c178749c2ee6ef7dc0f | [
"MIT"
] | null | null | null | cisco_support/__version__.py | rothdennis/cisco_support | c20b955794400eb565fa5c178749c2ee6ef7dc0f | [
"MIT"
] | null | null | null | __title__ = 'cisco_support'
__description__ = 'Cisco Support APIs'
__version__ = '0.1.0'
__author__ = 'Dennis Roth'
__license__ = 'MIT'
| 19.571429 | 38 | 0.737226 |
a2f8a7986f7bf085148eeaed0a44176810f81182 | 747 | py | Python | code/searchers.py | trunc8/mespp | 8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb | [
"MIT"
] | 2 | 2021-07-07T17:01:17.000Z | 2022-03-30T05:28:44.000Z | code/searchers.py | trunc8/mespp | 8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb | [
"MIT"
] | null | null | null | code/searchers.py | trunc8/mespp | 8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb | [
"MIT"
] | 1 | 2021-07-07T17:00:54.000Z | 2021-07-07T17:00:54.000Z | #!/usr/bin/env python3
# trunc8 did this
import numpy as np | 25.758621 | 58 | 0.649264 |
a2fa1506f35030e5726f14dab7372d11ea530f9d | 1,015 | py | Python | vogue/api/api_v1/api.py | mayabrandi/vogue | 463e6417a9168eadb0d11dea2d0f97919494bcd3 | [
"MIT"
] | 1 | 2021-12-16T19:29:17.000Z | 2021-12-16T19:29:17.000Z | vogue/api/api_v1/api.py | mayabrandi/vogue | 463e6417a9168eadb0d11dea2d0f97919494bcd3 | [
"MIT"
] | 188 | 2018-10-25T06:13:17.000Z | 2022-02-25T19:47:06.000Z | vogue/api/api_v1/api.py | mayabrandi/vogue | 463e6417a9168eadb0d11dea2d0f97919494bcd3 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from vogue.api.api_v1.endpoints import (
insert_documents,
home,
common_trends,
sequencing,
genootype,
reagent_labels,
prepps,
bioinfo_covid,
bioinfo_micro,
bioinfo_mip,
update,
)
from vogue.settings import static_files
app = FastAPI()
app.mount... | 27.432432 | 64 | 0.747783 |
a2fa916053116744cb58a54f835b741f35144a4f | 1,090 | py | Python | models/dgcnn.py | veronicatozzo/SimpleView | 70dbde727b25db8fdd9dc486ac1f74ff31a89821 | [
"BSD-3-Clause"
] | 95 | 2021-06-09T09:44:14.000Z | 2022-03-13T12:10:50.000Z | models/dgcnn.py | veronicatozzo/SimpleView | 70dbde727b25db8fdd9dc486ac1f74ff31a89821 | [
"BSD-3-Clause"
] | 7 | 2021-06-23T04:44:25.000Z | 2022-01-14T15:45:27.000Z | models/dgcnn.py | veronicatozzo/SimpleView | 70dbde727b25db8fdd9dc486ac1f74ff31a89821 | [
"BSD-3-Clause"
] | 13 | 2021-07-01T23:55:15.000Z | 2022-01-04T12:29:02.000Z |
import torch.nn as nn
import torch.nn.functional as F
from dgcnn.pytorch.model import DGCNN as DGCNN_original
from all_utils import DATASET_NUM_CLASS
| 27.25 | 74 | 0.534862 |
a2fcc2dcdf1e51df954863eb81bc306011453b3d | 283 | py | Python | atcoder/arc/a036.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/arc/a036.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/arc/a036.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | from collections import deque
N, K = map(int, input().split())
T = [int(input()) for _ in range(N)]
ans_dq = deque([0, 0, 0])
for i, t in enumerate(T):
ans_dq.append(t)
ans_dq.popleft()
if sum(ans_dq) < K and i > 1:
print(i + 1)
break
else:
print(-1)
| 21.769231 | 36 | 0.568905 |
a2fcecf1decf4817a91d5d880a0ea9320b043380 | 238 | py | Python | Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex029.py | Jhonattan-rocha/Meus-primeiros-programas | f5971b66c0afd049b5d0493e8b7a116b391d058e | [
"MIT"
] | null | null | null | Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex029.py | Jhonattan-rocha/Meus-primeiros-programas | f5971b66c0afd049b5d0493e8b7a116b391d058e | [
"MIT"
] | null | null | null | Python/Curos_Python_curemvid/Exercicios_dos_videos/Ex029.py | Jhonattan-rocha/Meus-primeiros-programas | f5971b66c0afd049b5d0493e8b7a116b391d058e | [
"MIT"
] | null | null | null | velocidade = float(input("Digite a sua velocidade em Km/h: "))
if velocidade > 80:
amais = velocidade - 80
amais = amais*7
print("Voc foi multado, devera pagar uma multa de: R${:.2f}".format(amais))
print("FIM, no se mate")
| 34 | 80 | 0.663866 |
a2fdf1816d77bc5926536585a5ffc8b6a4ac1f23 | 3,746 | py | Python | research/radar-communication/dqn_agent.py | hieunq95/keras-rl | d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5 | [
"MIT"
] | null | null | null | research/radar-communication/dqn_agent.py | hieunq95/keras-rl | d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5 | [
"MIT"
] | null | null | null | research/radar-communication/dqn_agent.py | hieunq95/keras-rl | d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5 | [
"MIT"
] | null | null | null | import numpy as np
import gym
import argparse
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten, Convolution2D
from keras.optimizers import Adam
from rl.agents.dqn import DQNAgent
from rl.policy import LinearAnnealedPolicy, EpsGreedyQPolicy
from rl.memory import SequentialMemory
... | 45.682927 | 115 | 0.67165 |
a2fe2076a061b4411e718858d451c717a3acc756 | 318 | py | Python | Chapter01/displacy-save-as-image-1-4-5.py | indrasmartmob/Mastering-spaCy | 756876902eee8437d6d9ddcef2ba7ffabfc970a3 | [
"MIT"
] | 76 | 2021-07-07T14:32:42.000Z | 2022-03-27T17:15:15.000Z | Chapter01/displacy-save-as-image-1-4-5.py | indrasmartmob/Mastering-spaCy | 756876902eee8437d6d9ddcef2ba7ffabfc970a3 | [
"MIT"
] | 4 | 2021-08-18T18:08:23.000Z | 2022-03-27T03:30:27.000Z | Chapter01/displacy-save-as-image-1-4-5.py | indrasmartmob/Mastering-spaCy | 756876902eee8437d6d9ddcef2ba7ffabfc970a3 | [
"MIT"
] | 38 | 2021-07-09T22:23:38.000Z | 2022-03-12T07:11:37.000Z | #!/usr/bin/env python3
import spacy
from spacy import displacy
from pathlib import Path
nlp = spacy.load("en_core_web_md")
doc = nlp("I'm a butterfly.")
svg = displacy.render(doc, style="dep", jupyter=False)
filename = "butterfly.svg"
output_path = Path(filename)
output_path.open("w", encoding="utf-8").write(svg)
| 22.714286 | 54 | 0.735849 |
a2fe69feb718bafa1d3ea491a261e3b0356c764f | 3,485 | py | Python | mask_detector/opencv/camera_ver2.py | osamhack2021/AI_Mask_Detector | 1d71980bd7b7168a9d006f03325fb51783c7f877 | [
"MIT"
] | null | null | null | mask_detector/opencv/camera_ver2.py | osamhack2021/AI_Mask_Detector | 1d71980bd7b7168a9d006f03325fb51783c7f877 | [
"MIT"
] | null | null | null | mask_detector/opencv/camera_ver2.py | osamhack2021/AI_Mask_Detector | 1d71980bd7b7168a9d006f03325fb51783c7f877 | [
"MIT"
] | 1 | 2021-11-21T08:19:54.000Z | 2021-11-21T08:19:54.000Z | import cv2
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
import numpy as np
model = "./AI_Mask_Detector/res10_300x300_ssd_iter_140000_fp16.caffemodel"
config = "./AI_Mask_Detector/deploy.prototxt"
# model = './AI_Mask_Detector/opencv_face_detector_uint8.pb'
# config = './AI_Mask_... | 29.786325 | 85 | 0.505595 |
a2ff595beb35cc3bf63e8eee3f852f028caee135 | 55,499 | py | Python | pipelines/head-pose-pipeline/training/models.py | tonouchi510/kfp-project | 67b78ae53cc3de594b8254999a4f553a8d5cec27 | [
"MIT"
] | null | null | null | pipelines/head-pose-pipeline/training/models.py | tonouchi510/kfp-project | 67b78ae53cc3de594b8254999a4f553a8d5cec27 | [
"MIT"
] | null | null | null | pipelines/head-pose-pipeline/training/models.py | tonouchi510/kfp-project | 67b78ae53cc3de594b8254999a4f553a8d5cec27 | [
"MIT"
] | null | null | null | import sys
import logging
import numpy as np
import tensorflow as tf
from tensorflow.keras import backend as K
from capsulelayers import CapsuleLayer
from capsulelayers import MatMulLayer
from loupe_keras import NetVLAD
sys.setrecursionlimit(2**20)
np.random.seed(2**10)
# Custom layers
# Note - Usage of Lambda layer... | 40.658608 | 131 | 0.568479 |
0c0064090948d111bf7fd540d7adcc81adb3d655 | 2,537 | py | Python | remijquerytools/__init__.py | kdahlhaus/remi-jquery-tools | 3ecc78d6a39edc7a77b89dd8ed08649f759b503a | [
"Apache-2.0"
] | null | null | null | remijquerytools/__init__.py | kdahlhaus/remi-jquery-tools | 3ecc78d6a39edc7a77b89dd8ed08649f759b503a | [
"Apache-2.0"
] | null | null | null | remijquerytools/__init__.py | kdahlhaus/remi-jquery-tools | 3ecc78d6a39edc7a77b89dd8ed08649f759b503a | [
"Apache-2.0"
] | null | null | null | import remi.gui as gui
import os
import logging
log = logging.getLogger('remi.gui.remijquerytools.overlay')
def get_res_path():
""" return addtion to 'res' path for items needed by this lib """
res_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'res')
return res_path
| 32.948052 | 109 | 0.581395 |
0c01e08aaee863025867488824fa6692ef88b661 | 468 | py | Python | Python_Advanced_Softuni/Comprehensions_Exericises/venv/number_classification.py | borisboychev/SoftUni | 22062312f08e29a1d85377a6d41ef74966d37e99 | [
"MIT"
] | 1 | 2020-12-14T23:25:19.000Z | 2020-12-14T23:25:19.000Z | Python_Advanced_Softuni/Comprehensions_Exericises/venv/number_classification.py | borisboychev/SoftUni | 22062312f08e29a1d85377a6d41ef74966d37e99 | [
"MIT"
] | null | null | null | Python_Advanced_Softuni/Comprehensions_Exericises/venv/number_classification.py | borisboychev/SoftUni | 22062312f08e29a1d85377a6d41ef74966d37e99 | [
"MIT"
] | null | null | null | elements = [int(x) for x in input().split(', ')]
even_numbers = [x for x in elements if x % 2 == 0]
odd_numbers = [x for x in elements if x % 2 != 0]
positive = [x for x in elements if x >= 0]
negative = [x for x in elements if x < 0]
print(f"Positive: {', '.join(str(x) for x in positive)}")
print(f"Negative: {', '.j... | 36 | 57 | 0.613248 |
0c02d2fcd975ca2fafbae393016b1ddc2ddcf6b5 | 2,048 | py | Python | src/probnum/type.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | null | null | null | src/probnum/type.py | ralfrost/probnum | 6b0988009a9dd7ecda87ba28c9d5c0b8019981b6 | [
"MIT"
] | 2 | 2020-12-28T19:37:16.000Z | 2020-12-28T19:37:31.000Z | src/probnum/type.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | null | null | null | import numbers
from typing import Iterable, Tuple, Union
import numpy as np
########################################################################################
# API Types
########################################################################################
ShapeType = Tuple[int, ...]
RandomStateType = Unio... | 40.156863 | 88 | 0.626953 |
0c03aa3f4a41bc42ddd522aaf547cfa062e47c23 | 12,279 | py | Python | src/socialprofile/views.py | DLRSP/django-sp | 9079358a4fc054f1a5afb056ccfd6a8b8afb36fa | [
"MIT"
] | 1 | 2022-01-11T07:25:17.000Z | 2022-01-11T07:25:17.000Z | src/socialprofile/views.py | DLRSP/django-sp | 9079358a4fc054f1a5afb056ccfd6a8b8afb36fa | [
"MIT"
] | 16 | 2021-12-20T01:30:34.000Z | 2022-03-31T01:38:59.000Z | src/socialprofile/views.py | DLRSP/django-sp | 9079358a4fc054f1a5afb056ccfd6a8b8afb36fa | [
"MIT"
] | null | null | null | """Django Views for the socialprofile module"""
import json
import logging
import sweetify
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import REDIRECT_FIELD_NAME, login
from django.contrib.auth import logout as auth_logout
from django.contrib.auth.decorators import log... | 33.186486 | 96 | 0.582784 |
0c042004c2d10428499c1e729e50d34d388b3eb9 | 519 | py | Python | sources/101_test.py | Painatalman/python101 | 9727ca03da46f81813fc2d338b8ba22fc0d8b78b | [
"Apache-2.0"
] | null | null | null | sources/101_test.py | Painatalman/python101 | 9727ca03da46f81813fc2d338b8ba22fc0d8b78b | [
"Apache-2.0"
] | null | null | null | sources/101_test.py | Painatalman/python101 | 9727ca03da46f81813fc2d338b8ba22fc0d8b78b | [
"Apache-2.0"
] | null | null | null | from fruits import validate_fruit
fruits = ["banana", "lemon", "apple", "orange", "batman"]
print fruits
list_fruits(fruits)
print fruits
| 22.565217 | 100 | 0.628131 |
0c04e662d416158f9b46ddaf7846e7bfe2b9fca2 | 3,439 | py | Python | tests/test_cms_config.py | Aiky30/djangocms-content-expiry | da7d348bcdafbf1a9862e4cc69a8363b3305a31a | [
"BSD-3-Clause"
] | null | null | null | tests/test_cms_config.py | Aiky30/djangocms-content-expiry | da7d348bcdafbf1a9862e4cc69a8363b3305a31a | [
"BSD-3-Clause"
] | 4 | 2021-09-27T10:15:13.000Z | 2021-11-23T17:18:04.000Z | tests/test_cms_config.py | Aiky30/djangocms-content-expiry | da7d348bcdafbf1a9862e4cc69a8363b3305a31a | [
"BSD-3-Clause"
] | 4 | 2021-09-06T20:13:45.000Z | 2021-10-02T15:00:58.000Z | from unittest.mock import Mock
from django.apps import apps
from django.contrib import admin
from django.test import RequestFactory, TestCase
from djangocms_moderation.cms_config import ModerationExtension
from djangocms_moderation.models import ModerationRequestTreeNode
from djangocms_content_expiry.cms_config impo... | 40.458824 | 111 | 0.756325 |
0c0689f206c41c5e5d28c78e11446ccb008b17b1 | 4,466 | py | Python | tilequeue/format/OSciMap4/StaticVals/__init__.py | ducdk90/tilequeue | c664b5c89a9f0e6743405ab266aa9ca80b57806e | [
"MIT"
] | 29 | 2016-11-03T18:39:21.000Z | 2022-02-27T17:42:37.000Z | tilequeue/format/OSciMap4/StaticVals/__init__.py | ducdk90/tilequeue | c664b5c89a9f0e6743405ab266aa9ca80b57806e | [
"MIT"
] | 146 | 2016-07-07T16:41:07.000Z | 2021-12-11T00:27:20.000Z | tilequeue/format/OSciMap4/StaticVals/__init__.py | ducdk90/tilequeue | c664b5c89a9f0e6743405ab266aa9ca80b57806e | [
"MIT"
] | 28 | 2016-08-19T16:08:52.000Z | 2021-07-26T10:16:29.000Z | vals = {
"yes" : 0,
"residential" : 1,
"service" : 2,
"unclassified" : 3,
"stream" : 4,
"track" : 5,
"water" : 6,
"footway" : 7,
"tertiary" : 8,
"private" : 9,
"tree" : 10,
"path" : 11,
"forest" : 12,
"secondary" : 13,
"house" : 14,
"no" : 15,
"asphalt" : 16,
"wood" : 17,
"grass" : 18,
"paved" : 19,
"primary" : 20,
"un... | 17.111111 | 26 | 0.59382 |