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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2cbb7da7160e2b8b71bd4172683ea0fc5d28f98 | 8bf1009d6bad0cbb82deee03b831dd1d443e8d4d | /new_customers/simulation.py | a24f082458504c25210c9e4db6ee386b0a3525cd | [] | no_license | joiemoie/CloudGameTheory | 974f6700c5f328dbccfdb0456bef485e02daf103 | 8419f4d082e4b8bafb89b4ee90e3860d6d392504 | refs/heads/master | 2020-05-05T06:39:50.559079 | 2019-05-05T06:36:46 | 2019-05-05T06:36:46 | 179,797,097 | 4 | 1 | null | 2019-04-17T04:46:12 | 2019-04-06T06:27:04 | Python | UTF-8 | Python | false | false | 4,873 | py | import numpy as np
import functions
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.patches as mpatches
import csv
bufs = []
for index in range(10):
# Set these parameters
num_providers = 4
num_users = 2000
num_resource_types = 1
# Set the max prices for the users
random_pric... | [
"joiemoie2004@gmail.com"
] | joiemoie2004@gmail.com |
4cbc0ba6e9100415dbf4ce1c478cfdddfc1267ce | 9f735b190f30bd11f1d14d4c413b2c958c7b17a7 | /travel/migrations/0032_remove_user_uid.py | 22817cf5a2486e0e21274a97208adea11444cdcc | [
"MIT"
] | permissive | sausage-team/travel-notes | e5a18a38a486e7971be371c40a5a655851f85c49 | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | refs/heads/master | 2020-05-23T10:53:33.906472 | 2019-05-22T05:14:20 | 2019-05-22T05:14:20 | 186,726,475 | 0 | 0 | MIT | 2019-05-22T05:14:21 | 2019-05-15T01:24:41 | Python | UTF-8 | Python | false | false | 322 | py | # Generated by Django 2.2.1 on 2019-05-15 08:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('travel', '0031_auto_20190515_1603'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='uid',
),
... | [
"1197633750@qq.com"
] | 1197633750@qq.com |
ad94567b4862afe2ff1de2f46b5864cbb56a525b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_162711.80-000950.8/sdB_SDSSJ_162711.80-000950.8_lc.py | 29d244111b17ca32fa317154ab63ad362a67cc25 | [] | 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 | 371 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[246.799167,0.164111], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_162711.80-000950.8 /sdB_SDSSJ_162711.80-000950.8_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
54ba8db9db77211eab644e3a6209be27a079a967 | 77f76ddf9b33052fc39532aaaeded5e4971ad865 | /migrations/versions/77b4b6ae646d_database_update.py | 28f9b3701beff7c0a15d11363d0cf31297911966 | [] | no_license | PythonPerfect/PythonPerfect | 32c8c8a04999f4c49df19b21e265b083b3e93141 | ad70e07d1abaf272d5ad4866189a25a9ad4d5db1 | refs/heads/master | 2023-05-12T22:28:57.225071 | 2021-05-18T03:41:38 | 2021-05-18T03:41:38 | 358,127,863 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | """Database update
Revision ID: 77b4b6ae646d
Revises: ed279c7f2160
Create Date: 2021-05-12 08:39:04.816417
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '77b4b6ae646d'
down_revision = 'ed279c7f2160'
branch_labels = None
depends_on = None
def upgrade():
... | [
"wassuprt@gmail.com"
] | wassuprt@gmail.com |
09041bdaebbf07267af971eeb85b47fa5ff47c96 | 64438e1fc5fcb9f6e9859d3b2eb33dd94e1633d6 | /PartThree/spark_analysis.txt | 46c5e9d3aa957033925107b67a22fc7b951d918f | [] | no_license | obriematt/PDLChallenge | 78090b5a7ff7ba06ebefed8b0cea303e858ebb2b | 03af7cd174aecfd64b905e7a0ee841cc2a37be08 | refs/heads/master | 2020-05-02T22:13:15.386654 | 2019-03-28T17:00:03 | 2019-03-28T17:00:03 | 178,245,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | txt | #!/user/bin/env python
import os
from pyspark import SparkContext
import json
from pyspark.sql import SparkSession
from pyspark.sql.functions import *
from pyspark.sql.types import *
import datetime
from json import dumps
from dataschema import myschema
os.environ['PYSPARK_SUBMIT_ARGS'] = '--packages org.apache.spark... | [
"matthewo@pdx.edu"
] | matthewo@pdx.edu |
ad7fc8c0adf2cc245667ae640affb4172b7d3866 | cba18d5bbf1c320d28d6b407abfefd6fcf10329d | /clients/models.py | 1ab49a4ee66d8c64226be7770733b74728fa8ca9 | [] | no_license | casttroff/AbmTest | 52c61d493e51020df6f22575549d58b35d84ce54 | e01ad409fc50ca6884746a2c494a1b95e03413b7 | refs/heads/main | 2023-06-07T14:10:29.268501 | 2021-06-18T23:11:33 | 2021-06-18T23:11:33 | 378,282,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #CLIENTS/MODELS
import uuid
class Client:
def __init__(self, name, company, email, position, uid=None):
self.name = name
self.company = company
self.email = email
self.position = position
self.uid = uid or uuid.uuid4()
def to_dict(self):
return vars(self) ... | [
"casttroff@gmail.com"
] | casttroff@gmail.com |
e8cc41d8cebbacff3bf0b457e0313e4cf766ae89 | 5a28841b8598ad3bfc9aac824a2d556278f006aa | /rgbd_seg/models/encoders/enhance_modules/ppm.py | 90a06a2bc51099110a2636329835dccad406fdce | [
"Apache-2.0"
] | permissive | thanyu-hub/ShapeConv | ac60b332c89ea7c51f6d1e3fd310ea200123e9a2 | 25bee65af4952c10ed4e24f6556765654e56575f | refs/heads/master | 2023-07-15T02:02:49.077406 | 2021-08-30T11:13:21 | 2021-08-30T11:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | # modify from https://github.com/hszhao/semseg/blob/master/model/pspnet.py
import logging
import torch
import torch.nn as nn
import torch.nn.functional as F
from .registry import ENHANCE_MODULES
from ...utils import ConvModule
from ...utils.act import build_act_layer
from ...utils.norm import build_norm_layer
from .... | [
"lhc3538@gmail.com"
] | lhc3538@gmail.com |
04a6f058f68d60e995b0e65725d2a95d224275ac | 342fec10a5e75fa881413fadfb21c1e21021aa08 | /todolist/todolist/settings.py | 032b73a8d6672c3d0572ab87d394720d5f422eb9 | [] | no_license | ELBEQQAL94/todo_app_django_python | 9c915cdec634644a6e7e5281810ba9e9683fb2c8 | 7484b60ee1af6d65242b877c8b49f758ad902b6b | refs/heads/master | 2021-01-14T18:56:02.047963 | 2020-02-24T11:58:52 | 2020-02-24T11:58:52 | 242,720,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | """
Django settings for todolist project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"ELBEQQAL.youssef@gmail.com"
] | ELBEQQAL.youssef@gmail.com |
ff1e607f26dac021267ce5410b9957b6443d2a24 | 41e18ddf25105a7760286b276191ad40273a8b10 | /twocaharDownward.py | 4fcad1de576be73395dc3b5214be898570f54d26 | [] | no_license | himanshuamplify/DTU_Python | 9e231aa41b0cf1276b7a673a59bbafd11fd00dad | 56857e754f4bfcab6fc4431a8e0b0dace101115a | refs/heads/master | 2020-11-28T02:31:26.958557 | 2019-12-26T10:02:57 | 2019-12-26T10:02:57 | 229,681,627 | 7 | 7 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | def printTwocharDownward(symbol,n):
ch='.'
number_of_space=0
number_of_character=n
if n%2==0:
total_no_of_line=int(n/2)
else:
total_no_of_line=int(n/2)+1
count=1
while count<=total_no_of_line:
print(ch*number_of_space,symbol*number_of_character,ch*number_o... | [
"noreply@github.com"
] | himanshuamplify.noreply@github.com |
b5941ae0f40b6c52b788e8a07bffd43c07d5b679 | d2fd372b98a85f91a017f4bc188d7cc198d66e8e | /venv/Common/Common.py | 584e824d393b872f1cbc12821af32426c83b772b | [] | no_license | v-anjia/ICU__STRESS | 28cc5b7fd780ffcec2411572f40361f1119ecc1c | 04b2de675db6c4f40bd50dc5bdceb1a2604e2a4d | refs/heads/master | 2022-11-11T00:23:19.414529 | 2020-06-27T23:49:06 | 2020-06-27T23:49:06 | 272,986,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101,458 | py | '''
deposit public class or function
data:2019-3-28
@author antony weijiang
'''
#coding=utf-8
import subprocess
import re
import os
import time
import sys
import uiautomator2 as u2
import requests
from bs4 import BeautifulSoup
from log import logger as loger
import json
import zipfile
import serial
import random
# fr... | [
"bdty2013antony@163.com"
] | bdty2013antony@163.com |
a5f7ee66bb01870a20c98e9c3f0bb59c42c5afc2 | ee09846576fbd3b75978db60e6ea4940c40cfa49 | /Python/Aula15c.py | 48f16b23f8fc2eeb612585d874145ac08fe7bacc | [] | no_license | MariVilas/teste | f59758277957f6f6335aa8f8ff8d608ce4b43358 | 0ce8e1ee01b07a814f1603b971d2d60f3796b645 | refs/heads/master | 2023-07-14T20:48:52.991477 | 2021-08-28T05:42:35 | 2021-08-28T05:42:35 | 275,003,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from random import randint
from time import sleep
resp='S'
jogo = resultado = 0
while resp in 'Ss':
lista = ("PAR","ÍMPAR")
computador = randint(0, 1)
perguntar = int(input('''Escolha uma opcao para se jogar:
[0] PAR
[1] ÍMPAR
Digite sua escolha: '''))
print("ÍMPAR\n")
sleep(1)
print("OU\n")
... | [
"mari_jvs@homail.com"
] | mari_jvs@homail.com |
86624abf9e511fc127ad47f21f6f9f4b1c09a79a | 68463eaf559a3063ac9d490dc36676d714f817c5 | /statsy/urls.py | 4978648065a6a51c735a09dae387298c5e269706 | [
"MIT"
] | permissive | zhebrak/django-statsy | 6ba1e94e19da0ed8d25ed1f9f5b32f33ddafc83e | d74845e75c78842fc3890db123ab6e36fe2d3973 | refs/heads/master | 2020-05-25T13:37:02.105397 | 2019-03-29T21:59:41 | 2019-03-29T21:59:41 | 27,049,965 | 60 | 11 | MIT | 2019-03-29T21:59:42 | 2014-11-23T22:12:29 | JavaScript | UTF-8 | Python | false | false | 70 | py | # coding: utf-8
import statsy
urlpatterns = statsy.site.get_urls()
| [
"fata2ex@gmail.com"
] | fata2ex@gmail.com |
7370dbee5c5d4f5920e1dc5ef94adebfd991c9f7 | 4774ce4e23a19827f0fbf6baa71bbb8cab98b4de | /imagespace/server/imagebackgroundsearch_rest.py | eae3a18eb28023f8c75fd155d13e7765ebbd71fa | [
"Apache-2.0"
] | permissive | lewismc/image_space | a4bd8494fbc04f8cb71256bb5918786aea9259b9 | 4164523b573be364661809f5971946c65570e899 | refs/heads/master | 2021-01-18T11:22:37.363303 | 2015-10-15T14:50:21 | 2015-10-15T14:50:21 | 39,895,591 | 0 | 0 | null | 2015-07-29T13:43:50 | 2015-07-29T13:43:50 | null | UTF-8 | Python | false | false | 1,778 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware Inc.
#
# Licensed under the Apache License, Version 2.0 ( the "License" );
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | [
"jeff.baumes@kitware.com"
] | jeff.baumes@kitware.com |
7ef19c5af8cd92e5af1c9714f074511ef1854b6e | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/wcwidth/table_zero.py | ab5150f51734a90985f4d011aeb89f7d575dd887 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 310,230 | py | """Zero_Width table, created by bin/update-tables.py."""
# Generated: 2020-06-23T16:03:21.187024
ZERO_WIDTH = {
'4.1.0': (
# Source: DerivedGeneralCategory-4.1.0.txt
# Date: 2005-02-26, 02:35:50 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
67cc8ae0e9b2a05fb85c2ca88cb58905348d3cf1 | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming Basics Python/Exam Problems 20042019/Easter Shop.py | 24f0f9d5278dd658f8d045e6e6d0eab1bb4ce257 | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | start_eggs = int(input())
sold_eggs = 0
fill_eggs = 0
available_eggs = start_eggs
while True:
command = input()
if command == 'Close':
print('Store is closed!')
print(f'{sold_eggs} eggs sold.')
break
eggs_number = int(input())
if command == 'Buy':
if available_eggs < egg... | [
"radka_valkova@abv.bg"
] | radka_valkova@abv.bg |
76586b973fc183aca6038075ca9d1fedb6047377 | 7b4fedb81a42d737007b4602eee035916be39bcd | /day7/day7.py | 61f847d64f3c0b640b3dd2b0e6c74583dde710dd | [] | no_license | garymjr/adventofcode | 51fbbcc01d0d3806f039475baa62a2e6170af7a9 | 0e2550123efa2bff216b857f2e7f47c4f2d0bebd | refs/heads/master | 2021-01-21T04:48:06.013313 | 2016-06-14T15:34:47 | 2016-06-14T15:34:47 | 48,621,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | import re
f = open("./input.txt")
lines = f.readlines()
wires = {}
def get_val(wire):
if wire.isdigit():
val = int(wire)
elif wire in wires.keys():
val = wires[wire]
else:
val = find_wire_val(wire)
return val
def find_wire_val(wire):
if wire in wires.keys... | [
"garymjr@gmail.com"
] | garymjr@gmail.com |
83b12f7616cc9f2600fc279082ca09056457ba30 | a071ceda7a4f7327f2e0ddbe87d431b69e2cdf6f | /Lab1/ex5.py | 11bd8fc7bf3f262b740f22b8eb23727b8b728a78 | [] | no_license | thomasolsen/IS105 | e599e5992d4f0cb93a3052f911d98137929792d9 | 2c4537c42c76a59fc2fe1a22ce32e5ac7ffbe89f | refs/heads/master | 2020-04-19T13:48:28.445758 | 2014-01-29T09:50:18 | 2014-01-29T09:50:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | my_name = 'Zed A. Shaw' # No, it's really Thomas.
my_age = 35 # Actually, i'm 26.
my_height = 74 # inches, but 72,5 in reality.
my_weight = 180 # lbs but really 190.
my_eyes = 'Blue' # Green actually.
my_teeth = 'White' # Teeth colour.
my_hair = 'Brown' # Blonde brown really.
# The text that shows everything in a prop... | [
"thomas.pedersen@live.com"
] | thomas.pedersen@live.com |
a916c65dd16e574dda4caae3acfe79ca554e7832 | 6cb6f0d5213d2af70793bca7f9429cfe878630fa | /sovryn_bridge_rewarder/utils.py | 51ffe105f3994d7b1cb998d438492ea61802537c | [] | no_license | DistributedCollective/sovryn-bridge-rewarder | 90812926a50a855ee925f6cdea6f3d0e75533838 | 1286fb5bed02c67474bd1a105c2e6fb664b52046 | refs/heads/master | 2023-07-17T08:34:28.444152 | 2021-08-26T12:46:47 | 2021-08-26T12:46:47 | 366,236,486 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,243 | py | from datetime import datetime, timezone
import functools
import json
import logging
import os
from time import sleep
from typing import Dict, Any, Union
from eth_abi import decode_single
from eth_abi.exceptions import DecodingError
from eth_typing import AnyAddress
from eth_utils import to_checksum_address, to_hex
fro... | [
"rainer@koirikivi.fi"
] | rainer@koirikivi.fi |
5cfb969dbad69601a0a0ad1f17caf3bd457ffee9 | 6cb4f94be34451bd51d9f1585ea3bd252e60d5e0 | /fresh_day_back/fresh_day_back/urls.py | b40e8fd3f5f744144d5ed48abf343b91f66ad978 | [] | no_license | 1032524125/django | b3f7b825fd8cacf268fbaab8482d142599bda275 | b57ff20c45032092e295434b8e1b60bce027d2f1 | refs/heads/master | 2020-04-04T10:03:22.279642 | 2018-11-15T09:55:42 | 2018-11-15T09:55:42 | 155,841,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | """fresh_day_back 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='h... | [
"1032524125@qq.com"
] | 1032524125@qq.com |
cac5a5118c1caa62049a0352cf2b96d18328b009 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /Django/rbac/day69/luffy_permission/rbac/middlewares/rbac.py | 05e05715e769339255dc4cd45e4b8f209919f427 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 1,122 | py | from django.utils.deprecation import MiddlewareMixin
from django.shortcuts import HttpResponse, redirect, reverse
from django.conf import settings
import re
class RbacMiddleWare(MiddlewareMixin):
def process_request(self, request):
# 获取当前访问的页面
url = request.path_info # index
# 白名单
... | [
"13269469526@163.com"
] | 13269469526@163.com |
28406623a7d58705959d97d793833a218b938765 | 07a59784d27ab7dcbba1b893345c32355d45947d | /docs/conf.py | d7f8483ad08bf37c060471a1d7e3c3e6cd2f675d | [] | no_license | konikkar/Covid-19-Dashboard | 822a8a08e98cf041b3b580d50878df38d662795e | 3e1a7ebd9bf27ac880aced2ad500e5a5a0cf5c4e | refs/heads/master | 2022-12-05T15:56:16.033220 | 2020-08-25T12:46:36 | 2020-08-25T12:46:36 | 288,080,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,789 | py | # -*- coding: utf-8 -*-
#
# ADS_COVID-19 documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values h... | [
"69574081+konikkar@users.noreply.github.com"
] | 69574081+konikkar@users.noreply.github.com |
76b7cc09b0866a058e802ecbad3ff7e42ba9b7a1 | 4ecedf7d7801e25c60ea3098a63ea96056b6fe20 | /matrix_addition_ii.py | 01377ea050a419f99ac13065fb407fdd0039ed91 | [] | no_license | bengovernali/list_exercises | 1b86d5df1c3c002d72c156e5047422af417317bf | 00cd186fe34c4abec53dd8c020ce190464ae893d | refs/heads/master | 2020-05-15T12:29:25.523641 | 2019-04-21T23:47:56 | 2019-04-21T23:47:56 | 182,266,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | mat1 = [[1, 3], [2, 4]]
mat2 = [[5, 2], [1, 0]]
def matrix_addition(matrix1, matrix2):
result = []
row_count = 0
for row in matrix1:
col_count = 0
for col in row:
result[row_count][col_count] = matrix1[row_count][col_count] + matrix2[row_count][col_count]
col_count +... | [
"bgovern93@gmail.com"
] | bgovern93@gmail.com |
4f46f1e8e5ff03b75d112f34a2a61c0445245336 | a9378ff37b5efe805894a1ea3aab98c91e982635 | /Microgrid/test.py | e4b362f9f0e0ed2184667b3530ca5e8ae0562e28 | [
"MIT"
] | permissive | nudging-SMDP/nudging-supplementary-material | 36fd91f248ba12df7aefbf4977198de5fde8fffe | 94795abf1e26abab07389436fc737029e6a2a566 | refs/heads/main | 2023-07-05T22:25:23.254530 | 2021-08-10T23:37:20 | 2021-08-10T23:37:20 | 372,692,059 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import os
# comment if not using GPU
os.environ["CUDA_VISIBLE_DEVICES"]="0"
from microgrid_env import Microgrid
from stable_baselines import PPO2
from stable_baselines.common.policies import MlpPolicy
from nudge.nudge_functions import *
import numpy as np
# path to final model
path = f'./results_nudging/ppo_opt_nudg... | [
"optimalnudging@gmail.com"
] | optimalnudging@gmail.com |
0297d348ab4dfb6710e82a3926547044c9ca90ac | 1aa4ef1dc6052e763dc83bf1aadfd7d02ac183a6 | /assignment12new 202020/products/migrations/0002_offer.py | a0ab111969653c50669d7206e72b68768abc66ca | [] | no_license | berves50/Final-project- | b65b86f4b1a36b49585960fbc0fd44b4bf5563ec | 514778844d1306fcea92021d062e230495c43553 | refs/heads/main | 2023-01-15T22:56:05.500769 | 2020-11-26T05:44:49 | 2020-11-26T05:44:49 | 316,122,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # Generated by Django 3.0.10 on 2020-11-20 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Offer',
fields=[
('id', ... | [
"noreply@github.com"
] | berves50.noreply@github.com |
5e5e921bd20b358220b07bd22aafc99e675ffafa | 62a7b1a4569f519554f7e68e73115e87d4102c39 | /wyklad_1/file_hasher.py | 895d6149f422c3f4a90f553d2b32c556dffdd547 | [] | no_license | DaftAcademy/zajecia_python_mini_edycja4 | ff491b3dcdf4f84ea9b01edc6cb9094235bcb7df | f83d7b31521cb5a3248fb17a3640840d8f77a84a | refs/heads/master | 2022-08-01T02:45:28.471046 | 2017-05-15T11:25:09 | 2017-05-15T11:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import hashlib
# https://en.wikipedia.org/wiki/Pigeonhole_principle
# https://pl.wikipedia.org/wiki/Zasada_szufladkowa_Dirichleta
def get_hash(f_path, mode='md5'):
h = hashlib.new(mode)
# TODO: PRACA DOMOWA: Nie czytać całego pliku na raz tylko po kawałku
f = open(f_path, 'rb') # otwiera plik w funkcji ha... | [
"marcin.jaroszewski@dcx.bz"
] | marcin.jaroszewski@dcx.bz |
6a7a27fa1290cb3c81ae1d132dbf45749bc38835 | efd2781b5da3d118ea0bc56aa947193b500e0299 | /newapi/urls.py | fed203a45232f8955249d7e79931774157fd3799 | [] | no_license | Hari635/newsApI | 9cdb58cea8a1f3e776c18dc8342f3ffd53651c49 | be03c0632a6875b2440156ff66d2e519d7d5bd76 | refs/heads/master | 2023-07-06T02:16:15.842751 | 2021-07-25T13:03:39 | 2021-07-25T13:03:39 | 389,348,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | """newapi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-based ... | [
"hariharasuthan81@gmail.com"
] | hariharasuthan81@gmail.com |
2cd69de0ed6caab0657b020ebf567283aa2001c4 | 52a32a93942b7923b7c0c6ca5a4d5930bbba384b | /dojo/db_migrations/0051_regulation_categories.py | 2fe6ff5d352fd9d2bde9377ad6d5aaf8ae2c4bdb | [
"MIT-open-group",
"GCC-exception-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-3.0-or-later",
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"PSF-2.0",
"LicenseRef-scancode-python-cwi... | permissive | DefectDojo/django-DefectDojo | 43bfb1c728451335661dadc741be732a50cd2a12 | b98093dcb966ffe972f8719337de2209bf3989ec | refs/heads/master | 2023-08-21T13:42:07.238370 | 2023-08-14T18:00:34 | 2023-08-14T18:00:34 | 31,028,375 | 2,719 | 1,666 | BSD-3-Clause | 2023-09-14T19:46:49 | 2015-02-19T17:53:47 | HTML | UTF-8 | Python | false | false | 810 | py | # Generated by Django 2.2.15 on 2020-08-30 21:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dojo', '0050_deduplication_on_engagement'),
]
operations = [
migrations.AlterField(
model_name='regulation',
name='... | [
"noreply@github.com"
] | DefectDojo.noreply@github.com |
4586f31cad02d6a6be7b36c3b4163765c6399b35 | c937baa378c59cbcaaf88ef26e652103f7bca5d1 | /message.py | afa6e91a73a5dbe3e58e7ae5e2c7ac15a494680b | [] | no_license | gregorybrancq/pythonCommon | 87f8026b5e11ad3218e6e24b21002d974f4079f4 | e3aa7b22d60b760737cba618a7fbb81e1cee9c71 | refs/heads/master | 2023-03-23T06:17:56.294515 | 2021-03-09T13:42:42 | 2021-03-09T13:42:42 | 247,312,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Open a window to print the status of the program
"""
# use for graphical interface
import multiprocessing
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
##############################################
# Message Dialog Class
###############... | [
"gregory.brancq@free.fr"
] | gregory.brancq@free.fr |
d8378edcd6198ed26579441c3a40b78c8cf15001 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/__init__.py | bf71c01861311a939e78407acf62aa9512c59a19 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 1,493 | py | from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.representations_api import RepresentationsApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.type.type_api import TypeApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.repres... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
7bdbb45c2a647db014716b1afeeb24c732579da3 | 7a73fef9ae426c48573bae41447cef7cb2b97bf6 | /dynamicserialize/dstypes/com/raytheon/uf/common/management/response/__init__.py | e1e5fcfbdc6f395fcaab59c2371def4edec4459b | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mjames-upc/python-awips | 7f0a80a04457224c9e195b82a95eef4d9b2b3091 | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | refs/heads/master | 2020-03-31T03:00:49.540816 | 2018-10-05T23:15:42 | 2018-10-05T23:15:42 | 53,707,817 | 0 | 0 | null | 2017-04-12T18:00:59 | 2016-03-12T01:46:57 | Python | UTF-8 | Python | false | false | 104 | py | ##
##
# File auto-generated by PythonFileGenerator
__all__ = [
'diagnostic'
]
| [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
513cd74af6ff93ef148488fe794428acc09017a1 | 0c17c0eae2f1b616dce500315b35167fda6c0828 | /GUI/Source_Code_OfficePortal-0.1/Make_Config_File.py | ec10d17c4e4a34e8da28154721acd64d47dba3ac | [] | no_license | merijndewit/Office_Portal | e32f6e74be7316783f44f1c89a4a46a3442d3157 | f58589589f0b94839eba222558e7af2075e4856c | refs/heads/main | 2023-06-19T08:33:55.301685 | 2021-07-14T10:02:31 | 2021-07-14T10:02:31 | 369,529,388 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import sys,os
import json
if getattr(sys, 'frozen', False):
cd = os.path.dirname(sys.executable)
else:
cd = os.path.dirname(os.path.abspath(__file__))
def makeConfig(values, configspecs):
config = {}
config['streamInfo'] = []
config = {
'ip': values[configspecs[0]],
'pixelWidth': values[co... | [
"merijn.de.wit@gmail.com"
] | merijn.de.wit@gmail.com |
56217e6cc807440450ad8316fdd6c63956a56e05 | 0c68fad8b6e8375f17ad2e10a2a74e6181d7b55c | /LV_cavity.py | f1349c229cfd769ffca82ee4f70a64e24967dd18 | [] | no_license | Wenping-Cui/Eco_functions | 0e92ad993bff6b9a83d9220ecf908155f7f46a62 | 1598e981c8eacfa37c9f202f28e6762fcc42778a | refs/heads/master | 2021-07-03T09:06:21.443023 | 2020-08-24T03:45:41 | 2020-08-24T03:45:41 | 150,139,810 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,636 | py | # -*- coding: utf-8 -*-
"""
Created on Thu 03/31/2019
@author: Wenping Cui
"""
import time
import pandas as pd
import pdb
import matplotlib
from matplotlib import cm
from matplotlib import colors
import matplotlib.ticker as ticker
import matplotlib.pyplot as plt
import numpy as np
import itertools
from... | [
"wenpingcui@gmail.com"
] | wenpingcui@gmail.com |
ca40498aa30d2a1e5baee83adfbb27bbb25c2bfa | f18125b848e37a64e35136a90cf4694e52eb9fcc | /teek/_timeouts.py | 13563144be59e5b03aa5f93e5c8b5b14d4b72708 | [
"MIT"
] | permissive | carlbordum/teek | d19271dfe11e3e77052b1a3c215ddf6a9d50e440 | a931b468744c8236fd4ce6f1dc3a8c4829d59db3 | refs/heads/master | 2020-04-16T11:41:10.909230 | 2019-01-13T19:24:16 | 2019-01-13T19:24:16 | 165,547,247 | 0 | 0 | null | 2019-01-13T19:48:26 | 2019-01-13T19:48:26 | null | UTF-8 | Python | false | false | 2,489 | py | import teek as tk
from teek._tcl_calls import make_thread_safe
# there's no after_info because i don't see how it would be useful in
# teek
class _Timeout:
def __init__(self, after_what, callback, args, kwargs):
if kwargs is None:
kwargs = {}
self._callback = callback
self._... | [
"akuviljanen17@gmail.com"
] | akuviljanen17@gmail.com |
73c13eff80b7d3a220922d5ee5f7cf12283fc69f | b966c155f16ed58942e6af3660102c0bb222faa3 | /tools/config_manager.py | b9508c9a6664985f0508b8de15bb8a4c80fa07a3 | [] | no_license | tungit980/docbao | 9e9a8837935168e69f5abfa9a5966b94305d94f0 | 0ecd9696ca2b7b6b4ed17f3996cb0ab4400efbb3 | refs/heads/master | 2022-12-05T10:41:46.326095 | 2020-08-30T09:52:22 | 2020-08-30T09:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,086 | py | header = '''
###############################################################################
# program : config manager
# function: help create, edit web configs easily for crawling
# author : hailoc12
# created : 2019-06-14
###############################################################################
'''
import c... | [
"hailoc12@gmail.com"
] | hailoc12@gmail.com |
5bcb14b9a77abb06d694d912c1001a113b902a97 | a901e62765acf49238fcff53c92dacfb3ac806dd | /app/gbd/core/util.py | aebf5c44d23becf0d83f3d6a1a5c0d8214d39602 | [
"MIT"
] | permissive | gbd-consult/qwebgisapp | d0834492a301395d18fb5867f2fef485ac032c14 | 86318f42d2e931ab3a6ea4e5108b9e0b0095156b | refs/heads/master | 2021-03-19T14:21:57.993770 | 2018-02-27T12:11:17 | 2018-02-27T12:11:17 | 94,889,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py | """Misc utilities."""
import sys, string, time, os, math, itertools, random, datetime
import mako.template, mako.exceptions
from gbd.core import config, log, templatetools
def f(s, *args, **kwargs):
frame = sys._getframe(1)
d = {}
d.update(frame.f_globals)
d.update(frame.f_locals)
d.update(kwarg... | [
"gebrkn@gmail.com"
] | gebrkn@gmail.com |
cccdf851ec9f9a96a2225d8bfbd7e62cfcd1b59a | 0c01f24c7d2e2433ad999358bcb5cd246d824c64 | /Settings/Lopy/Lopy_device/flash/main.py | d577883725a19488191f6648b511b6abb6858500 | [] | no_license | jemesmain/openenergy | 368b2b2dc4cee6e3b0ea93f9d0029572b004983f | 3d0c7d0892336a0a0f0a880d53561079f9ef2637 | refs/heads/master | 2023-05-11T19:09:00.011456 | 2023-04-30T21:29:02 | 2023-04-30T21:29:02 | 251,673,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | """ OTAA Node example compatible with the LoPy Nano Gateway """
from network import LoRa
import socket
import binascii
import struct
import time
import config
# initialize LoRa in LORAWAN mode.
lora = LoRa(mode=LoRa.LORAWAN)
# create an OTA authentication params
#setting found in ttn device / name of device with ac... | [
"jeaneric.mesmain@gmail.com"
] | jeaneric.mesmain@gmail.com |
0957c3b078d721491faabeeda539ea760c7bf54c | 0205e04f1c47b3a34da20e938a4dab7640df89ad | /ics_demo/dao/interfaces/demo/carrot.py | 1db4747531680bc6dafe8feaca0ac9d5ddf6e24a | [
"MIT"
] | permissive | Mahuaixu/ics_demo | e765c06aa68be77c5886d962ed0266aee04ad551 | 21a08945f3983eb409916a7380549f74e3ba5171 | refs/heads/master | 2021-01-23T20:56:45.619488 | 2016-04-01T11:49:57 | 2016-04-01T11:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from ics_demo.dao.interfaces import base
from ics_demo.dao.orm.demo import Carrot
from ics_demo.helpers import uuidgen
def get_all():
return base.class_get_all_to_dict(Carrot)
def get_one(uuid):
return base.class_get_one_by_uuid_to_dict(Carrot, uuid)
def get_obj(uuid):
return base.class_get_one_by_uuid_... | [
"zhaozhl@inspur.com"
] | zhaozhl@inspur.com |
aa6c6881d7565c65dcc402b478b85a6aaab77318 | 8410bb5a2e8849bb3a554b95ddc713d88f3440c4 | /aws-dev/awsdev8/venv/Lib/site-packages/amazondax/grammar/DynamoDbGrammarListener.py | e8bd3845c650ff1693a6d39c27674112f67b43c3 | [
"MIT"
] | permissive | PacktPublishing/-AWS-Certified-Developer---Associate-Certification | ae99b6c1efb30e8fab5b76e3d8c821823a4cd852 | b9838b4e038b42ad1813a296379cbbc40cab6286 | refs/heads/master | 2022-11-03T04:37:49.014335 | 2022-10-31T05:42:19 | 2022-10-31T05:42:19 | 219,964,717 | 13 | 11 | MIT | 2021-06-02T00:57:45 | 2019-11-06T09:54:09 | Python | UTF-8 | Python | false | false | 13,172 | py | # Generated from grammar/DynamoDbGrammar.g4 by ANTLR 4.7
from antlr4 import *
if __name__ is not None and "." in __name__:
from .DynamoDbGrammarParser import DynamoDbGrammarParser
else:
from DynamoDbGrammarParser import DynamoDbGrammarParser
# This class defines a complete listener for a parse tree produced by... | [
"sonalis@packtpub.com"
] | sonalis@packtpub.com |
e9bc9aded9058951ba4a02e774a00a8f7b8b97b0 | 1ed7d8d0490c90704994863daf6e6517717b17cd | /programs/unsupervised_category_learning/domain_to_category.py | f8d6e3ebb76e32bebdc0c785c97f2adb7750d902 | [] | no_license | ankuragrawal70/KenSor | 61ca59ee61a374eb5efcabf742c05f1b67000bd0 | 08cc378aaf5087a7990c1d3bfc2962b8334a0de7 | refs/heads/master | 2020-03-27T05:09:41.046750 | 2018-08-31T12:44:44 | 2018-08-31T12:44:44 | 145,998,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,491 | py | #import MySQLdb
import gexf
import networkx as nx
import wikipedia
import difflib
import operator
import socket
import MySQLdb
import os
import urllib2, httplib
import category_from_urls as cat_class
import wiki_classification_cat_relation as wiki
from bs4 import BeautifulSoup
#import matplotlib.pyplot as ... | [
"ankuragrawal70@gmail.com"
] | ankuragrawal70@gmail.com |
ba1e1883e6c6bba64621e521b0b4aa974fe7895f | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/isis/isiscsnpstats1qtr.py | 5e12cd0cc2e3b1aa65da434a7ed773805e4aebed | [] | 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 | 29,126 | 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 |
a2d16a5c6608a02c2ad6b9f34f6a09e60da23d96 | b95bf1219a8a35e9991e965b5aa2df6e1ed9e1d8 | /Variables/variable.py | bdab6666729db6f6c1e979141065e0c563662117 | [] | no_license | cosmolgj/charm_private_python | 73738b8c53909ccf376cd0582590101d340ccc52 | 85c87f6922d4dcb08c41ac10d990b8a741958a13 | refs/heads/master | 2023-08-28T07:43:57.471238 | 2021-10-21T03:54:51 | 2021-10-21T03:54:51 | 417,421,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py |
# 리스트 참조하는 새로운 변수할당
a = [1, 2, 3]
b = a
print(id(a))
print(id(b))
# 리스트 복사
a = [1, 2, 3]
b = a[:] # list copy 1
a[1] = 4
print(a)
print(b)
from copy import copy
b = copy(a) # list copy 2
b[1] = 7
print(a)
print(b)
b = a.copy() # 리스트의 자체 함수
print(a)
print(b)
"""
def print_n_times(n, *values):
# n번 반복합... | [
"cosmolgj@empal.com"
] | cosmolgj@empal.com |
49ac5ef41b8dac8841016e8ef4956958958458a3 | 585a068c651d85e6f02b18686ad95ec0671fbdfb | /habilidades.py | bdf134c919923b842545c8815dde37f379f18fe9 | [] | no_license | FlavioSG-BR/Flask-RestfulAPI | f9b1361b3e2ba4b4436bc656a0b534418ecbe4c6 | 7380143a4d801f758ab59779287f443c1f1ad13b | refs/heads/master | 2022-04-17T18:41:18.508258 | 2020-04-16T18:10:40 | 2020-04-16T18:10:40 | 256,292,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from flask_restful import Resource
lista_habilidades = ['Python', 'Java', 'Flask', 'PHP']
class Habilidades(Resource):
def get(self):
return lista_habilidades | [
"flavio_godoy@yahoo.com.br"
] | flavio_godoy@yahoo.com.br |
b97bdf194a8fbf05e9d4d3cc5fcabae4813e1dcc | ec02650631ee787fa2518d4b12febbd372fe64c3 | /src/statistics_calculation.py | 81947f9231555030fcdb4363d0f370a6fa229f53 | [] | no_license | VitalyCherkov/state_exam_statistics | d889f95c20c86e4cd2b4aaad9f9f57c367cd030b | f499363e3bf1a8d7c96d5e5aee019ba99fdefd23 | refs/heads/master | 2020-03-23T05:13:27.771935 | 2019-07-10T10:00:56 | 2019-07-10T10:00:56 | 140,887,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | import functools
import operator
from src.constants.common_parameter_names import ACADEMIC_PERFORMANCE, QUALITY, AVERAGE_GRADE
from src.weight_functions import (
get_academic_performance_weight,
get_quality_weight,
get_average_grade_weight
)
def calc_percentages_per_task(columns, max_results):
"""
... | [
"vv-ch@bk.ru"
] | vv-ch@bk.ru |
3af5a5a3567f1a8fedae3b522ec01b68b906db07 | 456219b19249259643810cca5f92ce4c9a26c947 | /Problem 07/advent7b.py | 0d4c68181df187231c7452e046bd203646f84ebf | [
"Apache-2.0"
] | permissive | mankybansal/advent-of-code-2020 | 04a10a874a8444a7ef34f8d105050f574fdf0f3d | 62b389c52d488ea88443b564b6b6b89fd7b5290b | refs/heads/main | 2023-02-01T16:38:49.004717 | 2020-12-23T11:27:15 | 2020-12-23T11:27:15 | 318,087,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | ad_list = {}
for line in open('input.txt', 'r').readlines():
rules = line.strip().replace('.', '').replace('contain', '').replace(',', ' ').split(' ')
master_key = None
for i in range(len(rules)):
if i == 0:
split_rule = rules[i].split(' ')
key = split_rule[0] + split_rule[1]
if key not in ad_list:
... | [
"sunny.bansal@gmail.com"
] | sunny.bansal@gmail.com |
0fe60563da73b0f964c80040f248e1ff90390f63 | b57414bc300636cec239e81bc2cf0d1b1c170d21 | /Main.py | d1827d7ef168205a2e0c07dcfe867316e6130d59 | [] | no_license | TaraRosen/mn_primary_election_day_tracking | 7abcd0f4bcf56f196aef1b865f17129501aeb6f7 | db6e73f6023b2432530d4664cdba3e1fa5f6eaab | refs/heads/main | 2023-01-15T19:23:01.755729 | 2020-11-06T15:13:49 | 2020-11-06T15:13:49 | 310,629,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,681 | py | import time
from time import sleep
from warnings import warn
import urllib.parse as up
from requests import get
from bs4 import BeautifulSoup
import re
import datetime
import psycopg2
def resultsScraper(countyCode, precinctCodes):
precinct_entry = ""
precincts = ""
for precinct in precinctCodes:
... | [
"noreply@github.com"
] | TaraRosen.noreply@github.com |
3f9c3e9ffc8803e6cd6e39ae498eaed82dd43a2d | a9cb028a29388ef97614faca6405985584e508c0 | /CorpRoomApp/views/__init__.py | 0202939f5240055387b68e169d950ae50c230c2f | [] | no_license | tungsten-manojb/DialARoomProject | f18cb0d71dbe5a94818aa7d6ec015c57580d83db | d5f8bb6a4611d6c452db65e782f0029b19081d13 | refs/heads/master | 2021-01-10T02:25:14.389591 | 2015-12-22T07:30:48 | 2015-12-22T07:30:48 | 48,413,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py |
from CorpRoomApp.views import portal
| [
"manoj.bawane@tungstenbigdata.com"
] | manoj.bawane@tungstenbigdata.com |
6e3a536375721655c5f4134ba620f4f7a4d0bbb6 | b6a9268bcb333ec3d873cf28caef38c12de55e00 | /ch7_functions/anonymous_functions.py | 99fafbc2095ac3013dd4a9474d109961f183bd61 | [] | no_license | bobo333/python_cookbook | eb6fff82e1f5dc90963c8798cf88ffdcc3195440 | e0a022ecfe5abbcd074f90be9b274f6d29fe4362 | refs/heads/master | 2020-07-03T09:20:37.808762 | 2017-03-17T08:29:52 | 2017-03-17T08:29:52 | 66,986,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # lambdas are anonymous functions
add = lambda x, y: x + y
print(add(5, 3))
# usually used in combination with some other operation, like sort
names = ['David Beazley', 'Brian Jones', 'Raymond Hettinger', 'Ned Batchelder']
print(sorted(names, key=lambda name: name.split()[-1].lower()))
| [
"redsox333@gmail.com"
] | redsox333@gmail.com |
98a9eb880eda3ee7f1c46c6d7d034777ec672a3c | 71f36e89cef2f7739f6a19e77ec94649cf408297 | /CodeIsFun/manage.py | 9a2b1882e4285baba6d0d67a98b347aa4e0d2beb | [] | no_license | ansh9690/Django-Blog | bdbccf4cb6310ec9b325afdaf2402e319751b287 | 845c0d30381fb7248756d3617b30647e680884a3 | refs/heads/master | 2022-12-08T01:42:49.453597 | 2020-08-25T17:13:59 | 2020-08-25T17:13:59 | 258,409,983 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 629 | 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', 'CodeIsFun.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"anshuprakash8445@gmail.com"
] | anshuprakash8445@gmail.com |
5d7f25c116d2a9fa1d5af893930135ce01f01bff | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d3d1aa2dca4988bb7a232458338d86a0c9fef06e-<main>-fix.py | 2ca55744f3a4a48e7dd7ef030d5aae4df1a066eb | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,010 | py | def main():
module = AnsibleModule(argument_spec=dict(src=dict(required=True), dest=dict(required=True), dest_port=dict(default=None, type='int'), delete=dict(default='no', type='bool'), private_key=dict(default=None), rsync_path=dict(default=None), _local_rsync_path=dict(default='rsync', type='path'), _substitute_... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3c2f70f7d8cb1b239b139682b5e5bfd6579d4cb8 | 02c4c52f2f630df77bc25994aee13a7530e3136d | /012016/python/xmlParsing.py | ec2f58145a53178b29ba7dc467dc309ce4c9fc3c | [] | no_license | abgoswam/2016 | ac7d61828bc5fda8c003f135bc250ed57d03ae4c | 307844ba74bf302c290a4e2b4792a096e0c3cb56 | refs/heads/master | 2020-04-15T14:03:49.674650 | 2016-12-09T02:19:44 | 2016-12-09T02:19:44 | 57,982,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 10 07:38:36 2016
@author: agoswami
Code from : http://www.blog.pythonlibrary.org/2013/04/30/python-101-intro-to-xml-parsing-with-elementtree/
"""
import time
import xml.etree.ElementTree as xml
import xml.etree.cElementTree as ET
import xml.dom.minidom as minidom
#htt... | [
"abgoswam@gmail.com"
] | abgoswam@gmail.com |
84eaed61749bc550b3f113ebdf7b48e5b356ceed | cd9702fdcfd36b26fcd639fb4d0be8019c4c21e0 | /src/getEcommence_yhd.py | b469fe92a4f6abf2061ff8a23e7533a675ba3408 | [] | no_license | Neilfu/NLP | 0d467b860061d2fd2e2aaa8571f391f183158e32 | 7ebfc2264761b83174f8ad47e0fce11fdff7e322 | refs/heads/master | 2020-04-06T07:04:54.755915 | 2016-02-26T13:38:49 | 2016-02-26T13:38:49 | 15,428,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,456 | py | #coding=utf-8
import re
import sys, getopt
import datetime
import requests
from bs4 import BeautifulSoup
import logging
import json
from pymongo import MongoClient,ASCENDING
import time
LEVELS={'DEBUG':logging.DEBUG,
'INFO':logging.INFO,
'WARNING':logging.WARNING,
'ERROR':logging.ERROR,
... | [
"neil@local.com"
] | neil@local.com |
57f400f6021873fa23f9efa7d91a3e2a001f4aba | 6ca12dab48862659c1426e5e245f961c661e5c42 | /check_gibdd_fines.py | 9c9d377cda88eb8eb9887b55bb395acfaac997d0 | [
"MIT"
] | permissive | Wolfram-180/check_gibdd_fines | 0d69b7269fe7b47fbf59e4a8091efa96c2cdd3f2 | e94a9368fba549fb61387859ba1ea92747bda536 | refs/heads/main | 2023-09-02T12:43:58.745457 | 2021-11-01T10:21:02 | 2021-11-01T10:21:02 | 423,421,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | import time
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import datetime
import emailwork
import re
debug = True
WebDrive... | [
"noreply@github.com"
] | Wolfram-180.noreply@github.com |
a5c614cd15adeb9672fcd1647fab7785834fd360 | af994d1163f445a79797186fae4c828670e575c7 | /env/bin/pip2.7 | eca04ab69df21074ce698efb4185e442cf920ea9 | [
"MIT"
] | permissive | dhruvshah1214/jarvis-shah-nlp | 03a80a9f8dbb0581549736b3cf9fd254b7a893f9 | b720dc5ab3af7ed223483ce6919b84c4ad56e4a2 | refs/heads/master | 2021-01-12T15:34:57.388006 | 2016-10-24T23:51:26 | 2016-10-24T23:51:26 | 71,840,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | 7 | #!/Users/hitesh/Documents/workspace/JARVIS/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dhruv.shah@gmail.com"
] | dhruv.shah@gmail.com |
a23a188a9a220ca25ffaec14f74dd0d311ecb76a | ba3be84d355e90860479fc2a0d92b536c377c643 | /PYTHON/Advance/Python Controls/py_Frame2.py | d9e598e1135bffa05661b601196ac36c71774648 | [] | no_license | vipin26/python | c62a3427511658ff292085fc382c5b3b3ff4d609 | e8442b84c385ddef972d6a514e471d8eba8af0a3 | refs/heads/master | 2020-09-29T12:39:52.775466 | 2019-12-15T05:44:31 | 2019-12-15T05:44:31 | 227,034,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from Tkinter import *
top = Tk()
top.geometry("500x500")
#width="200", height="200"
f1 = Frame(top,bg="green")
f1.pack(side="left",fill=BOTH,expand=1)
f2 = Frame(top,bg="Red", width="200", height="200")
f2.pack(side="right",fill=BOTH,expand=1)
b1= Button(f1,text="Button 1");
b1.pack()
b2= Button(f2,text="Button 2")... | [
"58661640+vipin26@users.noreply.github.com"
] | 58661640+vipin26@users.noreply.github.com |
17f286bd52e1fda213acc5e1347e4d32bd730c24 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/389/usersdata/346/73669/submittedfiles/poligono.py | 2d92908686c389fe16d305bc44eb0541a9bdb9f1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
#ENTRADA
n= int(input('Digite quantos lados deve ter o seu polígono: ')
#PROCESSAMENTO
nd = (n*(n-3))/2
#SAÍDA
print('%.1f' % nd)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0e928393f712c9aa0b389fc8e611da0166635eb7 | a3d6eb92c6fc6ed6095d10bc7b329cb8b4a8b166 | /src/config.py | 9f147f5f9b4dfea32202702abb0161c77899e708 | [] | no_license | hgiesel/anki_straight_reward | ab29e6f154beba7c5f2f9bd9579c21cdd942b218 | 3fe72255f667d2eb544afb2541a1eb974c23eede | refs/heads/master | 2022-12-23T22:38:28.432113 | 2022-12-12T13:46:36 | 2022-12-12T13:46:36 | 245,190,627 | 19 | 4 | null | 2023-08-28T16:01:55 | 2020-03-05T14:53:08 | Python | UTF-8 | Python | false | false | 2,381 | py | from anki.cards import Card
from aqt import mw
from .types import StraightSetting
DEFAULT_SETTINGS = StraightSetting(2, True, 5, 5, 130, 250)
KEYWORD = "straightReward"
def serialize_setting(setting: StraightSetting) -> dict:
return {
"enableNotifications": setting.enable_notifications,
"straig... | [
"hengiesel@gmail.com"
] | hengiesel@gmail.com |
5c9ac3b06991bb157e92c298215e3f2f75df99ef | 911d961e2dfe786ca163d0eb5016e3edd7f909b8 | /backjoon/11399.py | 0bb55a3a817b59f88d05e760d6d1fcecc561487f | [] | no_license | kkhhkk/Study-Algorithms | abf8f4897c8ffc33d149930631275851fecb282d | 28a69c71be8dd526c93e1414bc7531c9f4bb1710 | refs/heads/master | 2023-05-07T23:55:35.817235 | 2021-06-01T15:11:49 | 2021-06-01T15:11:49 | 335,855,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | # 11399번
# 문제
# 인하은행에는 ATM이 1대밖에 없다. 지금 이 ATM앞에 N명의 사람들이 줄을 서있다. 사람은 1번부터 N번까지 번호가 매겨져 있으며,
# i번 사람이 돈을 인출하는데 걸리는 시간은 Pi분이다.
# 사람들이 줄을 서는 순서에 따라서, 돈을 인출하는데 필요한 시간의 합이 달라지게 된다. 예를 들어, 총 5명이 있고,
# P1 = 3, P2 = 1, P3 = 4, P4 = 3, P5 = 2 인 경우를 생각해보자. [1, 2, 3, 4, 5] 순서로 줄을 선다면, 1번 사람은 3분만에 돈을 뽑을 수 있다.
# 2번 사람은 1번 사람이 돈을 뽑을... | [
"78129787+kkhhkk@users.noreply.github.com"
] | 78129787+kkhhkk@users.noreply.github.com |
e9690e73f0b4e1dc083c4d6cc4fcf8ffe8143425 | a3984032b1f20c38b4dee1809326230fa828287a | /manage.py | d960e32230106c88c173a3a199a6479c23c5ba5b | [
"MIT"
] | permissive | tomi77/django-auth-role | c5acccae5647578fffa938e5cba2f06a4eba5f7f | 8fb3bf8940856a13ca7c7265c4670e4359dcb638 | refs/heads/master | 2021-01-19T21:50:33.773375 | 2017-05-10T16:48:39 | 2017-05-10T16:48:39 | 88,711,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | #!/usr/bin/env python
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"tomasz.rup@gmail.com"
] | tomasz.rup@gmail.com |
32217a6f79616909f2a98f30ead7693f6c395512 | ec5db30f321fc0c77adc7ec0d567cb0b8c723cef | /OpenCV section/face_detector.py | a801bfa8f21ffbae648a2c9d87290e291f684f5c | [] | no_license | LingzeHu/python-projects | 41b3fc19544232dcd715a162f6a457dbfd5a3371 | 1271c0c7bc3e58ad21f9a4cecd629be10618ee1a | refs/heads/master | 2022-07-28T11:06:36.362649 | 2020-05-26T01:49:42 | 2020-05-26T01:49:42 | 266,919,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import cv2
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
img = cv2.imread("news.jpg")
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray_img,
scaleFactor=1.1,
minNeighbors=5)
for x, y, w, h in faces:
img = cv2.rectangle(img, (x, y), (x+w, y+... | [
"lingzehu@gmail.com"
] | lingzehu@gmail.com |
2749a89da17d91be60716423a5b52e513374404b | 7e325da0ec25a56158f4a47acf6f594548a72384 | /users/migrations/0005_profile_stripe_customer_id.py | 97a12f3ccd87c340090928f9137cccccc4257501 | [
"MIT"
] | permissive | drewvpham/xclude.com | 5102a921721c508552648ee03f5a8e1b0bafb6e8 | 103e89e2326c4c6fbfab819c43bc4e4634913bc9 | refs/heads/master | 2022-12-16T06:36:00.631404 | 2019-12-29T20:35:16 | 2019-12-29T20:35:16 | 222,317,889 | 0 | 0 | MIT | 2022-12-07T23:54:06 | 2019-11-17T21:58:47 | Python | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.2.7 on 2019-12-24 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_profile_one_click_purchasing'),
]
operations = [
migrations.AddField(
model_name='profile',
name='stri... | [
"drewvpham@gmail.com"
] | drewvpham@gmail.com |
314181b6076dd4f353ab40ca9d5695c63949d5ba | c0a9460591dcb5a322c1c5ec8b67e1d775f8f4ba | /advec_1d/dg_modal_gpu.py | d4b79c2b6d4cba9f5cc88e1e69a5f264c41dfdf1 | [] | no_license | wbkifun/my_research | aca8f5132d03de2e15adc3b0ded164fbd89e38a3 | eb7e61f5405834dcbea240665bdc819f4b3f97bf | refs/heads/master | 2020-12-24T16:40:29.722161 | 2016-03-07T00:31:15 | 2016-03-07T00:31:15 | 5,176,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | #===============================================================================
# DG method with modal basis functions
# 1-D advection equation
# ------------------------------------------------------------------------------
#
# Last update: 2012.4.26
# ----------------------------------------------------------------... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
ed2044a2c6ce156532db6f9abe972c1652e8e2d1 | 12c62359f011f92db8ec3649c6c23f9158482085 | /components/ai.py | 9d1c4e196d4101ac6ac8212529362a1afc4228a3 | [] | no_license | Kuerschten/RoguelikeTutorial | 7cab1274c7ffd936aed5192cb2aa1a9f36973e2a | f6e0c35011d8d039c2f8a1244738e925156a2ea0 | refs/heads/main | 2023-03-12T21:29:51.004921 | 2021-03-05T20:06:29 | 2021-03-05T20:06:29 | 338,453,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,204 | py | from __future__ import annotations
import random
from typing import List, Optional, Tuple, TYPE_CHECKING
import numpy as np # type: ignore
import tcod
from actions import Action, BumpAction, MeleeAction, MovementAction, WaitAction
if TYPE_CHECKING:
from entity import Actor
class BaseAI(Action):
def perfo... | [
"dk-siggi@web.de"
] | dk-siggi@web.de |
841afbf9bb4cdfd5cafcbc0c6f3f11f329e527fc | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/l3v4usage32per.py | ec7d3ed093f8b0173f4a279c5813fc5c3027ba2f | [] | 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 | 12,181 | 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 |
7d31daeee7daa90b1dc6e4d1fb65142ca9d46562 | 05c6023c8bc3a495d27ea8028a236aefc0324e31 | /src/utils/db/matches/DBMatchesHandler.py | f415677526b5247e8b46fc975f7abbdcb5fc5c31 | [] | no_license | huyleminh/network-socket-livescore | c3213c22c38a225f0f8da46a8cd8a481afcde8f2 | abd347dac645aa037149fdb03285db4b71d00597 | refs/heads/master | 2023-04-19T05:38:58.370316 | 2021-05-09T02:13:27 | 2021-05-09T02:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | import json
import shortuuid as shortId
import sys
from pathlib import Path
pathfile = Path(__file__).resolve()
dbRoot = pathfile.parents[1]
sys.path.append(str(dbRoot))
from details.DBDetailsHandler import DBDetailsHandler
class DBMatchesHandler:
@staticmethod
def getAllMatches():
try:
f... | [
"leminhhuy.hcmus@gmail.com"
] | leminhhuy.hcmus@gmail.com |
49df5a742852121ed1640fd82015e88245e9910f | 98430ad712b7855b3ab9cdab1b31055d7f607d8e | /Airline Sentiment Analysis.py | 0ac57428aec69e3209e8ed7f509c27cfdfdd9541 | [] | no_license | adobbins1/US-Airline-Twitter-Sentiment-Analysis | cb6e7dc1709386a13b67c1b4273937003641dda9 | db3908dd9d5c9f6f4e5763d7c2d57bed7228f0e0 | refs/heads/master | 2022-11-28T04:29:49.735077 | 2020-08-05T21:26:56 | 2020-08-05T21:26:56 | 272,076,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,648 | py | # Austin Dobbins
# DSC 680
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import re
import numpy as np
from nltk.corpus import stopwords
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import train_test_split
from sklearn.ensemble import Ra... | [
"noreply@github.com"
] | adobbins1.noreply@github.com |
1c482da35a8e578fdc4f0045a27fb730c1b5717e | 45d4e36581bfe9982619aa13c255e703d50e77da | /blog/forms.py | 2ff9e417e2b1c65f9e98e25ddfd6e1ab12aedf29 | [] | no_license | Sagar746/Project_blog | b93cedb08263e188f003d3af3462ea4273d1dec8 | 5650f5eca9cce6a011992c8c651ffb420bd3ff9e | refs/heads/master | 2023-03-08T04:41:43.621844 | 2021-02-27T17:53:37 | 2021-02-27T17:53:37 | 342,921,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django import forms
from .models import Post
from idea.models import Idea
class PostCreateForm(forms.ModelForm):
class Meta:
model=Post
fields=['title','description','category','image']
class PostUpdateForm(forms.ModelForm):
class Meta:
model=Post
fields=['title','description','category','image']
... | [
"saagartiwari722427@gmail.com"
] | saagartiwari722427@gmail.com |
5994a372ecac4751d01b2d63d8cfe85ccff050c0 | e9331ebf2d83184924ade1c9e4849c3ba0285bf2 | /mutiple-devices/vgg16/8devices/node.py | 8e3356581b54e55c63cec2cc97e4e45d94968fb4 | [
"Apache-2.0"
] | permissive | parallel-ml/asplos2018-workshop | fcf7c13ff6723ac91f156377e27fc5acaf85367a | a05a63c17f43926d6411ada625b191db1abbee67 | refs/heads/master | 2022-12-02T02:12:34.450130 | 2022-11-29T16:06:36 | 2022-11-29T16:06:36 | 120,949,505 | 15 | 4 | Apache-2.0 | 2022-11-29T16:06:37 | 2018-02-09T19:58:11 | Python | UTF-8 | Python | false | false | 11,323 | py | """
This module shows the node for 8 nodes distributed system setup.
"""
import argparse
import os
import time
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from SocketServer import ThreadingMixIn
from collections import deque
from multiprocessing import Queue
from threading import Thread, Lock
impo... | [
"caojiashen24@gmail.com"
] | caojiashen24@gmail.com |
a75af14244df6896f34f5a5d274727df813bad8c | fc65e7c55058361edc163a82ea9d33d27d040268 | /wsgi/pecan/golden/hooks.py | 989933c7fe27c5ec77a72c8546846d75491f5fcb | [] | no_license | zhaozhilong1993/openstack_test | 19a011029b4b9c9fa4411df793a1bd1e23e2da1d | a1153f4d258cc73e31f3e2604ab7309eb03879de | refs/heads/master | 2021-01-21T14:44:48.605566 | 2016-07-16T03:53:21 | 2016-07-16T03:53:21 | 58,913,030 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
from pecan import hooks
from golden.db import api as db_api
class DBHook(hooks.PecanHook):
"""Create a db connection instance."""
def before(self, state):
state.request.db_conn = db_api.Connection()
| [
"root@unitedstack.com"
] | root@unitedstack.com |
86627084d51566bc70cecda01854f3e0851bcd6f | 5be853e4bfe6b95c4e311af32e0c5cbf20218adc | /src/Kernel/FunctionsForLists.py | 2c64500f279df13f20b5591fe6b9a060267e8d54 | [] | no_license | SebastianDapra/KernelSimulator | ff89dfd40b91c6470ce7f654218ab33df8f753e9 | ff14b82a2be30f84301efbba559d1bbd9883195d | refs/heads/master | 2021-01-18T14:14:02.277544 | 2015-12-10T01:54:00 | 2015-12-10T01:54:00 | 42,142,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | class FunctionsForLists:
@staticmethod
def filterList(functionForFilter,listF):
return list(filter(functionForFilter, listF))
@staticmethod
def mapList(function,listM):
return list(map(function,listM))
@staticmethod
def sum(function,listM):
return sum(FunctionsForLists... | [
"luciano.federico.olmedo@gmail.com"
] | luciano.federico.olmedo@gmail.com |
f1984d621cb9dff5c7d33467c52fd530da9da790 | d78d214c1040865d1d054cc034ff04e3cb025549 | /bdgtools/io.py | 526a76e4e092697ed3e067aaa8e3ee8588a8646d | [
"MIT"
] | permissive | knutdrand/bdgtools | 922685c6225bb0dc458d3f4b9dc6985aee0b9e51 | 18d21586515ec03e5fb96e959447f6b35e5350de | refs/heads/master | 2023-01-03T14:27:05.855074 | 2020-10-21T12:30:12 | 2020-10-21T12:30:12 | 301,361,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,279 | py | import logging
from itertools import chain, groupby
from more_itertools import pairwise
from operator import itemgetter
import pandas as pd
import numpy as np
from .regions import Regions
from .splitregions import SplitRegions, Genes
from .bedgraph import BedGraph, broadcast
log = logging
def _peek_line(f):
pos =... | [
"knutdrand@gmail.com"
] | knutdrand@gmail.com |
076a1e0256af4f30ffa33586bba32919f063825a | eac8a6ee0065627de15efe4e4f829c1489675879 | /tests/test_problem01.py | d4f4b193638c61937bea711f33fae3f670ff8fa1 | [
"MIT"
] | permissive | ishaansharma/blind-75-python | ff8163ae9f2757a3e69895b468531ac5ad0eaf05 | b92ef3449eb0143c760ddd339897a3f0a2972830 | refs/heads/master | 2023-03-16T11:29:14.620223 | 2020-03-09T00:57:39 | 2020-03-09T00:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import unittest
from problems.problem01 import solution
class Test(unittest.TestCase):
def test(self):
self.assertListEqual(solution([2, 7, 11, 15], 9), [0, 1])
| [
"nolan@nolanwright.dev"
] | nolan@nolanwright.dev |
eba3614127140f9ea0fe64dd042430decb11b8c9 | e4928b77dfc7c50fc2ba23a12a2c9201d08f1f67 | /Chapter_Problems/Chapter4/4_1.py | 84dee5fbe800aab6ad5af818625ce6eb12e32f22 | [] | no_license | ishwarsaini10/Course-Work-Problems | 02363624b5e43c629724751594fb180b05579aaf | fb4afc22319f7ebcd756c279022fdef2279571f9 | refs/heads/main | 2023-02-01T00:48:42.389969 | 2020-12-17T13:27:36 | 2020-12-17T13:27:36 | 309,957,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | list a []
list :wq
| [
"noreply@github.com"
] | ishwarsaini10.noreply@github.com |
2ac42e0a73d94a3ea63cdde82603cce7f4879b66 | b697b98db859c061c1174837deee1d6fc47d115e | /examples/spot/futures/futures_loan_interest_history.py | d11b8ced29894bbc52ba7c6b24d2585c250be296 | [
"MIT"
] | permissive | leozaragoza/binance-connector-python | 7e684d6e68ff7d580b7e3fa83f952540a79b1120 | 3311d102c9e788e3d71047f0af103c00d1ae2162 | refs/heads/master | 2023-07-15T12:27:50.041388 | 2021-08-22T17:08:38 | 2021-08-22T17:08:38 | 396,354,910 | 3 | 0 | MIT | 2021-08-22T17:08:38 | 2021-08-15T13:12:41 | Python | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python
import logging
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
config_logging(logging, logging.DEBUG)
key = ""
secret = ""
client = Client(key, secret)
logging.info(client.futures_loan_interest_history())
| [
"liang.shi@protonmail.com"
] | liang.shi@protonmail.com |
4d16d2aff65c43ef586654078b8ea7389ab8be10 | 72eeea6b1d45faab32431d48bc2ab814724ed5d3 | /model/modeling/necks/__init__.py | 10ae8fdbda47bc933c0b86d13b98870e01caa66d | [] | no_license | wenjunyoung/TF_SAST_Paddle_OCR | 15ba58be3b5aefefbbcda5e4dd02afa36aa5fbcf | 60f94befe12cec6c6de72d4107bda7b109abdc6a | refs/heads/main | 2023-07-24T14:47:01.210211 | 2021-09-01T07:02:18 | 2021-09-01T07:02:18 | 397,501,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # Copyright (c) 2020 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... | [
"i_yangwenjun@cvte.com"
] | i_yangwenjun@cvte.com |
c5273fe33676e21cd6b6a67e55bd93d84921ca2d | b8d4d9169b6df138cb45d64b618812c29e03012c | /Promos_for_our_e_commerce.py | fd57e264af0826cb3a8af2d38fc72f6a95ad63ed | [] | no_license | mzfuadi97/Pythonq | 5633057d351317d5156527fcf2cac288edec34cc | e64a180c9249650324d301a1d06407c8e01f3ea9 | refs/heads/master | 2023-08-03T07:19:12.543031 | 2021-09-21T04:34:21 | 2021-09-21T04:35:58 | 408,678,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407,128 | py | {
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Promos for our e-commerce.ipynb",
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"... | [
"mzfuadi@gmail.com"
] | mzfuadi@gmail.com |
9c86ad961ad9aa88f17595d10f0dc2850ba5c90f | 92e3652a7c0bc754a584a2fcde34d9b2f5c486b5 | /py3file/downloadMp3.py | 988de0e499a71d418391fda0ba24636aebe36baf | [] | no_license | scottph/phlib | 57146be6ed7e22905e903034566747756584b042 | 537d15518cc342e476cc94a6190d78cdef2aa55b | refs/heads/master | 2016-09-06T18:42:43.621587 | 2012-01-16T08:53:52 | 2012-01-16T08:53:52 | 3,189,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | 用法:
先将要下载的歌曲写在一个文本文件中,如song.txt,每首歌占一行.
然后运行:
python getmp3.py song.txt
下载目录为当前目录下的"Music_"
代码: [ 下载 ] [ 隐藏 ] [ 选择 ] [ 收缩 ]
代码: [ 下载 ] [ 显示 ]
使用 python 语法高亮
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
import os
import re
import urllib2
cwd = os.getcwd()
lc = sys.getfilesystemencoding()
downdir = cwd+os.... | [
"scottph@163.com"
] | scottph@163.com |
92f9238ad3092c97ec4b095701f67d1c55cfd079 | 5d302c38acd02d5af4ad7c8cfe244200f8e8f877 | /String/1408. String Matching in an Array(Easy).py | adf72b4a7fde98423f8ff4a18cf2a13c73a92e79 | [] | no_license | nerohuang/LeetCode | 2d5214a2938dc06600eb1afd21686044fe5b6db0 | f273c655f37da643a605cc5bebcda6660e702445 | refs/heads/master | 2023-06-05T00:08:41.312534 | 2021-06-21T01:03:40 | 2021-06-21T01:03:40 | 230,164,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | class Solution:
def stringMatching(self, words: List[str]) -> List[str]:
store = set();
for i in range(len(words)):
for j in range(len(words)):
if len(words[i]) >= len(words[j]) and words[i] != words[j]:
if words[i].find(words[j]) != -1:
... | [
"huangxingyu00@gmail.com"
] | huangxingyu00@gmail.com |
bfe55bf5237d1b834b0adcbbcf20d84565aa24f1 | f87ce51b358caf2497fd0f6d0beb2e18ff13fac5 | /TheNCollection/userlogin/forms.py | 5cd0ce0cfe12c6104a68c730d572789dbf2d13ba | [] | no_license | naerae100/Droid- | 035991b151ff0c40bc26668ca03e24d431f1c2c8 | 9f3a9487774b16ab632c5f1a9da7e3aa63617c00 | refs/heads/main | 2023-07-31T02:07:40.025592 | 2021-09-30T17:21:59 | 2021-09-30T17:21:59 | 397,072,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
from django.forms import ModelForm
class LoginForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget=forms.PasswordInput)
class Cre... | [
"naerae100@gmail.com"
] | naerae100@gmail.com |
b7b8bb8d391d2bf9c02e26c1ae9e2ca3a0ce590c | 62ee285eb838551a92a9a3a3d6c39892a4eeba8b | /user.py | 10686f1e0efce5a46a80870eb896d9fb0660fd6a | [] | no_license | masaki24k/masakiogawa | f1967e6639ef9ca60c704398617588c23ab2245b | 39e64439eb8a5bce1b389f7310c0857c55193414 | refs/heads/main | 2023-03-26T17:56:47.797603 | 2021-03-29T13:48:20 | 2021-03-29T13:48:20 | 334,306,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | class User(object):
def __init__(self, id, username, email, password):
self.id = id
self.username = username
self.email = email
self.password = password | [
"noreply@github.com"
] | masaki24k.noreply@github.com |
f121d704f462cbfcf6d8989a237fa08cedb0d211 | e6a95ea97f285a992a8c39e1ec7dead6eec2e119 | /src/Services/Singleton.py | 7e88a2ff972dc150587ae7081796a3977bedd2fd | [
"MIT"
] | permissive | xclemence/pykube-switch | d132cfdd4bd91c30f5831824214b0362c49ae5cb | 4b7ac4565cc15469c2109e1a400d78e1d2b14404 | refs/heads/master | 2022-12-28T00:39:18.692977 | 2020-10-15T19:48:20 | 2020-10-15T19:48:20 | 300,056,431 | 1 | 0 | MIT | 2020-10-14T20:48:22 | 2020-09-30T20:38:38 | QML | UTF-8 | Python | false | false | 337 | py | from PySide2.QtCore import QObject
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class QObjectSingleton(type(QObject), Sing... | [
"xavier.clemence@gmail.com"
] | xavier.clemence@gmail.com |
d6309335f610181b9f302cef7a872a2c304a842f | 07392a13541ea574a9616f38977146bb6032cdb4 | /board/views.py | c4ad0c2a65423b5f8add52e0ad13e81093f98053 | [] | no_license | lutae2000/mysite3 | 9ae2205d3ecab66cf2734620a28da8132ec5979d | 61670b82d657b9758aa2971f35439174675fd2c2 | refs/heads/master | 2020-03-22T09:02:16.407293 | 2018-07-05T07:21:15 | 2018-07-05T07:21:15 | 139,809,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
# Create your views here.
from board.models import Board
def list(request):
board_list = Board.objects.all().order_by('-regdate')
context = {'board_list':board_list}
return render(request, 'board/list.html', context)
#user
#c... | [
"lutae2000@gmail.com"
] | lutae2000@gmail.com |
c3fbe89b0c3818f26b5ad9deb4d5461a71acc106 | 97e306f5f0d4f87f762884522e1bb2a98b114ed6 | /leetcode/1004/solution.py | daf59bdb6fea4cf0ba8ab14b7d8d49e5898cf58a | [] | no_license | yibei8811/algorithm | a81bd73c361a3ffc0c7c4f196e44fa6bda5d1d20 | 6b74260f81d67fc58f9e656afbe4eb7363c4901b | refs/heads/master | 2023-04-19T10:28:00.114018 | 2021-05-01T12:11:27 | 2021-05-01T12:11:27 | 323,281,538 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | from typing import List
class Solution:
# 如果 K = 3,题目可以转换为求每5个0中间的长度
def longestOnes(self, A: List[int], K: int) -> int:
# if sum(A) + K >= len(A):
# return len(A)
A.insert(0,0)
A.append(0)
n = len(A)
k = K
p = 0
q = 1
result = 0
... | [
"yibei8811@gmail.com"
] | yibei8811@gmail.com |
8df839776009a272be53927bd7b7708595455244 | 44a0a00037de8ec94fc1b7a47eb85ea160b047cd | /Algorithm/Programmers/STACK_QUE/기능개발.py | 531fe6f98468f60d81107c5950202b3da36f420f | [] | no_license | a23822/TIL | ad7a7d7aee73a3f788affb90a00ca889b9630d8c | 47a135ce85a61f01fad6de50b8fd701ebdbcb1b0 | refs/heads/master | 2020-04-14T11:16:18.395890 | 2020-03-01T14:42:19 | 2020-03-01T14:42:19 | 163,809,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,511 | py | """
런타임 에러 30/100
"""
def solution(progresses, speeds):
answer = []
# 각 작업마다 걸리는 시간을 구해 배열 생성
complete = []
index = len(speeds)
for i in range(index):
cDay_mok = (100 - progresses[i])%speeds[i]
if cDay_mok == 0:
cDay = int((100 - progresses[i])/speeds[i])
e... | [
"a23842@naver.com"
] | a23842@naver.com |
4ca6bb07c21ed85808635058d7bf3d36c71eb43e | b8f4b32171bba9e60a101f5a605e084c9aa974fd | /BaseTools/Source/Python/AutoGen/UniClassObject.py | b2895f7e5c63d238180b93830b7630499ffa202c | [
"BSD-3-Clause",
"BSD-2-Clause-Patent"
] | permissive | jinjhuli/slimbootloader | 3137ab83073865b247f69b09a628f8b39b4c05ee | cfba21067cf4dce659b508833d8c886967081375 | refs/heads/master | 2023-07-11T12:59:51.336343 | 2020-09-11T00:16:48 | 2020-09-11T00:24:52 | 149,729,121 | 1 | 0 | BSD-2-Clause | 2018-09-21T07:49:42 | 2018-09-21T07:49:42 | null | UTF-8 | Python | false | false | 29,575 | py | ## @file
# This file is used to collect all defined strings in multiple uni files
#
#
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR>
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
# Import Modules
#
from __fut... | [
"maurice.ma@intel.com"
] | maurice.ma@intel.com |
1ecafdd4fbbaadd0e9d02fa7e8c3c083d19fa32e | 31a39d7cd26856caaccead96d0fa9c7acd469792 | /python/Tree/test.py | 73dc011f02df5a8a453038131d4ae11f73806294 | [] | no_license | lmy269/practices | b19fffb9f2aeae76c8941145353f0fd4f848835b | 29dc5706ffc146c6c87b195fe94d60ae19e17297 | refs/heads/master | 2022-11-07T05:36:38.227660 | 2020-06-29T00:48:55 | 2020-06-29T00:48:55 | 271,398,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | from typing import List
import collections
from collections import deque
import unittest
class Solution(unittest.TestCase):
def getFolderNames(self, names: List[str]) -> List[str]:
cache = collections.defaultdict(int)
cacheDeque = collections.defaultdict(deque)
output = []
... | [
"miliu@microsoft.com"
] | miliu@microsoft.com |
2c402ba9801ca89d32a15c68cd22e69faf89db6c | ae69ca518ba7069268be44e84d48405bf369820b | /py/tests/swagger_client/models/tx.py | 5e59671f321ee5ba3703478f22bea6bc99271d8a | [
"ISC"
] | permissive | kxzy1990/epoch | 3c92920ac0986c5096a4867e356b6d508084ae57 | d40f331de8ef937872a7cc296ae72e5c0d0f98fe | refs/heads/master | 2021-09-05T22:13:21.195641 | 2018-01-30T20:58:47 | 2018-01-30T20:58:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | # coding: utf-8
"""
Aeternity Epoch
This is the [Aeternity](https://www.aeternity.com/) Epoch API.
OpenAPI spec version: 1.0.0
Contact: apiteam@aeternity.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
cla... | [
"dimitar.p.ivanov@gmail.com"
] | dimitar.p.ivanov@gmail.com |
71673848a7d58ab5d627f04535e6fa95bb7030d9 | 931a621adbfa598bd8740828a6d30d52e9821304 | /tours/migrations/0012_auto_20190404_1849.py | 91877263060bb2346c82fa0884fd459eb0ffc447 | [] | no_license | PooyaAlamirpour/Zartour | d4102d7095b187e1eca1acc8e395bcb54d134e1c | f2a59a9e5ce64eee58615cf47d0c1d534c22b864 | refs/heads/master | 2020-05-24T17:28:38.456960 | 2019-05-23T01:11:50 | 2019-05-23T01:11:50 | 187,383,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-04-04 18:49
from __future__ import unicode_literals
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tours', '0011_auto_20190404_1643'),
]
operations = [
migrati... | [
"P.Alamirpour@gmail.com"
] | P.Alamirpour@gmail.com |
0305aa72da943843e6eb123959977d0d066a616e | 9f044bfa3235a663e733e7a4c1c3476467de25a9 | /apps/models.py | 3a2b13933de4cc62924041b72b81be622e947904 | [] | no_license | richard1230/flask175_Home_Dynamically_Obtain_Carousel_Data | 60cf85b4834135c2608c6822afae3b1cfe7d1457 | 115d90dbfa22331802277c068aed24bb40f59573 | refs/heads/master | 2020-11-30T14:42:10.091896 | 2019-12-27T10:08:41 | 2019-12-27T10:08:41 | 230,420,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | #encoding: utf-8
from exts import db
from datetime import datetime
from datetime import datetime
class BannerModel(db.Model):
__tablename__ = 'banner'
id = db.Column(db.Integer,primary_key=True,autoincrement=True)
name = db.Column(db.String(255),nullable=False)
image_url = db.Column(db.String(255),nul... | [
"huyongjinnuaa@163.com"
] | huyongjinnuaa@163.com |
4dc8c53bfc1378aebcab4560c9d128583228ac0f | a50b9dfd5c3a703f0635350f93d5c1af62a6275c | /venv/bin/pip3 | f9629ddc4ce228f5b980ff2c62da744da033cd74 | [] | no_license | daniloaugusto0212/EstudoPython | 8c37475f62adad9a77c7df1d5decd11136014b5c | 2c3e4b523848cca946fc4fcc0946f3f45cd1f4ac | refs/heads/master | 2021-06-27T12:52:07.765054 | 2021-03-09T23:53:33 | 2021-03-09T23:53:33 | 222,791,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | #!/home/o1234/PycharmProjects/novo/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"daniloaugusto0212@hotmail.com"
] | daniloaugusto0212@hotmail.com | |
b24094d77418e88f7477458debc1594cdeb2b6fa | 021ce16e42120246557dfa210bef6e96a34623b6 | /tornado_sqlalchemy_login/sqla/models.py | 6769f29cf020d69ba5c5480e1a770a37fb2ae347 | [
"Apache-2.0"
] | permissive | timkpaine/tornado-sqlalchemy-login | f455b95d60d392202b46758ff230259785f7dc19 | 499bc7d79926b79352a3b9abdb864815e9896274 | refs/heads/main | 2022-12-01T22:28:06.620106 | 2022-11-22T01:46:21 | 2022-11-22T01:46:21 | 230,801,513 | 1 | 0 | Apache-2.0 | 2023-09-04T13:35:46 | 2019-12-29T20:46:05 | Python | UTF-8 | Python | false | false | 2,109 | py | import secrets
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
TOKEN_WIDTH = 64
Base = declarative_base()
class User(Base):
__tablename__ = "users"... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
92a78afdb24938e410a82db5c1f25bc42579d344 | 6c3d60415479708090a2e9760bb7b620458aa96d | /Python/django/belt_reviewer/apps/login/urls.py | 4e095ee0ec0be9bb0445a4f3e9dd7843c4e431ed | [] | no_license | bopopescu/dojo_assignments | 721868825268a242300edcb5f94b1ec32cbc6727 | 45cf4ecf1fcb513699f40d57437be7c9ab74800a | refs/heads/master | 2022-11-18T09:36:37.527001 | 2018-04-11T19:40:55 | 2018-04-11T19:40:55 | 281,831,499 | 0 | 0 | null | 2020-07-23T02:34:45 | 2020-07-23T02:34:45 | null | UTF-8 | Python | false | false | 254 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'process$', views.process),
url(r'books$', views.success),
url(r'login$', views.login),
url(r'add$', views.add),
] | [
"victordevera24@gmail.com"
] | victordevera24@gmail.com |
ad4994ace4456aa5f10d59b2268f5651f648d5f9 | 7af39ee40bd4df79ddf094fd3ecf59bedaed869f | /app.py | 36affbfd05a1657139bb3b9f094c438c9e7234f9 | [] | no_license | LeoKavanagh/sleepui | 0b35def13c2f794c29a9c9ad1efeee45aed956ff | cf8c862c84283126538a32d8fbf25635fa32aa33 | refs/heads/master | 2020-04-04T17:32:45.594262 | 2018-11-05T22:07:37 | 2018-11-05T22:07:37 | 156,125,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from flask import Flask, request, render_template, url_for, redirect
import datetime as dt
app = Flask(__name__)
# Database lol
today = dt.date.today().strftime('%Y-%m-%d')
latest_pred = []
def deep_sleep_pct(steps, mean_rate, sd_rate, dsp_lag):
# fitbit - Sleep as Android adjustment
dsp_lag /= 3
b0 =... | [
"leok90@gmail.com"
] | leok90@gmail.com |
cc980694f1318e65adc551268f9f91e3059bed20 | be5401cad765484d2971b160606ba89596364bb8 | /cbsearch.py | c13796d0f61a58b8cf31a0121f44610ef8690b45 | [] | no_license | Jashpatel1/Collaborative-Pathfinder | 60117b1aa7baa802c2bda94f8c15aa5563492a90 | 24a6f7772997b509b6fc8a2101d9b50cbfba6d25 | refs/heads/main | 2023-01-08T13:02:16.370373 | 2020-11-16T03:39:10 | 2020-11-16T03:39:10 | 305,340,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,264 | py | from util import *
from gworld import *
from visualize import *
import a_star_simple
import a_star_constraint
import random
def get_constraint_astar_path(world, start, goal, constraints=None):
ret_path = a_star_constraint.find_path(world.get_nbor_cells,
start,
... | [
"patel.5@iitj.ac.in"
] | patel.5@iitj.ac.in |
70dd220917460238b9c07da05f31e6a8feca9f20 | a97658ae4119fa4753a25620b1c546a0619065a2 | /helloworld/helloworld_project/settings.py | 9fc4cf914eca32e3c23b8006c6371593e1152c58 | [] | no_license | dhuert27/DjangoForBeginners_Exercises | b21d7ac2be9298287f4b4e40579f0fae30abf3a2 | 42e453217a9df03237e6031a70ec1418016c7fbf | refs/heads/main | 2023-04-13T16:48:44.583218 | 2021-04-22T03:24:07 | 2021-04-22T03:24:07 | 356,119,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | """
Django settings for helloworld_project project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
imp... | [
"daniel.huert2000@gmail.com"
] | daniel.huert2000@gmail.com |
c85707eeb5aa3aeb170c7db7d126ea2bef1dd8b6 | 771cf512a2875b060faa5e4040aae3a8de654998 | /python/strictConcaveArrayRecursion.py | 2cd8e4310ad745583f6689bd230222fb6f39d3c7 | [] | no_license | anirudhit/ab-projects | 466e4e5b6fc3ad7ba0d5b2983567a2dc68a7c8df | bdf2030197d6e908e0db214d46ab1d674ee59449 | refs/heads/master | 2020-07-19T11:50:11.342317 | 2019-11-20T06:35:58 | 2019-11-20T06:35:58 | 206,443,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | def findMaximum(arr, low, high):
# Base Case: Only one element is present in arr[low..high]*/
if low == high:
return arr[low]
# If there are two elements and first is greater then
# the first element is maximum */
if high == low + 1 and arr[low] >= arr[high]:
return arr[lo... | [
"anirudhit@outlook.com"
] | anirudhit@outlook.com |
d2e49530b1207762fac4e9a833f1827195ccf153 | 7830d2bbd370202844b60238dd0a2d08105f9e19 | /koch.py | dfe5cb8c1d0cc4d96547bd5a365a7cb4baf50a7e | [] | no_license | bchangip/DAE-Backend | cc4abf1ce253f46eab502c4870299ffec217c942 | 44fc7ba4901d5ec9522d9d550b0321f90837b6bc | refs/heads/master | 2020-03-30T22:40:48.948142 | 2018-10-24T20:20:00 | 2018-10-24T20:20:00 | 151,674,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,557 | py | import time
import multiprocessing
import requests
import os
import xlrd
import csv
import sys
import mysql.connector
import pandas as pd
import numpy as np
import json
import emotiv_dnn as dnn
import sklearn
from sklearn.model_selection import train_test_split
from sklearn import preprocessing, neighbors, svm
def g... | [
"pablo.koch26@gmail.com"
] | pablo.koch26@gmail.com |
4c82d791ac005304fc15575acf85f39269284e1a | f39593e3d41150feaa45dea39050ce52d0f835a0 | /crimeLA.py | 40ff5a2de61213df34debd1e54f913da35f3fdb3 | [] | no_license | jliellen/Vizathon | 888ed41c87326af36c176981927b2f97bbdb9abf | 5abb3624c334551cc9023f87c4fbe78808b2fc7b | refs/heads/main | 2023-06-20T18:50:45.851710 | 2021-08-01T16:14:38 | 2021-08-01T16:14:38 | 390,940,580 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import folium
from folium import Marker
from folium.plugins import MarkerCluster
data = pd.read_csv(r'Crime_Data_from_2010_to_2019.csv')
data = data[(data['LAT']!= 0) & (data['LON'] !=0)]
data = data.drop(columns=['DATE OCC', 'TIME OCC... | [
"noreply@github.com"
] | jliellen.noreply@github.com |
4b0bb27aea8f07ee464581db2188e2705e358034 | 35b7b5c95320fd3548c7e929ea7191ff97f0008e | /tver.py | ffc58e05042ec645f128dcc8c550e4bfe82ff731 | [] | no_license | gretastd/basik | 2fcf08dff1c0f6b82e99b9b9439696392e26b8a2 | a85fd993ce3aa7c15a6772df0d431e89366c7169 | refs/heads/master | 2020-09-13T20:21:31.493173 | 2019-11-20T09:26:12 | 2019-11-20T09:26:12 | 222,892,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | def gumar(n):
b=0
while n!=0:
a=n%10
n=int(n/10)
b=b+a
print(b)
def artadryal(n):
b=1
while n!=0:
a=n%10
n=int(n/10)
b=b*a
print(b)
def agicdzax(n):
while n!=0:
a=n%10
b=int(n/10)
b=a*10+b
print(b)
n=0
... | [
"stepanyangreta98@gmail.com"
] | stepanyangreta98@gmail.com |
3bb9eaa46dd4fe663b19945b36fc8bb4842a88a2 | 9bf13d7bd0b9e48dc31f1fd6d3e14d3402386ee9 | /lissandra/dto/league.py | 3c9a09b5bad2c347b6a48747ec03ef22bda04e5c | [
"MIT"
] | permissive | Crimack/lissandra | 04acd52c9b79e4d7946eef1e821bc8ce417a5a62 | 7f43ca70040ce054f335ad3b134e3bd4ee52ff3e | refs/heads/master | 2022-12-05T01:01:15.825441 | 2020-08-31T23:06:06 | 2020-08-31T23:06:06 | 286,707,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from .common import DtoObject
class LeagueEntryDto(DtoObject):
pass
class LeagueDto(DtoObject):
pass
class LeagueSummonerEntriesDto(DtoObject):
pass
class LeagueEntriesDto(DtoObject):
pass
class ChallengerLeagueListDto(DtoObject):
pass
class GrandmasterLeagueListDto(DtoObject):
pass
... | [
"cmckee41@qub.ac.uk"
] | cmckee41@qub.ac.uk |
fac531e71a08fa0485440c9f6fbb7d75d2bf50fd | 2befe3929950fd5d6257ed6b1f1fd5751995f22f | /solutions/merge_sort.py | 15489c9446b82baca70e9ed35dda41108dc2a0c8 | [] | no_license | redpanda-ai/ctci | a493abda7d95639ab785199ac77dfdcf529a1dd6 | a621b25b55c749a678577fad4658b0b9171f889f | refs/heads/master | 2021-07-09T18:26:17.193734 | 2020-09-26T04:02:20 | 2020-09-26T04:02:20 | 200,296,580 | 2 | 1 | null | 2023-09-14T00:36:51 | 2019-08-02T20:52:51 | Python | UTF-8 | Python | false | false | 909 | py |
def merge_sort(arr):
if len(arr) > 1:
mid = len(arr) // 2
l_arr = arr[:mid]
r_arr = arr[mid:]
merge_sort(l_arr)
merge_sort(r_arr)
i = j = k = 0
while i < len(l_arr) and j < len(r_arr):
if l_arr[i] < r_arr[j]:
arr[k] = l_arr[i]
... | [
"joeandrewkey@gmail.com"
] | joeandrewkey@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.