blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06297336808d521782cd2cb87a60fbda8e1592f6 | b253bec2667e0cff7cc2306761ff01d6522606d1 | /setup.py | 48e34c07fad71e830862c2ed272485d56c152d32 | [
"MIT"
] | permissive | pmp-p/fstrings_helper | dc50b9cc2a8c61faa16c911fe9fc70f3ccfc4ba1 | 49cc9e17aca04b73fc2b9717742af9d2053f366b | refs/heads/master | 2020-03-31T14:59:20.785649 | 2019-07-01T15:22:27 | 2019-07-01T15:22:27 | 152,318,729 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | import distutils
import os.path
from setuptools import setup
from setuptools.command.install import install as _install
PTH = (
'try:\n'
' import future_fstrings\n'
'except ImportError:\n'
' pass\n'
'else:\n'
' future_fstrings.register()\n'
)
class install(_install):
def initia... | [
"asottile@umich.edu"
] | asottile@umich.edu |
2d6d228c3a12cc76f0283c0d637c76d28e52964f | 7e36343736b542e4cdf660bea3e25aa2e88036f2 | /dp/509.fibonacci-number.py | 63ddcf119cb447455e6cb27e1069f83dcea0bcef | [] | no_license | soaringk/Leetcode-Log | 2d1b52b5fa189951e6c2b1d8b67000bb99c43f06 | a820f55bd05f43f3b923b0fbe9dc059fe9fdb7e8 | refs/heads/master | 2023-03-23T12:22:25.352632 | 2021-03-15T13:38:56 | 2021-03-15T13:38:56 | 332,972,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | #
# @lc app=leetcode id=509 lang=python3
#
# [509] Fibonacci Number
#
# @lc code=start
class Solution:
def fib(self, n: int) -> int:
if n < 1: return 0
if n == 1 or n == 2: return 1
prev = 1
curr = 1
for i in range(3, n + 1):
nex = prev + curr
prev = ... | [
"k3vin.zhang@gmail.com"
] | k3vin.zhang@gmail.com |
8eddb740d27e5bceed86e8295591b36306f6bfe3 | 531caac957596fc623e534bce734ef6b45be0b07 | /tests/operators/vector/test_smooth_l1_loss_grad_001.py | 694c06266318023b1ea9df25b4479d5e79b82912 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | wxyhv/akg | 02e64d81bbb84472e0bf1c57a691b688ea743d6e | fc9b6f5b6fa024da89bf90466a815359ca54015d | refs/heads/master | 2023-03-11T02:59:18.472826 | 2021-02-23T07:44:16 | 2021-02-23T07:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,837 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
f456cae0b212c1aafc8d42125def987bb22a525a | 91cac04472c4f9a874f9c4c3393d239c2a364bb3 | /Scripts/heft/dynamic_hetero_resources_exp2.py | a23c566f840113592dbce19df5966e41618d3ed7 | [
"MIT"
] | permissive | radical-experiments/campaign_manager | a1ab2fd9e8510919bf6d4b5fb1241aa0e5730208 | 337660cf07a97933b9b516d6612353bd3f6592a8 | refs/heads/master | 2023-01-13T19:28:37.590334 | 2020-11-11T15:37:57 | 2020-11-11T15:37:57 | 257,754,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | from radical.cm.planner import HeftPlanner
from random import gauss
import pandas as pd
import numpy as np
import sys
from time import time
def campaign_creator(num_workflows):
tmp_campaign = list()
tmp_num_oper = list()
for i in range(num_workflows):
workflow = {'description':None}
workf... | [
"i.paraskev@rutgers.edu"
] | i.paraskev@rutgers.edu |
9012c87a2aee27b2fd02601681c078389d4b09e1 | 9b30c078a08cb7168529fbe0954fd5f1ad8867c1 | /bitonic_tour/bitonic_tour.py | fe88fa5a19ebc8f4cc00f11ee9a6f83019be6720 | [
"BSD-3-Clause"
] | permissive | PythonicNinja/BitonicTour | 8beaac4e0994b2d2a89b52c550abf23a148cdbb2 | 7936d186e49f3543dded3296e3f00280eb231c6f | refs/heads/master | 2021-01-19T22:33:09.657804 | 2015-04-28T12:58:23 | 2015-04-28T12:58:23 | 34,730,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | # -*- coding: utf-8 -*-
from collections import namedtuple
import matplotlib.pyplot as plt
import sys
import math
class Point(object):
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return '({},{})'.format(self.x, self.y)
def distance(self, p2):
ret... | [
"vojtek.nowak@gmail.com"
] | vojtek.nowak@gmail.com |
f5b25c538987fd6ce5b14f35adb94b5f6c313ba9 | 40aa8243e28eaecc895e0187e1e12e3b66195003 | /Practice/Learn Python the Hard Way/ex44d.py | 1dc4d868c58bdd6125687a0af81238ae30f54a2d | [] | no_license | Toruitas/Python | 94c5dc82736914203e8b712055b824796816c145 | 2d1ea9cdad9501ae9d934c90d516a5a846d2a631 | refs/heads/master | 2016-09-05T20:10:41.584677 | 2015-06-01T03:14:51 | 2015-06-01T03:14:51 | 17,966,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | __author__ = 'Stuart'
class Parent(object):
def override(self):
print("PARENT override()")
def implicit(self):
print("PARENT implicit()")
def altered(self):
print('PARENT altered()')
class Child(Parent):
def override(self):
print("CHILD override()")
def altered... | [
"Toruitas@gmail.com"
] | Toruitas@gmail.com |
2d1a46124b1bcd05edae440c40989402e8038634 | 258b656d1b6864726864f89d4c8dc38fc633a48f | /odoo_addons_others/opyme_banks_cards_payments/tests/__init__.py | 537843db122d3786e710767444e8f3bffed770b5 | [] | no_license | test-odoorosario/opt | c17e1c1767710ca8e13a799644fb85b07e83639b | 77921b4d965f2e4c081d523b373eb306a450a873 | refs/heads/master | 2022-12-02T04:36:04.685119 | 2019-07-11T17:17:20 | 2019-07-11T17:17:20 | 196,436,293 | 0 | 1 | null | 2022-11-22T00:30:40 | 2019-07-11T17:13:21 | Python | UTF-8 | Python | false | false | 1,013 | py | # coding: utf-8
##############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# Licens... | [
"root@ip-172-31-8-107.sa-east-1.compute.internal"
] | root@ip-172-31-8-107.sa-east-1.compute.internal |
f92c7ef64554501dda97c9d6219ae15b22fe6c96 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/221/users/3746/codes/1818_2570.py | 99c933c1cdb0a6149f2fcf9608a84330f969d007 | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from numpy import *
x = array(eval(input("Digite uma sequencia: ")))
m = sum(x)/size(x)
desvio = 1
for i in arange(size(x)):
desvio *= abs(x[i] - m)
p = ( desvio ) ** (1/len(x))
print(round(p,3)) | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
f6e27ff9b7c2954f1e1efd0374cea3fab623326c | 0174ee349709eb578b25741998b8e32c5f64647e | /ENV_estimation/Matlab_env_training/steps_torch_env_BEGAN/NET/Net_full_cnn_deep_64filters.py | a08e8c9b2255821a7ec05186ba04328bf0fa5f7f | [] | no_license | iiscleap/Joint_FDLP_envelope_dereverberation_E2E_ASR | 8cbe2e97a86cd2abc4a33daccf98eed136e330ab | 4ab007d4b946f848f8f6fe1a1576d4053c295116 | refs/heads/master | 2023-08-16T17:42:26.626435 | 2021-10-04T06:28:02 | 2021-10-04T06:28:02 | 413,298,107 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import torch
import torch.nn as nn
class Net (nn.Module):
def __init__(self):
super(Net,self).__init__()
#self.B4 = nn.BatchNorm2d(8,track_running_stats=False)
self.conv1 = nn.Conv2d(1,64,kernel_size=(41,3), padding=(20,1))
self.drop1 = nn.Dropout(0.2)
self.conv2 = nn.Con... | [
"anirudhsreeram@gmail.com"
] | anirudhsreeram@gmail.com |
85ba744861e35db375cefd578b8d05b380b43753 | 988176bcdae841e08106b0fe5cf07aabbc210c83 | /task is to tell all the numbers ranging from 1-n with the fact that absolute diff between consecutive digits is 1.py | 29235440a84cbcc7ec6fc56e6544024acddf10d3 | [] | no_license | gopiprasad008/GUVI_CODEKATA_PYTHON_CODE | ce1a63c7eea2a099c01748162c1deb47172dcd0a | 78f374e344df25aab181408d8f41b3ebe03b34ef | refs/heads/master | 2023-03-16T00:27:31.539524 | 2020-05-16T11:46:08 | 2020-05-16T11:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | n = int(input())
l = []
if n >= 10:
for i in range(1, n+1):
i = str(i)
flag = True
if len(i) == 1:
flag = False
else:
for j in range(len(i)-1):
if abs(int(i[j]) - int(i[j+1])) != 1:
flag = False
break
... | [
"noreply@github.com"
] | gopiprasad008.noreply@github.com |
9d9d8148a72ea925742ef997d1ff6ecf05914f8c | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/types/passport_required_element.py | 3961e39bab983a8c1c4d49907f8eb8b77f522af3 | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 935 | py |
from ..utils import Object
class PassportRequiredElement(Object):
"""
Contains a description of the required Telegram Passport element that was requested by a service
Attributes:
ID (:obj:`str`): ``PassportRequiredElement``
Args:
suitable_elements (List of :class:`telegram.api.typ... | [
"me@amirh.co"
] | me@amirh.co |
d7fcea89d8f0962d52b1409db8a2a0f4cdcfd64a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02601/s340228332.py | 23c95eace5ee6c08286bda4d45d58f8a21a5abd7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import sys
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
def main():
A, B, C = [int(x) for x in input().split()]
K = int(input())
cnt = 0
while A >= B:
cnt += 1
B *= 2
while B >= C:
cnt += 1
C *= 2
if cnt <= K:
print("Yes")
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1d7b78b317883196e980830a250cee69aa6b6255 | b461ea3843d2772545886faaa041250c9b8d9634 | /backend/test_mobile_app_4_28824/settings.py | 4a1fa7cdeab6acca5a17d509a16ae0f01e96a9d2 | [] | no_license | crowdbotics-apps/test-mobile-app-4-28824 | 66f92e3dbe0008ad32b43d468f66c254c0904d1c | 05ef5ad9d4b3d54106fda9f874277abd25f83dcf | refs/heads/master | 2023-06-22T06:20:36.513365 | 2021-07-23T16:01:48 | 2021-07-23T16:01:48 | 385,782,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,206 | py | """
Django settings for test_mobile_app_4_28824 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bc1f1845e476f67df90a1de79d7693592e018721 | b1c99061474c4e2f2653f6f3d83931c949c58b13 | /Basic/chapter4/duplicate/DictMethod2.py | 208133bf693ddfa70ca63628644e696dff14c016 | [] | no_license | hyperaeon/python | df75346040a5ccc588e21b0d761493c59e1a4fe3 | 21d10ef7af3227d29092a6720666c0db8e418ec4 | refs/heads/master | 2016-09-14T08:58:53.794960 | 2016-04-26T05:34:56 | 2016-04-26T05:34:56 | 57,100,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | __author__ = 'hzliyong'
people = {
'Alice': {
'phone' : '2323',
'addr' : 'Foo drive 23'
},
'Beth' : {
'phone' : '9102',
'addr' : 'Bar street 32'
},
'Cecil' : {
'phone' : '3158',
'addr' : 'Baz avenue 90'
}
}
labels = {
'phone': 'phone number',... | [
"hzliyong@corp.netease.com"
] | hzliyong@corp.netease.com |
d6c5877baea26781df716bd69865cb4b57600719 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/ocr/satrn/pytorch/base/models/recognizer/satrn.py | be984093faaef6b6e108e026315a40335620cde5 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 238 | py | from models.builder import DETECTORS
from .encode_decode_recognizer import EncodeDecodeRecognizer
@DETECTORS.register_module()
class SATRN(EncodeDecodeRecognizer):
"""Implementation of `SATRN <https://arxiv.org/abs/1910.04396>`_"""
| [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
ea8322fe2910f64bfad28f9e4a140b0d6ccb551c | 1463741d8ddd3efbaea7d5beea01f2cf19a46276 | /SRM661/FallingSand.py | b174728165a92ceb522c3423c69eb13bc579f349 | [] | no_license | wuhao007/topcoder | 017947ddf9992987476e1138e768d2dd11837234 | 53613ea18afdb0cf607f663c251cfa954b68ae18 | refs/heads/master | 2016-08-04T10:50:24.044216 | 2015-08-11T14:57:09 | 2015-08-11T14:57:09 | 29,065,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | class FallingSand:
def simulate(self, board):
height = len(board)
width = len(board[0])
result = [[col for col in row] for row in board]
for col in range(width):
i = 0
j = 0
while i <= height:
if i == height or result[i][col] == 'x'... | [
"tohaowu@gmail.com"
] | tohaowu@gmail.com |
2e78357beb02bdd76f7b7159b83e2e1badaedd44 | 0e0a8fca40185253025d2c44acafa8ea628bc961 | /ml_eeg/chart/visual_data.py | 4ee5bca4d0de11dd246138df1da68024f2d05436 | [] | no_license | xuhuanyunxiao/ml_eeg | 151720f0d6a00d815f21d6526c84c0d280d14655 | cc464668d1cdf33d371089833ac5428cb11ac783 | refs/heads/master | 2019-07-25T16:27:27.030335 | 2017-05-26T02:42:05 | 2017-05-26T02:42:05 | 64,373,016 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,763 | py | # -*- coding: utf-8 -*-
#%%
import numpy as np
import pandas as pd
from cycler import cycler
import matplotlib.pylab as pylab
import matplotlib.pyplot as plt
from matplotlib.pyplot import savefig
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
#from matplotlib.ticker import LinearLocator, FormatSt... | [
"605828203@qq.com"
] | 605828203@qq.com |
32041dd783fe53575a0f49eadcca2ce9733f4d6f | 4a48593a04284ef997f377abee8db61d6332c322 | /python/gradio/authentication_single_user.py | e018fe42e2780394ae124de3611a6f3d0acac8dc | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/env python3
# To run this demo, type in a terminal: gradio authentication_single_user.py
# See: https://www.gradio.app/guides/sharing-your-app#authentication
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch(au... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
d4185600be3f5118a23c40c7bfea74284068f38d | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /experiences/serializers/experience_serializer.py | 5cc50421a259b063d5d0b16570a1bd2d818eddc3 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | # -*- coding: utf-8 -*-
from helpers.serializers import AutoModelSerializer
from experiences.models import Experience
# from experiences.serializers.tag_select_serializer import TagSelectSerializer
from .assignment_tag_serializer import AssignmentTagSerializer
from .experience_sponsor_serializer import ExperienceSpon... | [
"norman@xael.org"
] | norman@xael.org |
9064a6404cbbf0636c8390857c56ffc3aafddc45 | 42a812ac785752921dcdddd4ae56064b51452b39 | /bulletin/post/service.py | 63027a0b640318fac71d029488fe033e2db32ed7 | [] | no_license | Pre-Onboarding-Listerine/aimmo-assignment-team-1 | e4a15d3e71f1985febf911360691389f5996f0fb | d94dd7482f065ac1b020bb500984740c13af14e6 | refs/heads/main | 2023-09-02T12:23:49.693075 | 2021-11-03T00:25:18 | 2021-11-03T00:25:18 | 423,444,898 | 1 | 3 | null | 2021-11-02T16:35:38 | 2021-11-01T11:46:19 | Python | UTF-8 | Python | false | false | 2,259 | py | from datetime import datetime
from typing import Optional
from .dto.deleted_post_id import DeletedPostId
from .dto.list_params import ListParams
from .dto.post_changes import PostChanges
from .dto.post_content import PostContents
from member.models import Member
from .dto.post_list import PostList
from .exceptions im... | [
"rlawndhks217@gmail.com"
] | rlawndhks217@gmail.com |
0a518aaafd69d81b11d9bc75f1a6d5ceb74437be | a57e66be33512a7e2e99adb6f597151b56c4c373 | /psextractzip.py | 7ca1385fe50f200807f7ee27cb2f74eb2b6a7aa5 | [] | no_license | ravijaya/sep28 | 17025ea0997a371f54a6374f90d4bf56e0206840 | 8907f4b03ac2c4b2f1806d0d7cf3fd6aa680680c | refs/heads/master | 2022-12-18T23:58:12.989144 | 2020-09-30T12:13:15 | 2020-09-30T12:13:15 | 299,901,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from zipfile import ZipFile
from os.path import isdir
from os import mkdir
extract_path = '/tmp/catch32'
if not isdir(extract_path):
mkdir(extract_path)
zf = ZipFile('source.zip', mode='r')
zf.extractall(extract_path)
zf.close() | [
"ravi.goglobium@gmail.com"
] | ravi.goglobium@gmail.com |
f3cdc3c4ed9fb20772082063893b5fe2e7011323 | c8a7ccfb42628d1100562a053c4334488e1bf239 | /bf_transpiler.py | c9b0b6600a3268218f8306c93743175946997ef0 | [
"CC0-1.0"
] | permissive | LyricLy/python-snippets | 8487619a916e33e02b5772aba577d9dafdfd803b | 9d868b7bbccd793ea1dc513f51290963584a1dee | refs/heads/master | 2020-04-08T01:57:22.511167 | 2018-11-24T08:12:20 | 2018-11-24T08:12:20 | 158,916,096 | 1 | 0 | CC0-1.0 | 2018-11-24T08:16:59 | 2018-11-24T08:16:59 | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python3
# encoding: utf-8
import sys
print('#include <stdio.h>')
# https://en.wikipedia.org/wiki/Brainfuck#Commands
print('char array[30000] = {0};')
print('char *ptr=array;')
print('int main(void) {')
toke1s = {
'>': '++ptr;',
'<': '--ptr;',
'+': '++*ptr;',
'-': '--*ptr;',
'.': 'putchar(*ptr);',... | [
"bmintz@protonmail.com"
] | bmintz@protonmail.com |
871a7bf6dcd9ae919c3619cdc9d1c3a241dab433 | f6cb3563a412f148a8a9f47204ac1e2226ae7b2e | /models/encoders/core/multitask_lstm.py | 7710216ba0ae581443b27d07387a2b26dbe0f6d4 | [
"MIT"
] | permissive | sundogrd/tensorflow_end2end_speech_recognition | 424789888a54d7149aa9a35a68e781df553abfd9 | 61e4a65fb5c9f3d9f690d713dcd77a48b1de0a14 | refs/heads/master | 2020-05-17T19:21:34.206076 | 2019-04-28T14:03:12 | 2019-04-28T14:03:12 | 183,913,207 | 0 | 0 | MIT | 2019-04-28T13:40:36 | 2019-04-28T13:40:36 | null | UTF-8 | Python | false | false | 5,376 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Multi-task unidirectional LSTM encoder."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from models.encoders.core.lstm import basiclstmcell, lstmcell, lstmblockcell, lstmblockfuse... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
6229624933460871ef10628976ea5a6527362b59 | 4d5a312ddd0d158fd76652a582cfc18c291a7a71 | /tests/test_faust_poly_wavetable.py | 6a24d4d662d2df1932f8bbf8f5d98e4a1b1f61a7 | [
"MIT"
] | permissive | startreker-shzy/DawDreamer | 6ba12e1f25e949c38851d1c31edc2307ea8d34f4 | d503fedc67db57630ccce14d71ea64512ab0728b | refs/heads/main | 2023-06-15T02:32:18.301901 | 2021-07-11T21:24:36 | 2021-07-11T21:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | import pytest
import numpy as np
from scipy.io import wavfile
from os.path import abspath
from utils import *
import dawdreamer as daw
BUFFER_SIZE = 1
def _test_faust_poly_wavetable(wavecycle, output_path, lagrange_order=4):
engine = daw.RenderEngine(SAMPLE_RATE, BUFFER_SIZE)
dsp_path = abspath("faust_dsp/polyph... | [
"email@example.com"
] | email@example.com |
4164c98dac604edeb930b9597057603d7aa4b6c8 | 2f638d47a9681cbb2caab865702ddca39a0456d3 | /djangocms_misc/tests/test_app/migrations/0003_auto_20171014_0359.py | 22686a37b2f487eb82f492007080c823b3032a0b | [
"MIT"
] | permissive | bnzk/djangocms-misc | b0d1a1950b3d8c7752ea661c74bc08bfbd0360a6 | 8869384305ef7ff8538af986f4854bcfde7257de | refs/heads/develop | 2023-06-08T10:12:11.275012 | 2023-05-30T13:00:34 | 2023-05-30T13:00:34 | 66,085,267 | 1 | 1 | MIT | 2023-02-04T07:49:28 | 2016-08-19T13:43:34 | Python | UTF-8 | Python | false | false | 631 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-10-14 03:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test_app', '0002_auto_20170805_0136'),
]
operations = [
migrations.AddField(
model_name='testpluginmode... | [
"bnzk@bnzk.ch"
] | bnzk@bnzk.ch |
466ee9b5ce41e5e937ad981d0f953b9efbc02ad1 | 9f3991f4e7b405c04f2ef03ac7747b5a69d26b4b | /basic_grammar/higher-order function/higher-order function.py | c7024ce852e83bc73b790378586dcc8aa44b349a | [] | no_license | zcxyun/pythonDemo | f66eb5e6e4274db2137480786eae4d6ca7e73163 | adf18cf6b58282a7f2f9203aa09d5cb60ced2e35 | refs/heads/master | 2021-07-29T19:06:52.481792 | 2021-07-27T16:10:38 | 2021-07-27T16:10:38 | 101,542,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | # 测试 map list #################################################
##numList = [1,2,3,4,5,6,7]
##def f(x):
## return x*x
##L = []
##for n in [1,2,3,4,5,6,7]:
## L.append(f(n))
##print(L)
##
##n = map(f, [1,2,3,4,5,6,7])
##print(list(n))
##from functools import reduce
##def add(x, y):
## return x * 10 + y
##pri... | [
"zcxyun@126.com"
] | zcxyun@126.com |
c73ad30ed685d954a755bc87cc866e21c4010dfa | e2e39726195c7bc075b9bd56e757acd136527d5c | /typings/vtkmodules/vtkInteractionWidgets/vtkImagePlaneWidget.pyi | 5809022d7b2121828d9ab9fd470b12602152ccca | [
"BSD-3-Clause"
] | permissive | gen4438/vtk-python-stubs | a652272183d2d1ee48d4639e86bcffc1ac454af0 | c9abd76362adf387af64ce5ddbd04c5d3bebe9da | refs/heads/main | 2023-04-04T02:13:15.459241 | 2021-04-15T10:47:28 | 2021-04-15T10:53:59 | 358,224,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,890 | pyi | """
This type stub file was generated by pyright.
"""
from .vtkPolyDataSourceWidget import vtkPolyDataSourceWidget
class vtkImagePlaneWidget(vtkPolyDataSourceWidget):
"""
vtkImagePlaneWidget - 3D widget for reslicing image data
Superclass: vtkPolyDataSourceWidget
This 3D widget defines a pla... | [
"g1e2n04@gmail.com"
] | g1e2n04@gmail.com |
0ab5b9a6dbcb10aaa152146be20bec7498d73b63 | e50cacdd30e7050a3f5db46003ff531b57c939e8 | /regressao_valorGlobal.py | a12ff05224d6b5365a245c890b48cec48a665c46 | [] | no_license | C4st3ll4n/rn_videogame | bd9972d54efcf9fd4d695b14c468db82cc17d77c | 2175cb2146069671451d8f277df64ccc325683ac | refs/heads/master | 2020-05-02T09:02:37.103831 | 2019-03-26T19:53:42 | 2019-03-26T19:53:42 | 177,859,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | import pandas as pd
from keras.layers import Dense, Dropout, Activation, Input
from keras.models import Model
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
base = pd.read_csv('games.csv')
base = base.dropna(axis=0)
base = base.drop('Other_Sales', axis=1)
base = base.drop('Developer', axis = 1)
base = ... | [
"p13dr0h@gmail.com"
] | p13dr0h@gmail.com |
13f5f3247507241ab44d566d44aa6d25d184cb5d | 2eeeefe48c56d0dfae4fd568dbaee3c8d2cf3463 | /0Demo/BottleDemo/BottleDemo.py | e35c154d100e30eada7d29ec775a34fc90da646c | [] | no_license | lijianmingCN/pybase | f6377f7944c043f7241452fcffccc3f49ef0cef9 | 7286a022ff7f40a7289cf69d73e8418a1ecf7b88 | refs/heads/master | 2021-01-02T08:10:42.215672 | 2017-08-01T03:16:29 | 2017-08-01T03:16:29 | 98,953,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | # -*- coding: utf-8 -*-
from bottle import route,run,template,get,post,request,response,static_file,error,abort,redirect
@route('/index')
def index():
return "Hi 码农!!!"
@route('/hello/<name>')
def hello(name):
return template('<b>Hello {{name}}</b>!', name=name)
@get('/login') # or @route(’/login’)
def logi... | [
"lijianming@baidu.com"
] | lijianming@baidu.com |
7517a3815c19aec69e44c85c554b61f4c07b5197 | 3637fe729395dac153f7abc3024dcc69e17f4e81 | /reference/ucmdb/discovery/glassfish_discoverer.py | 25b1744924e85e08a587f69f0aae78aa256213e9 | [] | no_license | madmonkyang/cda-record | daced6846c2456f20dddce7f9720602d1583a02a | c431e809e8d0f82e1bca7e3429dd0245560b5680 | refs/heads/master | 2023-06-15T08:16:46.230569 | 2021-07-15T16:27:36 | 2021-07-15T16:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,195 | py | #coding=utf-8
'''
Created on 30 May 2011
@author: ekondrashev
'''
from __future__ import nested_scopes
import jee
import jee_discoverer
import re
import entity
from javax.xml.xpath import XPathConstants
import logger
import iteratortools
import xmlutils
class _JavaToJythonDomAdapter:
def __init__(self, javaDomE... | [
"silentbalanceyh@126.com"
] | silentbalanceyh@126.com |
be7c25b3c60424dd6ae4afe74366a35ed9503d7d | 0c10d5c3dedd8e17275146e596edc6104b6ca325 | /flask_benchmark/client.py | 7e48a30f6cd58893d35350763555c95e7beeada8 | [
"MIT"
] | permissive | mpetyx/python-rpc-frameworks-comparison | f5cf01dfd1bb61fca4e8bbcd4bf08b471ef6a02a | 5b69a5aef1f8ead2fb88e744b6b1787b27165898 | refs/heads/master | 2020-03-27T13:15:32.841893 | 2018-08-30T17:08:40 | 2018-08-30T17:08:40 | 146,599,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | __author__ = 'mpetyx (Michael Petychakis)'
__version__ = "1.0.0"
__maintainer__ = "Michael Petychakis"
__email__ = "hello@apilama.com"
__status__ = "Production"
import grpc
# import the generated classes
import requests
# import the original calculator.py
class Client:
def __init__(self, channel=None):
... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
eef849527d136daeb8bb4bf5f756f4ad7118b896 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/pcons/rtsubtreedep.py | 67dce7dfc289f4c49f5b7181da81ac7a1e85f944 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 4,635 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
7bd668d47a2122f2507dd518f36921016a1c4664 | fe1768a66ce67f9ee7f42aeeff46d8d7773a14e2 | /flod_sak/alembic/versions/20150929-0733-23adc825714b_add_column_avskrevet_rapportkrav_.py | 5c1f0169e9fc832120381f60072894e43d01bb9e | [
"BSD-2-Clause-Views"
] | permissive | Trondheim-kommune/Tilskuddsbasen | eb7f6ee026aba86165b4d6d6c3f73b16d7d3a9f8 | 4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4 | refs/heads/master | 2022-09-20T10:51:50.247573 | 2017-05-29T19:09:16 | 2017-05-29T19:09:16 | 49,863,325 | 0 | 0 | NOASSERTION | 2022-09-16T17:45:47 | 2016-01-18T08:39:22 | JavaScript | UTF-8 | Python | false | false | 695 | py | """add column avskrevet_rapportkrav_kommentar
Revision ID: 23adc825714b
Revises: 4bb0faf5d52
Create Date: 2015-09-29 07:33:26.377207
"""
# revision identifiers, used by Alembic.
revision = '23adc825714b'
down_revision = '4bb0faf5d52'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands a... | [
"teeejay@gmail.com"
] | teeejay@gmail.com |
4f1802317263e6acc86168a31df2eaccc57b3b4a | 537345f90de44dac4e2a20037d21f858f82e3120 | /deMultiGene_afterGb2fasta.py | 3edebf3809218662f2a12160c63ae7ae475ea1de | [] | no_license | kaiyaprovost/misc_scripts | f8fc8ca646c5c97ad3495e612bc9656e2b8d238c | 5c460ea608c13ff271fa6772fe548b89aa68c225 | refs/heads/master | 2021-11-11T15:33:34.211463 | 2021-11-10T23:11:56 | 2021-11-10T23:11:56 | 237,049,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | # -*- coding: utf-8 -*-
"""
Program to remove multiple genes from a FASTA file
Requires that the first term of the FASTA file is the gene identity
Edited on 10 dec 2016 - NOT TESTED
@author: kprovost
"""
def main():
import sys
import glob
import os
cwd = os.getcwd()
try:
path... | [
"17089935+kaiyaprovost@users.noreply.github.com"
] | 17089935+kaiyaprovost@users.noreply.github.com |
86fe46580a344064caacc55b0f2671caa3f6d926 | b4ad50982dd70294c0508e23c9109f4ebca95f93 | /senticnet/babel/senticnet_lv.py | 240c8f8be96fc8e6212fb2930a3177a1c3d63570 | [
"MIT"
] | permissive | yurimalheiros/senticnetapi | 7a728d6355898fa047e886ba7d53bdbdcadfa10c | ebba9db80bc23fb941c46efca0c845d96225b869 | refs/heads/master | 2021-06-07T15:58:50.105247 | 2021-05-18T11:26:34 | 2021-05-18T11:26:34 | 7,289,866 | 74 | 32 | NOASSERTION | 2021-05-18T11:26:35 | 2012-12-22T20:02:52 | Python | UTF-8 | Python | false | false | 4,680,841 | py | senticnet = {}
senticnet["20_gadsimta_izgudrot"] = [0.703, 0.972, 0, 0, "#prieks", "#interese", 0.558, "klausīties_lentu", "mācību_bibliotēka", "uzminēt_atbildi", "atrisināt_vienādojumu", "norāda"]
senticnet["32_zobiem"] = [0.965, 0.775, 0, 0.968, "#prieks", "#apbrīna", 0.903, "puņķus", "slikta_garša", "mutes_daļas", "... | [
"yurimalheiros@gmail.com"
] | yurimalheiros@gmail.com |
6c060566f70b199370d957617bc8d3b868155b0d | 121a41645d86109d35d9bfffd0a499a0815cec04 | /scripts/list.py | 02eea217866ebb6395c056d98a7c235ffefae52f | [
"MIT"
] | permissive | shrut1996/docker-lambda | f1bd30a8f81ca57dc138a7f84862567b265a9694 | b93b60c774bac9d2a59644adc850ad4fcad99b71 | refs/heads/master | 2023-02-02T13:06:07.637913 | 2020-12-23T20:57:15 | 2020-12-23T20:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py |
import json
from boto3.session import Session as boto3_session
AWS_REGIONS = [
"ap-northeast-1",
"ap-northeast-2",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"sa-east-1",
"us... | [
"vincent.sarago@gmail.com"
] | vincent.sarago@gmail.com |
58b2b7a50bc30bf790f06105fb090b6e5bf93764 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_wildernesses.py | f8915af5d463f35dae83accf49c99e5c9c60a17f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
#calss header
class _WILDERNESSES():
def __init__(self,):
self.name = "WILDERNESSES"
self.definitions = wilderness
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['wilderness']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d0be8abb5d97d27ebae00c6ee20aff4ae9dfa35c | be5ea20226c37d81f1ccb2f704d8825d36e88765 | /04. Encapsulation/LAB/demo.py | 482f5ae858cdc0745c96c0db38ed2daa2978bfc7 | [] | no_license | dimDamyanov/PythonOOP | 3845e450e5a48fef4f70a186664e07c0cd60e09b | 723204f5b7e953874fac9314e48eb1d1628d6ff5 | refs/heads/main | 2023-04-07T18:00:36.735248 | 2021-04-19T20:57:14 | 2021-04-19T20:57:14 | 341,329,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | class Person:
MIN_AGE = 0
MAX_AGE = 150
def __init__(self, first_name, last_name, age, city=None):
self.first_name = first_name
self.last_name = last_name
self.set_age(age)
@property
def full_name(self):
return f'{self.first_name} {self.last_name}'
@property
... | [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
ba86cb7602b8834d6089d1a714b8df3ca7a9ddfd | 01f4d411909aacc878b654f033a4bffe9136bb5f | /orangecontrib/wonder/fit/fitters/fitter_minpack.py | 22fec381bc9a36a48fd6884d0fc2e4bd9933882d | [] | no_license | WONDER-project/OASYS1-WONDER | 75cdf07c19b91f525835b9ea1280da63507cb142 | cf6e3620f95c0b14c5c33d13161f615f2ac23b14 | refs/heads/master | 2020-12-19T04:17:43.660676 | 2020-03-04T23:59:48 | 2020-03-04T23:59:48 | 235,618,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,709 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# #########################################################################
# Copyright (c) 2020, UChicago Argonne, LLC. All rights reserved. #
# #
# Copyright 2020. UChicago Argonne, LLC. This ... | [
"lrebuffi@anl.gov"
] | lrebuffi@anl.gov |
f629d3d3a29b863c872af3c01286eb1e11683ac8 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_sp_Reorgs_qsplit_Molscreen_largepiatoms_sq/Jobs/Pc/Pc_neut_neut_inner3_outer0/Pc_neut_neut_inner3_outer0.py | a687794c0396bfb9bcc5416ff9532b00704451b0 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 5,755 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
959cb13f99cd46f5fe46d460b2415eabb7781041 | 2dd5e62eddf7679d195efcad62d3b61c8617c5b7 | /practice/Practice_6/Practice_6_solutions (2)/sum_of_digits.py | fa6eec35300ed0d8242ab0eec86e3c44381b9fcc | [] | no_license | unswit/COMP9021_2 | 03b38314a4723a4eafbb758954bc9f78f1556b0e | 713f2c3b31a2e5081e0602a19660056eb71b1144 | refs/heads/master | 2021-04-24T11:53:07.760756 | 2020-03-25T23:47:03 | 2020-03-25T23:47:03 | 250,114,841 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | # COMP9021 Practice 6 - Solutions
'''
Prompts the user for two numbers, say available_digits and desired_sum, and outputs
the number of ways of selecting digits from available_digits that sum up to desired_sum.
'''
import sys
def solve(available_digits, desired_sum):
if desired_sum < 0:
return 0
i... | [
"55487375+ahcjdxzd@users.noreply.github.com"
] | 55487375+ahcjdxzd@users.noreply.github.com |
395b9d03b55ce1b219ff5076d2f1a45722b308ec | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/frontend_ip_configuration_py3.py | 54bdb1af858c0479b850d858e454f80f14f3222f | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 4,850 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
017cf440806ff69d7a9e676592b6f089ffd064d5 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/sample_20200121111638.py | ffbcc7d22240798053cb4ec12fdcdd1fb8d207b8 | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 700 | py | from stochastic import stoch
from histogram import list_hist
import random
def prob_sample(histo):
''' Input a histogram. Output a randomly chosen word from the histogram
relative to its frequency in the body of text.
'''
words = stoch(histo)
# print(words)
dart = random.randint(0, 100)
... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
55607c00e44f2b551c7af2793ae56395085d2a55 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/miniAODJobs400to600/files110.py | 6061208faf9113e3b96d2c19c54b6ef7a8dd4e3a | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | A=("root://cms-xrd-global.cern.ch//store/mc/RunIIAutumn18MiniAOD/GJets_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8/MINIAODSIM/102X_upgrade2018_realistic_v15-v1/120000/2AF1F514-F8DC-6942-9892-01051D801D01.root",
"root://cms-xrd-global.cern.ch//store/mc/RunIIAutumn18MiniAOD/GJets_HT-400To600_TuneCP5_13TeV-madgraphMLM-p... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
5f5cd720a6ca6b6a01cdd4604aebc12afb3faa52 | c21f50c5090ca09386d868c0820873b4c9e0a7aa | /setup.py | 354963e580052371621028baec4bd762a02f9d34 | [] | no_license | sujanshresthanet/api-wrappers-python | 38d192a7033ec40f591db1dede1661787b5cf025 | bbe56940f83ca426aac25843b3410a3d164be2e3 | refs/heads/master | 2023-04-10T02:34:19.039252 | 2017-10-03T14:36:34 | 2017-10-03T14:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # coding: utf-8
"""
Moosend API
TODO: Add a description
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import sys
from setuptools import setup, find_packages
NAME = "moosend-api-wrapper"
VERSION = "1.0.0"
# To install the library, run the follow... | [
"theo@moosend.com"
] | theo@moosend.com |
0a9d68e7bafd2655f96aa01861d275921ad3c066 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/cautious.py | 1fae757d76605f6891ed5e82fbdebe496de34115 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('cautious', __name__, url_prefix='/cautious')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('rep... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
5820d7928b355d65f1bfbf6b21ee461d09f9afca | d6dda992a02fc351810e75856ffb00eb391607d7 | /saleor/saleor/product/migrations/0084_auto_20181227_1246.py | 452f7bbc928496828099163ed0636c6f98d9b228 | [
"BSD-3-Clause"
] | permissive | rds0751/harshnew | f99f26a49c58810c27855ef5b0809a6b9d5b1df8 | 5b49102afdb26587223ff7549ce6c5c8820b272e | refs/heads/master | 2022-12-15T09:40:38.749726 | 2018-12-28T06:31:05 | 2018-12-28T06:31:05 | 162,980,274 | 0 | 0 | null | 2022-12-08T01:30:01 | 2018-12-24T10:42:48 | Python | UTF-8 | Python | false | false | 1,112 | py | # Generated by Django 2.1.4 on 2018-12-27 07:16
from django.db import migrations, models
import django_prices.models
class Migration(migrations.Migration):
dependencies = [
('product', '0083_auto_20181226_1158'),
]
operations = [
migrations.AddField(
model_name='product',
... | [
"rsingh_bemba16@thapar.edu"
] | rsingh_bemba16@thapar.edu |
9555328ed60bf5236e6a59ad31192c7dd7c909b8 | e40111dda0ad509d474adfe4c52ae9b5525f388e | /show_weather/models.py | f686f6d78d17794aa0d1b756e6587e61883f1c30 | [] | no_license | XeyyamSherif/Weather-App | 2fb997fcfb5a6885ffffbf05e6ebe2127fd2bccf | 6de019cf289ff60d299b9f1e58c1f8c04fa3517f | refs/heads/master | 2023-01-23T06:57:55.655632 | 2020-12-04T20:10:42 | 2020-12-04T20:10:42 | 318,623,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | <<<<<<< HEAD
from django.db import models
class added_cities(models.Model):
city_name = models.CharField(max_length=100)
added_time = models.DateField()
=======
from django.db import models
class added_cities(models.Model):
city_name = models.CharField(max_length=100)
added_time = models.DateField()... | [
"you@example.com"
] | you@example.com |
fb81fc3745a2e0bb6e0650163a7b729c67d49b21 | 8e221c0f0528a2c26029508ae4f618021bb81788 | /infra_macros/fbcode_macros/tests/ocaml_library_test.py | 34067e01873c5f218fe7f1f727a28225e1a9e26a | [
"BSD-3-Clause"
] | permissive | nataliejameson/buckit | 4f7127c941e6ad621fd50424b6d171dd715f8bc5 | 83b4ba7fc7a7a9d28b7a66117de6d6beccfdf7f8 | refs/heads/master | 2021-10-09T12:12:31.062734 | 2018-12-21T04:38:35 | 2018-12-21T04:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | # Copyright 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absol... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
72a4ca7de3bc83da307ab4b894c973fd5fde295d | b326dac9d39e3004b6bc5ff6cb95adbd0766811c | /aleph/logic/datasets.py | caaf9eeec4e1794c762c9c0391a29f8fe382098e | [
"MIT"
] | permissive | singingwolfboy/aleph | 9c73d93f73cb6a7f4df9c648e347ec605cf00964 | 5f30d22062815eb91d22705420c0815743a27478 | refs/heads/master | 2021-01-19T11:22:03.889408 | 2017-04-07T14:32:01 | 2017-04-10T09:06:23 | 87,958,403 | 0 | 0 | null | 2017-04-11T16:53:33 | 2017-04-11T16:53:33 | null | UTF-8 | Python | false | false | 1,988 | py | import time
import logging
from random import randrange
from elasticsearch import ElasticsearchException
from elasticsearch.helpers import BulkIndexError
from aleph.core import celery, datasets
from aleph.index import index_items
log = logging.getLogger(__name__)
QUEUE_PAGE = 1000
@celery.task()
def load_rows(datas... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
4f679263e2a338a3037aebf258f4d69fe4fd38b1 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/feature_column/feature_column.py | 4aacbcbb511263ab68f2ebae137b68e0ba1b7c28 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e9f74559da9c8672bb5a313b705ca9f480e002b13b23285d68619b4547aeeacf
size 126015
| [
"github@cuba12345"
] | github@cuba12345 |
448193cf4f842da161a46960e4711499950d8a94 | 9ca9cad46f2358717394f39e2cfac2af4a2f5aca | /Week05/02_manual_gradient/02_manual_gradient_YYH.py | 6273ab431684da732c6fefec84adb301c33e7bac | [] | no_license | Artinto/Python_and_AI_Study | ddfd165d1598914e99a125c3019a740a7791f6f6 | 953ff3780287825afe9ed5f9b45017359707d07a | refs/heads/main | 2023-05-05T15:42:25.963855 | 2021-05-24T12:24:31 | 2021-05-24T12:24:31 | 325,218,591 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | plt.show()
# Training Data #x,y 데이터값 입력
x_data = [1.0, 2.0, 3.0]
y_data = [2.0, 4.0, 6.0]
w = 1.0 # a random guess: random value
# our model forward pass #선형함수 설정
def forward(x):
return x * w
# Loss function #loss 구하기
def loss(x, y):
y_pred = forward(x)
return (y_pred - y) * (y_pred - y)
# comp... | [
"noreply@github.com"
] | Artinto.noreply@github.com |
c3b4c58d5324c2b1d589cf777773eb97388e1235 | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/099_recovery_binary_search_tree.py | 14246631d7cb839d132d8494b5e492975510c78c | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | '''
You are given the root of a binary search tree (BST), where exactly two nodes of the tree were swapped by mistake. Recover the tree without changing its structure.
Follow up: A solution using O(n) space is pretty straight forward. Could you devise a constant space solution?
Example 1:
Input: root = [1,3,null... | [
"logan.yu@cadre.com"
] | logan.yu@cadre.com |
d1bc5fec2c8d6a77a87e0a3a031ab9c3971b9f94 | 4b77a4269c3892348e65ffe4bebec4fa7dbd7995 | /test/unit/sconstool/test_loader.py | 40bfefa7aed60ff6854274f56dd9dd808bd90d2d | [
"MIT"
] | permissive | ptomulik/scons-tool-loader | 19691d2c85ba0712ca71e6e9489357ed531e45dc | 3acc1cd1c7c1cf191ba6408a0bf0116ed0a3ea04 | refs/heads/master | 2021-08-06T18:59:19.227781 | 2020-04-16T20:32:13 | 2020-04-16T20:32:13 | 152,286,299 | 1 | 0 | null | 2020-04-16T20:29:42 | 2018-10-09T16:41:14 | Python | UTF-8 | Python | false | false | 10,178 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2018-2020 by Paweł Tomulik
#
# 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, c... | [
"ptomulik@meil.pw.edu.pl"
] | ptomulik@meil.pw.edu.pl |
d878db88ea2851312cf55dc51d7c157b4ade92fb | 7c1b599c5b5be0ec5ad142e52e5c15a7c9c8ea12 | /venv/Lib/site-packages/tensorflow/contrib/autograph/converters/directives.py | 66fd7519478c8046de11a5e758049de8851325a4 | [] | no_license | namtran98/NSTAR---MuddHacks | 88d602a0847bb923088c7f0be6d5c2980b11a36d | cbc04873e1f02cb6b62a7b77c5c44eb4e9422ab8 | refs/heads/master | 2020-04-21T19:41:49.889253 | 2019-02-09T01:02:37 | 2019-02-09T01:02:37 | 169,816,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,136 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"ntranmn@gmail.com"
] | ntranmn@gmail.com |
ef0303640b020209be384eb5fc26c43bc1df4a0a | 0739cf7e695063d20ad8d80e1b31d3f31f4e42fa | /tests/test_reader_api.py | 3737a2c972b12a77b1183af5786e8b34ee4e367a | [] | no_license | twidi/feedhq | acf73e4a5da1f96e0946e628466d36bc6122c5fc | 1dc8cc7157b0d5a4a82d4be1db0540b15f87a72e | refs/heads/master | 2021-01-21T01:03:26.186864 | 2013-09-15T09:14:45 | 2013-09-15T09:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,473 | py | import json
import time
from datetime import timedelta
from urllib import urlencode
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.test import TestCase, Client
from django.utils import timezone
from mock import patch
from feedhq.feeds.models import Feed, Entry, UniqueFee... | [
"buburno@gmail.com"
] | buburno@gmail.com |
e9c336b0d0f862ce159aede65b3b0dc53e3afe12 | 1af6958461af6257264ace2a6d13385b47104606 | /pyscf/pbc/df/test/test_mdf_jk.py | cd523c77bd5a3184dedc0d5860d4a5e124da75d2 | [
"Apache-2.0"
] | permissive | tmash/pyscf | ac9a86c078170044b52be71e5d00fa5f680f55af | 89c101c1c963e8247808635c61cd165bffab42d6 | refs/heads/master | 2020-12-04T04:41:23.456744 | 2020-01-02T18:05:16 | 2020-01-02T18:05:16 | 231,615,690 | 1 | 0 | Apache-2.0 | 2020-01-03T15:33:33 | 2020-01-03T15:33:32 | null | UTF-8 | Python | false | false | 11,603 | py | # Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
f1ce015e673a7f4d1b931c5fdc1c510b8411d01e | 79bb7105223895235263fd391906144f9f9645fd | /python/client/graph_util_test.py | 4102b27588d68b3537a230b099e8874e5a466156 | [] | no_license | ml-lab/imcl-tensorflow | f863a81bfebe91af7919fb45036aa05304fd7cda | 54ab3ec2e32087ce70ecae2f36b56a8a92f2ba89 | refs/heads/master | 2021-01-22T06:37:18.129405 | 2016-06-08T15:53:28 | 2016-06-08T15:53:28 | 63,518,098 | 1 | 2 | null | 2016-07-17T06:29:14 | 2016-07-17T06:29:13 | null | UTF-8 | Python | false | false | 8,123 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"mrlittlezhu@gmail.com"
] | mrlittlezhu@gmail.com |
aa7fa5e63735dc329ad367ab2a01e383f1fbe5b4 | 5883449aa14eb5e8b3fa6ad4d03d1dfacc40ccee | /Amazon_Framework/DentOsTestbedLib/src/dent_os_testbed/lib/bridge/linux/linux_bridge_fdb.py | c6d5ff30762ba7407ed6f5b67e51f6d9d3121cfe | [
"Apache-2.0"
] | permissive | tld3daniel/testing | 826183f30d65f696e8476d4a584c4668355e0cb3 | e4c8221e18cd94e7424c30e12eb0fb82f7767267 | refs/heads/master | 2023-09-01T12:39:26.845648 | 2021-08-11T15:53:16 | 2021-08-11T15:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# generated using file ./gen/model/linux/network/bridge/bridge.yaml
#
# DONOT EDIT - generated by diligent bots
from dent_os_testbed.lib.test_lib_object import TestLibObject
class LinuxBridgeFdb(TestLibObject):
"""
The corresponding ... | [
"muchetan@amazon.com"
] | muchetan@amazon.com |
793f2059789077f913c11bee3d42d0eaf8f85304 | 920f0fbb7064f2017ff62da372eaf79ddcc9035b | /lc_ladder/company/sq/Pancake_Sort.py | c805df046a36a6f61d1095423c2e4997897d9117 | [] | no_license | JenZhen/LC | b29a1c45d8c905680c7b4ad0017516b3dca80cc4 | 85219de95e41551fce5af816b66643495fe51e01 | refs/heads/master | 2021-06-03T10:03:02.901376 | 2020-08-05T19:44:48 | 2020-08-05T19:44:48 | 104,683,578 | 3 | 1 | null | 2020-08-05T19:44:50 | 2017-09-24T23:30:35 | Python | UTF-8 | Python | false | false | 1,558 | py | #! /usr/local/bin/python3
# Requirement
# Example
# 一堆 pancakes, 根据大小排序,但是要先 implement swap(List<Pancake> pancakes, int end),
# 把从 index 0 ~ end 的pancakes的顺序全部倒过来,然后用这个方法正常排序pancakes, 最后size 从小到大。
# 比如 {3, 2, 5, 4, 6} swap(pancakes, 3) 之后是 {4, 5, 2, 3, 6} implement 一个方法 不停地 swap 得到 {2, 3, 4, 5, 6}, 数字表示对应 pancake si... | [
"jenzhen.nyc89@yahoo.com"
] | jenzhen.nyc89@yahoo.com |
8dd715460b6f50c8bca4148e556a5974878f6640 | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /PhysicsTools/PythonAnalysis/python/rootplot/root2matplotlib.py | cb9f9f7f31f022d7cd16988a61c08820b37dd455 | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | Python | false | false | 19,577 | py | """
Utilities for plotting ROOT histograms in matplotlib.
"""
__license__ = '''\
Copyright (c) 2009-2010 Jeff Klukas <klukas@wisc.edu>
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 rest... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
1eb73d735e382dcf42dec791e89fac963f7b4acd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-205.py | 9bf532b2ce08bc97a64c3daf8db21a7dcce5fc0d | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,005 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
de30fb950229b9c7d7b72c825c41a5a03d2d1876 | 7e471dd6d2b4d6a429941ec43c6048397a0b5456 | /Arrays/Array Manipulation.py | 1c529a6a8811d87b745e728674c5eea4e52d5ec8 | [] | no_license | Benson1198/Practice-Problems | ab0c4629e456a990310b2c365401b6b46cd66982 | 505a2d0f4941e564516c9e521178270cdc5c0744 | refs/heads/master | 2022-11-28T18:00:16.714068 | 2020-08-11T17:59:13 | 2020-08-11T17:59:13 | 270,238,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | def arrayManipulation(n, queries):
arr = [0]*n
max_sum = 0
for q in queries:
arr[q[0] - 1] += q[2]
if arr[q[1]] <= n:
arr[q[1]] -= q[2]
for i in arr:
temp = max_sum + i
if temp >= max_sum:
max_sum = temp
return max_sum
| [
"34964177+Benson1198@users.noreply.github.com"
] | 34964177+Benson1198@users.noreply.github.com |
2567c6eaf570c045ef6c8a21f0134b3716379630 | c3bd78d755d35c5c061bbaed320a5e4f119c4f1d | /torch/_dynamo/variables/tensor.py | 1747da1eb8950d8750cba97947505415bf1a3809 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | rdspring1/pytorch | cef574496bdd4515242eafbb0161007f4e2afae3 | 1c79003b3c13c7bc47e5796e4451d6565121f3a0 | refs/heads/master | 2023-07-10T06:27:18.594964 | 2023-06-19T16:48:30 | 2023-06-21T19:59:40 | 151,603,919 | 1 | 0 | NOASSERTION | 2022-05-23T02:31:51 | 2018-10-04T16:38:54 | C++ | UTF-8 | Python | false | false | 36,204 | py | import inspect
import operator
import types
from typing import Dict, List
import sympy
import torch.fx
import torch.random
from torch.fx.experimental.symbolic_shapes import free_symbols, guard_scalar, SymTypes
from .. import config, variables
from ..exc import unimplemented
from ..guards import GuardBuilder
from ..... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
440e11f75f0b47160e56760518042862b3d06cbd | 331fca39c99354bb96f9f07a2309c59c34a9fb15 | /lib/python2.6/site-packages/tg/test_stack/rendering/templates/mako_noop.mak.py | 49e125649ea0213411dc208654116ae26a254256 | [] | no_license | rudyvallejos/GestionItems | d368a940a63cae9a2e5845cdf50db6b232aa9871 | 1eb56b582f0539c883a4914ad48291941b3c6c38 | refs/heads/master | 2016-09-06T08:37:46.582041 | 2011-07-09T18:39:02 | 2011-07-09T18:39:02 | 1,662,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1254065369.406944
_template_filename='tg/test_stack/rendering/templates/mako_noop.mak'
_template_uri='mako_noop.mak'
_template_cache=cache.Cache(__name__, _modifi... | [
"rudy.vallejos@gmail.com"
] | rudy.vallejos@gmail.com |
41f369934b8f755ab549927bdfe7383246b9ca49 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/jinja2/compiler.py | b1f370e1ab080128788c5a1572565d1ae353aa48 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4daf56d4b8ade78db022d0075e50dc834b043ac143322ac276514f1c0bab838a
size 66284
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
56261f33345742b0b0cdbd398c61208e19eac3cf | 50d3c1e9f524e5d9ee2684222ec872d1514c661f | /pygitversion/__init__.py | 25e746ad3c6e4afc686b7aaa8712ad4a2d88aeed | [
"MIT"
] | permissive | RadioAstronomySoftwareGroup/pygitversion | ceca85a6a0df835039918ffea30ea04646080822 | 36c78c87bb15f8d23418698ad4acb14391a77795 | refs/heads/master | 2021-07-12T23:51:30.834527 | 2019-12-16T13:27:49 | 2019-12-16T13:27:49 | 207,653,583 | 1 | 2 | NOASSERTION | 2020-10-02T15:54:07 | 2019-09-10T20:09:36 | Python | UTF-8 | Python | false | false | 602 | py | # -*- mode: python; coding: utf-8 -*
# Copyright (c) 2019 Radio Astronomy Software Group
# Licensed under the 2-clause BSD License
def branch_scheme(version):
"""Local version scheme that adds the branch name for absolute reproducibility."""
if version.exact or version.node is None:
return version.for... | [
"steven.murray@curtin.edu.au"
] | steven.murray@curtin.edu.au |
47b62311375e0cec75989ac45dbfcd2d5c15e413 | c074fb834cb4a8ac75d107146df10f9496590792 | /subscriptions/migrations/0007_auto_20201008_0023.py | 30d39f427afe15cb651a5be18c08001ded97e71f | [
"Unlicense"
] | permissive | jmhubbard/quote_of_the_day_custom_user | 4d5ffd4183d7e6290161b84cae2aa1f7ad621a99 | 27024b2953c1c94fd2970563c3ab31ad444912b6 | refs/heads/master | 2023-02-19T00:59:27.372671 | 2021-01-10T02:45:56 | 2021-01-10T02:45:56 | 293,443,918 | 1 | 0 | Unlicense | 2020-12-03T17:59:59 | 2020-09-07T06:41:25 | Python | UTF-8 | Python | false | false | 463 | py | # Generated by Django 3.1.2 on 2020-10-08 00:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subscriptions', '0006_auto_20200915_0434'),
]
operations = [
migrations.AlterField(
model_name='subscription',
name=... | [
"jasonhubb@gmail.com"
] | jasonhubb@gmail.com |
73c1b01dbe57038d7736e000a35208ffaa4fde66 | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/__init__.py | 029e41a8a7145566a77c762eef5bb701b957b5a3 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | __all__ = ['aaa', 'analytics', 'app', 'appflow', 'appfw', 'appqoe', 'audit', 'authentication', 'authorization', 'autoscale', 'azure', 'basic', 'bfd', 'ca', 'cache', 'cloud', 'cluster', 'cmp', 'contentinspection', 'cr', 'cs', 'db', 'dns', 'dos', 'feo', 'filter', 'gslb', 'ha', 'ica', 'ipsec', 'ipsecalg', 'lb', 'lldp', 'l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
8b649adf9ab63a818ffabb3813e55d2ac9b06e8a | 3246503531497b8287b834038fcb0c5212d7db23 | /awx/main/migrations/0156_capture_mesh_topology.py | 90f5a5e0a26c00e35828acb499a24e15b010c10d | [
"Apache-2.0"
] | permissive | AlexSCorey/awx | ba19ff243e6e831e45fd43154477d0c180b728b9 | 268a4ad32d8f48a40e9837f6eb3504caa736e243 | refs/heads/devel | 2023-08-08T23:29:13.932495 | 2022-08-11T12:03:35 | 2022-08-11T12:03:35 | 171,529,429 | 1 | 1 | NOASSERTION | 2023-03-01T04:05:10 | 2019-02-19T18:43:37 | Python | UTF-8 | Python | false | false | 1,574 | py | # Generated by Django 2.2.20 on 2021-12-17 19:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0155_improved_health_check'),
]
operations = [
migrations.AlterField(
model_name='inst... | [
"jeff.bradberry@gmail.com"
] | jeff.bradberry@gmail.com |
6b464c01d7971b6cccec176a98a2c279bd71b542 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/880.py | 1836e72c5ff4d8f702b6338f04d808f0d45ac0c5 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | class Solution:
def decodeAtIndex(self, S: str, K: int) -> str:
size = 0
# Find size = length of decoded string
for c in S:
if c.isdigit():
size *= int(c)
else:
size += 1
for c in reversed(S):
K %= size
... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
e0e993f713a245f48dddc49afc3028d72bc1d18e | e1b1163fcf4c6fea7dcb3d4e403ef05578426412 | /erpnext_mfg/erpnext_mfg/doctype/replenishment/replenishment.py | ef337439b2864fdc7fded014a15ddf6337a20ba7 | [
"MIT"
] | permissive | amutaher/erpnext_mfg | e5e5eb822ed2f0b012c5fb6d202e4ae9e20843a9 | 0a4be3dea07802a37d947ed3e838719f10dc16e3 | refs/heads/main | 2023-07-11T14:46:14.707841 | 2021-08-09T12:13:38 | 2021-08-09T12:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,197 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Bai Web and Mobile Lab and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from erpnext_mfg.api.replenishment import with_qty_details
clas... | [
"irayspacii@gmail.com"
] | irayspacii@gmail.com |
a309bbc972daaa409266e621f066fe03d4044950 | 453d0bd78a145a323785a8f86efffbbed36e2aff | /estimagic/tests/parameters/test_kernel_transformations.py | 6eec2853685a1bc4f6573b8d8ad5aa3fed5fc602 | [
"BSD-3-Clause"
] | permissive | vishalbelsare/estimagic | 2da897ac8f11cccf764a775c6aea23097082e862 | afae1be3a1566056d11962c495b67e64bc4a0822 | refs/heads/master | 2023-08-17T04:41:04.179038 | 2021-09-27T09:50:22 | 2021-09-27T09:50:22 | 286,576,997 | 0 | 0 | BSD-3-Clause | 2021-09-27T10:40:04 | 2020-08-10T20:55:11 | Python | UTF-8 | Python | false | false | 3,940 | py | from functools import partial
from itertools import product
import numpy as np
import pytest
from numpy.testing import assert_array_almost_equal as aaae
import estimagic.parameters.kernel_transformations as kt
from estimagic.differentiation.derivatives import first_derivative
from estimagic.parameters.kernel_transfor... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
9a3fbead298dd3c0213c73433c5e6491facb0a26 | 3baab5342d1cdb8f4efe72f6f7ac3b5a6eda96c0 | /lib/node_types/esp8266/compile/uiot/mfrc522.py | 995a6b4773fff927404cc8a48db6fefc44851a75 | [
"MIT"
] | permissive | ulno/ulnoiot-upy | ff18043736c7f1627619ab5d56fef4e021811850 | 6e90c1c207f23c4b5bf374f58d3701550e6c70ca | refs/heads/master | 2018-11-30T01:01:24.282604 | 2018-09-05T17:16:11 | 2018-09-05T17:16:11 | 66,976,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,959 | py | # MFRC522 Device
# Reading of rfid and nfc tags
#
# author: ulno
#
# Based on:
# - Stefan Wendlers (wendlers): https://github.com/wendlers/micropython-mfrc522
# - Cefn Hoile (cefn): https://github.com/cefn/micropython-mfrc522
# - TODO: add esp32 support from here: https://github.com/Lennyz1988/micropython-mfrc522
#
... | [
"devel@mail.ulno.net"
] | devel@mail.ulno.net |
45a8ad2f96978babc0f6b9c6b8ee581c042201d2 | 01b281b97b733a8b537bd997110412763a9188d9 | /timetracker/timetracker/tests.py | 3b61d410fb193503b134f4d296a9933a8d09a083 | [] | no_license | simonecastellazzi/lesson-two | 1e81dd25c9ae8fb967fb91b9185f7770e6cd20f0 | 30221d469ba9b9690af05d426d273b40e4e1fb95 | refs/heads/master | 2020-12-11T02:13:56.379185 | 2015-07-23T08:50:01 | 2015-07-23T08:50:22 | 39,557,689 | 2 | 0 | null | 2015-07-23T09:16:43 | 2015-07-23T09:16:43 | null | UTF-8 | Python | false | false | 242 | py | from django.test import TestCase, Client
class LessonOneTests(TestCase):
def test_hello_melbdjango(self):
c = Client()
response = c.get('/?name=melbdjango')
self.assertTrue('melbdjango' in str(response.content))
| [
"curtis@tinbrain.net"
] | curtis@tinbrain.net |
94d549582831c32cc8be6b022bd0d3b28e113706 | c96dba0f44c7996748ebcbf5c0c2489766ea65b4 | /scripts/NetworkStats.py | e530ca1b48216edd1419d450b48e248ea31902fa | [] | no_license | JKOK005/3dcnn-clone | 7189b0c3fa9c5e648931c887360639101ac27131 | 0c91ed60c164c9e683d6932b6dbd3f2accae9e8e | refs/heads/master | 2021-01-01T19:13:17.085176 | 2017-07-27T13:51:28 | 2017-07-27T13:51:28 | 98,540,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | import os
import numpy as np
from UtilitiesScript import *
from settings import params
class NetworkStats(object):
@staticmethod
def __consoleLog(true_pos_count, false_pos_count, false_neg_count, true_neg_count, precision, recall, f1):
print("True positive count: {0}".format(true_pos_count))
print("False positiv... | [
"JKOK005@e.ntu.edu.sg"
] | JKOK005@e.ntu.edu.sg |
eb7d120c25c64f029b2468e43a512848be088d9a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2466/60799/234954.py | cf99f1d1117b7d983a73f03f3f7cafce84cebb35 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | T = int(input())
for hhh in range(0, T):
input()
list = [int(i) for i in sorted(input().split())]
num = 0
for i in range(0, len(list) - 2):
for j in range(i + 1, len(list) - 1):
for k in range(j + 1, len(list)):
if (list[i] + list[j]) > list[k]:
nu... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
286854fe25353d24896d5afa386aafa689d2098d | 37468a4d833cb26fbf1e3989166a54b77600c8fe | /hw03/Etch-A-Sketch.py | 984f39bc1346d92e8de9e49b0436838d1c66cecf | [] | no_license | AugustofMay/ECE434-Embedded-Linux | c5b9338ade80f5a5cdab31c6624c32b7ff2c5bc2 | 7b628f7f5ec740460a067f44a0fb9a24c1614246 | refs/heads/master | 2020-03-27T18:33:21.219335 | 2018-10-10T13:54:44 | 2018-10-10T13:54:44 | 146,929,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | #!/usr/bin/env python3
# From: https://adafruit-beaglebone-io-python.readthedocs.io/en/latest/Encoder.html
from Adafruit_BBIO.Encoder import RotaryEncoder, eQEP2, eQEP1
import smbus
import time
bus = smbus.SMBus(2)
matrix = 0x70
tmp101_1 = 0x4a
tmp101_0 = 0x48
# Instantiate the class to access channel eQEP2, and ini... | [
"debian@beaglebone.localdomain"
] | debian@beaglebone.localdomain |
8339a891b2162c3bce0e2559e5008b1466ff62a9 | f3d38d0e1d50234ce5f17948361a50090ea8cddf | /백준/Bronze/Bronze 2/10040번 ; 투표.py | 86be452918990773f6ae4dc27000d405347a7588 | [] | no_license | bright-night-sky/algorithm_study | 967c512040c183d56c5cd923912a5e8f1c584546 | 8fd46644129e92137a62db657187b9b707d06985 | refs/heads/main | 2023-08-01T10:27:33.857897 | 2021-10-04T14:36:21 | 2021-10-04T14:36:21 | 323,322,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # https://www.acmicpc.net/problem/10040
# 첫째 줄에 경기의 수 N, 위원의 수 M을 입력합니다.
# 1 <= N, M <= 1000
N, M = map(int, input().split(' '))
A = []
for i in range(N):
A.push(int(input()))
| [
"bright_night_sky@naver.com"
] | bright_night_sky@naver.com |
171373fd204e0632511223c9231591022c6b9b8c | dc7564e4d53ab01fd9e2f5b062ef5a0241a4de0e | /turbo_seti/findoppler/findopp.py | c20dbfb93bd8ce4a6c5c8fb426544e3c66d5b0e8 | [
"MIT"
] | permissive | kernsuite-debian/turbo-seti | 5b102d3189f0842c789ad240e08f81f56782dc31 | 02451cea66751256bde4a7cbc21c1b828fbda7d2 | refs/heads/master | 2021-09-27T11:27:13.058241 | 2018-11-08T09:36:13 | 2018-11-08T09:36:13 | 126,024,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,979 | py | #!/usr/bin/env python
import numpy as np
import sys
import os
import logging
logger = logging.getLogger(__name__)
import gc #Garbage collector.
try:
from .data_handler import DATAHandle
from .file_writers import FileWriter, LogWriter
from .helper_functions import chan_freq
except:
from data_handle... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
1798f721134caaa620aed4222d4bc6e6bcbba240 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03361/s539561485.py | cffb41867b3225ac6cfe3db9ef25c838fe9f165b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | h, w = map(int, input().split())
hw = [list(input()) for _ in range(h)]
num = 0
for i in range(h):
num+=hw[i].count('#')
def check(i, j):
if not (0<=i<h and 0<=j<w):
return False
if hw[i][j] == '#':
return True
return False
checked = set()
for i in range(h):
for j in range(w):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b83bc46a7ce13e8a89b50545d2e4e45a4a8d2635 | c19ca6779f247572ac46c6f95327af2374135600 | /backtrack/leetcode 77 Combinations.py | 2030b16ee431a3126d4e022b4aead30741cb7b78 | [] | no_license | clhchtcjj/Algorithm | aae9c90d945030707791d9a98d1312e4c07705f8 | aec68ce90a9fbceaeb855efc2c83c047acbd53b5 | refs/heads/master | 2021-01-25T14:24:08.037204 | 2018-06-11T14:31:38 | 2018-06-11T14:31:38 | 123,695,313 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | __author__ = 'CLH'
'''
给定n,k,返回元素个数为k的,由1-n不重复数字组成的组合
'''
# class Solution(object):
# def __init__(self):
# self.ans = []
# self.total_ans = []
#
# def backtrack(self, k, index,n):
# if len(self.ans) == k:
# self.total_ans.append(list(self.ans))
# else:
# ... | [
"15720622991@163.com"
] | 15720622991@163.com |
0c0ae078428e10bafa110ea617e4801beef79c17 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_090252.46+321316.0/sdB_SDSSJ_090252.46+321316.0_lc.py | 8c033cb236f2b50b487fd3284242254acdd7cd55 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[135.718583,32.221111], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_090252.46+321316.0 /sdB_SDSSJ_090252.46+321316.0_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
0ade96035ba97bf0b5dd42bb08eb838289aeb28a | ff413ecba8eb6a3f8afc225bd1339abac453202c | /project/flask_dashboard/app/home/views/product.py | f1541489c44f10c06033dd649b090456f735a0e7 | [
"MIT"
] | permissive | Artvell/bot | 561b614fde5d19335736ac390e35814afd6b6180 | 0b85a5efc4c302f522bf23a23fbbbc8a9efc7008 | refs/heads/main | 2023-08-10T17:10:21.500433 | 2021-09-11T12:54:32 | 2021-09-11T12:54:32 | 405,372,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,914 | py | from flask import Blueprint,render_template, redirect, url_for, request, jsonify
from flask_login import login_required, current_user
from jinja2 import TemplateNotFound
from models import Post, Category, Subcategory
from flask_dashboard.app.home.forms import ProductForm
from flask_peewee.utils import PaginatedQuery
p... | [
"artem.karimov.98@gmail.com"
] | artem.karimov.98@gmail.com |
25d9ba2948a55236e9bd77b99834a58c8d92ccf1 | dd6c727631008c690e22a142ef0fd06d8b63d4d4 | /bin/chardetect | 44b3b86cba9d9d80311f8d2c724c3e9e73fbd149 | [
"MIT"
] | permissive | danielecook/gist-alfred | 0a91daed077cad50a3e9d446469c4ed8f7dbab5d | 25ca9f95051e87d5b65cfda2ee1e1554f1064400 | refs/heads/master | 2022-06-05T11:01:01.445298 | 2022-05-25T00:51:26 | 2022-05-25T00:51:26 | 37,758,383 | 130 | 14 | MIT | 2022-05-25T00:51:27 | 2015-06-20T05:02:44 | Python | UTF-8 | Python | false | false | 239 | #!/usr/local/anaconda2/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"danielecook@gmail.com"
] | danielecook@gmail.com | |
d3506d448432d2d84eae16a530cfd3cf6213adde | 380e69be8a329ca4cec838b32b29ac5ec94d9c75 | /idea/migrations/0001_initial.py | 598f3221d5953b60c856efeda4f4b36ec5587d2f | [] | no_license | jiss02/Bosswar | 95fcc8baa3f5dceee777b18f76736d1397431e5a | ab31b6515d88959e4ca745b2bda0a1e20806dc57 | refs/heads/master | 2022-12-12T00:58:07.500693 | 2020-02-19T16:05:02 | 2020-02-19T16:05:02 | 201,433,007 | 0 | 1 | null | 2022-12-08T05:59:50 | 2019-08-09T09:09:35 | CSS | UTF-8 | Python | false | false | 1,018 | py | # Generated by Django 2.2.3 on 2019-07-19 21:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Idea',
fields=[
... | [
"olo5112olo@naver.com"
] | olo5112olo@naver.com |
02dff88aed87044355925dfee09776bb57935d31 | 033da72a51c76e5510a06be93229a547a538cf28 | /Data Engineer with Python Track/08. Introduction to Bash Scripting/Chapter/01. From Command-Line to Bash Script/01-Extracting scores with shell.py | 6e3cbc3b7819f7c7a6dbbc55e9533c3b87454923 | [] | no_license | ikhwan1366/Datacamp | d5dcd40c1bfeb04248977014260936b1fb1d3065 | 7738614eaebec446842d89177ae2bc30ab0f2551 | refs/heads/master | 2023-03-06T13:41:06.522721 | 2021-02-17T22:41:54 | 2021-02-17T22:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | '''
Extracting scores with shell
There is a file in either the start_dir/first_dir, start_dir/second_dir or start_dir/third_dir directory called soccer_scores.csv. It has columns Year,Winner,Winner Goals for outcomes of a soccer league.
cd into the correct directory and use cat and grep to find who was the winner in... | [
"surel.chandrapratama@gmail.com"
] | surel.chandrapratama@gmail.com |
b985ed9cfcf34ff3768b1dee8800bf80f08aedeb | f411cbd68ef0fcc578d931149e0aa1f216efa878 | /app/settings.py | 403f7361e1be00c18559158d9b5d2dcb9ad17da7 | [] | no_license | MarkBorodin/simple_app_template_with_authorization | 616e2de687941effd3a7650f83fea581d642c9e9 | ba68da72f9bcec393c0d9bbcb00fb17fa4412c1c | refs/heads/master | 2023-06-05T12:11:50.437442 | 2021-06-18T09:55:00 | 2021-06-18T09:55:00 | 378,106,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: ... | [
"rens2588@gmail.com"
] | rens2588@gmail.com |
592e6a07dd818513df66922a534b0a830063b386 | 89ea4db955a7897f210bf7c5d583e4524f8a4b2c | /mindbender/tools/manager/app.py | 81eafb64f162bf77517df80c96db87605aec37f0 | [
"MIT"
] | permissive | LegacyID1991/core | 404437412b6990186f0b4f8b88df7bdc97979b68 | 3e62081449f4e8e6863a37fea0aba932c05744d0 | refs/heads/master | 2021-01-11T19:08:11.279942 | 2017-03-27T15:31:44 | 2017-03-27T15:31:44 | 79,323,923 | 0 | 0 | null | 2017-01-18T09:24:11 | 2017-01-18T09:24:11 | null | UTF-8 | Python | false | false | 13,851 | py | import sys
from ...vendor.Qt import QtWidgets, QtCore
from ... import api, schema
from .. import lib
self = sys.modules[__name__]
self._window = None
# Custom roles
ContainerRole = QtCore.Qt.UserRole + 1
VersionRole = QtCore.Qt.UserRole + 2
ResultRole = QtCore.Qt.UserRole + 3
class Window(QtWidgets.QDialog):
... | [
"konstruktion@gmail.com"
] | konstruktion@gmail.com |
f824dd9af38faa203274a3ba0de3f286a2dcef28 | 25e7d840203e705c6a68aed079cc9844954b9536 | /.github/scripts/label_utils.py | d3c19f5b7aad69ed28c992ba9d1412e1ce763cc5 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yf225/pytorch | 874892cd9d0f7bb748e469cfca23a3f503ea4265 | 39590d06c563d830d02b9f94611ab01f07133c97 | refs/heads/main | 2023-07-24T06:17:16.324006 | 2023-04-24T18:22:54 | 2023-04-24T18:22:59 | 113,096,813 | 1 | 3 | NOASSERTION | 2023-08-29T18:46:16 | 2017-12-04T21:25:08 | Python | UTF-8 | Python | false | false | 3,909 | py | """GitHub Label Utilities."""
import json
from functools import lru_cache
from typing import Any, List, Tuple, TYPE_CHECKING, Union
from urllib.request import Request, urlopen
from github_utils import gh_fetch_url, GitHubComment
# TODO: this is a temp workaround to avoid circular dependencies,
# and should be... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
57f6ff95bf0065b31262d44915450203789297d3 | f058cd1ec57b2e24430605883387b1c34391a2e3 | /simple.py | f4c823207733b242b34b41c137fa21843dbcccd8 | [] | no_license | Danny-Dasilva/Blender_Mediapipe | 9a2966f38e3e6a9aea503eed1bdcc0e4e2ebc502 | 80cbd45e721bc12759d26c317f3a57b6176e1af5 | refs/heads/main | 2023-04-21T09:49:47.200918 | 2021-05-15T01:03:40 | 2021-05-15T01:03:40 | 365,960,178 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | ###############################################################################
### Simple demo with at least 2 cameras for triangulation
### Input : Live videos of face / hand / body
### : Calibrated camera intrinsics and extrinsics
### Output: 2D/3D (triangulated) display of hand, body keypoint/joint
### Usage ... | [
"yahchayildasilva@gmail.com"
] | yahchayildasilva@gmail.com |
cfe496afee791a2454716d5249119d032461b1b3 | 745197407e81606718c4cdbedb6a81b5e8edf50b | /tests/texttest/TestSelf/ChangeTestResults/GUI/SaveFailsNoPermission/testcustomize.py | 22ff04e0d5418b1d77d52a0f5901276c9822ebfe | [] | no_license | dineshkummarc/texttest-3.22 | 5b986c4f6cc11fd553dab173c7f2e90590e7fcf0 | 85c3d3627082cdc5860d9a8468687acb499a7293 | refs/heads/master | 2021-01-23T20:44:35.653866 | 2012-06-25T07:52:13 | 2012-06-25T07:52:13 | 4,779,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
import os
origRemove = os.remove
def myremove(file):
if file.startswith(os.getenv("TEXTTEST_HOME")):
raise OSError, "Permission denied: '" + file + "'"
else:
origRemove(file)
os.remove = myremove
| [
"dineshkummarc@gmail.com"
] | dineshkummarc@gmail.com |
53d9612d4f7af3b8dbf0a3413ba5ef9d765d3906 | dd74f0c5a83962362cdac6fa072fc734f2e3a15c | /manage.py | 72c118206eb2cebf9f8ed0f21c7146109b022d06 | [
"LicenseRef-scancode-other-permissive"
] | permissive | willyowi/pitch-perfect | 06c01ebd7f655e812e57a8107b2c910a690a1664 | 86e6098040324034579f94b32aab013d162c4338 | refs/heads/master | 2022-09-22T22:39:27.289062 | 2019-08-07T10:08:23 | 2019-08-07T10:08:23 | 200,611,221 | 0 | 0 | null | 2022-09-16T18:08:12 | 2019-08-05T08:07:12 | HTML | UTF-8 | Python | false | false | 510 | py | from app import create_app, db
from app.models import User,Pitch,Comment
from flask_script import Manager,Server
from flask_migrate import Migrate, MigrateCommand
# Creating app instance
app = create_app('development')
manager = Manager(app)
migrate = Migrate(app,db)
manager.add_command('server',Server)
manager.add_c... | [
"wilsonowino1@gmail.com"
] | wilsonowino1@gmail.com |
df37f014ee34791e66da1c0d867889ba7c8729e9 | 2ea06cfee552026d764fac2899135a4632de4b9f | /hyyjbg/hyyjbg/spiders/dfcfw.py | cdd577da5200a6dcc071130a019a31f347e5ee54 | [] | no_license | gasbarroni8/crawler-scrapy | fa173c5c270d12d0d8b888484084fb25ef94cca9 | dbf0aebea68213ceda60f44194c4a4e8710d5674 | refs/heads/master | 2020-11-27T04:26:55.131890 | 2019-12-20T16:47:24 | 2019-12-20T16:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | # -*- coding: utf-8 -*-
import scrapy
import logging
from hyyjbg.items import hyyjbgItem
class DfcfwSpider(scrapy.Spider):
name = 'dfcfw'
custom_settings = {
'DOWNLOADER_MIDDLEWARES': {
'scrapy_splash.SplashCookiesMiddleware': 723,
'scrapy_splash.SplashMiddleware': 725,
... | [
"sn_baby@qq.com"
] | sn_baby@qq.com |
6f2dcda94c9cae184ac5bec1a2acfa115f757c9a | 0102bd51696f6973fc9a8ff56e604be86058d595 | /api/photo.py | 2e838c2698651e72d247d7c0844dc7d73fa80117 | [] | no_license | weaming/unsplash-http-api | 549e75e0aee8f4d05d3aef399d117b3c8ab7a2e8 | 7c5dc0001568999ecc398fd885e952d5fbf77be6 | refs/heads/master | 2022-08-28T14:18:41.289593 | 2019-07-17T08:22:39 | 2019-07-17T08:22:39 | 145,960,268 | 1 | 0 | null | 2022-08-06T05:22:33 | 2018-08-24T07:49:27 | Python | UTF-8 | Python | false | false | 2,220 | py | import logging
from sanic import response
from .unsplash_api import api
from .to_json import obj_to_dict
from .helpers import http_get
allowed_order_type = ["latest", "oldest", "popular"]
async def random_pohoto(req, count=10, username=None, query=None):
"""
:param count: The number of photos to return. (De... | [
"garden.yuen@gmail.com"
] | garden.yuen@gmail.com |
dae34ee6e5649ebad6f60d94eb13d06caf41b74b | 8f7615603d4d923fd2cda41a2105b85b596ab4c5 | /leetcode/medium/96-Unique_BST.py | 0c6377ae22e035dbc9ff9d6e1caf36b8c7778abb | [
"MIT"
] | permissive | shubhamoli/solutions | e7ec922047c16cfdc10070aa5b884a278b12d8c5 | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | refs/heads/master | 2021-01-05T04:13:35.302613 | 2020-06-27T18:28:18 | 2020-06-27T18:28:18 | 240,875,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | """
Leetcode #96
"""
# Similar to find nth catalan number
class Solution:
def numTrees(self, n: int) -> int:
memo = {}
self.count = 0
def uniqueTrees(n):
if n < 1:
return 1
if n in memo:
return memo[n]
self.count +... | [
"oli.shubham@gmail.com"
] | oli.shubham@gmail.com |
7d46cb100cce3a9df30fa08ddad9e3d30ccdfb38 | 2f0cb310e2ec8fb176ee240aa964a7eef5ed23b4 | /giico/quality_control_and_material_testing/doctype/thermal_conductivity_lab/thermal_conductivity_lab.py | 8e7d65be8da81f630ed66ba8ad91d07088675845 | [
"MIT"
] | permissive | thispl/giico | b96cf6b707f361275f8723d15f8ea1f95f908c9c | 14c5631639ab56a586a7962be9871d722c20e205 | refs/heads/master | 2021-06-18T03:56:02.928303 | 2021-04-27T06:42:59 | 2021-04-27T06:42:59 | 200,183,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class ThermalConductivityLAB(Document):
pass
| [
"hereabdulla@gmail.com"
] | hereabdulla@gmail.com |
fa8451a11fbe51270103c2e55055358b12574729 | 934235f70a390a3ba0d7b464cddd10872f31cda3 | /rango/server/.history/tango_with_django/rango/views_20210104191049.py | 0fade486e9c7c4ee1d87fba1070ad41793556128 | [] | no_license | deji100/Projects | 6919041ba23e77a5c74e5ab7692bfcee38ececcb | 17e64d954d1d7805be57ec5d8d4344e4944889e6 | refs/heads/master | 2023-04-30T05:25:03.143303 | 2021-05-20T15:00:43 | 2021-05-20T15:00:43 | 338,844,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from rango.forms import CategoryForm, PageForm
from django.urls import reverse
from .models import Category, Page, User
from django.db import IntegrityError
from django.contrib.auth import authenticate, login, logout
# Creat... | [
"68882568+deji100@users.noreply.github.com"
] | 68882568+deji100@users.noreply.github.com |
3416dc37dc3591b6b17cd7ed333d6222c60420fc | 44ea7a1057963cde7a2ac5a6fee1a089a096fb68 | /tests/test_discovery.py | 40218a1ea84bf6d5c3797e05eff270274ddddab2 | [
"MIT"
] | permissive | YAtOff/lansync | 3d0d9a41a00b6cc3d94fcbcd71fca8d849b1481d | 750588f3b1db87287b518cb29523980e778edfef | refs/heads/master | 2023-05-13T11:42:54.006428 | 2020-01-27T09:41:05 | 2020-01-27T09:41:05 | 224,862,668 | 0 | 0 | MIT | 2023-05-01T21:17:44 | 2019-11-29T13:47:59 | Python | UTF-8 | Python | false | false | 1,560 | py | from datetime import datetime
from faker import Faker, providers
from lansync.discovery import DiscoveryMessage, PeerRegistry, Peer
fake = Faker()
fake.add_provider(providers.internet)
fake.add_provider(providers.misc)
fake.add_provider(providers.date_time)
def create_peer_params():
return (
fake.md5()... | [
"yavor.atov@gmail.com"
] | yavor.atov@gmail.com |
7c8ebf0251c336d4f3265a35edf0b95326670407 | 2dce33fc951195cf9fb21f8c26926358b8f7fb87 | /Sharing/views.py | f5e5897b17e043712ba015c861fe4855777fe91e | [] | no_license | hanifsarwary/Travelling-Companion | 5531c35b4d4f503b83ab2f427cc6fd5543ae4e2c | b79b048ccdf6327b15090519dd1028344f4d39a2 | refs/heads/master | 2022-05-04T20:47:14.065334 | 2019-06-01T10:06:49 | 2019-06-01T10:06:49 | 179,090,935 | 0 | 0 | null | 2022-04-22T21:03:54 | 2019-04-02T14:04:12 | Python | UTF-8 | Python | false | false | 1,187 | py | from django.shortcuts import render
from rest_framework.generics import *
# Create your views here.
from .serializer import *
class CreateLuggageView(ListCreateAPIView):
serializer_class = LuggageSerializer
queryset = LuggageSharing.objects.all()
class GetAllLuggageView(ListAPIView):
serializer_class = ... | [
"mianhanif13@gmail.com"
] | mianhanif13@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.