blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
3f35f2a8b17f35df510599c29d815a6b083efd36
ff5892487c262ce845a9996a282d3a2fdb1a3b15
/URI_1254.py
17a978a92191caec16353d8fd8ca9417daec8b41
[]
no_license
dankoga/URIOnlineJudge--Python-3.9
d424a47671f106d665a4e255382fc0ec3059096a
f1c99521caeff59be0843af5f63a74013b63f7f0
refs/heads/master
2023-07-15T08:32:11.040426
2021-09-03T13:27:17
2021-09-03T13:27:17
393,991,461
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
import re while True: try: tag = input().lower() except EOFError: break tag_replacement = input() text = input() text_replaced = [] index_begin = 0 index_end = 0 regex = re.compile(tag, re.IGNORECASE) while index_end < len(text): while index_end < len(text) ...
[ "dankoga2@gmail.com" ]
dankoga2@gmail.com
7870f65dc0b7e24d9079a084ded746c988bdb9bb
1bd3076902117867ec048210905195ba2aaaaa6b
/exercise/leetcode/python_src/by2017_Sep/Leet279.py
d70c3fe111c535970d12a2902656ed8da5306c9a
[]
no_license
SS4G/AlgorithmTraining
d75987929f1f86cd5735bc146e86b76c7747a1ab
7a1c3aba65f338f6e11afd2864dabd2b26142b6c
refs/heads/master
2021-01-17T20:54:31.120884
2020-06-03T15:04:10
2020-06-03T15:04:10
84,150,587
2
0
null
2017-10-19T11:50:38
2017-03-07T03:33:04
Python
UTF-8
Python
false
false
809
py
class Solution(object): """ my first dp code """ def __init__(self): self.dpstate = [0, 1, 2, 3, ] + ([-1, ] * 10000) def numSquares(self, n): """ :type n: int :rtype: int """ res = self.dpRecursive(n, self.dpstate) return res def dpRecur...
[ "ziheng_song@126.com" ]
ziheng_song@126.com
ce52a7bfc0bc1f7c3bc2700efd500ff2e1c4b9d7
36f6a64e74b4f3f8c936ede0ca6ac781cc0b0a84
/tests/serializers/test_room.py
ab8e6300cd498141a1043603788b292112bb0545
[ "MIT" ]
permissive
bayatim/cleanarc
3b7613702d38387010c5bf7e9cc83442bda8db69
d393ac1c856180efa38872dab02ae045af92e4fe
refs/heads/master
2023-07-26T14:50:28.851653
2021-09-10T19:36:41
2021-09-10T19:36:41
402,742,678
0
0
MIT
2021-09-10T19:36:42
2021-09-03T11:12:09
Python
UTF-8
Python
false
false
679
py
import json import uuid from rentomatic.serializers.room import RoomJsonEncoder from rentomatic.domain.room import Room def test_serialize_domain_room(): code = uuid.uuid4() room = Room( code, size=200, price=10, longitude=-0.09998975, latitude=51.75436293, ) ...
[ "mehdi.bayati@siegwerk.com" ]
mehdi.bayati@siegwerk.com
2eae42fa8e4b1dc07aa735f7b8fc312778f409cd
4b4df51041551c9a855468ddf1d5004a988f59a2
/leetcode_python/Array/rotate-function.py
3d952365fd1c669f093f899be1b8236df3d9be1b
[]
no_license
yennanliu/CS_basics
99b7ad3ef6817f04881d6a1993ec634f81525596
035ef08434fa1ca781a6fb2f9eed3538b7d20c02
refs/heads/master
2023-09-03T13:42:26.611712
2023-09-03T12:46:08
2023-09-03T12:46:08
66,194,791
64
40
null
2022-08-20T09:44:48
2016-08-21T11:11:35
Python
UTF-8
Python
false
false
4,546
py
""" 396. Rotate Function Medium You are given an integer array nums of length n. Assume arrk to be an array obtained by rotating nums by k positions clock-wise. We define the rotation function F on nums as follow: F(k) = 0 * arrk[0] + 1 * arrk[1] + ... + (n - 1) * arrk[n - 1]. Return the maximum value of F(0), F(1)...
[ "f339339@gmail.com" ]
f339339@gmail.com
2d9cd6536ba710b20ea94ed190d29056e9234af9
bf760c913aca7bc12e318fadd72b9c9d50ec5c97
/feedback/migrations/0006_auto_20151105_0821.py
21d6e8b2a0304816e2ba9e516914b2bf870a1ee3
[]
no_license
bharat-gera/Nautlus
29393180da9465a349e7ff4b884a1e495c95d610
72f3d06b4d91b987f1cd5ed7044f442e5eafc882
refs/heads/master
2023-01-07T13:36:31.495638
2020-05-07T07:30:03
2020-05-07T07:30:03
74,740,143
1
0
null
2022-12-26T19:47:15
2016-11-25T08:36:22
JavaScript
UTF-8
Python
false
false
422
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('feedback', '0005_auto_20151104_1317'), ] operations = [ migrations.RemoveField( model_name='wallet', ...
[ "bharatgeraan@gmail.com" ]
bharatgeraan@gmail.com
9b7776469b5fc184cd1f5ca602b2368f3d9a3ec8
978fa45efa8b57d10baa630df901e8bcd8527e96
/gochiusa/views.py
bceb8a85324b267bb33ff8a79a0e0f09f9d18fa9
[]
no_license
SeokJunYeom/first-django-project
2183a7aae27ff547c25b85da3284500cf2834404
788d47e22cdb47086d980605a7fb0825d3707a11
refs/heads/master
2021-01-16T18:23:21.114165
2016-10-11T02:05:43
2016-10-11T02:05:43
65,343,247
0
1
null
null
null
null
UTF-8
Python
false
false
2,090
py
from django.shortcuts import render from django.utils import timezone from django.http import HttpResponseRedirect, QueryDict from django.conf import settings from django.contrib.auth.decorators import login_required from .models import Character from .forms import CharacterForm import os # Create your views here. mo...
[ "tjrwnsdl0720@naver.com" ]
tjrwnsdl0720@naver.com
e9459fc693155f61282ad9a592262302bf7e81c3
afecdd0aa85b4e910bbb9d99ce5aabe32599f2d7
/VehiclePhysicsExample2/MyVehicle.py
0840f9a34a695f2b2283b6089ea7afe05c23fb03
[]
no_license
Blenderozodbek/CustomVehiclePhysics-UPBGE
076c14136b36049bd47c4a262de8b52ab4f85002
eccbaea4ea54494d35d439803e060ddeac44592f
refs/heads/master
2022-04-09T14:36:28.966733
2020-03-02T07:52:39
2020-03-02T07:52:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,283
py
import bge from collections import OrderedDict import VehiclePhysics import MathLib import math if not hasattr(bge, "__component__"): scene = bge.logic.getCurrentScene() class MyVehicle(bge.types.KX_PythonComponent): args = OrderedDict([ ]) def start(self, args): self.Vehicle = VehiclePhysics...
[ "bianca.oliveira.51@outlook.com" ]
bianca.oliveira.51@outlook.com
e6ac0a4377f1efeaa6ced9a1f60ff1064ee4f9d5
48894ae68f0234e263d325470178d67ab313c73e
/sa/apps/mrt/views.py
2436dec1eafdb325d310c8be9f817091229bae4b
[ "BSD-3-Clause" ]
permissive
DreamerDDL/noc
7f949f55bb2c02c15ac2cc46bc62d957aee43a86
2ab0ab7718bb7116da2c3953efd466757e11d9ce
refs/heads/master
2021-05-10T18:22:53.678588
2015-06-29T12:28:20
2015-06-29T12:28:20
118,628,133
0
0
null
2018-01-23T15:19:51
2018-01-23T15:19:51
null
UTF-8
Python
false
false
4,323
py
# -*- coding: utf-8 -*- ##---------------------------------------------------------------------- ## sa.mrt application ##---------------------------------------------------------------------- ## Copyright (C) 2007-2011 The NOC Project ## See LICENSE for details ##--------------------------------------------------------...
[ "dv@nocproject.org" ]
dv@nocproject.org
c63304d6ce62dc737cfebc3acc110f5104f5f745
8def1a3a520797a8e958b0a03cfb9957ff0845b4
/tests/test_map.py
7994bbc29498182797c834de705b28bfc89fb352
[]
no_license
Raragyay/Snake
6a2a5c24fb012cb2057015cca07f4ca758d3c670
36c486a1fb5fd52225db7ccfce9b0f1438509075
refs/heads/master
2021-09-10T02:55:16.265421
2018-03-20T20:08:08
2018-03-20T20:08:08
126,075,474
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
# coding=utf-8 """ Tests for the Map class. We test if the creation of a map class is as expected. """ from unittest import TestCase import pytest from snake.map import Map, PointType, Pos class TestMap(TestCase): def test_init(self): with pytest.raises(TypeError): _ = Map(5, 1.5) wi...
[ "let987let987@gmail.com" ]
let987let987@gmail.com
4b924366ee45f1578a34ab33ae2c95bc333001c1
05b2bfe4c5bb716aa2e283567095d613b26f3667
/listings/migrations/0001_initial.py
3076ffe7dffbc57378385bc0d5b371b7ddb2d2c2
[]
no_license
anshupal11/Ashiyana-Estate
b0b8d09e42846b1cf4fc556e41557fe8523bd114
ffdb8e0ae477c189b3002b6765d66eef638b0a4a
refs/heads/main
2023-06-06T21:01:31.698523
2021-07-14T11:44:43
2021-07-14T11:44:43
360,515,280
0
0
null
null
null
null
UTF-8
Python
false
false
2,169
py
# Generated by Django 3.1.7 on 2021-03-30 11:09 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('realtors', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "anshu.pal108@gmail.com" ]
anshu.pal108@gmail.com
7d59991c8b0a76d9c9417505d7349091318f74c7
290b66010fc270cee3910b010c917c016c4e048a
/lesson13_UnitTesting/venv/bin/pbr
ade459b67bcd8f37361fb671e162ee1d904558a9
[]
no_license
zagravsky/cursor_hw
3e3996352037799bfe56072c99db79173b062ce3
f12b83ce2589778046432326125ef327374263ad
refs/heads/master
2020-04-19T16:11:19.067325
2019-04-14T17:38:21
2019-04-14T17:38:21
168,296,669
0
0
null
null
null
null
UTF-8
Python
false
false
271
#!/Users/admin/cursor_hw/python-cursor/lesson13_UnitTesting/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pbr.cmd.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "zagravsky@gmail.com" ]
zagravsky@gmail.com
8bb4aab4b937bc373eeccd0b26288f72c494a8ad
f2781e079656656768d181e4d73b888f985488d8
/utils/img.py
812083e4d9fb0b75e9bf11da09e5fb282c83cf6e
[ "MIT" ]
permissive
singhay/DeepPredictiveMotionTracking
688281badb05767ecab7e3ed63f03200b8be0947
cacef66088d356351a17118b7f831760519a0e2c
refs/heads/master
2023-07-23T22:32:10.537703
2019-10-27T22:18:22
2019-10-27T22:18:22
189,454,175
2
0
MIT
2023-07-06T21:42:25
2019-05-30T17:20:36
Python
UTF-8
Python
false
false
12,603
py
import SimpleITK as sitk import cv2 as cv import nibabel as nib import nilearn.image as nil_image import numpy as np from scipy.interpolate import InterpolatedUnivariateSpline def create_rotation_matrix(param): """ Create a rotation matrix from 3 rotation angles around X, Y, and Z: ================= A...
[ "singh.ay@husky.neu.edu" ]
singh.ay@husky.neu.edu
41d0b7f4129362904011ff884c66a4b05b9a9a13
c4c6b03e6b9cab4d10e49726647e107e69972f8f
/awx/ui/fields.py
4d96165d4d8b8fb818bfbf74e76aad0b8c83ed60
[ "Apache-2.0" ]
permissive
Saurabh-Thakre/awx
f9f881d7620f681c393c16bbb501eaa401750320
8eb377a3ea8303c394ad4c958cc828c7239c1e11
refs/heads/devel
2021-06-22T17:29:35.212057
2021-02-06T14:30:51
2021-02-06T14:30:51
336,553,122
1
0
NOASSERTION
2021-02-06T14:13:25
2021-02-06T14:13:24
null
UTF-8
Python
false
false
1,354
py
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. # Python import base64 import binascii import re # Django from django.utils.translation import ugettext_lazy as _ # Tower from awx.conf import fields, register class PendoTrackingStateField(fields.ChoiceField): def to_internal_value(self, data): ...
[ "yo@jakemcdermott.me" ]
yo@jakemcdermott.me
0abc1c2ac2cd095cf5c4d4fb48f3311e312bad2e
3006b8b05a5363a099f4d6a896e942eaec26fb6b
/confirmationreserve.py
36ddeaa5c4e2faea9232507eed703afaa24832d9
[]
no_license
lee-t/CS-4400-Trainwizards
1e15ae3df4429a5a9b42c188845b63aec4cf1a84
1539c18615916cd29cfe5e3d9542af6fedc7d0b3
refs/heads/master
2021-01-10T08:38:32.964122
2016-04-26T00:28:22
2016-04-26T00:28:22
51,272,721
0
0
null
null
null
null
UTF-8
Python
false
false
3,003
py
#! /usr/bin/env python # # GUI module generated by PAGE version 4.7 # In conjunction with Tcl version 8.6 # Apr 24, 2016 01:35:43 AM import sys try: from Tkinter import * except ImportError: from tkinter import * try: import ttk py3 = 0 except ImportError: import tkinter.ttk as ttk py3 = 1 ...
[ "tlee361@gatech.edu" ]
tlee361@gatech.edu
216c042ef5a6cf580a5ab27cfef073b3193a46d2
20774d703ed77a359dd29692d2a6817ddabe10bd
/15598_카카오머니.py
9342dc637cd97c399452a0ed7f98b36cc9ea7544
[]
no_license
kimheejoo/BaekJoon
a9af5116e51355f10769b99054b4cc52f48869be
67f5c9a420b99120f53c3c98f0f7ed9b0de757fc
refs/heads/main
2023-03-27T02:54:42.227003
2021-03-19T16:26:53
2021-03-19T16:26:53
338,039,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
import sys from math import gcd N = int(sys.stdin.readline()) wallet = 0 charge = None # 충전금 min_M = pow(10,18) for _ in range(N): money , remain = map(int, sys.stdin.readline().split()) if wallet + money < 0: #충전 if remain != 0: min_M = min(min_M, remain) # min_M(남은 금액의 최소)이 충전금보다 많으면 오버...
[ "h32j00@gmail.com" ]
h32j00@gmail.com
01dc1ba3f66d315ac5155c92bde6fcf52a9edd31
673331b00130061e7bb9faad84e6448260ba9040
/restful_f/urls.py
19aeb7ce683c87f032e82e57ec2f1b2e27fc1e60
[]
no_license
shangjunshangmin/restful
5abc9a452171c17ce9e1293b1d3386842d0e0750
661abb0e8945ebc5df67a5447df6440fbad9e7cc
refs/heads/master
2022-11-16T00:27:47.745672
2019-01-29T07:45:33
2019-01-29T07:45:33
167,967,310
0
1
null
2022-10-24T12:18:18
2019-01-28T13:31:28
Python
UTF-8
Python
false
false
1,855
py
"""restful_f URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "1378828610@qq.com" ]
1378828610@qq.com
685d71299402ee819bd321399d5b371b8a29309f
ea4b8ad32345a94ec1c566c30efb4dfc9fd46b8e
/GeoGossip/webapps/geogossip/management/commands/crawl_yelp.py
7d46dd157297ff320e6108180b527cc4f876c872
[]
no_license
yyi1/GeoGossip
76e09b585c0a765485547560def4b2f9aa407777
99fa1d06c4f26ad1f0ab8b1c007ab2d54d3cc56f
refs/heads/master
2020-04-06T04:21:46.476790
2017-02-25T04:45:26
2017-02-25T04:45:26
82,977,730
0
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
import os import time import sys from django.core.management.base import BaseCommand from django.db import transaction from geogossip.models import Business from geogossip.forms import BusinessForm from geogossip.utils import merge_categories from yelp.client import Client from yelp.oauth1_authenticator import Oauth1Au...
[ "yyi1@andrew.cmu.edu" ]
yyi1@andrew.cmu.edu
398e431632ab1e171a30c473667a6229cbf94728
76b983258793d294b81791ebe72591bfebf78625
/lib/ia32/optable.py
314689b3d1c369c472d481e50573e58dabea9a73
[ "BSD-2-Clause" ]
permissive
lotusexpeditor/syringe
18ac9cb800a7fefb7d67e31936db6a84e47df9eb
34a8386b90f534f9a856d0a436bba04dbf5100bd
refs/heads/master
2023-02-08T10:08:20.295797
2020-12-27T00:06:09
2020-12-27T00:06:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
from ._optable import OperandLookupTable from . import typesize def Lookup(opcode): '''Lookup specified opcode in the lookup table''' res = ord(opcode[0]) if res == 0x0f: res = ord(opcode[1]) return OperandLookupTable[res+0x100] return OperandLookupTable[res] def HasModrm(lookup): ...
[ "arizvisa@gmail.com" ]
arizvisa@gmail.com
af48d996dcd94734f6fb6d4ec8d30e0aeff600b9
a0a5a6198a524e2dbc237d313a362d6b902487f8
/trainer.py
9170f2aab55f09bfd95a53a9c5ee7869f60c878b
[]
no_license
xinleguo/cgo-pytorch
2a4f34918551a9c741ebf1a96a3e81bf3ebb4542
0959396595e8b700690ebb14ff9929a6551bd76a
refs/heads/master
2023-08-16T17:25:33.919579
2021-09-23T18:27:15
2021-09-23T18:27:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,363
py
import torch from loguru import logger from nlgeval import NLGEval from torch.nn.utils import clip_grad_norm_ from torch.utils.data.dataloader import DataLoader from tqdm import tqdm def train_val_loss(model, train_dataset, val_dataset, num_workers, loss_fn, params, model_save_path, save_every, dev...
[ "jiangkairong@email.arizona.edu" ]
jiangkairong@email.arizona.edu
c7c380b18eda56812451f7dd40aed6a0cf14d8ae
26f9ce896ab8a47f208788a96481eac0ebc5c417
/elite-btc/elite-btc.py
80dcf752f96a02155a25bc74293b7ec38e4fe46a
[]
no_license
0x539/tempa-t-bot
c0dc8105a8717dd045d0fa5a1e2f2078ecad8c3e
655add12bdcdef6c8ca234408b2cd9d58c114c3b
refs/heads/master
2021-01-13T01:04:31.756483
2017-01-04T23:07:42
2017-01-04T23:07:42
52,831,429
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
# coding=utf-8 from slackbot.bot import listen_to import re import json import os @listen_to('!price', re.IGNORECASE) def btc_price(message): with open(os.path.abspath(os.path.join("btc_price_cache.txt"))) as data_file: data = json.load(data_file) price = data['data']['amount'] price = price.enco...
[ "omgbloodypass@gmail.com" ]
omgbloodypass@gmail.com
ed2cb6dfb5dc32978c14493d70c83acd99fdbf88
bb458f0256751133e260ff6be17c34f3af4fab39
/Q_learning_RND/log_utils.py
cb9aa11b9212b7497b0dfd07c79214c8829baa80
[]
no_license
pvhau169/MDP-RND
b9df1bc922511df2be9dbca1ad559310ab4c349a
eb6e38c5469b60ccba256c12a7a69b3303175e03
refs/heads/master
2023-01-18T17:03:51.194989
2020-11-25T05:20:46
2020-11-25T05:20:46
315,836,143
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
class mean_val: def __init__(self): self.k = 0 self.val = 0 self.mean = 0 def append(self, x): self.k += 1 self.val += x self.mean = self.val/self.k def get(self): return self.mean class logger: def __init__(self): ...
[ "pvhau169@gmail.com" ]
pvhau169@gmail.com
4f5c16106059a785fef9f647a57e7a8ac705d310
d349f6a13a8b1b7cbb7b36fd467d5ed2af77fd19
/Python_02_Modify_Date.py
40e13c89540c27dce9a67a1d346ea3d6710f1d0e
[ "MIT" ]
permissive
rogerolowski/SimpleStockAnalysisPython
639190c8ac0b4544d6fc7b298d836a32124e5d17
758e04b28eda4b8eb4124f4b1e0ed493b0f93106
refs/heads/master
2023-08-21T09:05:58.607706
2021-10-31T03:40:16
2021-10-31T03:40:16
423,045,068
0
0
MIT
2021-10-31T03:40:00
2021-10-31T03:39:59
null
UTF-8
Python
false
false
3,431
py
# -*- coding: utf-8 -*- """ Created on Fri Nov 27 08:09:11 2020 @author: Tin """ # Modify Yahoo Dataframe Date import pandas as pd # Dataframe Library pd.set_option('max_columns', None) # To show all columns import yfinance as yf yf.pdr_override() # input symbol = 'AAPL' start = '2014-01-01' end = ...
[ "noreply@github.com" ]
rogerolowski.noreply@github.com
e1256fc5375bcdb7a473231f9e7e1965896ac501
1f6d4f3f43ff465b2d5ac44d5630afff75fa4bf9
/utils/excel.py
a01d475b78ad1dbccd50346334363e4177e56fd1
[]
no_license
Drag0nfather/huntflow_test_task
37eba994d98ba59ac43507020663a012587234ec
2c9ab05e4884ab204ea6298f2068b04ec67d5e94
refs/heads/main
2023-08-02T10:07:05.104006
2021-09-09T15:24:28
2021-09-09T15:24:28
401,333,626
0
0
null
2021-09-09T16:59:04
2021-08-30T12:21:30
Python
UTF-8
Python
false
false
1,193
py
from pandas import read_excel from utils.exceptions import ExcelFileNotFoundException def convert_excel_to_list(filename: str) -> list: """ Экспорт Excel файла в список словарей """ try: df = read_excel(f'{filename}').to_dict(orient='records') return df except Exception: r...
[ "Andrey18651@gmail.com" ]
Andrey18651@gmail.com
4934b1bcd2efd7f12435fe7bc83e6f0357341b65
5e27da01d3c9aceb326feff71b4d59b20eaed595
/chapters/databases/app/__init__.py
b5c6f225de7f88e3080a7bfa01944b13eea94885
[ "MIT" ]
permissive
SpencerMycek/WTF-is-Flask
6f3c1439cc0675309b1d685fb0903c90b90f755b
4f697b7d2606633caf38ed925e8db4827bf0ee2e
refs/heads/master
2023-05-12T16:56:10.568176
2022-10-19T17:03:12
2022-10-19T17:03:12
233,667,997
0
0
MIT
2023-05-01T21:19:07
2020-01-13T18:46:20
Python
UTF-8
Python
false
false
260
py
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) migrate = Migrate(app, db) from app import routes, models
[ "Spence.Mycek@gmail.com" ]
Spence.Mycek@gmail.com
0b1f54799727b073ebc04476ea71a309f1ef606b
13aca2d3be5ed6214c45ad310951e2c27ea5a209
/Lesson 22/docsEdit.py
293bca61a1a6a64792189de9fbf26e6e68d81290
[]
no_license
DarkLabel1/API-VKontakte
756aa1a810a7bbeabf3efc631d1840f7d623818d
4a613e60360cbd6b42b9190f4d1192e2ae3a60a0
refs/heads/master
2023-01-19T13:17:34.029694
2020-11-16T17:13:48
2020-11-16T17:13:48
291,518,055
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
from KEY.key import API_KEY_DOCS import requests OWNER_ID = 533763262 DOC_ID = 568100331 DOC_TITLE = "Какой-то договор в Ижевске" DOC_TAGS = "Договор,ижевск" r = requests.get("https://api.vk.com/method/docs.edit", params={ "owner_id": OWNER_ID, "doc_id": DOC_ID, "title": DOC_TITLE, "tags": DOC_TAGS, ...
[ "dark.laybel@bk.ru" ]
dark.laybel@bk.ru
43cd83767fb5b114eb726ddf99e8ae561d91adf5
aa0270b351402e421631ebc8b51e528448302fab
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_06_02_preview/aio/operations/_maintenance_configurations_operations.py
e03f2a6cb9fe01b22e856323445e0d162f7c457d
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
19,860
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
418128e933eadf203bb45c157fb1159c2f0fd3fc
04c21e01c7dd002d0d66f26f17294bbe25ab30c1
/src/core/serializers/authentication/reset_password.py
0e0b5a6f90c5a3f1927d314da4b45df747402d19
[]
no_license
unbrokenguy/Q-n-A-rest-api
29d1a7614d761bf68f38bbbbbd731c3692afccf7
dd483993e304d6660c8c8f7518bf7414efd8ec28
refs/heads/master
2023-06-03T20:19:52.606677
2021-06-18T09:35:27
2021-06-18T09:35:27
376,749,787
0
0
null
2021-06-18T09:35:27
2021-06-14T08:08:44
Python
UTF-8
Python
false
false
394
py
from rest_framework import serializers from core.models import User class ResetPasswordSerializer(serializers.ModelSerializer): """ Reset password serializer check if new password is strong enough if not raises ValidationError. """ class Meta: model = User fields = ["password"] ...
[ "khazievbulatphanzilovich@gmail.com" ]
khazievbulatphanzilovich@gmail.com
a6a98af8cf643fc76cd0b3374946cf376079c216
d160301e6eec4e9f5ce921aac6f8b8c634689822
/python/1.py
a9980805283733c3c7ab18447f13a63f6b89c616
[]
no_license
akashhnag/coding-ninja
46bd9f1f0383d9bab4ed819842d300527b22d911
92b450f96da65ca0c360280ca401a4d8af538b55
refs/heads/master
2020-12-27T14:04:46.856614
2020-02-14T13:11:09
2020-02-14T13:11:09
237,929,159
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
n = int(input()) arr = list(int(i) for i in input().strip().split(' ')) ind=0 evensum=0 oddsum=0 for a in arr: if a%2==0 and ind%2==0: evensum+=a elif a%2==1 and ind%2==1: oddsum+=a ind+=1 print(evensum,' ',oddsum)
[ "akash.nag@cognitif.ai" ]
akash.nag@cognitif.ai
7718f80d703242913200b6318bd12354622ff8e1
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/__init__.py
b9ace78ff9b74043c8e8e5253b7611a5e4bd9da3
[ "MIT" ]
permissive
lmazuel/azure-sdk-for-python
972708ad5902778004680b142874582a284a8a7c
b40e0e36cc00a82b7f8ca2fa599b1928240c98b5
refs/heads/master
2022-08-16T02:32:14.070707
2018-03-29T17:16:15
2018-03-29T17:16:15
21,287,134
1
3
MIT
2019-10-25T15:56:00
2014-06-27T19:40:56
Python
UTF-8
Python
false
false
952
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 ...
[ "laurent.mazuel@gmail.com" ]
laurent.mazuel@gmail.com
c4b6c3920b3eb30c4ae1d4e8265c34ede66d74a4
1b8a4f0b63d13708240e3679fc21437c1f466654
/paracetemol.py
d0c0781f1a40d41acf3d6c5ae00c134a7de68225
[]
no_license
standrewscollege2018/2021-year-11-python-classwork-JustineLeeNZ
2d11a26b1ec0a7094e395ef958ed7e6923beb086
6709ad3329b31c8c1bbb9ccdf916804390ff00b9
refs/heads/master
2023-03-13T19:11:55.732225
2021-03-08T23:03:28
2021-03-08T23:03:28
334,806,214
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
''' uses weight and age to calculate correct dose of paracetemol ''' # constants AGE_LIMIT = 12 DOSE_PER_KG = 10 # ask for age age = float(input("Enter your age: ")) # check age to see whether also need weight # child dose if age < 12 : # ask for weight weight = float(input("Enter your weight: ")) # ca...
[ "48225095+JustineLeeNZ@users.noreply.github.com" ]
48225095+JustineLeeNZ@users.noreply.github.com
c3a88a91df0ca6dd325fb81f7f3f25b014e2a78d
44b455e1d02445954382ef1d40be41b7798700a1
/async_request/tornado_request.py
de8b957897f97dcc138d423b81f977d6163bbeb8
[]
no_license
anstones/Mylib
58a9f49a784f9dce7ab2053020f5ac754f3203ee
c21a28d9a34cf8c71ad290d61034365fb86bdc86
refs/heads/master
2020-08-19T12:51:40.647523
2019-11-18T14:19:29
2019-11-18T14:19:29
215,921,463
0
0
null
null
null
null
UTF-8
Python
false
false
12,589
py
# coding: utf-8 import json as _json import urllib.parse import mimetypes from functools import partial from tornado.httpclient import AsyncHTTPClient from tornado.httpclient import HTTPRequest, HTTPResponse from tornado import gen from lib.exceptions import CallServiceException from lib.utilities import get_unique_id...
[ "stone3790@163.com" ]
stone3790@163.com
5e72f4a12c7503279a10f1b738bc4bf2b607c98b
d0d5bd6cf9678c445f7b0be32599460131a38ffa
/toolkit/EasyTree/geneconcate.py
17a0fe7f561394eb29d49b41b7566d0a2fbd1487
[]
no_license
cucmeliu/workspace
0b26be248df76159ea6f5af2b7ea96a1edf5b862
381676dae18d9bba153d7aacc86d408b12a9e375
refs/heads/master
2021-01-20T15:58:32.783143
2018-06-29T10:03:33
2018-06-29T10:03:33
90,805,885
0
0
null
null
null
null
UTF-8
Python
false
false
5,583
py
#!/usr/bin/python # -*- coding: UTF-8 -*- # Filename: geneconcate # Desc: gene modify # author: leo.liu # date: 2018.2.28 from openpyxl import workbook from openpyxl import load_workbook import sys import os import codecs #from openpyxl.write.excel import ExcelWriter # 第一个需求 # 1. Datasheet中保存了Unicode,及其对应的碱基对LSU/ITS...
[ "cucmeliu@gmail.com" ]
cucmeliu@gmail.com
fabe9e3f5637c14c6567fd438a3427cc5b0ec05d
881e6817a69a7e66d82be664762c917c6920c8e4
/parser.py
f026143bdc6671512d30450b5f3754833c7b9e27
[ "Apache-2.0" ]
permissive
z0lope0z/cheathub
2cd8cbb5390b634d472c4d3a53e48d25239d1431
ebd94591d4e7bba71906419f771259dd764d1ce3
refs/heads/master
2021-01-10T20:49:43.048876
2014-02-12T06:53:22
2014-02-12T06:53:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
from bs4 import BeautifulSoup as BS from BeautifulSoup import BeautifulStoneSoup as BSS import pdb w = '&lt;' BSS(w,convertEntities=BSS.HTML_ENTITIES).contents[0] file = open("sample.txt") parse = BSS(file.read(),convertEntities=BSS.HTML_ENTITIES).contents[0] soup = BS(parse) final = soup.find('lang').getText() output ...
[ "lopegwapo@gmail.com" ]
lopegwapo@gmail.com
234f603a62fbcfc25412c15d4df79e54e6129073
60f95eff7c43f788af2420813c371152c1e2e5eb
/hulk/broker/oanda/common/constants.py
b37ffd670df513efa144a0da60298fba8d27b29e
[ "BSD-3-Clause" ]
permissive
webclinic017/hulk
1667c508acb061a8120dc415978a72e83dc38f54
de326ca1554dc743e225cef4e4b1e2fd4f5090c6
refs/heads/master
2022-03-22T20:07:23.276317
2019-12-02T01:10:43
2019-12-02T01:11:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
from ....base.models import AccountType OANDA_ENVIRONMENTS = { "streaming": { AccountType.REAL: "stream-fxtrade.oanda.com", AccountType.DEMO: "stream-fxpractice.oanda.com", }, "api": { AccountType.REAL: "api-fxtrade.oanda.com", AccountType.DEMO: "api-fxpractice.oanda.com",...
[ "dev@luotao.net" ]
dev@luotao.net
9d9bfc44598c9191f992d75b82629079642b00d6
d808bf5c61a881c6004bb2b8ba5eddfcb0166b5f
/poll/migrations/0001_initial.py
166156e755aac29aab508bf79858a04af09c250c
[]
no_license
Athul-dev-7/PollApp-Django
b890e907aa7b426357d82a9cfd489bf3c2f1ed2e
1bffa4aae83aa1dbd441074ea8c5288ab9e61324
refs/heads/main
2023-06-22T18:22:58.763556
2021-07-25T11:35:29
2021-07-25T11:35:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
# Generated by Django 3.2.5 on 2021-07-25 09:43 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Poll', fields=[ ('id', models.BigAutoField(...
[ "athuldas7777@gmail.com" ]
athuldas7777@gmail.com
00235e95145c6baa62930aa5d5ae1be13d532ad4
4a2b2c261449e735a08fff005c899981baa13b5d
/manage.py
b1b5bfe98b1ea850717ab1d3c32d12e616af9314
[]
no_license
dotnet-tech/python-django-contact
c55b048c3d517036e6f343a778b5f88aec3e28ec
226ced12ade600624feed7247743430ce157e0a3
refs/heads/master
2020-05-27T16:51:36.943409
2019-05-26T17:11:32
2019-05-26T17:11:32
188,710,360
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sampleWS.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
[ "ayyanan@gmail.com" ]
ayyanan@gmail.com
52826ca862da396fd7d48af0578fb98ec128b540
34e3d607f0a9b26ab1220f6164713c7304713996
/ML_Actual_Combat/柱状图.py
9d0ac74085806fd29fc64bb83c6dc2d7e019151a
[]
no_license
yuniaohappy/LearningPython
756bc2926ec13101a8b4061561029cd4ee992b52
6470cc76c32acef74a3156953edfe3cc27b33682
refs/heads/master
2021-06-07T04:26:21.674320
2020-01-06T09:43:59
2020-01-06T09:43:59
120,276,298
0
0
null
null
null
null
UTF-8
Python
false
false
1,537
py
import numpy as np import matplotlib.pyplot as plt men_means, men_std = (20, 35, 30, 35, 27), (2, 3, 4, 1, 2) women_means, women_std = (25, 32, 34, 20, 25), (3, 5, 2, 3, 3) ind = np.arange(len(men_means)) # the x locations for the groups width = 0.35 # the width of the bars fig, ax = plt.subplots() rec...
[ "lpsddz@126.com" ]
lpsddz@126.com
9fed24fb97a36aed86132f61070c2b1321d9db65
ac40a6fa952dc5ca4ba88bf16971a3b2ced52009
/blog/migrations/0002_comment.py
8cf6f676ab02a80620596fa1de0f7d13d50509e1
[]
no_license
hryniewiczm/hello
38c88b8d92da30274ad8fff3e2aeba1f3cb22822
f7ec56f4374b2daafdbc3582652ccde740b5322b
refs/heads/master
2020-04-16T09:02:33.403547
2019-01-13T17:06:05
2019-01-13T17:06:05
165,448,522
0
0
null
null
null
null
UTF-8
Python
false
false
907
py
# Generated by Django 2.1.5 on 2019-01-13 16:46 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( n...
[ "hryniewicz.m@o2.pl" ]
hryniewicz.m@o2.pl
1c40f40b9b417d03a7a6e2c1098eafcda8298552
56201a7500b648b20b1be8dcca45859ff2ac516c
/time2freq.py
c67026928790de79957d53eb1e161709ebb8800d
[]
no_license
chuyuanver/nsor_measurement
e7a130766e0fe1605861ce38f7c681a11bbf4753
04be77456a336f4bebd21d3062eb7a8763957507
refs/heads/master
2021-09-11T00:08:51.538424
2018-04-04T18:14:08
2018-04-04T18:14:08
126,086,939
0
1
null
2018-03-20T22:22:36
2018-03-20T21:49:46
Python
UTF-8
Python
false
false
247
py
import numpy as np def time2freq(time_data, pad_power): x = np.ceil(np.log2(len(time_data))) n = 2**(pad_power-1) l = 2**x*n dt = time_data[1]-time_data[0] f_max =1/(2*dt) return np.linspace(0, f_max, int(l/2)+1)
[ "noreply@github.com" ]
chuyuanver.noreply@github.com
b6c760de8da31dc6fcd7ad788a52518a554c902f
3927a61ee1503e2a8e1eec67a2f4f68c9da2add9
/Prelab08/.svn/text-base/exceptionTasks.py.svn-base
851b8584401b513d082ec2d91a8ce1c6bddabd68
[]
no_license
Sdattagu/Python
1349a049c50370e99aba74e7691ee583bdce98a0
a030e59a15554b2c1cd836fbf098a199a4d8c648
refs/heads/master
2020-03-21T09:59:19.908811
2018-06-23T19:55:49
2018-06-23T19:55:49
138,428,127
0
0
null
null
null
null
UTF-8
Python
false
false
4,726
#Shounak Dattagupta #10/22/2016 import math import sys from points import PointND from points import Point3D from points import PointGroup def createPoint(dataString): #Takes in a string containing comma separated float values #"3.14, 2.701, 19.77" #Returns a PointND instance. # Note that the str...
[ "shoshodg00@gmail.com" ]
shoshodg00@gmail.com
81b19ecd0c91e6ea8815d0e3b85c9432aea17620
f1ea1b62071f76a56a20489a2689356cea465e0a
/shallow/shallow_main_task2.py
57a58b6d46203f46af04905e216fcadec97a1a41
[]
no_license
erika-tyagi/cfpb-complaints
7080aa6d72af1b5794c51d6f812d2c90db69b6a3
d65976eb489ab55c0bd6de535261c5bd30058459
refs/heads/master
2022-09-28T18:25:37.144540
2020-06-08T21:04:57
2020-06-08T21:04:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,328
py
import shallow_util as util from shallow_constants import * from sklearn.pipeline import Pipeline from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from sklearn.naive_bayes import MultinomialNB from sklearn.linear_model import SGDClassifier from sklearn.metrics import classification_repor...
[ "erika.tyagi@gmail.com" ]
erika.tyagi@gmail.com
e49684693eb06b85153902a5ee7448e22605100d
2257936357793d984265bf2073e1500162e6ca19
/Python/Saper z użyciem GTK/Saper.py
8334c73e1a2bc9f80c5272fd6a1252efcb7d9efc
[]
no_license
lkaminski96/Projects
62fe511763d5147ce69467af781f2a32e9194615
8c8b0b5ce8aef399bcb4b2edc7c1ad9b5211d10b
refs/heads/master
2022-12-09T22:29:54.278687
2019-08-21T14:38:57
2019-08-21T14:38:57
193,705,750
1
0
null
2022-04-22T22:12:40
2019-06-25T12:43:01
JavaScript
UTF-8
Python
false
false
12,166
py
#-*- coding: utf-8 -*- import gi # biblioteka do losowania liczb import random # wymagamy biblioteki w wersji min 3.0 gi.require_version('Gtk', '3.0') from gi.repository import Gtk class Plansza(Gtk.Grid): """ Klasa przedstawiajaca plansze.""" def __init__(self): """Inicjalizator obiektu, dziedziczen...
[ "52205017+lkaminski96@users.noreply.github.com" ]
52205017+lkaminski96@users.noreply.github.com
cc53f060d460eb0ef9a0249b2bb6c1c52008ea64
bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062
/ppdet/optimizer/optimizer.py
2d0714078eec14dadd57f5689ae6a41039562202
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleDetection
e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961
bd83b98342b0a6bc8d8dcd5936233aeda1e32167
refs/heads/release/2.6
2023-08-31T07:04:15.357051
2023-08-18T02:24:45
2023-08-18T02:24:45
217,475,193
12,523
3,096
Apache-2.0
2023-09-10T10:05:56
2019-10-25T07:21:14
Python
UTF-8
Python
false
false
12,296
py
# Copyright (c) 2019 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
4e86e0e6ff825aaff5a9add1e218622ecce984ed
ca75f7099b93d8083d5b2e9c6db2e8821e63f83b
/z2/part2/batch/jm/parser_errors_2/185179947.py
546d93745ac3129f50e6b4ee8ebd53a7475e4971
[ "MIT" ]
permissive
kozakusek/ipp-2020-testy
210ed201eaea3c86933266bd57ee284c9fbc1b96
09aa008fa53d159672cc7cbf969a6b237e15a7b8
refs/heads/master
2022-10-04T18:55:37.875713
2020-06-09T21:15:37
2020-06-09T21:15:37
262,290,632
0
0
MIT
2020-06-09T21:15:38
2020-05-08T10:10:47
C
UTF-8
Python
false
false
916
py
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 185179947 """ """ random actions, total chaos """ board = gamma_new(2, 2, 2, 2) assert board is...
[ "jakub@molinski.dev" ]
jakub@molinski.dev
ad63db827895e58dd1d6453651cac9b390cf59b5
c4f7a338513bdf11b1b7466649315b4ccb2788ae
/PycharmProjects/Latte-master/Git и случайные окружности.py
c419bb94538cca5185927bc1e0204bee1596220c
[]
no_license
Nastialo/Ufa-Vaskina
30ba506ab1ed3059acb97f52d4f5385efc4853e4
c42b7d764c3d1e9dd830fe92884f7dcec60c9afa
refs/heads/master
2020-12-04T07:01:53.427081
2020-05-09T22:03:36
2020-05-09T22:03:36
231,668,885
1
0
null
null
null
null
UTF-8
Python
false
false
2,109
py
import sys from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtGui import QPainter, QColor from random import randint, choice from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resi...
[ "59333815+Nastialo@users.noreply.github.com" ]
59333815+Nastialo@users.noreply.github.com
ba97b518db15458fb817d0b872d2356510abc92f
df8438656cc2b15001a03d02949abec9a374cb6f
/test/normalizer_issue_files/E72.py
c39cacc09c68bb48fdc7e3972843eaa5190fa3fb
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
gandhis1/parso
65fcc7540eb2664691b1ed12203faa617995c4ce
7b166db0b5b0b46a3b8b2f1ea5c9dcf57bc36197
refs/heads/master
2021-01-25T04:36:15.558393
2017-06-05T23:20:12
2017-06-05T23:20:12
93,455,487
0
0
null
2017-06-05T23:18:20
2017-06-05T23:18:20
null
UTF-8
Python
false
false
1,089
py
#: E721 if type(res) == type(42): pass #: E721 if type(res) != type(""): pass import types if res == types.IntType: pass import types #: E721:3 if type(res) is not types.ListType: pass #: E721:7 E721:35 assert type(res) == type(False) or type(res) == type(None) #: E721:7 assert type(res) == ty...
[ "davidhalter88@gmail.com" ]
davidhalter88@gmail.com
f960787efb67b91348af709a474548bd3c83a751
99f145ac3a1b9192e54c114379f16bf992781251
/venv/lib/python2.7/site-packages/pandas/tests/plotting/test_series.py
6878ca0e1bc0618a0b53b0b7d150206acc962c7e
[ "MIT" ]
permissive
dushyantRathore/Cricket-API
0a7df84f9760090e8a24dc61689e63e123c33d1f
d28bc5e6c613052793117e3dbd9035e4540901bb
refs/heads/master
2021-03-24T10:18:58.362716
2020-07-08T17:52:38
2020-07-08T17:52:38
79,565,447
3
1
MIT
2018-10-01T19:16:47
2017-01-20T14:24:08
Python
UTF-8
Python
false
false
30,920
py
#!/usr/bin/env python # coding: utf-8 import nose import itertools from datetime import datetime import pandas as pd from pandas import Series, DataFrame, date_range from pandas.compat import range, lrange import pandas.util.testing as tm from pandas.util.testing import slow import numpy as np from numpy.random imp...
[ "dushyant.bgs@gmail.com" ]
dushyant.bgs@gmail.com
577de1e8c4b0f5fcc505a90aa84b8b3cecadb643
383eb3630aeb21b2fe6d43db25f7a6e450a51488
/tools/rename_release.py
d719fd043a64da70df7e3348cb350f2c8c64677b
[]
no_license
p5-vbnekit/docker-common-windows-compilers
10075eaf99c469d2b089bc59f8d8e91f37c38025
931370b4413f823f1ad60b7f3254df92efbd35e4
refs/heads/master
2020-07-30T19:55:55.127942
2019-10-01T20:08:00
2019-10-01T20:08:00
210,340,564
0
0
null
2019-10-01T20:08:01
2019-09-23T11:42:00
Python
UTF-8
Python
false
false
1,426
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys, github, requests, json if "__main__" == __name__: from __main__ import __file__ as main_path def routine(): if 4 != len(sys.argv): raise ValueError("invalid command line") m_old_name = sys.argv[1] if not m_old_name: raise ValueError("invalid o...
[ "vbnekit@p5y.su" ]
vbnekit@p5y.su
552f6f3b1510157c43339643a0395e0d8862395d
6a4a79f1e2d5c6a6edc08429db5cdd30793e1f64
/src/ApproveScreen.py
ec64e69c7bdc056a871a9a7d7196ab479a3e926c
[]
no_license
MehmetAran/OCR-Doc-Data-Mining
6827563083306ddbb67e48ed433eb1c5eb9c4e2d
5b836e77bc45bfc17f31e1f4cc79e043739dc7f0
refs/heads/master
2020-12-11T19:30:07.956375
2020-06-29T17:09:57
2020-06-29T17:09:57
233,938,069
4
1
null
null
null
null
UTF-8
Python
false
false
3,766
py
from PyQt5.QtWidgets import * from PyQt5.QtGui import * import sqlite3 import os from sqliteOperations import SqliteOperations # Belgeyi kırpma işleminden sonra bu class # belgeden alınan ve veritabanına kaydedilecek olan verileri # kullanıcı onayına sunar ve onaylanan belgeleri ekler. # Kullanıcı isterse güncelleme ...
[ "160202030@kocaeli.edu.tr" ]
160202030@kocaeli.edu.tr
cb20e58b40cb0a1ea1a758ac1a465721e89679cb
ed3bb0905b91fdfbc4a85cfd88c5635823b2ca4f
/icoder/blog/urls.py
749416254d551afcc043f57eaf0745b6987e271f
[]
no_license
Adityapatel667/adi.github.io
b595b96eb97bbb3d9cf20c6dc24ede2cafefc8b8
318ce02039fe6dd34d1f89ce4f40c6fd1efac651
refs/heads/master
2022-12-08T14:20:29.138625
2020-08-30T13:58:56
2020-08-30T13:58:56
291,473,904
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
from django.urls import path from . import views urlpatterns=[ path('',views.bloghome, name='bloghome'), path('blogpost/',views.blogpost, name='blogpost'), path('test/',views.test, name='blogpost'), #path ('<str:slug>' , views.blogpost, name='blogpost '), ]
[ "69669679+Adityapatel667@users.noreply.github.com" ]
69669679+Adityapatel667@users.noreply.github.com
6a18f0ae5be54533a66e3eca6087ba0b206673dc
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/saddle-points/3a5b8c06b75443c1ba4f3e45cd0ac791.py
bc8cf755d9ace6afd58ad1d6751c8c089df1218d
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
496
py
def saddle_points(mat): spoints = set() if mat: rowLen = len(mat[0]) for row in mat: if len(row) != rowLen: raise ValueError("Irregular matrix. All rows must be the same length.") for i, row in enumerate(mat): for j in range(rowLen): ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
7f6c7d9110e2f13bc4bb18e6472f66eea177cd33
11a71b9b0f0066d6023f6ce1fbd3022412fc86c4
/Atreya/appointments/serializers.py
debfc356460d0cf46c524859ed6b907a23b9ba08
[]
no_license
Seva-Solutions/MyClinic_Backend
085615dad37cc5a2b372a7b5fe2897fc46356f0c
4fb40bc701eefad3e80965ccbb87f44079811d07
refs/heads/master
2023-07-16T06:10:02.680357
2021-08-30T01:35:44
2021-08-30T01:35:44
327,069,849
0
0
null
2021-07-24T00:49:47
2021-01-05T17:24:34
Python
UTF-8
Python
false
false
2,328
py
# from typing_extensions import Required from rest_framework import serializers from .models import * from django.contrib.auth.models import User import datetime class AppointmentTypeSerializer(serializers.ModelSerializer): class Meta: model = AppointmentType fields = '__all__' def create...
[ "s3aryal@uwaterloo.ca" ]
s3aryal@uwaterloo.ca
aa938fa99e8b11fc478817c6c7ae6d6a70ca2182
3e321aa10954d1a206557fe10a06b2bb4cf7e1d3
/search/hardOnes/add_operators.py
45252a84b5028d63c06fad75a536ec47b984b437
[]
no_license
LQXshane/leetcode
7f5ab93372f95f83996a8d11936a737240f54464
cc6245c9519d2a249aa469eefc003e340bdbfa7c
refs/heads/master
2021-01-12T03:03:20.252679
2017-10-13T17:31:38
2017-10-13T17:31:38
78,151,938
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
class Solution(object): def addOperators(self, num, target): """ :type num: str :type target: int :rtype: List[str] """ ans, self.target = [], target for i in range(1, len(num) + 1): if i == 1 or (i > 1 and num[0] != '0'): self.help...
[ "qxlin@bu.edu" ]
qxlin@bu.edu
0437d618da2dcb5a07093f73ce71c56b7f6eb7cc
3893a4cc36eaf30b694d77777ff8ad005af223d9
/crop_engine/nlde/engine/eddynetwork.py
d88f9093bf3209f5268cf4320e631d3f32557acc
[ "MIT" ]
permissive
Lars-H/slurp
cd6cbfbf16a2aade92c8a094e3aeba97f47e5f3a
0c7c8a5ca62145bedaff5791d6f54337674da2ea
refs/heads/main
2023-06-07T21:56:42.157218
2021-06-30T14:19:37
2021-06-30T14:19:37
343,422,320
1
0
null
null
null
null
UTF-8
Python
false
false
5,559
py
""" Created on Mar 23, 2015 @author: Maribel Acosta Updated on Mar 10, 2020 @author: Lars Heling """ from eddyoperator import EddyOperator from nlde.query.sparql_parser import parse from crop.query_plan_optimizer.idp_optimizer import IDP_Optimizer from crop.query_plan_optimizer.federated_optimizer import Federated_O...
[ "ilya.filippov@outlook.com" ]
ilya.filippov@outlook.com
cf9f7cacf1dc9653d2c6e8dd2451a3223b93d4e7
d7f4518e8a8a62a071e7b9aeb99a2f06026c8768
/photography/migrations/0001_initial.py
d55033fbe76bb804895305ae9cda2ade7e7ced70
[]
no_license
knoopr/imagesite
1e7beafc098963e1114e9d3e341f1de624abcd6a
12419ad3ed719839295e63689cccbf2de1b0da7e
refs/heads/master
2021-07-14T10:57:37.209424
2017-09-15T13:13:22
2017-09-15T13:13:22
103,157,134
0
0
null
null
null
null
UTF-8
Python
false
false
2,134
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-13 18:19 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): initial = True dependencies...
[ "knoop.rick@gmail.com" ]
knoop.rick@gmail.com
bf9fbd11bd31704162ea27bdca1a7b382ab15680
611cd5d8b570ef1e0c1fa6a9b1978ce8104bfe05
/MainWindow.py
f6da59851a6f4663467cf9f9a18d1218d534a846
[ "MIT" ]
permissive
mrthundergod/pyResistanceCalculator
eef7301b96b3f1df6846e01a2354eeec193cc88f
f3c990f20c0df8acac2b5147894ce218679b9322
refs/heads/master
2021-01-24T13:14:47.147029
2019-08-06T06:28:56
2019-08-06T06:28:56
123,165,967
0
0
null
null
null
null
UTF-8
Python
false
false
8,931
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'res_gui.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWind...
[ "aj95india@gmail.com" ]
aj95india@gmail.com
8a2c478a7c55bd6e17bdb6130aaa087cc8b4487b
46035631e6d76ddea73603fcf139290f5cb4a991
/aws-python/__main__.py
dfb3e5a12cc77cf4fba6391e7fa0f6e30b3084db
[ "Apache-2.0" ]
permissive
pulumi/templates
c6150fd66d5ba85a312d9ee3102ed456abebda8b
7c18d24ed7a4e0f5e00801bc133bb19dae630ee3
refs/heads/master
2023-08-21T12:46:56.389767
2023-08-04T20:36:26
2023-08-04T20:36:26
124,577,647
66
52
Apache-2.0
2023-09-13T00:07:57
2018-03-09T18:21:12
Go
UTF-8
Python
false
false
219
py
"""An AWS Python Pulumi program""" import pulumi from pulumi_aws import s3 # Create an AWS resource (S3 Bucket) bucket = s3.Bucket('my-bucket') # Export the name of the bucket pulumi.export('bucket_name', bucket.id)
[ "noreply@github.com" ]
pulumi.noreply@github.com
ea255eb6c23181fc34b84ca6ef8d00b766ef488d
c97a6c60993f56ac364616334e18aa1cb21cba06
/server/algorithm/Version2/ConsumptionGraph.py
53a2b4de9aa7f6dc8e2b2a5c9e74869750cc3313
[]
no_license
elyashivderi17/Distribution-Algorithm
cbad844a729b1df679494b2644032589351fdcce
cf6f17d00b2a918acb0ba3b81c80126165033657
refs/heads/master
2022-04-22T01:27:46.054574
2020-04-08T07:34:57
2020-04-08T07:34:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,470
py
import itertools import doctest as doctest class ConsumptionGraph(): """ this class represent a graph of consumption of the agents represent by binary matrix - if graph[i][j] = 1 its mean that agent i consumption the j object """ def __init__(self, graph): self.__graph = graph de...
[ "danielabergel1@gmail.com" ]
danielabergel1@gmail.com
e81e091bbc08afbe0cc7d3d2af82c37748c96d4f
e8e74ea27a4b2957e49d76f514fec7e30e905318
/translator/_test.py
1557553a620727386ff5c6f6e9b8dc1a3167f43e
[ "MIT" ]
permissive
hyeokhyen/gtos
eee545002262f938588c1eb3f53a0029f61e19a5
72662bc95004d1fa405f5e7ae91554e7c1f5af75
refs/heads/master
2022-11-20T04:58:06.858301
2020-07-23T01:46:47
2020-07-23T01:46:47
274,275,767
0
0
MIT
2020-06-23T01:01:52
2020-06-23T01:01:51
null
UTF-8
Python
false
false
2,095
py
import torch from torch.autograd import Variable import numpy as np from transformer import SelfAttentionMask if 0: device = torch.device('cuda', 0) selfattnmask = SelfAttentionMask(device) #print (selfattnmask.weights) def subsequent_mask(size): "Mask out subsequent positions." attn_shape = (1, size, size)...
[ "hyeokalankwon@res380d-128-61-83-199.res.gatech.edu" ]
hyeokalankwon@res380d-128-61-83-199.res.gatech.edu
91b02645dd8696d38127f29a32e8b4e522a27db1
ad5a8290fe880d4275ed517887925b955f15d5f9
/python_crawling/ch2_css_utilization.py
0f37dd1762e86ef51ac7b52ff668ffcd6cd664ed
[]
no_license
JeongA-Shin/python_crawling
5284bba5ab9afed72d579d0d74b215ca79f98e0d
71f625a9018cffc1e0fa1c90c9bfe3ab08616559
refs/heads/master
2023-05-30T23:42:35.976380
2021-07-01T16:55:52
2021-07-01T16:55:52
380,309,551
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
import requests from bs4 import BeautifulSoup res=requests.get("https://www.naver.com/") soup=BeautifulSoup(res.content,'html.parser') data1=soup.find_all('li','category_item') #크롤링할 때, id로 찾는 게 아닌 이상은 태그도 반드시 표시해줘야 함! data2=soup.find_all('strong','title elss') #태그를 먼저 표시해주고, 더 구체화시키도록 각종 속성들을 더 표시해주는 거임 for j in dat...
[ "jeonga@khu.ac.kr" ]
jeonga@khu.ac.kr
bcbb4575f70fbf95a79bc2a2908b6208b364e0c0
489733ce5fe750958fcf1aa6d281d4406cd37804
/Blocks.py
f02a8800c32784a239eaf123db4af5aca072f939
[]
no_license
Yahnit/Bomberman
76d7423ad62bcda6dd819c16f5bde96b0ea70a61
8892d22d63443a0ef3918493c54f88cee7df41fb
refs/heads/master
2021-01-22T21:18:20.157613
2017-10-18T16:56:24
2017-10-18T16:56:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
import random ''' This class contains the descrition of Blocks which can be destroyed in an explosion ''' class Blocks: ''' This class contains only one method to place the destroyable blocks on the Board ''' def insertBlocks(self,screen,player): blocksInserted = 0 max_blocks = 10 + ...
[ "yahnit.gogeta@gmail.com" ]
yahnit.gogeta@gmail.com
47eab23a75584440df0d50dbeef63ac17424ae53
543df1b87488b8e0768ea4e1a259436f3ef51b88
/psutil/initial.py
e75028cf8abc993867de562e03d18b88301df2ff
[]
no_license
williamff11/bachelor-software-engineering
3c6badb9f0a165f5cc652ad25c68895528749756
fcfa2e9c6456e419e8e7172578e9123111804481
refs/heads/master
2023-01-27T13:03:27.528409
2020-12-07T23:47:56
2020-12-07T23:47:56
301,927,389
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
import psutil import psutil import psutil dic_interfaces = psutil.net_if_addrs() print(psutil.cpu_percent()) disco = psutil.disk_usage('.') print("Total:", disco.total, "B") print("Em uso:", disco.used, "B") print("Livre:", disco.free, "B") print("Total:", round(disco.total/(1024*1024*1024), 2), "GB") print("Em us...
[ "williamff11@gmail.com" ]
williamff11@gmail.com
f280ce47f173747f8295fc5ab3ea3ab53120704d
f27e7146dd79842ceecd50e3a8d809b470e725fe
/scripts/scanpy/loom2anndata.py
ea4028e352c9c833facb87e061ba86ea2f1a896d
[]
no_license
Aomisheng/scMouseBcellFlu
badb2526f940182e3c2e6d232a46da36b38c431e
c48b80749b493e870bac2e4267ebf8a61bd87ccb
refs/heads/master
2023-04-11T16:03:43.798702
2021-04-28T11:15:35
2021-04-28T11:15:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
621
py
import os, sys, argparse import scanpy as sc parser = argparse.ArgumentParser(description='Convert loom to scanpy anndata') parser.add_argument('-i', '--input', type=str, help='Input loom file') parser.add_argument('-o', '--output', type=str, help='Output h5ad file') args = parser.parse_args() #in_loom = "/Users/a...
[ "jonrob@chalmers.se" ]
jonrob@chalmers.se
c4e918875ec7a2958629ca6a8d541407018065d7
01b1a86160eca8c948c80ef506da00ecebe1b933
/gerapy_auto_extractor/helpers.py
be5a131196cf20284049814772a471f03e95f487
[ "Apache-2.0" ]
permissive
downdawn/GerapyAutoExtractor
0b23d10761576a2ebe6b81332dc1ba914fe3e78d
e7085264244aede0207de2641302f79bba42edf5
refs/heads/master
2023-06-24T08:54:05.772440
2021-07-24T18:29:07
2021-07-24T18:29:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
from gerapy_auto_extractor.utils.helper import jsonify, content
[ "cqc@cuiqingcai.com" ]
cqc@cuiqingcai.com
f971ef72b2fcde8340c8761891ea8888615faf1d
5ebdbc630bfdfc582a41d7e353e517604ab336ab
/Exec/SCIENCE/urca/analysis/scripts/lineout-field
2bfa8e22f7ed785b5a0f5b78169752304b198a7e
[ "BSD-3-Clause" ]
permissive
pgrete/MAESTROeX
661fd437caa1508dbc910772ba4d6ed8b551176a
1d7e89365379eea57680f738f271c93d7f28e513
refs/heads/master
2020-08-23T17:24:46.488221
2019-11-01T21:31:27
2019-11-01T21:31:27
216,671,997
0
0
BSD-3-Clause
2019-10-21T21:52:22
2019-10-21T21:52:22
null
UTF-8
Python
false
false
2,517
#!/usr/bin/env python import matplotlib.pyplot as plt import yt from yt import derived_field import numpy as np from yt_urca_fields import UrcaShellFields, DatasetHelpers import argparse parser = argparse.ArgumentParser() parser.add_argument('infile', type=str, help='Name of input plotfile.') parser.add_argument('-f',...
[ "dewillcox@lbl.gov" ]
dewillcox@lbl.gov
1d3e5cb0446df6b0f7f7980c307f3fedb04dd346
7e5485028653bf63b92f4ffda453739e423c9e60
/emp_cli/swagger_client/models/environment_variables.py
e835ef57f34f7f63db153ad6cad5c67014e5369b
[]
no_license
fcribeiro/emp
41fa687953f65f514797b3e51bad95ef0af14ca5
ef219ee7093a19f20a6af8ed368e6ec3eb1af190
refs/heads/master
2020-03-11T15:04:05.468576
2018-09-13T18:55:52
2018-09-13T18:55:52
130,073,406
0
1
null
null
null
null
UTF-8
Python
false
false
3,980
py
# coding: utf-8 """ EMP_Server_Controller No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 im...
[ "fdcr@student.dei.uc.pt" ]
fdcr@student.dei.uc.pt
b60a0e9cb9758a4a658afd61ec4ec3723abf0a28
2dbdbfe0fc8f149e31142d277c5e111583d93f02
/docker/additional_settings.py
a537dc66cc092674c4d5d8555a8eb0519599b2a0
[ "MIT" ]
permissive
jb68/proprio
68a5e7d5db6a5c1949a1a182c4317326f1190834
fb0acc60ab50c49570f070344940f21d727b8b09
refs/heads/master
2021-09-21T02:18:21.158308
2017-10-24T17:36:27
2017-10-24T17:36:27
101,918,995
2
0
null
2017-08-30T19:07:44
2017-08-30T19:07:44
null
UTF-8
Python
false
false
991
py
import os import random if 'SECRET_KEY' not in os.environ: letters = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)' r = random.SystemRandom() generated = ''.join([r.choice(letters) for i in range(50)]) raise ValueError('''missing SECRET_KEY in environment. You could use this random value :\n\n{}\...
[ "olivieradam666+spam@gmail.com" ]
olivieradam666+spam@gmail.com
d8157091355ba6e2dfcbf66f7ef4aa5d4f5350f0
be918598badb564aa134990276a06c3524317e59
/chaco/tests/test_data_label.py
93773fec3793db7fd06cbb9ffa68589d6a9dc48a
[ "BSD-3-Clause", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
janvonrickenbach/Chaco_wxPhoenix_py3
3ac11aaa5a452afa526edaf2c68c166709b94b90
21a10cfd81100f28e3fbc273357ac45642519f33
refs/heads/master
2020-08-03T20:03:55.983524
2019-12-18T10:47:24
2019-12-18T10:47:24
211,870,011
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
import unittest from chaco.api import create_scatter_plot, PlotGraphicsContext, DataLabel class DataLabelTestCase(unittest.TestCase): def test_data_label_arrow_not_visible(self): # Regression test for https://github.com/enthought/chaco/issues/281 # Before the problem was fixed, this test (s...
[ "braidedlogix@users.noreply.github.com" ]
braidedlogix@users.noreply.github.com
85eb597cb8a0c74728a1f651baff585fbb4356d5
9908637f7d56ed5b8d1de4672297d345eb325330
/pyramid/ga.py
c9718f966a10863163121c5c9e6b4f3bd2629f6c
[ "MIT" ]
permissive
philip928lin/Py-RAMID
4c4a56d4946d6be75adaa6f535840885eeb9c165
18ae25538d78507170a86d2b9c192cbadc138f71
refs/heads/master
2023-06-19T03:50:48.112062
2021-07-11T21:13:05
2021-07-11T21:13:05
298,086,505
1
2
null
null
null
null
UTF-8
Python
false
false
46,140
py
# -*- coding: utf-8 -*- """ Created on Fri Sep 4 08:31:32 2020 @author: CYLin """ import pandas as pd import numpy as np from datetime import datetime from func_timeout import func_timeout, FunctionTimedOut from joblib import Parallel, delayed, parallel_backend import matplotlib.pyplot as plt import logging from tqdm...
[ "philip928lin@gmail.com" ]
philip928lin@gmail.com
aa1ea3887e798c65c229709486b03915534388dc
074d01815f99f7e9634296e92479482bea58c26c
/backend/login/migrations/0016_auto_20191127_0137.py
4e65ea562ea5dd0c576ff6d359ae6052eed8b798
[]
no_license
3296f19temple/Facial-Recognition-Attendance
d7e6f4dcc17698fe0fd718ef0eef59067de10851
e80e7be35d4f292acb7076115e16a18f34aec75f
refs/heads/master
2020-08-05T06:34:22.022238
2019-12-13T00:30:05
2019-12-13T00:30:05
212,431,723
0
1
null
null
null
null
UTF-8
Python
false
false
415
py
# Generated by Django 2.2.7 on 2019-11-27 01:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0015_auto_20191127_0131'), ] operations = [ migrations.AlterField( model_name='students', name='studentPict...
[ "tyyen5@gmail.com" ]
tyyen5@gmail.com
110281da96470f0caf9566c89d1a43d65f197812
637c4892287929583bdadd8630d5353dd78dc82c
/vendor/otf2/test/python/test_otf2_program.py
c76400699bfb4e7268d7f0f631306badf3231fbe
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
readex-eu/readex-scorep
6819f074bba6b4fe9d6de07cf7037d2829cbbccf
38d7b84145f229b44670656d59f84faa51007ced
refs/heads/master
2020-03-27T01:04:12.730561
2018-08-22T14:42:37
2018-08-22T14:42:37
145,679,275
1
0
null
null
null
null
UTF-8
Python
false
false
2,361
py
import os import os.path import unittest from shutil import rmtree from tempfile import mkdtemp import time import otf2 TIMER_GRANULARITY = 1000000 def t(): return int(round(time.time() * TIMER_GRANULARITY)) class TestOTF2Program(unittest.TestCase): def setUp(self): self.old_cwd = os.getcwd() ...
[ "robert.schoene@tu-dresden.de" ]
robert.schoene@tu-dresden.de
425aeba47f408fb5ecdf65c81cdbd50bb6d27ccf
b067058811b9c5ca7e2ae2f76e66e4dfa5875db3
/utils.py
a38370858ca935f82bacbe7654b6029cf3151bac
[]
no_license
davidfit-cisco/RegistrationAnalysisTool
bbabad3e9f0e79b41ca1cb1c99f9e60fe7d561b8
052954c1d0c4fa2f181397be74839c767d42e7f7
refs/heads/main
2023-08-06T15:55:16.056168
2021-09-28T10:11:55
2021-09-28T10:11:55
377,181,312
0
0
null
null
null
null
UTF-8
Python
false
false
1,887
py
import pprint import re from calendar import month_name from copy import deepcopy short_month_names = [month[:3] for month in month_name[1:]] def is_date(cell): month_pattern = '|^'.join(short_month_names) return True if re.search(month_pattern, cell, re.IGNORECASE) else False def is_registered(cell): ...
[ "davidfit@cisco.com" ]
davidfit@cisco.com
dd7ec3a636e971e94dd1445bceff79bb3a823ea9
294f66cdc65ee669c139365effb69450b41ec607
/django_blog/users/models.py
29021da5a98fb7dc036316c03a8087b3923ede3c
[]
no_license
GOUTHAM183/TechFanatic
956d3474d63d8dc085df80dc0b3137f1ba229b9e
ad2c2b93f630b6ec55673c2502a118687238444e
refs/heads/main
2023-05-04T19:26:19.731211
2021-05-27T07:18:40
2021-05-27T07:18:40
371,281,064
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
from django.db import models from django.contrib.auth.models import User from PIL import Image # Create your models here. class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) image = models.ImageField(default="default.jpg", upload_to="profile_pics") def __str__(self):...
[ "56498436+GOUTHAM183@users.noreply.github.com" ]
56498436+GOUTHAM183@users.noreply.github.com
e4910e73c04302fba1ca073f461f43827a177146
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03067/s724811425.py
b3ebbb168ee4d506128efbef3cb4cafbd8f7d694
[]
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
66
py
a,b,c=map(int,input().split()) print(["No","Yes"][a>c>b or a<c<b])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b2f32390a956f08986bc842676dfdaa75981f893
27cf4886dda866bc4a47f5d2d23b35fb85e82a39
/code/resources/user.py
c9d228ca1f9ea639ffb9db8f1e6f4dedcc2448b8
[]
no_license
texnder/flask-rest-api-tutorials
b192ae10403de972ac81edcfdd3e1d2b7d47f2d1
bf20c5ecb7423d4e335608f980a2ed6a9bc1b0d4
refs/heads/master
2023-03-08T07:58:41.005025
2021-02-07T05:31:38
2021-02-07T05:31:38
334,980,281
0
0
null
null
null
null
UTF-8
Python
false
false
3,031
py
from flask_restful import Resource, reqparse from werkzeug.security import safe_str_cmp from models.user import UserModel from blacklist import BLACKLIST # use brackets while import is long from flask_jwt_extended import ( jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt, crea...
[ "inderjeetchohana1431996@gmail.com" ]
inderjeetchohana1431996@gmail.com
eedede5b1c8b1b996365fbd192e649236670552c
e14f405112856c9c2205581bd2fcfbff9b43729c
/pyapi/dictrev04.py
924909526a5df232c5fcd26fb7723ed2cb7036d1
[]
no_license
GinVill/mycode
6b2b74306a5636cee0f300f6df1b2328c56dca51
c424f771ac24c2a6bf82c08a20f908c467a5b96a
refs/heads/main
2023-02-17T19:22:40.190947
2021-01-15T20:31:05
2021-01-15T20:31:05
326,742,670
1
3
null
null
null
null
UTF-8
Python
false
false
1,234
py
#!/usr/bin/python3 def main(): vendordict = {'cisco': True, 'juniper': False, 'arista': True, 'netgear': True} custlist = ['acme', 'globex corporation', 'soylent green', 'initech', 'umbrella corporation'] ## display all of the dictionary methods ## dict is a special word that Python treats as a dictio...
[ "ginayvillegas@gmail.com" ]
ginayvillegas@gmail.com
7571f1f889ad6660273c9a9f91afc3087397af3c
794db286b74e1f74649cbd286a23986ebbc17153
/celeb_dob_project/settings.py
2d8466feb0beaabd6bc2a952ee462ded3d58a606
[]
no_license
CoranC/Celeb-Dob-Django
0bc0faf645f659ce02c8b0eef194303dfd8db7ff
0212e907638751e841f83f79525454b3cc1e6b23
refs/heads/master
2021-01-12T04:46:40.048044
2017-01-01T19:18:18
2017-01-01T19:18:18
77,792,811
0
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
""" Django settings for celeb_dob_project project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DI...
[ "coranc@gmail.com" ]
coranc@gmail.com
43b9f08dec15ea8bafdc95324884d16fe44702c0
062e59a68ecc83fec0bfe15e081bcf001909bf67
/TestModel/migrations/0004_kddcuptest_user.py
76315717fd1a40d33a56aa53c351d5c575dd98a8
[]
no_license
falouds/Django
c6b666e20ed24263c8bf8f67979fcd044abe0f43
f9aac0f76cb0e8eb08033c05fe3c84895d6f0b81
refs/heads/master
2021-05-18T13:34:13.612206
2020-03-30T10:55:19
2020-03-30T10:55:19
251,264,454
0
0
null
null
null
null
UTF-8
Python
false
false
1,521
py
# Generated by Django 2.0 on 2020-03-22 08:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('TestModel', '0003_auto_20200322_1548'), ] operations = [ migrations.CreateModel( name='kddcuptest', fields=[ ...
[ "1055088623@qq.com" ]
1055088623@qq.com
2aca85423c446bc02c5316174601aea98f11d8bb
1aa61c09db8e37bb6e9e3f8144c6f82a61af8f31
/mergify_engine/github_types.py
c1f33fc79a421fdb4dde3945c53e93c6c2a12b80
[ "Apache-2.0" ]
permissive
HarshCasper/mergify-engine
15460e813eadaaebeeb5942dd07c9dbc8bd18c5b
02d0a682c14db1c3fefeef4895645161cbb40f4f
refs/heads/master
2023-02-25T10:51:59.853549
2021-01-25T07:17:25
2021-01-25T07:17:25
332,657,373
0
0
Apache-2.0
2021-01-25T07:17:26
2021-01-25T06:55:32
Python
UTF-8
Python
false
false
10,038
py
# -*- encoding: utf-8 -*- # # Copyright © 2020 Mergify SAS # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ "37929162+mergify[bot]@users.noreply.github.com" ]
37929162+mergify[bot]@users.noreply.github.com
684fc7ef464c7a993ed509a48263880dc368f563
8d79fc03f6e5a6df41e824c8573d3ea4646146bf
/IB_Tree_PathSum_if_Exists.py
e0c2d820da30e788bdd1a62a83ce8e103a92d034
[]
no_license
Cbkhare/Codes
3bea294dd0f2ec99e7e0ef0b7ff976cbe1765b7f
5b535795cdd742b7810ea163e0868b022736647d
refs/heads/master
2021-10-24T03:26:54.983073
2019-03-21T14:33:41
2019-03-21T14:33:41
111,226,735
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
class Solution: # @param A : root node of tree # @param B : integer # @return an integer def hasPathSum(self, A, B): if not A: return 0 def validate(node, some): #print (node.val, some) if node.left == node.right == None: if node.val==some: ...
[ "Chitrabasukhare89@gmail.com" ]
Chitrabasukhare89@gmail.com
17b9931220d69bf54390e849e06fde75be0d8b22
28ade930ac8139b36f7f602d6c7f79c371900403
/ros/src/waypoint_updater/waypoint_updater.py
40e273d8db3b35a3f059a62ce67a5d48c99f91bb
[ "MIT" ]
permissive
jasleon/System-Integration
faab29ab24bc200fdada88b70047f35a5551f238
46a047f6e31d2950240c9cc1a2e5397ef67224d0
refs/heads/main
2023-04-05T19:53:07.337740
2021-05-01T20:01:36
2021-05-01T20:01:36
362,473,734
0
0
null
null
null
null
UTF-8
Python
false
false
5,136
py
#!/usr/bin/env python import numpy as np import rospy from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint from scipy.spatial import KDTree from std_msgs.msg import Int32 import math ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As men...
[ "antonio.buap@gmail.com" ]
antonio.buap@gmail.com
aa496f2599c8bd423bf7ec51c2d3ed9d04ba8578
053c413f6c0bc68d619216a7b5f7c88dae3bc2b0
/bot.py
37b03dbc62b2bfb118d9502a928464b70ca9d6f8
[ "Apache-2.0" ]
permissive
menlen/jumaa
096ff5d022f6e9f58170dd46383ab8083613531a
4c79fe285973f7eb8214d96263f85c19b9dd04b3
refs/heads/main
2023-02-09T09:18:29.147337
2020-12-22T06:05:27
2020-12-22T06:05:27
322,281,071
0
0
null
null
null
null
UTF-8
Python
false
false
7,396
py
import os, sys from PIL import Image, ImageDraw, ImageFont import random, time import telebot from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton from telebot import types TELEGRAM_TOKEN = '1466961621:AAEuwZEqVnIA3PrnOe4hDzcDuZm2FXQcJF0' bot = telebot.TeleBot(TELEGRAM_TOKEN) channelId = -...
[ "noreply@github.com" ]
menlen.noreply@github.com
67d42f2401139b3fa1e87f0d1102cc5d8b651139
02c5f88979c48ae5a52e50373bae611278ad29ba
/paws4thought/migrations/0009_teammember.py
18ee9c7418447cbeb4f9330599e61226eef35693
[]
no_license
Comm4nd0/p4t
2f9c0960162de75f4e0aa9e27efc864d5861d5cd
745630ad7140cff9fd467617a82895422a8cc78c
refs/heads/master
2020-03-28T14:52:08.073298
2018-09-17T22:06:15
2018-09-17T22:06:15
148,530,750
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
# Generated by Django 2.1.1 on 2018-09-16 07:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paws4thought', '0008_company_home_page_image_800x1000'), ] operations = [ migrations.CreateModel( name='TeamMember', ...
[ "marcobaldanza@hotmail.co.uk" ]
marcobaldanza@hotmail.co.uk
6fae06163498067858f995086c69e2c86473bfc5
9876a02fb4f6c38271e41995296c6da4d2ec84af
/wagtail_review/templatetags/wagtailreview_tags.py
0f6c7e5ea88157336aa4fe725a39f1f39153a035
[ "BSD-3-Clause" ]
permissive
jacobtoppm/wagtail-review
423c19cecfa17ddeb22de6bb2a34baad0cd10fdb
23b81d7e5699ecb843a99da1aa207775a8b85bd6
refs/heads/master
2020-12-27T18:26:42.182847
2019-05-20T11:29:16
2019-05-20T11:29:16
238,005,148
0
0
BSD-3-Clause
2020-03-13T10:44:00
2020-02-03T16:05:08
null
UTF-8
Python
false
false
1,172
py
from django import template from wagtail_review.forms import ResponseForm register = template.Library() @register.inclusion_tag('wagtail_review/annotate.html', takes_context=True) def wagtailreview(context): request = context['request'] review_mode = getattr(request, 'wagtailreview_mode', None) reviewer...
[ "matt@west.co.tt" ]
matt@west.co.tt
c3021217fbc5a5354bdb7406505f1e16a55ed7f2
322b6f0a71260662dbe7211a3fc06f34c487284b
/hw/hw06/hw06.py
78688a9bd27c72a01d76dfde6d55859c994ebb33
[]
no_license
yjkweon24/CS61a-Berkeley
83b0c9fd86eb5e6db5ce3155b337dd5e25f0eb83
3bc6799a50b5b168cd388b990ca8ca4a4af19490
refs/heads/master
2021-01-23T04:53:14.892306
2017-06-05T05:54:36
2017-06-05T05:54:36
80,402,998
0
0
null
null
null
null
UTF-8
Python
false
false
4,327
py
# Exceptions # Avoiding key errors def avoid_keyerror(dictionary, key): """ Returns the value associated with key in dictionary. If key does not exist in the dictionary, print out 'Avoid Exception', insert KEY in the dictionary with value 'no value' and also return 'no value'. >>> d = {1: 'one',...
[ "noreply@github.com" ]
yjkweon24.noreply@github.com
4f30e2250904eda972c5b10259dff6e42edb6cf0
dfc1afd47c70824541e5a268a0a5f35af527d5ba
/populate.py
8f605614809c58760cd458420497807238359138
[]
no_license
howard-edson/carmarketvalues
2805de1604fd2a9ac3a54c0900c995b04a0262a9
9c644f3d1316fcfdfbede8283c22bd3484ae58d8
refs/heads/master
2016-09-06T00:41:17.425143
2014-05-10T00:04:24
2014-05-10T00:04:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,846
py
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmv_project.settings") from cmv_app.models import Region, Search from django.contrib.auth.models import User import random def populate(): users=[add_user("user1", 123),add_user("user2",123),add_user("user3",123)] regions=[add_region("seattle...
[ "sr443@uw.edu" ]
sr443@uw.edu
1317bf054d5d86a02ab8c70735eac40355d52dc1
c2b4eb71187dc18d5606bd0eda7775e7fafc728e
/LEAM_TCN/LEAM_TCN.py
d78b56be8fd7ce326ee9da9a2271ea28a4e0aa92
[]
no_license
keithzzzzzz/NLP
90c4c5daa6fc06eacc6b2c6db2dbc0a8726d117c
8af83949756aa161b494603d93c2dff832db2340
refs/heads/master
2022-11-02T06:29:03.466096
2019-12-03T23:46:13
2019-12-03T23:46:13
187,530,466
0
1
null
2022-10-16T10:36:08
2019-05-19T21:35:17
Jupyter Notebook
UTF-8
Python
false
false
7,551
py
import pandas as pd import numpy as np import tensorflow as tf import numpy as np import pickle import sklearn.metrics as metrics import os from sklearn.model_selection import train_test_split from sklearn.manifold import TSNE from scipy import spatial import sklearn.metrics as Metrics import itertools from collectio...
[ "35375325+keithzzzzzz@users.noreply.github.com" ]
35375325+keithzzzzzz@users.noreply.github.com
70e0fbda2930cf74706f34ee0a788c206fd587e9
07e1aaaf45cdf75d110ebeff998c8c3df24b0968
/users/views.py
cdb98a7fa69ba77475ebb5c5c8bdd72af63c939e
[]
no_license
luizmpimenta/djangram
83124ced844d6dc121f4555beb51a049dc23846a
60041624959cbb170235e80b9ddeab55c816bd0e
refs/heads/master
2022-12-09T19:19:45.380245
2019-08-02T11:53:42
2019-08-02T11:53:42
199,441,087
0
0
null
2022-12-08T05:57:41
2019-07-29T11:37:13
Python
UTF-8
Python
false
false
2,724
py
from django.shortcuts import render from .mixins import UserHasAccessToDetailMixin, LoginRequiredMixin from django.contrib.auth.views import LoginView, LogoutView from django.views import generic from .models import User from django.urls import reverse_lazy from .forms import UserSignupForm from .helpers import send_c...
[ "luizpimenta.dev@outlook.com" ]
luizpimenta.dev@outlook.com
40052ce02f4a93b505d8c38b835da3cb1a939199
b1856d37a1f1f993d19460ffcaf5be980aa4d95f
/graphspace_python/graphs/classes/gsgroup.py
28464b9613d8ab9367c3313e5bb195313f5d9e61
[]
no_license
adbharadwaj/graphspace-python
6b75dd3967102b41eefd2d125f42b6839ee36a64
6124a2cd14232ead3cc339cd5c9391167afcd497
refs/heads/master
2021-08-06T01:41:15.349483
2021-07-25T00:35:40
2021-07-25T00:35:40
86,537,380
3
11
null
2021-07-25T00:32:34
2017-03-29T04:10:13
Python
UTF-8
Python
false
false
2,667
py
import datetime class GSGroup(object): """GSGroup class. A GSGroup stores the details of a group that is understood by GraphSpace. It holds the information about the group such as name and description. It provides methods to define, modify and delete the details of the group. Attributes: name (str): Name o...
[ "sandeep.mahapatra.5@gmail.com" ]
sandeep.mahapatra.5@gmail.com
34bf0710871bc69550753c7f12214343abe99030
1d3c67c2892f5e78ca1b4e57a1849f02e27c9747
/TED/TED/urls.py
9f6cdad9d0e8966218e7f9acb28449d2a213b2d5
[]
no_license
ThisEnginersDevelop2017/TED
58abfa0f1fe0dee7078e2aba4bad12bf607783e2
92f121dee86b85dd986dee390c3830fd0c8e1b50
refs/heads/master
2021-01-02T09:40:26.795740
2017-08-03T20:48:32
2017-08-03T20:48:32
99,273,244
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
"""TED URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ "thisenginersdevelop@gmail.com" ]
thisenginersdevelop@gmail.com
e23957f96f10bfe92661bb9900a26b41d96b34c3
53f048b80718a63881ed7493459773c2a27aad87
/offchip/schedule/row_table.py
ab5c5b8228bc1599dfe533068406b15eceff5204
[]
no_license
flowerbeach/ramulator-python-hbm
317421995b70277ba3004389b96191d48834dc1e
4eb99b0305887d188299590d8822ae0ac6c68b80
refs/heads/main
2023-01-23T18:32:23.515328
2020-12-10T14:49:41
2020-12-10T14:49:41
314,815,896
5
0
null
null
null
null
UTF-8
Python
false
false
2,439
py
from typing import Dict class RowTable(object): from offchip.controller import Controller from offchip.standard import BaseSpec as t_spec class Entry(object): def __init__(self, row, hits, timestamp): self.row = row self.hits = hits self.timestamp = timesta...
[ "flowerbeach@163.com" ]
flowerbeach@163.com
d79d3e9d09ff5b87d5087bd52ae14e8441771e10
8907713ef218305a459f7693c2ca7632d995146e
/resources/user.py
dc39e683a7789e624c41ff7165562a35ad1e70e3
[]
no_license
Nishil07/Stores_and_Items_REST_API
61b8867421209ccb58490a9ca8bef5ead54b7022
b8cdd080c73ccb040a2eb29c7037ba923740fee4
refs/heads/master
2023-05-26T12:47:47.883674
2021-06-10T04:48:15
2021-06-10T04:48:15
375,310,090
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
import sqlite3 from sqlite3.dbapi2 import Cursor from flask_restful import Resource, reqparse from models.user import UserModel class UserRegister(Resource): parser = reqparse.RequestParser() parser.add_argument('username', type = str, required = True, help = "This field cannot be blan...
[ "nishilmadhani@gmail.com" ]
nishilmadhani@gmail.com
94cf9c0ad4d04b80cd676de6917f14c6efbf4630
d5eb4d20129b6a1fa87ad5d04ad8617ec0c4c7e1
/Exercises/exercise-29.py
ff73849535b5a4ec6c9b27fd6e95a946784584ea
[ "MIT" ]
permissive
shoriwe-upb/TallerEjercicios
3b3ad7c358e9fe3a4546cb1ab1c5ca5df1e63e35
ba37eb6cd673a8d38a1dfac87c5efac3f728da21
refs/heads/master
2020-08-05T07:51:59.328963
2019-10-19T21:43:21
2019-10-19T21:43:21
212,453,937
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
def main(): number = int(input("Number: ")) if number > 0: print("Positive") elif number < 0: print("Negative") else: print("Is Zero") if number % 2: print("Es impar") else: print("Es par") if __name__ == '__main__': main()
[ "antoniojosedonishung@gmail.com" ]
antoniojosedonishung@gmail.com
18a16704f66dd1d340db3c65e8ea06fa3b6b70cd
59f64b5cf799e31c97b11828dba4787afb8f3f17
/hail/python/hail/ggplot/aes.py
5497f28d4d22e7863d89af491b89520fe20e5f4b
[ "MIT" ]
permissive
hail-is/hail
2089e6f3b38548f13fa5c2a8ab67f5cfdd67b4f1
07a483ae0f46c66f3ed6fd265b48f48c06298f98
refs/heads/main
2023-09-01T15:03:01.450365
2023-09-01T02:46:35
2023-09-01T02:46:35
45,069,467
913
262
MIT
2023-09-14T21:53:32
2015-10-27T20:55:42
Python
UTF-8
Python
false
false
1,112
py
from collections.abc import Mapping from hail.expr import Expression from hail import literal class Aesthetic(Mapping): def __init__(self, properties): self.properties = properties def __getitem__(self, item): return self.properties[item] def __len__(self): return len(self.prope...
[ "noreply@github.com" ]
hail-is.noreply@github.com
cffd05aad6e7ec0a8b97f7e2970e5b764364375f
2ac0e1ca51c473bba04bb08ea3be2015063a6a13
/galmeko/hospital/models.py
99b33f90648b820ca4d8c879fc1956e7d0906004
[]
no_license
guarav00009/Gaurav-Pandey-Latest
2012aafe643e1fcc915626422e352d1e4411905a
aa38a47a46bc434f5ec608fde5eec0f0f58259b9
refs/heads/master
2020-12-22T10:03:17.325527
2020-01-28T13:53:52
2020-01-28T13:53:52
236,746,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,460
py
from django.db import models from django.utils.translation import gettext_lazy as _ from django.conf import settings from django.utils.html import format_html from django.template.response import TemplateResponse User = settings.AUTH_USER_MODEL # Create your models here. class Hospital(models.Model): user = models...
[ "gauravp@clavax.com" ]
gauravp@clavax.com
8af698aab033b51b31bb46c525c1c833af760efa
40e6910cebd11fa00d885271e6382611506a0fae
/mapa-callback.py
522e06294ee16407a1447224cd1985b87d7547dc
[ "MIT" ]
permissive
paupradel/ecobici_viz
f275c5dc9376bce3613e1e8eb5a3eee9190f453d
3e98077a37ad75dc76534e21b87604d7e0df7a5f
refs/heads/master
2023-05-27T21:09:33.826602
2022-01-19T16:41:32
2022-01-19T16:41:32
216,463,367
1
1
MIT
2023-05-01T21:17:19
2019-10-21T02:42:51
Jupyter Notebook
UTF-8
Python
false
false
1,550
py
import dash import dash_html_components as html import dash_core_components as dcc import pandas as pd import json import plotly.graph_objects as go from dash.dependencies import Input, Output from urllib.request import urlopen app = dash.Dash(__name__) server = app.server with urlopen('https://raw.githubuserconten...
[ "pradel.paulina@ciencias.unam.mx" ]
pradel.paulina@ciencias.unam.mx
9f39e8ce5b2d95f8cb115b32905f66fd93c721a2
8660d858ee701efa66e7aac2749e82527614a884
/metu/data_utils.py
fb6a0a618120be5581d78118741b7a81b1910a62
[]
no_license
smlblbn/cs231n_metu_hw2
e7db67d36276595871d5f2743e0a3e7213a446cd
a0fb776f756332778a9dfbb0766b12747e58db36
refs/heads/master
2020-03-20T16:28:53.384514
2018-08-01T11:24:46
2018-08-01T11:24:46
137,538,395
0
0
null
null
null
null
UTF-8
Python
false
false
1,677
py
import numpy as np import h5py from scipy import signal as sg # min-max scaling def min_max_scaling(data): min_values = np.amin(data, axis=0) max_values = np.amax(data, axis=0) return (data - min_values) / (max_values - min_values) # normalizing def normalize(data): mean = np.mean(data, axis=0) ...
[ "smlblbn@gmail.com" ]
smlblbn@gmail.com
971d1c9ced43a45970a9011c6c571edb62e6921b
d3cce0c925bff6da1e797575983097102038b7e3
/nfwfitter/figureoutmissing.py
f6c18e3c939ea9f1b375dcc237aa2de440fcb008
[]
no_license
LSSTDESC/clmassmod
1555a16250fbac172b660d0ec2f4bd80ba6d0095
b608bfb9d557b59cd18e89b46db898e82a6fd010
refs/heads/master
2021-09-08T05:33:29.294384
2018-03-07T16:58:44
2018-03-07T16:58:44
113,226,565
3
6
null
2018-03-07T16:58:45
2017-12-05T19:54:02
Python
UTF-8
Python
false
false
3,592
py
#!/usr/bin/env python import glob ##HST #sims = 'bk11snap124 mxxlsnap41'.split() #rss = 'r5 r16'.split() #mcs = 'c4 duffy diemer15'.split() #centers = 'xrayNONE core szxvptcenter szlensingpeak xrayXVP xraylensingpeak'.split() #deltas = (200, 500, 2500) # ##Megacam sims = 'bk11snap124 bk11snap141 mxxlsnap41 mxxlsnap5...
[ "dapple@astro.uni-bonn.de" ]
dapple@astro.uni-bonn.de
7a57e14f8c57e923c2047f8a0314348a9ffee6c2
8f61479fb88ed79e5860aba7b797e7e3a6c33f25
/spider/parseHtml.py
920d2c91c7035822a43a777dade6abd09276a5e0
[ "MIT" ]
permissive
Lemon-cc-hang/proxiespool
c29ca1e598a263632aa13ed7f09f72afe9868f0a
6af74b5aa507fbded9199979e7f0f9b1610ee274
refs/heads/master
2022-11-25T10:24:59.724242
2020-07-31T08:01:37
2020-07-31T08:01:37
279,520,591
0
0
null
null
null
null
UTF-8
Python
false
false
1,492
py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: parseHtml.py Description : Author : lemoncc date: 2020/7/14 ------------------------------------------------- """ __author__ = 'lemoncc' from bs4 import BeautifulSoup from helper.verify import ...
[ "a1029516811@gmail.com" ]
a1029516811@gmail.com
f3a28dd133d6ac8424668e897cf9def1b308e65b
f8098142b0369e8ef52200ee101492091cb035a7
/fairseq/fairseq_cli/hydra_train.py
c1037fb78a3f8a415eb665bc7493b7282e6c577c
[ "MIT" ]
permissive
dumpmemory/Compositional-Attention
2a4f6c8035333ee33247e7d4d9e23a753d470e60
c2c9d8391144db4155922bb859183e844eefb568
refs/heads/main
2023-08-27T01:21:52.310888
2021-11-12T16:54:02
2021-11-12T16:54:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,406
py
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import os import sys from fairseq.dataclass.initialize import hydra_init from fairseq_cli.train impo...
[ "sarthmit@gmail.com" ]
sarthmit@gmail.com