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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c3084d05deb4895e75b4f3656c9386de01067a15 | ee6c5924bca5ad4df64c6922129d600ae3e1ba71 | /info_Instagram.py | 725ff71e88a0df89e7bada35a956061c37bf3195 | [] | no_license | jev0m/information-div0m | f30520f912225ab10f95fd95efe6faaaee314df2 | 447c33588199f610992d7d3421afbf3ccf39e871 | refs/heads/main | 2023-03-21T13:52:24.434171 | 2021-03-19T12:59:45 | 2021-03-19T12:59:45 | 349,423,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | import requests
import pyfiglet
## By Xcode & @xcodeon1
## By Twitter : @Matrix0700
R = '\033[31m'
G = '\033[32m'
B = '\033[34m'
print(R+" @xcodeon1")
br = pyfiglet.figlet_format("Info.py")
print(R+br)
user = input(B+"username :")
print(R+"-"*40)
url = "https://i.instagram.com:443/api/v1/u... | [
"noreply@github.com"
] | jev0m.noreply@github.com |
d7590593aba400293172eda8319a4f422cb65f7f | 6655650f052a3b140f02de41b7393a24cd23747a | /D_D/getPDF.py | fb3b0e8242ff5eb0b62cc71c0b0243156728f832 | [] | no_license | bivasmaiti26/census2001auto | 5238286934c4bd82405aaf3b2830bfebe6ce2162 | 6c1a2d7e96d80d2b7e75d7a1096611bc4ef9b844 | refs/heads/master | 2020-04-22T18:48:40.621253 | 2018-01-08T15:10:47 | 2018-01-08T15:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import urllib
def downloadPDF(state_code):
#getting the string fpr state code
if (state_code<10):
string_state='0'+str(state_code)
else:
string_state=str(state_code)
i=1
while True:
#getting the string for district code
if (i<10):
string_district='0'+str(i)
else:
string_district=str(i)
try... | [
"preetskhalsa97@gmail.com"
] | preetskhalsa97@gmail.com |
107f871602e5d1be87f6b15c3d28bfc62bf8fb3b | 696bfb83e741b0ada656c633038098c5a4dcc78a | /manage.py | 234ce79ac54748a952e4022175d094416f017afd | [] | no_license | Smorta/Planning-Prom | dee5cb4186f27de596ee375bce78afd6243fb695 | 169c62f911ef3d3a6f32c949dad4592ca1072e38 | refs/heads/main | 2023-06-10T01:48:07.473233 | 2021-07-02T08:57:01 | 2021-07-02T08:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'GestioPro.settings')
try:
from django.core.management import execute_from_command_line
... | [
"noreply@github.com"
] | Smorta.noreply@github.com |
4728245652c5aa72351604934b2ca40e9612e261 | 1e44f7826fc872a480400b9f6f4658fc48d688ab | /Functions/Python/MIND/__init__.py | 2eb6e9d1916786ecefe974d8ea5c95504295f414 | [] | no_license | hsokooti/RegUn | 220e01f5957a81efb39b1351c5d1ebbc44622f82 | f029d61e1146af2992ae71d0f59c6e881db95aad | refs/heads/master | 2022-05-04T05:10:38.485534 | 2022-04-21T21:42:49 | 2022-04-21T21:42:49 | 151,310,972 | 25 | 5 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from .pyMIND import *
from .search_region import *
__version__ = "0.1.0"
__author__ = "hsokooti" | [
"h.sokooti_oskooyi@lumc.nl"
] | h.sokooti_oskooyi@lumc.nl |
7ca78d0c38317f6f641d8132aba60941648200ba | de0cabc94e287cec4ff07c186cc6c708eab168e2 | /flea/translate.py | 14576b0fd88fb755aa69c497aa33c9551ea9cca9 | [
"MIT"
] | permissive | chudym2/flea-pipeline | 453536af2838c6f25c30765f4f4465da5a9d6591 | 2bb29d793a1c35a2f344cca70d1f3b768a5760cc | refs/heads/master | 2022-03-18T13:51:30.068639 | 2018-08-31T20:24:53 | 2018-08-31T20:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | #!/usr/bin/env python
"""
Translate DNA reads from a fasta file.
"""
import sys
import click
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.Alphabet import IUPAC, Gapped
from flea.util import insert_gaps
def _translate(record, gapped=False):
result = record[:]
if gapped:
translated = reco... | [
"kemal@kemaleren.com"
] | kemal@kemaleren.com |
ff8d820c965642aa2c3f657c8f50044852250de7 | 95dd3f021a03d408e93b40f498e58c7b07abb796 | /gans/cgan.py | 4a16c4d40226b0c455b3cbcfd51a9789fdd5e258 | [
"MIT"
] | permissive | er-Bot/gans | 18e1c46352c7b2d7591eb3ca0e7335bb97ea5e69 | fc19446750e10896dd3b1746b0ccb3c4d3b5ed8d | refs/heads/main | 2023-03-15T09:04:20.926340 | 2021-03-09T00:57:57 | 2021-03-09T00:57:57 | 345,826,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,594 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from tqdm.auto import tqdm
from torchvision.utils import make_grid
import matplotlib.pyplot as plt
__all__ = ["Discriminator", "Generator", "CGAN"]
criterion = nn.BCEWithLogitsLoss()
hidden_dim = 128
class Discriminator(nn.Module):
def __init__... | [
"jammalenneiym@gmail.com"
] | jammalenneiym@gmail.com |
1e56c59f16fa254f98929f77a0edee61254cf15d | 611c90d319a127c6f42135dd2762ffe79fe2a492 | /lecture5/dynamic_member_variable.py | bb181439860048545828d7077545a07816000df4 | [] | no_license | wduan1025/python-intro | 8d84f405653a5a599fcca1b223bbe82a2cb55769 | 8628d8fa41182a2f69c7d75c3feeffa8d0e48090 | refs/heads/master | 2022-04-15T12:26:31.432536 | 2020-03-29T02:02:33 | 2020-03-29T02:02:33 | 247,553,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | class Animal:
pass
a = Animal()
b = Animal()
a.name = "Charles"
print(a.name)
# print(b.name)
Animal.name = "Charles"
print(b.name)
c = Animal()
print(c.name)
| [
"weiduan1025@gmail.com"
] | weiduan1025@gmail.com |
f3b344d9bd81f498554471e88f34378fee094fa7 | 5a5e0a01efa6ef0961992e53bb4f64840f93150b | /RegressionVisualizer/manage.py | b5db558ef481979ffecd909114ebd0e5bdf372b6 | [] | no_license | scotteskridge/RegressionApp | ed059e3205ab54061129779404345b55c0dee75c | 68932a9c94235a1e8bd6cd71a765b545f2266189 | refs/heads/master | 2021-01-19T20:48:13.495541 | 2017-04-25T02:39:49 | 2017-04-25T02:39:56 | 88,555,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "RegressionVisualizer.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ens... | [
"scott.eskridge@gmail.com"
] | scott.eskridge@gmail.com |
ea09b50bd4b3672b1c0b6ad53faf51b40e8941a7 | eaeacaef534ee2bd8f33928b615134037868b660 | /createDF.py | 9f696492a8566c368456e813c6d6dd33ad9dc2a7 | [] | no_license | tkShir/TOPIX-Price-Signal-Analysis | 42d533a0afe44872c43fa4ee02e8b1abe2628c20 | ad80354573590b7ce4236a7bf28dbb3aa498c9d0 | refs/heads/master | 2021-08-16T23:34:15.138854 | 2020-05-06T03:52:26 | 2020-05-06T03:52:26 | 176,823,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | import pandas as pd
def create_df():
pd.set_option('display.max_columns', 500)
index_list = ["GSPC", "DJI", "IXIC", "STOXX50E", "RUT", "N225"]
fx_df = pd.read_csv("FX.csv", encoding ="shift-jis", header = 2)
fx_df["Date"] = pd.to_datetime(fx_df["Date"])
#fx_df = fx_df.add_prefix("")
#print... | [
"takashirono@gmail.com"
] | takashirono@gmail.com |
0bdb9d4f4e95b0c5eefe477b1bd396427419e433 | 28686b6c3670539ae00f80ced4533a41dc59d165 | /efs-server/dropbox/dropbox.py | acd0644a74f13bd76da9970855e862babf72d842 | [] | no_license | hicksmatt/EFS | 61eb326246ff114227d42a2ccf5606e844bc7e3c | c101f1bdb07091b2ae82f22dea0f9d0182be2919 | refs/heads/master | 2021-01-10T10:02:31.266934 | 2015-12-04T17:51:55 | 2015-12-04T17:51:55 | 47,127,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,338 | py | __all__ = [
'Dropbox',
]
# TODO(kelkabany): We need to auto populate this as done in the v1 SDK.
__version__ = '3.42'
import contextlib
import json
import logging
import os
import random
import six
import time
import requests
#from . import babel_serializers
import babel_serializers
from .base import DropboxBas... | [
"mhicks34@gatech.edu"
] | mhicks34@gatech.edu |
8469347fb48f63964d990558280d45cfb929ffc9 | c237dfae82e07e606ba9385b336af8173d01b251 | /lib/python/ZPublisher/Client.py | dba20da517921245ef45d6e504060b5b852fa055 | [
"ZPL-2.0"
] | permissive | OS2World/APP-SERVER-Zope | 242e0eec294bfb1ac4e6fa715ed423dd2b3ea6ff | dedc799bd7eda913ffc45da43507abe2fa5113be | refs/heads/master | 2020-05-09T18:29:47.818789 | 2014-11-07T01:48:29 | 2014-11-07T01:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,145 | py | #!/bin/sh
""":"
exec python $0 ${1+"$@"}
"""
#"
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL... | [
"martin@os2world.com"
] | martin@os2world.com |
8f8762deb83a2f972b91a97496916672ba78463c | 672b1583ba4d741a156aa907d1c70c6624d863ea | /dataclean.py | 5fa9205f88d0a82fbaef3ec614b9f8971c831512 | [] | no_license | IsaDash/Lake-Acidity-Modeling | 1c4b2e9601650eaec4f5bb7e30a2545926836218 | 82768d109981a2a9fcb827f776ddc4e5c4aadd18 | refs/heads/master | 2023-01-31T22:14:53.330143 | 2020-12-14T20:31:40 | 2020-12-14T20:31:40 | 320,958,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import csv
import pandas as pd
# infile = open("acid.csv", "r")
# outfile = open("lake_data_transformed.csv", "w", newline="")
# in_csv = csv.reader(infile)
# out_csv = csv.writer(outfile)
# for row in in_csv:
# to_add = True
# if row["SIO2_MG_L (silicon dioxicde)"] == None:
# continue
# else:
# ... | [
"anchald2@illinois.edu"
] | anchald2@illinois.edu |
b387790e62a38f3fc59bf502196005745fe5cb11 | 74a71d176b25c4bc8b17bf4a4a0a8e7f2c92feb8 | /testScripts/noiseAccuracy.py | 21c872ebf001e7efe29964666589d85b8ce3d219 | [] | no_license | CharupriyaSharma/eBNSLNoisyOR | 14421c666af5220059d38f48ff1b843769575e2e | 3718710a32c8b301823c30c83e9c0cd0218c6c83 | refs/heads/master | 2022-12-13T06:02:04.613443 | 2022-12-07T05:05:21 | 2022-12-07T05:05:21 | 264,725,058 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | import sys
import os
noisefile = sys.argv[2]
freg = open(noisefile, "r")
fmerge = open(sys.argv[1] + "_noise_compare", "w+")
#get var count
n= int(sys.argv[3])
realNoise = [0]*n
computedNoise = [0]*n
error = [0]*n
for i in range(n):
#get scores for ith variable
item = freg.readline()
items =... | [
"charupriyasharma@Charupriyas-MacBook-Pro.local"
] | charupriyasharma@Charupriyas-MacBook-Pro.local |
59e5cf0f81cff22c4432f07f3fb01378f5ceed91 | 18e4fffb093c8bb1fdbf59801bfa24345ce0f7cc | /test_ping.py | 8c01d793c34486e4ec363388c66deb5ad6bd58f6 | [] | no_license | Nikisn/Check_config | fccd0d33f87a004853a5128cbbfd179c610ca8f7 | 8a7b0dc793570f0bfb84cc0029ef616f8751bf20 | refs/heads/master | 2023-01-22T01:13:00.463038 | 2020-12-03T12:58:46 | 2020-12-03T12:58:46 | 271,091,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | from netmiko import ConnectHandler
from textfsm import clitable
import yaml
with open ("hosts.yaml") as f:
ping_src = yaml.load(f)
ping_dst = {
'r1':'ping 1.1.1.1 -c 4',
'r2':'ping 2.2.2.2 -c 4',
'r3':'ping 3.3.3.3 -c 4',
'r4':... | [
"noreply@github.com"
] | Nikisn.noreply@github.com |
6cc1542064216d2c36184802c5ba5aaf719fec2f | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ALCATEL-IND1-E-SERVICE-MIB.py | 6ac2637b7fc0d24af9f67b9e0d9c926639877700 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 47,663 | py | #
# PySNMP MIB module ALCATEL-IND1-E-SERVICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-E-SERVICE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:17:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
4be926645d799b5ba94de45a6cc2f96033dd6cea | b8b4e487a084c707bbc994214edf36c9a2710e00 | /project/analyze.py | 6f5679bf3bcfc6bc0a8d68f7ee936a98c1ecf767 | [] | no_license | kp-john/project | de6a26abea3076cefab50a0371661c7a5db6a756 | 00a9fc19d09b8a1f580c6394f8a82ea4b5179506 | refs/heads/master | 2023-08-15T08:51:32.189677 | 2021-10-21T08:46:13 | 2021-10-21T08:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import stockdata, corona
import sys
import pandas
#"Malgun Gothic" 폰트 설정
sns.set(font="Malgun Gothic",
rc={"axes.unicode_minus":False},
style='darkgrid')
if __name__ == "__main__":
app = stockdata.QApplication(sys.argv)
t... | [
"qkfkadlemf@naver.com"
] | qkfkadlemf@naver.com |
e8b477d1afa64079ec213f67159d6fe7a9737249 | 782bb76a8f26874883baa0162a7e23f1b8bd8ae1 | /img_conversion_using_cv2.py | 46814bbae57413105d6888a3d7bae3b1197b9ac1 | [] | no_license | DivyaReddyNaredla/Python | a34c2259b1deaa74fbcc2c09eb7ab75a59b4b76c | a8f6f9315501979630e4d5be2a46b10a479736be | refs/heads/master | 2022-10-20T07:56:37.873467 | 2020-06-05T05:42:12 | 2020-06-05T05:42:12 | 269,540,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import cv2
img = "ibm.png"
img1 = cv2.imread(img)
cv2.imwrite("ibm2.jpg",img1)
| [
"noreply@github.com"
] | DivyaReddyNaredla.noreply@github.com |
3475609803c5fec24d9602e8f2f214ff2e1146fa | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/products/migrations/0028_auto_20200119_1557.py | e26102391438dd63340bedc439d85503f7d4b02e | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 521 | py | # Generated by Django 2.2.8 on 2020-01-19 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0027_auto_20191217_0738'),
]
operations = [
migrations.AlterField(
model_name='product',
name='price',
... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
5ae8895b70d3c766d80a1f22a634ad71a70d012e | ab1d0fcd4900e0a88d49999cbbde4b06cc441e5d | /Labs/Lab 5/lab05_soln/raytracer_main.py | 9cd89a7bb62e8dba71c76dd33c177a47aecd373e | [] | no_license | ThomasMGilman/ETGG1803_ConceptsOf3DGraphicsAndMath | bf261b7ce16bb686e42b1a2600aa97b4f8984b65 | fdf4e216b117769246154cd360b2c321f4581354 | refs/heads/master | 2020-03-29T23:14:05.715926 | 2018-09-26T17:18:25 | 2018-09-26T17:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | import raytracer
import objects3d
import time
import pygame
import math3d
caseNum = 2
# Pygame setup
if caseNum == 1:
win_width = 700; win_height = 150;
elif caseNum == 2:
win_width = 800; win_height = 600;
else:
win_width = 300; win_height = 200;
pygame.display.init()
screen = pygame... | [
"Thomas.Gilman@ymail.com"
] | Thomas.Gilman@ymail.com |
98dedda4af53cd513aba1f2a0550e46f1b00586d | 0afc304e4b808e729d62cdd9e7d9643a411d1677 | /config/urls.py | 6bc9ecf2264a784c50b80eec74046851ef8e28c5 | [] | no_license | lisa4930007/One | f9a85bd4e1b7c931f65f3bd64deaf4e79435465f | a225096fc7e2a3004a0f26049276613f03df7802 | refs/heads/master | 2023-05-14T04:48:47.321243 | 2021-04-22T13:36:17 | 2021-04-22T13:36:17 | 357,780,705 | 0 | 0 | null | 2021-06-05T02:29:32 | 2021-04-14T05:06:36 | Python | UTF-8 | Python | false | false | 980 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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 ... | [
"lisalai@gapp.nthu.edu.tw"
] | lisalai@gapp.nthu.edu.tw |
945eaa648ef3e5cb13a1bccac23e9c28d10512c0 | 5c8eaf49e53146601fefbfe3b8d40fa78c4bcd69 | /pysot/toolkit/datasets/v4r.py | ddba28b8abb2b8d0dc411543182814f8da1c1782 | [] | no_license | Louis-Leee/Ad2Attack | c6116333d87fecd147a154425fa1c86e909dc508 | 900c0bdfb01a3c72d544b135cff8057d0680dcbb | refs/heads/master | 2023-08-14T11:43:57.223463 | 2021-09-24T12:39:50 | 2021-09-24T12:39:50 | 409,960,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | import json
import os
import numpy as np
from PIL import Image
from tqdm import tqdm
from glob import glob
from .dataset import Dataset
from .video import Video
def ca():
path='/home/louis/Documents/V4RFlight112'
name_list=os.listdir(path+'/data_seq')
name_list.sort()
a=len(name_list)
b=[]
... | [
"17721296636@163.com"
] | 17721296636@163.com |
652f83eed911d77706a697850b58219dc87667dd | cd86185c0370a641f6c5f9ef20b0be56d9eb60bf | /docs/conf.py | 575bb97827b864c0b46eac3ddcd5d7ad576c6831 | [
"MIT"
] | permissive | lesamouraipourpre/CircuitPython_Candlesticks | f61a7622d91aab3e85ab1aa40f342279d2a98a21 | 70057ffd12c5a2064d94c637b1fcc113a3202128 | refs/heads/main | 2023-06-16T04:55:29.135765 | 2021-07-05T13:57:45 | 2021-07-05T13:57:45 | 385,964,651 | 0 | 0 | MIT | 2021-07-14T14:13:54 | 2021-07-14T14:13:53 | null | UTF-8 | Python | false | false | 5,645 | py | # -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import os
import sys
sys.path.insert(0, os.path.abspath(".."))
# -- General configuration ------------------------------------------------
# Add any Sphinx extension module names... | [
"jquintana202020@gmail.com"
] | jquintana202020@gmail.com |
2620861cf54ff2d1ae44aed67d936dd807aed01f | f6e561772157156db860284aac46c2a596686a4d | /PyQt4 IDE/microhope_lib/__init__.py | e75a29d31a77730446531eebe0e3b4e0ba82b5c1 | [] | no_license | JosekuttyMJ/microHOPE | 5cb1c9fda4ff353caa34c915e7ac1390fe52aa1d | fce58402bf5fbf4fc6ed980bb7721823a431174f | refs/heads/master | 2020-12-03T09:33:38.599012 | 2015-01-28T06:56:11 | 2015-01-28T06:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | __all__ = ["mh_latest_ui"]
| [
"arunjayan32@gmail.com"
] | arunjayan32@gmail.com |
af65bdd5edd78745f8c63e9d570bc61d19f4926b | 9e5977a915b669c62085c0c5d806a27e7c7481d7 | /advent_of_code/2021/day15/main.py | 73a4d117398067dda20f099d6ff5c3e56ae69004 | [] | no_license | antoinemadec/test | f9ddecc6c045170e3dfa63c6a230bc3939c8cf02 | c0865b71fc167fc0085fd8e564628753d9aa0b94 | refs/heads/master | 2023-08-02T20:44:57.288423 | 2023-07-26T19:29:41 | 2023-07-26T19:29:41 | 93,432,340 | 1 | 0 | null | 2023-04-18T13:59:41 | 2017-06-05T18:01:16 | Verilog | UTF-8 | Python | false | false | 2,125 | py | #!/usr/bin/env python3
class Pos:
pos_dict = {}
def __init__(self, pos, weight):
self.pos = pos
self.weight = weight
self.lowest_risk = None
self.pos_dict[pos] = self
def get_ripple_positions(size, i, reverse=False):
positions = []
for x in range(size):
if x >... | [
"ajamadec@gmail.com"
] | ajamadec@gmail.com |
6b78cdf809dea0a3f7a9ae6213b26cbed2fb32f6 | d411624ab2f176b9b475c91af4eaeca30b309723 | /wordcount/settings.py | df82733a196449d6c1b46185be029f5f9398407e | [] | no_license | sumanta-ghosh/wordcount | bcb8e4c0f1629a0960066b3afe8d62c741b864f8 | 65bc5844338b97da12e33e78cd4452597f87c65b | refs/heads/master | 2021-01-04T18:34:13.167015 | 2020-02-15T12:58:34 | 2020-02-15T12:58:34 | 240,711,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for wordcount 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
... | [
"sumanta.ghosh.mit@gmail.com"
] | sumanta.ghosh.mit@gmail.com |
30591b5a81ad213a23a3274b5b6e3b178d939eb7 | 578ff132c94d9f423951f16168e18de5e845d50e | /worktestauthproblem/models/permissions.py | ea142b192197c9c989466617beb8440690bd2c84 | [] | no_license | shsaraswat06/application-security-toptracer | fe7b27778d7f8a1ed3bef4ef851b9774dea9040c | a1452d9d1db7c05e9d2feb766bcc2b46a00b2bf9 | refs/heads/master | 2023-06-10T07:07:25.324402 | 2021-06-30T10:19:42 | 2021-06-30T10:19:42 | 381,659,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | from .orm import Orm
class Permissions:
def __init__(self, service_name):
self.service_name = service_name
self.resource = 'permissions'
self.orm = Orm(resource_name=self.resource)
self.permissions = self.orm.get()
def get_permissions(self):
permissions = next(
... | [
"shubham.saraswat@oneflow.com"
] | shubham.saraswat@oneflow.com |
7c4343aef9f3c59310652592b24a9c9ec8231a1c | b9e715b6a6ec1ade7f5e73e4b1f93b2425ca6cf0 | /gemini-FT-proposal-5-2017/get_galex_cutouts.py | 5ed3deea3550fa8b6378e8f19d3c9853f5449223 | [] | no_license | johnnygreco/notebooks | 1449bffbb17ac2e7c52713fadfe12a69c33a6fc5 | fb9e56d1f0f217287c3b2a23c26f89c53055db4f | refs/heads/master | 2021-01-17T07:49:06.672665 | 2017-09-29T23:10:07 | 2017-09-29T23:10:07 | 59,698,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import sys
sys.path.append('../../../projects')
import cutouts
import hhana
from astropy.table import Table
galex = Table.read('data/gemini-ft-sample.csv')
targets = [139, 118, 230, 27]
for ID in targets:
prefix = 'figures/hugs-'+str(ID)
ra, dec = galex[galex['hugs-id']==ID]['MatchRA', 'MatchDEC'][0]
cut... | [
"jgreco@astro.princeton.edu"
] | jgreco@astro.princeton.edu |
2f944d70bb962407accb344b9ede5c40b2f7a3a7 | cd7166c7b6332b4c331f9bb10986d7af298a605a | /Config.py | 5c50cb5ed342bf9368be64c712354e695b96d045 | [] | no_license | tuanquanghpvn/socket4py | a795ff3bbb64e41f72e42a619d70165fc77084fe | 53e21524cfd97010ccbd0971b1b969467d09e193 | refs/heads/master | 2020-05-18T00:49:59.976982 | 2015-03-11T06:23:05 | 2015-03-11T06:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | __author__ = 'JsAndPy'
class Config:
# Init Socket
HOST = 'localhost'
PORT = 2222
| [
"tuanquanghpvn@gmail.com"
] | tuanquanghpvn@gmail.com |
8792fc4efc127501c899b6e063144b028ff7beab | 6071a7d86d3a6ad2a4253278b5b79d3c59c3849c | /bitcodin/test/output/testcase_get_s3_output.py | 998de6608ed7f6a05c7b3d054d2056660245b711 | [
"Unlicense"
] | permissive | pavanpalli/bitcodin-python | a3145aae4e4bd6600611401b834f76d9e62df917 | 53b534dfb9cb23d9fb409e38cb4207277aee957f | refs/heads/master | 2020-12-25T05:53:57.483768 | 2015-08-05T06:49:28 | 2015-08-05T06:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | __author__ = 'Dominic Miglar <dominic.miglar@bitmovin.net>'
import unittest
from bitcodin import create_output
from bitcodin import delete_output
from bitcodin import get_output
from bitcodin import S3Output
from bitcodin.test.settings import aws_config
from bitcodin.test.bitcodin_test_case import BitcodinTestCase
c... | [
"dominic.miglar@w1r3.net"
] | dominic.miglar@w1r3.net |
b444b19a3bf1da0d3d18e4fd044a8a7ef7641a4a | 3e607e43f264a4020c010422f0b2f9919c298033 | /start.py | 1fdf1a1cb2c657528449253971922a2165d8f301 | [] | no_license | MagnusBordewich/Pibot | a74529371d93950bdecc9e73aa4254038a443a74 | 484dc97d5b8cf7f770cd6dabd1896cf29ba1564f | refs/heads/master | 2021-01-10T16:17:21.072658 | 2016-03-01T12:48:34 | 2016-03-01T12:48:34 | 52,875,832 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | import numpy as np
import copy
import cv
import cv2
import time
import os
import StringIO
from BrickPi import * #import BrickPi.py file to use BrickPi operations
import threading
os.system('sudo modprobe bcm2835-v4l2')
side = 0
w=80
h=60
turning_rate = 60
running = True
time_limit=60
startTime=time.time()
BrickPiSet... | [
"m.j.r.bordewich@durham.ac.uk"
] | m.j.r.bordewich@durham.ac.uk |
55e82a61b41e201ad163f255e9179fc6a9b7ce58 | a4c3eb6ce6e1a04d2d4909a808e61fe22d6c7817 | /Supplier/migrations/0033_auto_20200826_1232.py | 38233fdf5ea709c812d7344e611f1c9b6598257e | [] | no_license | AIMsnet/Backend | 2522d192ef1e1a95e49a7d4c0b3a83c77660dcf1 | 42a32850a88eebd038df3fee47f94309c76e005a | refs/heads/master | 2023-02-22T13:51:54.531918 | 2021-01-28T09:08:44 | 2021-01-28T09:08:44 | 267,277,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | # Generated by Django 3.0.6 on 2020-08-26 07:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Supplier', '0032_auto_20200825_1354'),
]
operations = [
migrations.AddField(
model_name='product',
name='description... | [
"hasnainshaikh31@gmail.com"
] | hasnainshaikh31@gmail.com |
c0c758ec3f45045fd732d1505955fd973d3253de | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc036/D/4119191.py | 5214b136ffa3fbda10cfeb4ddda4f643d5080a9d | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | import sys
stdin = sys.stdin
sys.setrecursionlimit(10**5)
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline(... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
60597c73a482cbddf64360493f4c0f493476a87e | 8b0b2711dd95943a3623e6cdd63a4bc4aa906cb0 | /app/config.py | 141f98655d89fa601206eb482c4cf3564399780f | [] | no_license | raycursive/overwatch_stats | 18a71934cbf1bb219e807978aafe5fb98ee9fafe | 99f95f84548846336c3d0449a41a68dc34e98102 | refs/heads/master | 2020-06-22T14:36:12.302372 | 2019-07-19T08:26:00 | 2019-07-19T08:26:00 | 197,730,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | MONGO_URL = 'mongodb://127.0.0.1:27017/ow_stats'
| [
"m@raycursive.com"
] | m@raycursive.com |
12b7d32876e7618f91c79671a447d6a02a6f5d9a | 4be92d2ea9ede0084f31cda1f51acdadf1392043 | /dags/src/authorization.py | 0672971540249f899e58b98d999d9e7947038a58 | [] | no_license | rohitamale18/airflow_demo | 3c5a55d4d40197090e42f2081577f746abb1dc96 | 6c6eca90c148179f577483258a4efa9f85e8af67 | refs/heads/master | 2022-12-07T12:02:27.390489 | 2020-07-28T19:08:07 | 2020-07-28T19:08:07 | 283,300,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | import os
from src.logger import get_logger
import boto3
from airflow.models import Variable
logger = get_logger(__name__)
class Authorization(object):
def __init__(self) -> None:
self.value = None
def set_key(self, key):
self.value = Variable.get(key)
def get_key(self):
return... | [
"rohit.amale@woodmac.com"
] | rohit.amale@woodmac.com |
fb3af5de3c27d3150ece8709175402b61b6aeb73 | 08dcd0424d8ea0ae357d75b69a25c4b90653dec7 | /DRP/migrations/0025_auto_20160524_1613.py | 17dcd2cca4980f60fc0f8d0c5fc94471283384ed | [] | no_license | zhaojhao/DRP | fb2a834ce8297855bd8e74e41140940db5501b68 | eae2009eadf87ffd2378233f3e153d385f4654d2 | refs/heads/master | 2021-01-18T10:33:26.395991 | 2016-06-20T17:31:50 | 2016-06-20T17:31:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('DRP', '0024_auto_20160512_1658'),
]
operations = [
migrations.AlterField(
model_na... | [
"padler1@haverford.edu"
] | padler1@haverford.edu |
f58c19c5218fc279438b07e3ca1976d176013a3a | 2868a3f3bca36328b4fcff5cce92f8adeb25b033 | /+100ns/Co_optimized/step1_dc/set.py | 25b40663a2257d720ef9bd0d368b0791db804c94 | [] | no_license | linfranksong/TM-enzyme_input | 1c2a5e12e69c48febd5b5900aa00fe2339d42298 | 6e46a5b2c451efb93761707b77917a98ca0bfedc | refs/heads/master | 2022-03-19T19:49:09.373397 | 2019-12-04T00:11:59 | 2019-12-04T00:11:59 | 205,220,795 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | import os
dir = os.path.dirname(os.path.realpath(__file__)) + '/'
#for a in [150,200,250,300,350,400,450,500,550,600]:
for a in [150]:
#for a in [200,250,300,350,400,450,500,550,600]:
os.system("rm -r %s_dc_repe"%(a))
os.system("cp -r temp/ %s_dc_repe"%(a))
adir=dir+ "%s_dc_repe/"%(a)
os.chdir(adir)
os.syste... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
ffbebed7bde154343f092f82297bf03461a5e933 | d1a118e40bd725a4ceac57abefed5e2d69b6bc9d | /request_sign/signature.py | b10cf7a02495973e9b19861087dc2ae34129400a | [] | no_license | yongzhengw/django-request-sign | a9cc8f4b4f9940f3dea8bdd10f407305a15b97df | 812aa26ea8a40db8d2820f42a52f1c05e363a61d | refs/heads/master | 2023-07-17T05:17:24.863434 | 2021-08-17T09:40:14 | 2021-08-17T09:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | """
@author: liyao
@contact: liyao2598330@126.com
@time: 2020/8/14 4:39 下午
"""
import json.decoder
import re
import hashlib
import logging
from datetime import datetime
from urllib.parse import unquote
from django.core.cache import cache
from request_sign.settings import (
SIGNATURE_METHOD,
SIGNATURE_SECRET... | [
"liyao2598330@126.com"
] | liyao2598330@126.com |
eb04f67d1f28d2896c4f7cf56d21b890101b979e | dea576f4d05f91eba81c31a0a98f2d2bad93a7a5 | /pandasDataFrame.py | 2e5678ab5cf10173f09fcbf0b0effc83e5943765 | [] | no_license | bastianposey/PANDAS | f4d896500dcdb3cfb319fae1c1ffc7387c91a74a | 26a59bcda0c9ed91f492f7a06ba279191cfc3af7 | refs/heads/master | 2023-09-05T01:44:44.324899 | 2021-10-13T22:18:13 | 2021-10-13T22:18:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | import pandas as pd
grades_dict = { 'Wally': [87,96,70],
'Eva':[100,87,90],
'Sam':[94,77,90],
'Katie':[100,81,82],
'Bob':[83,65,85]}
grades = pd.DataFrame(grades_dict)
grades.index = ['Test1', 'Test2', 'Test3']
#print(grades)
#print(grades['Eva'])
#p... | [
"bastian_posey2@baylor.edu"
] | bastian_posey2@baylor.edu |
acd65c46ffa5dd3f4fa612a415887f694e67e27f | 9a6c5607ae6f6305f1427fe5ee37ab8a0aa9b710 | /0 Python Fundamental/25.c.filter.py | bf848a8ad7d8b4c95625bf195a090ed00fc3af2e | [] | no_license | raviitsoft/Python_Fundamental_DataScience | 3796b957751a6d9125452bcf2aa409e64d7c8d8a | 6f99fdd187646f0d28ffd4ddbe3ace4597c47967 | refs/heads/master | 2020-12-22T19:39:46.814043 | 2020-01-28T09:04:55 | 2020-01-28T09:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | ages = [5, 12, 17, 18, 24, 32]
def myFunc(x):
if x < 18:
return False
else:
return True
adults = filter(myFunc, ages)
# print(adults)
# print(list(adults))
#############################
z = filter(lambda a: True if a >= 18 else False, ages)
print(list(z))
z = filter(lambda a: a >= 18, ages)
print(list(... | [
"lintangwisesa@ymail.com"
] | lintangwisesa@ymail.com |
2a6b93697a823699f907bd04a3d16ae2b742d3dd | 8b683dd48ad3021990ca5133ec24a1ab260b687c | /worm_plates/collect/refine_coords.py | c86eb3c3b422cbf802411536855a272433f692d0 | [] | no_license | ver228/worm-eggs | fd4afa13cba12f6553c0e8225fb591d9ea3806f1 | 0b2db08d9d81c3b31d9ebcd593059db02b3ee2fe | refs/heads/master | 2022-04-01T06:29:56.358944 | 2020-02-14T15:55:39 | 2020-02-14T15:55:39 | 240,544,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 1 16:22:37 2019
@author: avelinojaver
"""
from pathlib import Path
import pandas as pd
import tables
import tqdm
import cv2
import numpy as np
from skimage.feature import peak_local_max
from scipy.spatial.distance import cdist
from scipy.optimize... | [
"ver228@gmail.com"
] | ver228@gmail.com |
2cc01a5bcad3b82724cee5c8768f5a5ce0700964 | 29929e5236a44fb315792f0aa21f7d81f8ce3b3e | /autos/migrations/0001_initial.py | f32828470630a008050b8685082931282f63540a | [] | no_license | hell0ut/DjangoTesting | fa175ec48b3e420f7f5324d9211830ff0c695d80 | a00e8bbc947cd7522144945c3f8b2f1d72fca37f | refs/heads/master | 2023-08-16T07:00:19.149461 | 2021-09-25T23:02:50 | 2021-09-25T23:02:50 | 284,971,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | # Generated by Django 3.1 on 2020-08-08 14:21
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Make',
... | [
"hell0ut@users.noreply.github.com"
] | hell0ut@users.noreply.github.com |
bd7b287b4684f03a23b44c0db107bd72b40c3163 | 747ec225125c19acb0838ce4270c990deb0e1a15 | /src/utils/writecsv.py | 2496cb08a7e972a273c4c1fe994eb39de2bd6e58 | [] | no_license | juanjo3ns/gridworldRL | c2d01d9b3add464e22ea6a7687774a9967ca009d | e119d97c9b9a0d401f16be45b90e1d1fe7dfe52d | refs/heads/master | 2022-07-10T04:16:53.167556 | 2019-08-10T19:11:06 | 2019-08-10T19:11:06 | 188,305,100 | 0 | 0 | null | 2022-06-21T22:03:04 | 2019-05-23T20:54:09 | Python | UTF-8 | Python | false | false | 583 | py | import csv
import os
class CSV:
def __init__(self,type, version , file):
self.path = '/data/src/csvdata/'
if not os.path.exists(os.path.join(self.path,type)):
os.mkdir(os.path.join(self.path,type))
if not os.path.exists(os.path.join(self.path,type,version)):
os.mkdir(os.path.join(self.path,type,version)... | [
"juanjo.3ns@gmail.com"
] | juanjo.3ns@gmail.com |
b47a4a5a30e4c6a69d65b10c5957b45ee232cebb | f1a313e07e512649d513de1cbf43a680222a2a08 | /classes/fan.py | debb1a32ab2a6e57fed56479d558dcc74e6158a9 | [] | no_license | ambrogio-galbusera/gr0g | 04ba61ad8c33ed563e4dc8cac3fdd5c57a05f537 | 78658513c052e89f7823ff4027f7ae7e6fbd8f39 | refs/heads/master | 2023-02-04T04:16:13.656160 | 2020-12-20T08:37:38 | 2020-12-20T08:37:38 | 309,800,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | import gertutil as gu
class Fan:
fan_channel = 2
fan_freq = 1000
def __init__ (self) :
print("[FAN ] PWM brushed on board {}, channel {}".format(gu.board, self.fan_channel))
gu.pwm_init(self.fan_channel)
gu.pwm_set(self.fan_channel,self.fan_freq,0)
def set (self,dc) :
... | [
"amgalbu@gmail.com"
] | amgalbu@gmail.com |
3402c917b6adeac02e37b98b2e7fb951b691c3b0 | 7797913bc78cfa0cfdb30813d4268e02770722e0 | /Section 1/Q13.py | 6c52afab4b9f16447181fdd6bccb59c92347316f | [] | no_license | pkoi5088/CodeFestival | ecdf5dbdbc78793fd093a614f60d2639a68bffb3 | cdc3065f6a2557936432f09344d5bfa09ff8b651 | refs/heads/main | 2023-03-19T14:49:02.488625 | 2021-03-14T03:20:15 | 2021-03-14T03:20:15 | 345,632,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | planet={1:'수성',2:'금성',3:'지구',4:'화성',5:'목성',6:'토성',7:'천왕성',8:'해왕성'}
N=int(input())
print(planet[N]) | [
"pkoi5088@gmail.com"
] | pkoi5088@gmail.com |
e4a1d05206a0a5d258b62ecda07b2e6abc7290b0 | dd5e7feb8fd98f77c6a5597e37c666cf97b71ee3 | /py/cnn_miracle_check.py | 1066651cc740b90cf87689b119953f30fbdb5c6a | [] | no_license | N-31V/robotic-software | 1d6706baa746cabf404cd0c17fc5a14ad03f1088 | 7aa1933394978cf07f8d62b915088c1b7c8cc940 | refs/heads/master | 2021-07-21T22:47:01.740444 | 2020-05-30T19:06:37 | 2020-05-30T19:06:37 | 173,922,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #!/usr/bin/env python3
from cnn_miracle import *
import cv2 as cv
import sys
import argparse
def createParser ():
parser = argparse.ArgumentParser()
parser.add_argument ('-o', '--old', action='store_true', default=False)
return parser
if __name__ == '__main__':
parser = createParser()
namespace = ... | [
"litvintseva.ann@gmail.com"
] | litvintseva.ann@gmail.com |
b4648464a36f3eb658eb2eb905a4d93fc19c34f4 | d0f0cad6484b70838078efc01f6ec4122b489be4 | /dz7/3.py | 8b6508ae1f7036b0a49273111a114549c2771f21 | [] | no_license | w2kzx80/py | 9543f6e3d89ee546adfd0e8d48a1accbefb18409 | 0f54a95a2e72eb5cba0442d3be233f23722529f6 | refs/heads/main | 2023-01-28T17:54:47.662471 | 2020-12-02T18:05:00 | 2020-12-02T18:05:00 | 308,981,748 | 0 | 0 | null | 2020-12-02T18:05:02 | 2020-10-31T22:20:07 | Python | UTF-8 | Python | false | false | 1,512 | py |
class Cell:
def __init__(self, ccnt:int):
self.ccnt=ccnt
def __str__(self):
return f"{self.ccnt}"
def __add__(self, other):
if type(self) == Cell and type(other) == Cell:
return Cell(self.ccnt + other.ccnt)
raise TypeError
def __sub__(self, other):
... | [
"w2kzx80@gmail.com"
] | w2kzx80@gmail.com |
ea192e4b23bffcdc8beec6046e91bd58a61df8fb | 168dfe4755fe68bc3ec43a70d87197645b5ed98c | /Crossin/test7.py | 9ce0228e86d593ec9c9fefe674a21485d47e5c65 | [] | no_license | cjmking2010/python_study | e6364109be508dbbf34508999a72dd714b0c3986 | 48c365aece079218f0f78b1f0f90f0c2d5a12eec | refs/heads/master | 2021-01-01T16:15:14.012244 | 2018-01-11T08:53:55 | 2018-01-11T08:53:55 | 97,796,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Filename: test7.py
# Author: peter.chen
from random import randint
a = randint(5,10)
b = randint(1,100)
print a
print b
| [
"cjm20008@126.com"
] | cjm20008@126.com |
c45fd4f5a8e15cd035acf90dac7bafd543d04c90 | 4c88b359375197bbfd96028a08ded14a48bb60ad | /Conditionals.py | 9f45513fcde2632e826850e618c85cfd85c9fc04 | [] | no_license | Joexder/Python-Curse | 6a8247f98760ba331a9e25973c73d97b90348b17 | ac3fb169da78da48599024755a0a909a6b932f3c | refs/heads/master | 2020-08-03T11:28:08.448505 | 2019-09-29T23:00:14 | 2019-09-29T23:00:14 | 211,736,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | x = input("<escribe tu edad: ")
if int(x) > 26:
print("Por mayor")
elif int(x) == 26:
print("En el limite")
else:
print("Por menor")
y = input("Escribe un Color:")
if y == 'red' or y == 'blue' or y == 'yellow':
print("Colores primarios")
else:
print("Colores Secundarios")
| [
"joel96terce@gmail.com"
] | joel96terce@gmail.com |
fadd8b2d4391ccc33a5c230fc0d56aaf7713c9fb | e247fb17dcdce92f3cb439880b0c7df7a0b0f869 | /rooms/migrations/0019_auto_20210731_1450.py | 9600f52897a28df09f19198d0465011ecb6a8755 | [] | no_license | hongsoojong/airbnb-clone-2021 | 6807bc3cec5ff70039c71ac44c9c28b13841c894 | 17a46b31d808f6e531c5c4b2f13aa7204cb51293 | refs/heads/master | 2023-07-15T12:36:00.429074 | 2021-08-24T07:42:00 | 2021-08-24T07:42:00 | 384,682,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # Generated by Django 2.2.5 on 2021-07-31 05:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rooms', '0018_auto_20210731_1441'),
]
operations = [
migrations.AlterField(
model_name='photo',... | [
"84722193+hongsoojong@users.noreply.github.com"
] | 84722193+hongsoojong@users.noreply.github.com |
6f7ccfa4d4f3f222e1b912cf39b3a94c834653d2 | 04b07d92102301b14aaed0b1dbef85dd0c8ed59d | /code/tinyos/apps/RxDecoder/Decoded.py | 6625f3ec8ae823d72f8a42554e10ac925cf4c7d4 | [] | no_license | ab39826/IndexCoding | 8fb03bb6152b7e47905f7b463c201182bc04bfb1 | f8e36a9baefef46d7c7be858eabc35b0384cb0cc | refs/heads/master | 2016-09-03T07:29:56.648775 | 2015-09-04T14:03:01 | 2015-09-04T14:03:01 | 41,918,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | #!/usr/bin/python
import time
import numpy as np
import sys
#tos stuff
from DecodedMsg import *
from tinyos.message import MoteIF
class MyClass:
def __init__(self,N):
self.prevtime = time.time()
self.N = N
self.A = make_A_matrix(self.N)
self.counter = 0;
self.current_row = 0;
# Create a MoteIF
self.mi... | [
"Anurag.Banerjee@utexas.edu"
] | Anurag.Banerjee@utexas.edu |
a429a7f8ebb10dd8c7961a52873a18b1be3fc2e5 | 0156c5bb165ee4017c46f62db2a70455b7dca63a | /dir_for_bind/counter.py | 94f08a89e9fb52da153538483f943e0dcbc0db64 | [] | no_license | KotovVitaliy/LearnQA_Docker | ba8206b14a7ab2d130d49bddf763a6cd5374d1c5 | e6afc4c7bf11bf6dea579a2777c9aeb70c4e1a18 | refs/heads/master | 2022-06-19T18:12:51.577052 | 2020-05-11T12:02:58 | 2020-05-11T12:02:58 | 253,278,981 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | for i in range(1, 6): print(i) | [
"v.kotov@corp.badoo.com"
] | v.kotov@corp.badoo.com |
643b2ad8db2c458d77f96dff2374d2efa0c66723 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /airflow/api_connexion/schemas/dag_warning_schema.py | 9531eb6b36bc3833a39d24bcef895f01444f9bb6 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 1,705 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
09ce754a548f68f3ade391cfe3187a6d981e4cb8 | af8d5f01fb4d77d997f1c7fc3a677261a9f16763 | /ML/folder_wise/Decision tree/decision.py | 1eb83d10275d90a37e59b223af025b42abb35ae3 | [] | no_license | ashishsalunkhe/BE-Comp-Sem-8 | e6660ac09553dc927e6ff6edf006598f42beb442 | 1fe3df171cd3dcd732baa010aac59c8cd6abe1db | refs/heads/master | 2022-09-30T19:31:59.440717 | 2020-06-05T08:21:30 | 2020-06-05T08:21:30 | 269,570,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import pandas as pd
import numpy as np
#reading Dataset
dataset=pd.read_csv("dt.csv")
X=dataset.iloc[:,:-1]
y=dataset.iloc[:,5]
#Perform Label encoding
from sklearn.preprocessing import LabelEncoder
le=LabelEncoder()
X=X.apply(le.fit_transform)
print("X")
from sklearn.tree import DecisionTreeClassifier
regressor=De... | [
"avsalunkhe98@gmail.com"
] | avsalunkhe98@gmail.com |
f84fa5685ebf64f3dc5afa3a2688e45e99336d77 | b4e830b837f556b026d30c77c98bff8aa8de761e | /profile_project/accounts/migrations/0003_auto_20190606_1432.py | ebfe422e57d2d8d1bd8b5d8fcf363854641d77f9 | [] | no_license | DavidJMcGarvey/User-Profile-with-Django | c8f1b415c587a6fe5f40b5f0e4f1d0c2a01bf679 | fbcb709d5b40569ba3d1899e0fef71fbb42a50c6 | refs/heads/master | 2022-11-26T19:25:38.394320 | 2019-07-03T23:12:23 | 2019-07-03T23:12:23 | 189,677,682 | 0 | 0 | null | 2022-11-22T03:14:49 | 2019-06-01T01:33:53 | CSS | UTF-8 | Python | false | false | 2,290 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2019-06-06 21:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20190604_1438'),
]
operations = [
migrations.AlterFiel... | [
"davidjmcgarvey@gmail.com"
] | davidjmcgarvey@gmail.com |
4d3bc7d3165b2029c9fb1ec9a5e3389bde0e2870 | 4aee52a4375c4792f5f79c8d44376d21ee24a485 | /basics/hello.py | 4d976f1ba7ff8dadc2aada3a19cbad03fe305f88 | [] | no_license | python-practice-04-2019/repo-1.1.1 | 4e5450f046653eb7faea5e3bce109ce7496a3326 | 937885fe9ad65754c11cd09adfa6dfa561d5d3a8 | refs/heads/master | 2020-05-15T15:56:17.279287 | 2019-04-20T19:55:11 | 2019-04-20T19:55:11 | 182,381,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | print("hello world")
x = 2
if(x == 2):
print("test")
| [
"RabindraPatra@corp.fairisaac.com"
] | RabindraPatra@corp.fairisaac.com |
122c197fb6d6d84f46359e2ff7088f11282e764d | eb26a760a3e2074666df980cf9f482fae029e0ce | /venv/Scripts/pip3-script.py | 5da2c1c87277b8fc3b07c9a681e69f2c7fc117ec | [] | no_license | netanelm7/Work_Hours_Project | 024cc6528ef1643f9fc1a000795b2f8e0614bc44 | 3bedd7ee6c92817bbd8731240d7c313746b7b92d | refs/heads/master | 2020-04-02T11:09:44.258428 | 2018-10-23T18:00:04 | 2018-10-23T18:00:04 | 154,374,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!L:\Pycharm\Work_Hours_Project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
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])
s... | [
"39493783+netanelm7@users.noreply.github.com"
] | 39493783+netanelm7@users.noreply.github.com |
bf1e15e32502c294cb2398b0ca3de70499a04222 | 8b5d58fc22888d2fb051a3c59936659ca347043a | /NtupleAnalysis/src/Hplus2tbAnalysis/work/plotting/plotHistograms.py | 35ff6c7ca74f8f56b0ceca013609826b3d9da715 | [] | no_license | attikis/HplusHW | c54f4429dd48e99b7e597043fa6d442d7a3573ba | e62ce79c914c6b5bfd1faa44ff94356fb55fe561 | refs/heads/master | 2020-06-15T22:00:43.733407 | 2019-07-05T10:30:07 | 2019-07-05T10:30:07 | 195,402,507 | 1 | 0 | null | 2019-07-05T12:02:22 | 2019-07-05T12:02:22 | null | UTF-8 | Python | false | false | 9,600 | py | #!/usr/bin/env python
'''
Usage (single plot):
./plotHistograms.py -m <pseudo_mcrab_directory> <jsonfile>
Usage (multiple plots):
./plotHistograms.py -m <pseudo_mcrab_directory> json/AfterAllSelections/*.json
or
./plotHistograms.py -m <pseudo_mcrab_directory> json/AfterAllSelections/*.json json/AfterStandardSelection... | [
"attikis@cern.ch"
] | attikis@cern.ch |
98c23c12da7c87e54e9d2ca110846a9658f7421f | c28df1b0bf09c1ce1cb6d9de219676827f899e8d | /person/models.py | 15cd98731d76acb568c797b28b4da1531700cac6 | [] | no_license | frozyum/split-expenses-app-backend | 36fc501c432b6508a7c34bc08b6ab27a6bff245d | 55e23ea222396814a80512df3fab0d5710c88fdf | refs/heads/master | 2023-01-01T08:56:16.145140 | 2020-10-27T09:17:14 | 2020-10-27T09:17:14 | 298,987,935 | 0 | 0 | null | 2020-09-28T16:49:28 | 2020-09-27T08:32:47 | Python | UTF-8 | Python | false | false | 306 | py | from django.db import models
# Create your models here.
from group.models import Group
class Person(models.Model):
group = models.ForeignKey(to=Group, on_delete=models.CASCADE)
name = models.CharField(max_length=12)
def __str__(self):
return str(self.name) + "in " + str(self.group) | [
"smamu13@freeuni.edu.ge"
] | smamu13@freeuni.edu.ge |
4381790eeb2b2b365378271185ea7d4b8453afa4 | 0ddf984c1e64c937bb2864968002b86e4e4dd77a | /IE517_F20_HW4/regression housing2.py | 1bd8949c029d2fc2b5ab3e44db59c9f9e00435d4 | [] | no_license | kanonlove/UIUC-IE-517 | 7ee3774c127f33a28d33e5eb8aadbf4e3dc1ebfe | 853c537fbea5faf3b034f2f6c17dc4b01e8940d7 | refs/heads/master | 2022-12-25T14:04:40.094655 | 2020-10-10T03:31:08 | 2020-10-10T03:31:08 | 290,069,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,540 | py | import pandas as pd
import seaborn as sns
import numpy as np
from pandas import DataFrame
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import Ridge
from sklearn.linear_model import Lasso
import matplotlib.pyplot as plt;
"""
Part 1: Exploratory Data Analysis
Describe the data... | [
"noreply@github.com"
] | kanonlove.noreply@github.com |
4feb08a787d4150afc715d7edaf517188ec7e248 | 4f406cd3e9b2600f4e581408ca01f5ceb14deaa7 | /gps_logger.py | 369058ceb00efe2a56e224099eb751253dc01d99 | [
"CC-BY-4.0"
] | permissive | bortek/gps_tracker | 40babfb9d6c6e39a535e73a951d2ece6f9accd93 | 51c36e26dfeacacbbe8c9d7c45a9e048df7b6656 | refs/heads/master | 2020-04-26T00:26:46.575836 | 2019-05-01T03:54:20 | 2019-05-01T03:54:20 | 173,178,275 | 0 | 0 | null | 2019-02-28T19:55:43 | 2019-02-28T19:55:43 | null | UTF-8 | Python | false | false | 2,449 | py | """
gps_logger.py logs received gps points in a local file.
"""
__author__ = "Konstantinos Kagiampakis"
__license__ = """
Creative Commons Attribution 4.0 International
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
"""
import gpsd
import json
import time
import sy... | [
"kostiskag@gmail.com"
] | kostiskag@gmail.com |
f3b97341a44d4fe1f94ed1617edef2d9b577cc13 | e6fb8de1ecfafa787d826d3255029b4ad7776adf | /Class2/1181.py | e0189a35f15ce2c5fd3870c1f99820626382d7a9 | [] | no_license | minari1505/AlgorithmForH-M | 2318e743558b21ea6295f100075d99e2bd6e2c58 | e751acf0897f96640e0c3d85d8a7c37ed9202c44 | refs/heads/main | 2023-08-30T00:31:58.426096 | 2021-10-27T08:37:46 | 2021-10-27T08:37:46 | 386,270,328 | 0 | 1 | null | 2021-10-06T12:55:09 | 2021-07-15T11:48:28 | Python | UTF-8 | Python | false | false | 300 | py | import sys
n=int(input())
line = [sys.stdin.readline().strip() for i in range(n)]
set_line=set(line)
line = list(set_line)
line.sort()
line.sort(key=len)
for i in line:
print(i)
#dic = {}
#print(dic.items())
#print(sorted(dic.items(),key=lambda x : x[1]))
#for key in dic.keys():
# print(key)
| [
"threeyearr@gmail.com"
] | threeyearr@gmail.com |
2c9e6b8271ba65dce0eadea3990a851e1695961a | aa6a439b97ad6a60d7f49b59f4c9bafbff1e7736 | /tests/tests/meta_add_lazy.py | 83905f9423f7c77c64042ab806242fdcd635677f | [
"MIT"
] | permissive | yigarashi-9/mini_python | 31b5d04a68a89f899e618a0884eab2b245bd43fb | d62b9040f8427057a20d18340a27bdf2dfc8c22e | refs/heads/master | 2021-04-09T11:30:05.430724 | 2018-10-26T06:53:21 | 2018-10-26T06:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | class A:
def __init__(self, x):
self.x = x
class B(A):
def __add__(self, other):
return self.x + other.x + 1
class C(A):
pass = 1
def myadd(self, other):
return self.x + other.x + 100
a1 = A(0)
a2 = A(0)
b1 = B(0)
b2 = B(0)
c1 = C(0)
c2 = C(0)
A.__add__ = myadd
assert (a1 + a2... | [
"yuu.igarashi.9@gmail.com"
] | yuu.igarashi.9@gmail.com |
86a0bc8d228e9bc61e282dd6bd5b4e84a35754b0 | 91005296393b602549f16e5827b49e5bb9d0c760 | /fruit_store/fruit_store/settings.py | 55f6787747e4e353b982dba2c60e6e52d838248d | [] | no_license | nguyenvanhuybk99/django_rest_mongo | 7498a2aed63fa2c8c38e05604b239ce332b41980 | c114bb5f981b2eb29495e550d2c5aa0efbd377a8 | refs/heads/master | 2023-04-28T15:30:54.441411 | 2021-05-22T01:42:38 | 2021-05-22T01:42:38 | 369,690,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | """
Django settings for fruit_store project.
Generated by 'django-admin startproject' using Django 3.0.5.
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 o... | [
"nguyenvanhuybk99@gmail.com"
] | nguyenvanhuybk99@gmail.com |
162eb2ee34fdecebf7be87ac009e79c0a715e25f | 77077a391973d1f8c05647d08fc135facd04fc5e | /xlsxwriter/test/app/test_app02.py | fa347d734560186995daf0fad3e57c79c5129178 | [
"BSD-2-Clause-Views"
] | permissive | DeltaEpsilon7787/XlsxWriter | 28fb1012eaa42ea0f82e063f28c0c548ca016c5e | 550b9c5bd678c861dcc9f6f4072b33a69566e065 | refs/heads/main | 2023-08-02T09:14:10.657395 | 2021-09-06T10:51:56 | 2021-09-06T10:51:56 | 384,948,081 | 0 | 0 | NOASSERTION | 2021-07-11T12:57:26 | 2021-07-11T12:57:25 | null | UTF-8 | Python | false | false | 2,234 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ..helperfunctions import _xml_to_list
from ...app import App
class TestAssembleApp(unittest.TestCase... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
25e9604e708758b56d016d3c384898a1c74f8d6d | e2752da08870dc935d21d2157786aa919766c296 | /zemiao/129.py | c1bf0b0cdc9d496e1e042931b7ba65dc6c27c091 | [] | no_license | Zichuanyun/go-shuati | 87dc192da65a9f08ebe8530f623e473a2f3c2865 | 7c443f85217ab96ceac717ece7fc472271e1d3ab | refs/heads/master | 2020-03-19T11:03:12.855384 | 2018-09-27T17:20:25 | 2018-09-27T17:20:25 | 136,425,571 | 9 | 6 | null | 2018-06-21T04:51:56 | 2018-06-07T05:22:35 | Java | UTF-8 | Python | false | false | 742 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def sumNumbers(self, root):
"""
:type root: TreeNode
:rtype: int
"""
ans = 0
... | [
"zemiaozhu@outlook.com"
] | zemiaozhu@outlook.com |
bf4e35a17cd505f3970d1ba493b1fbbd9b43493c | 7113ecb49ec8c2f74ede2b14f2e04dd39c97c851 | /apps/users/models.py | 3e17c843928fdf82e4ee91cdaebe68df32ebea93 | [] | no_license | Anton-Karpenko/test4 | a6429dd0632bdd53511ee533d2314196270b0d01 | 29ce45a0737a08fce284aa9f752eeb5a9a6a64df | refs/heads/master | 2020-06-22T17:11:36.484175 | 2019-07-21T21:52:29 | 2019-07-21T21:52:29 | 197,752,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.models import TimeStampedModel
from apps.base.utils import custom_uuid
class User(AbstractUser, TimeStampedModel):
id = models.CharField(
max_l... | [
"antykkarp@gmail.com"
] | antykkarp@gmail.com |
6f714648f18ce1ce8143128be377d7d28c4191de | c54e219c257e5b81489cda16268e17137b0ca9b4 | /fake_script.py | c8e09215684366fe70b2ad2efc016809fa5304a6 | [] | no_license | ericearl/playground | 259c33e3878f5907f55bd612dda771d206a8b5af | 3e88d37a2db0c0081d5a770afa792b38736a5641 | refs/heads/master | 2020-07-08T12:16:10.453382 | 2019-08-21T22:18:30 | 2019-08-21T22:18:30 | 203,669,587 | 0 | 0 | null | 2019-08-21T22:18:32 | 2019-08-21T21:51:37 | Python | UTF-8 | Python | false | false | 32 | py | import script
print('new one')
| [
"eric.earl@gmail.com"
] | eric.earl@gmail.com |
4ecd369a2ed6d3164513285595b15ebc98e9de89 | 8ced7a54037616cede4ec2449c9e29aa2f1fb9d1 | /prac_04/litst_comprehentions.py | 72b4f07273368fe6e45111aa0726c299d8518694 | [] | no_license | micah-clarke/Practicals | d95ed42918c6c83827a37f0abf7d1c2c5e36d2df | b8e1965dddce4e635ca2f25bf1682efc79962a11 | refs/heads/master | 2020-05-04T21:43:20.857199 | 2019-04-11T04:16:03 | 2019-04-11T04:18:36 | 179,486,105 | 0 | 0 | null | 2019-04-11T04:36:55 | 2019-04-04T11:41:36 | Python | UTF-8 | Python | false | false | 1,529 | py | """
CP1404/CP5632 Practical
List comprehensions
"""
names = ["Bob", "Angel", "Jimi", "Alan", "Ada"]
full_names = ["Bob Martin", "Angel Harlem", "Jimi Hendrix", "Alan Turing",
"Ada Lovelace"]
# for loop that creates a new list containing the first letter of each name
first_initials = []
for name in names... | [
"48541196+micah-clarke@users.noreply.github.com"
] | 48541196+micah-clarke@users.noreply.github.com |
e477eb40de85d06949607669ae61fe6137e832d2 | 37361d420b3ecb1636a7a80720ac0ca572e6480b | /front_sy.py | de9aee206653bc3529026c4aae3af0b0c61a0fd5 | [] | no_license | chlrhalsgur/2021_1_py_project | 1d7169d0622902e8e19fa9c803924e4625d53eb8 | 14861bccb8d26fa2531b39239c5db282ac8a0644 | refs/heads/master | 2023-05-28T17:14:24.482214 | 2021-06-10T09:54:12 | 2021-06-10T09:54:12 | 370,598,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | from tkinter import *
#from tkhtmlview import HTMLLabel //html사용해서 네이버영화, 네이버영화랭킹링크 사용할려고 했음 but 안됨
#https://remixicon.com/ 사용할려고 했던 아이콘
win=Tk()
#Show Movie 클릭했을 경우
def Naver_movie_Ranking():
window_naver=Toplevel(win)
window_naver.geometry("1000x600")
#두 번째 페이지
def create_window():
window = Tople... | [
"sy91031@naver.com"
] | sy91031@naver.com |
884954af9fd64a0f3d0508d1272327e2ed3bedf5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03013/s813541273.py | bdbeb4a2fbfb0352ad56b6b9937305511b1f8a7c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | N, M = map(int, input().split(' '))
broken_list = []
if M > 0:
for i in range(M):
broken_list.append(int(input()))
broken_set =set(broken_list)
nums = [0] * (N + 1)
nums[0] = 1
if 1 not in broken_set:
nums[1] = 1
for i in range(2, N + 1):
nums[i] = nums[i - 1] + nums[i - 2]
if i in b... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ad75ec26cf69addbf6442ccd275abe67170dd61d | c0b0b50d52cb0d4f10f91595709a1e1815637e60 | /ephr_module/migrations/0019_auto_20170402_0942.py | 5d6ddc377bb8a61a6db3b8ecc8028e79b2970bdb | [] | no_license | namkan/patientvault | 50bdcea0c2f746533a1c11794fc14f76e838fa6a | 5617a3686fe48325a5a77372c7bd29f30fe8a175 | refs/heads/master | 2022-11-25T20:10:56.884810 | 2017-05-01T12:18:23 | 2017-05-01T12:18:23 | 89,921,210 | 0 | 0 | null | 2022-11-22T01:26:28 | 2017-05-01T12:13:03 | HTML | UTF-8 | Python | false | false | 411 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ephr_module', '0018_pvradorders_order_name'),
]
operations = [
migrations.RenameField(
model_name='pvradorders',... | [
"naman.kansal@vyalatech.com"
] | naman.kansal@vyalatech.com |
276a93f98115025f9db6a4c5e6df42b82e9feccc | db274b14aa63f4cf40b1e496ffeef918d8654f69 | /manage.py | d6262ef4e1dd3c3abaf89b085aa2ffe2f3d672f2 | [] | no_license | mahmudgithub/demo_pactics_project_seven | 02f98d8373dfa3e9b5d8e06d2e5f01a030d48291 | 4a8aa330a6abfb5e12916c368bd849190788127a | refs/heads/master | 2022-03-28T11:58:34.185598 | 2020-01-29T06:35:22 | 2020-01-29T06:35:22 | 236,919,480 | 2 | 0 | 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', 'project_g.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"mahmudhossain838@gmail.com"
] | mahmudhossain838@gmail.com |
0ae3c143fd0a34bdfeeca9add4677386aeca66be | e8ef988b5e13e39e430a72f5b99092d7f565bf2b | /app.py | a9b81f979691b63e4461db03ed5f153c15318593 | [] | no_license | gdeepakdeepuml/pomodoro-app | 03c1c0969dce3c99e0627ac8aad53b68ef5b0099 | bc78b3c78c77c54315d826f76aa515a45e91431e | refs/heads/main | 2023-02-26T19:08:32.188016 | 2021-02-01T13:10:32 | 2021-02-01T13:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # App created by Data Professor http://youtube.com/dataprofessor
# GitHub repo of this app
# Demo of this app
import streamlit as st
import time
# CSS by andfanilo
# Source: https://discuss.streamlit.io/t/creating-a-nicely-formatted-search-field/1804
def local_css(file_name):
with open(file_name) as f:
s... | [
"noreply@github.com"
] | gdeepakdeepuml.noreply@github.com |
4159cf0257ad3d20a29b9c1d3308026f6be5c1cf | 1925c535d439d2d47e27ace779f08be0b2a75750 | /leetcode/best_time_to_buy_and_sell_stock_4.py | 1d58d8730fa45eba6ecf813ee448ef105a05236d | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | # Say you have an array for which the ith element is the price of a given stock on day i.
# Design an algorithm to find the maximum profit. You may complete at most k transactions.
# Note:
# You may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again).
# Example 1:
... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
66ac40d9cca324cb59d106f29f489141d55e0c6b | fe52adcccf82ea5e81ec882eafb9fa11d7312e52 | /main.py | 9bd7ddaa888c538f473569acdb5383d8cf7b608c | [] | no_license | f18-os/producer-consumer-lab-alexmelz95 | 15f53a1187ab701b0dfc1f0dd374fdf9e784d9ad | a1f98ccfe76697e825185a63857731dfa2c8cc4d | refs/heads/master | 2020-04-07T06:00:51.482106 | 2018-11-24T22:01:41 | 2018-11-24T22:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import ConsProdThread
import queue
fileName = 'clip.mp4'
# shared queues
extractionQueue = queue.Queue(10)
grayscaleQueue = queue.Queue(10)
theHelp.finished1 = False
theHelp.finished2 = False
t1 = ConsProdThread('extractFrames',params1=fileName,params2=extractionQueue)
t2 = ConsProdThread('grayScale',params1=extracti... | [
"alex.melz95@gmail.com"
] | alex.melz95@gmail.com |
80fde7ee8b5e1fdbb6283256a002d905055f43f7 | d007f0fceaaad349b7b8cb9eda5382919621e644 | /core/helpers.py | 2493da2b4a8abb732fe2e371edfa043a366f1da7 | [] | no_license | dsarrut/badminapp | fddcc1b8f79b536e9ca0e5e952dcd8584fcb292e | de1ffe0879b443227c6d7cca972664c26e133e4f | refs/heads/master | 2022-04-29T01:47:08.397626 | 2020-05-01T09:45:38 | 2020-05-01T09:45:38 | 254,719,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py |
def raise_except(s):
raise Exception(s)
| [
"david.sarrut@gmail.com"
] | david.sarrut@gmail.com |
731c66717f6fccb33365c99d8aac3d158051db66 | d954e2f74d1186c8e35be8ea579656513d8d3b98 | /rllib/algorithms/algorithm.py | 9900c03202990821f5dfb9100ad1ead2f61353ee | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vakker/ray | a865de214e60f9e62d61c03ae7ce55ad6030f84c | de238dd626a48a16c8b3cd006f3482db75f63a83 | refs/heads/master | 2023-01-23T22:30:44.839942 | 2022-10-23T01:05:48 | 2022-10-23T01:05:48 | 171,845,804 | 0 | 1 | Apache-2.0 | 2023-01-14T08:01:04 | 2019-02-21T09:54:36 | Python | UTF-8 | Python | false | false | 140,996 | py | from collections import defaultdict
import concurrent
import copy
from datetime import datetime
import functools
import gym
import importlib
import json
import logging
import math
import numpy as np
import os
from packaging import version
import pkg_resources
import tempfile
import time
from typing import (
Callabl... | [
"noreply@github.com"
] | vakker.noreply@github.com |
17c7afc8245e0de1833dc9c9650a56e655b84873 | 1dc210fbb89aa82ce16e27756f4c6bda624024ab | /blog/migrations/0002_post_insert_date.py | a885948673607242952b80e2729b4e762b8ad64c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | aabele/kasmanzvana.lv | 68f3a118a9081639578fe29842abf50ab8c8af6c | 409df7a776d17ea7fff5519fe270f73c02428a41 | refs/heads/master | 2022-11-28T00:07:24.900787 | 2018-03-21T07:23:51 | 2018-03-21T07:23:51 | 126,135,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-30 21:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"aabele@gmail.com"
] | aabele@gmail.com |
8faf2068a458cf72abd7903f35a6d54f9f5fb74c | cdd878d50c423a8e6b282d6b1fb177ac35210880 | /config.py | aeecf863e06726014ab4cbc8756829a475e1ad53 | [] | no_license | alexmochu/WeConnect-API-oop- | 83dbb66656342ecf1aa9dd74b702fe0bbdb873bc | bfe48150f05b447d432819e90bc385d870b31ee2 | refs/heads/master | 2021-01-24T02:23:33.609665 | 2018-05-18T12:44:19 | 2018-05-18T12:44:19 | 122,846,674 | 1 | 1 | null | 2019-10-18T16:37:33 | 2018-02-25T15:06:06 | Python | UTF-8 | Python | false | false | 383 | py | # config.py
class Config(object):
""" Common or Parent configuration class."""
DEBUG = True
class DevelopmentConfig(Config):
""" Development Configurations"""
DEBUG = True
class TestingConfig(Config):
""" Testing Configurations"""
TESTING = True
DEBUG = True
class ProductionConfig(Confi... | [
"Mochualex4@gmail.com"
] | Mochualex4@gmail.com |
6345ca5f9e91bd0fbd6aebb9ade41315802962db | f6bebd025f62621478401dbb75e0cf852171058c | /twitter-reply-notification.py | e53654e47062e878817a783d7d2ae4f68c280286 | [] | no_license | chmouel/twitter-reply-notification | 9a0e683e35e9156b6a291d1f092cf6a509274732 | 6bc8d32b20f8daabe963eef825e48b17275820e7 | refs/heads/master | 2020-05-29T10:19:26.559288 | 2010-01-07T15:13:04 | 2010-01-07T15:13:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
#
# Chmouel Boudjnah <chmouel@chmouel.com>
import twitter
import rfc822
import datetime
import os
import ConfigParser
import stat
import sys
import urllib2
CONFIG_FILE = os.path.expanduser("~/.config/twitter-reply-notification/config.ini")
CACHE_FILE = os.path.expanduser("~/... | [
"chmouel.boudjnah@rackspace.co.uk"
] | chmouel.boudjnah@rackspace.co.uk |
3c82d59c15b5c2b692af3bef9c303e878b6a2a8a | af2dee4ab4df778801dbe16346c76b295bcad6be | /Projects/bom_words/test.py | afe55c0eac6c0861d4f768825bc9743cad2833e5 | [] | no_license | cpalm9/PythonDataStructures | 7420881c11bc6003fc97359653260ee028e1d555 | ee40fe85d3ac56a7e448ba5e598ea1c55cff0233 | refs/heads/master | 2021-08-31T09:37:02.925765 | 2017-12-15T02:21:59 | 2017-12-15T02:21:59 | 102,979,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | from sort_api import SortMethods
from worddata import WordData
import unittest
class UnitTest(unittest.TestCase):
test_list = []
def test_bubble_sort(self):
s = SortMethods()
test_list = [5,4,2,7,6,9,1]
s.bubble_sort_test(test_list)
self.assertEqual(test_list[6], 9)
tes... | [
"christian_palmer@byu.edu"
] | christian_palmer@byu.edu |
d6405350eccf438965119c55bf9bfb85bebcba7f | f709a86ee1eff46e84d00ef1820f27d0d9641aba | /8,9일차/random_실습2.py | 2e6edda394afd4668117db2dd7cb99c3ecc95b33 | [] | no_license | limsehui/likelionstudy | a697e3a306edb49fbc09700d4390f56109e4f7a5 | 10a77a2f503283eb48a314652debfa57ed2d2a78 | refs/heads/master | 2020-04-13T05:50:49.106004 | 2019-01-18T09:45:43 | 2019-01-18T09:45:43 | 163,004,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | import random
random_number = random.randint(2, 5)
print(random_number) | [
"tpgml944@gmail.com"
] | tpgml944@gmail.com |
6a09c9dd986fd82c23206712f58db29e1d2ab891 | 2dfad29c6c93e420ebe20168ef18c402f9a5c636 | /tests/test_media_utils.py | 51508d0cb0e0d4f4e4654c6ec23629e48c1eb516 | [
"MIT",
"LicenseRef-scancode-ubuntu-font-1.0"
] | permissive | susantabiswas/realtime-facial-emotion-analyzer | b9c3c80342df7c79ad5297407e2eb0214a0fa307 | e9d5ee19aebe7602de91ba57ade15a6655944ed6 | refs/heads/master | 2021-12-15T00:42:51.190038 | 2021-12-10T15:50:10 | 2021-12-10T15:50:10 | 129,482,642 | 93 | 29 | MIT | 2021-12-05T17:20:50 | 2018-04-14T04:47:12 | Jupyter Notebook | UTF-8 | Python | false | false | 1,470 | py | # ---- coding: utf-8 ----
# ===================================================
# Author: Susanta Biswas
# ===================================================
"""Description: Tests for media utils."""
# ===================================================
from emotion_analyzer.exceptions import InvalidImage
import pyte... | [
"17782600+susantabiswas@users.noreply.github.com"
] | 17782600+susantabiswas@users.noreply.github.com |
70ef858cdea40eb5fbf28ecf09e21e2cda639394 | 0499444beef10cefa5f071d652f8ac73f5436bd1 | /simplemooc/courses/admin.py | aa6c08ebee37ae82a0fa6aa01ca730831fe593c7 | [] | no_license | iagoid/Django-SimpleMooc | 42fc239a12a11f143fa86e765e3936ebdc47170b | 0fe810230fb55af0bc41e56bae5849fea5710769 | refs/heads/master | 2022-11-16T11:13:45.187485 | 2020-07-11T13:28:26 | 2020-07-11T13:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from django.contrib import admin
from .models import Course, Enrollment, Announcement, Comment, Lesson, Material
class CourseAdmin(admin.ModelAdmin):
list_display = ['name', 'slug', 'start_date', 'created_at']
search_fields = ['name', 'slug']
prepopulated_fields = {'slug': ('name',)}
class MaterialInli... | [
"iagoid01@gmail.com"
] | iagoid01@gmail.com |
f2af3503bf7206c6d28a8f29b727061a682f9706 | 3bafaed1d12e4e1fb221a11998a7b9a858b04644 | /App/migrations/0013_auto_20201230_1553.py | fb1ff2ce8bdd568a36fb4d395ecb6cc782160ba0 | [] | no_license | nian-20/AtroBOM | 8c96e9247292b5f4a3a4f22b7d93a8749f7ed80c | 0370636238e722489b3fddc3a65d4e9ceb7cbfb0 | refs/heads/master | 2023-08-15T09:13:10.042024 | 2021-09-30T19:12:03 | 2021-09-30T19:12:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Generated by Django 3.1.4 on 2020-12-30 12:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0012_auto_20201230_1544'),
]
operations = [
migrations.AlterField(
model_name='rate',
name='rate',
... | [
"nimadorostkar97@gmail.com"
] | nimadorostkar97@gmail.com |
228ef04b63368a02967ba7ea70cc55c1e3c00a81 | bb62611c991456e694f00ad3229d530fd34c3ee4 | /ch7_rvmclass.py | 5d1da5b0ead796c45a3a02c7422b9ea78a063622 | [] | no_license | aralhekimoglu/PRMLAlgorithms | 1afb8024181eb3d1afe4f50efdaecd86677fb7a6 | 7889cc275c456a8d8d12e9890c59dfdf88a358ce | refs/heads/master | 2022-10-25T18:52:30.143037 | 2022-10-16T06:20:25 | 2022-10-16T06:20:25 | 126,392,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,531 | py | import numpy as np
import matplotlib.pyplot as plt
class Kernel(object):
"""
Base class for kernel function
"""
def _pairwise(self, x, y):
"""
all pairs of x and y
Parameters
----------
x : (sample_size, n_features)
input
y : (sample_size, n... | [
"noreply@github.com"
] | aralhekimoglu.noreply@github.com |
7cab64eb481e0b3a7c9d90be43880cc7cb881492 | b7139c6f5a4419326e0b856f34639f64271c5a3d | /cloud-backup.py | 09350d23d8eb2884f7c4029f891878551475b27c | [] | no_license | todokku/cloud-backup | 3f7a90bf6db42285f1d9993e9903f7b97c2e134c | 7a2eaae1e141da91c5dbe8dec73b0c87be8c7406 | refs/heads/master | 2022-07-22T13:33:16.791842 | 2020-05-22T18:55:49 | 2020-05-22T18:55:49 | 266,587,310 | 1 | 0 | null | 2020-05-24T17:07:13 | 2020-05-24T17:07:12 | null | UTF-8 | Python | false | false | 105 | py | import os
import sys
os.system('chmod +x cloud-backup.sh')
os.system('./cloud-backup.sh')
print('Fine.') | [
"lazzaronipaolo@outlook.it"
] | lazzaronipaolo@outlook.it |
4d23ee33155b9c450ac2527ebbca1bc314bb0740 | 32647bb5265c91f68dcb92cdf298c4b38d6b60ec | /test/test_parsing.py | 7faeaaf57b3f10d9c7f4b164f22786765fb13b31 | [] | no_license | kevin-brown/SmokeDetector | a1a7b887640acad3a460c9bb7550f9ccc772b14e | f1c1ad69e715100a2ec64ec8ca00d6010818d9d0 | refs/heads/master | 2021-01-18T01:33:37.203878 | 2015-12-27T17:04:46 | 2015-12-27T17:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,798 | py | from parsing import *
import pytest
test_data_inputs = []
with open("test/data_test_parsing.txt", "r") as f:
test_data_inputs = f.readlines()
# Large inputs should go to that file.
# Only inputs should go there, not the parsing method and the expected output,
# because the input is always a string and `parse_meth... | [
"programfox@hotmail.be"
] | programfox@hotmail.be |
babc707cd3d0eba6a38dddd6d813e56e3a003465 | 044c3ad600995b80aee0a8733cc518f0e5177f85 | /Accounts1/scheduler/migrations/0002_auto_20160214_0355.py | fab102ae95cf5a54239757e332c6d6ab84102643 | [] | no_license | connieli4/WeddingApp | 83c6fdb96c22be33b69f2c874df914fe22ee4ab6 | b87a1905ec2268a405bae2d949922a3f190d89a0 | refs/heads/master | 2020-04-01T12:17:31.522920 | 2018-12-14T23:36:45 | 2018-12-14T23:36:45 | 153,200,142 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('scheduler', '0001_initial'),
]
operations = [
migrations.AlterField(
m... | [
"noreply@github.com"
] | connieli4.noreply@github.com |
319088b0fb5a6e5458a9fe0225ff0b44d1d38204 | eb656e579b59f93fdef965d1fe303f766fad19bd | /scripts/EpsilonResnetBase.py | 92d3cd6a1117f7b4e0a7ed57c9416aba90218b3b | [] | no_license | yuxwind/epsilonResnet | f8f961251f7f45ff63ed7c5ce14afd7935031e89 | eaf5e33b767b31d60dd528b850faed919aadadc5 | refs/heads/master | 2021-06-26T17:22:41.644909 | 2020-09-27T22:57:11 | 2020-09-27T22:57:11 | 133,599,192 | 27 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: EpsilonResnetBase.py
# Author: Xin Yu <yuxwind@gmail.com>
import sys
sys.path.append('../../tensorpack')
from tensorpack import *
from tensorpack.tfutils.symbolic_functions import *
from tensorpack.tfutils.summary import *
import tensorflow as tf
"""
Implementati... | [
"yuxwind@gmail.com"
] | yuxwind@gmail.com |
d1ea3793a74e4332420872c9502e50e122bf9b35 | 481389bd83c40bf153d9fbad904926282ebd0cfe | /pylib/_mypkg_foo/__init__.py | 494a71d652ce909f16585dab7b756602d8d0552b | [] | no_license | leisquare/study_bigdata | e1cd952df484c4595d8892fef779226a31ec2ea2 | f0a048e8b3a6ffc4507efe7ee2df40cb1ac4bb34 | refs/heads/main | 2023-05-06T16:09:45.903354 | 2021-05-29T07:23:36 | 2021-05-29T07:23:36 | 371,617,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 25 16:46:19 2021
@author: tjoeun
"""
print("_mypkg_foo loaded") | [
"75233145+leisquare@users.noreply.github.com"
] | 75233145+leisquare@users.noreply.github.com |
bff3c146e033147360882ee7d2fd2224e7febb18 | f66473c5f184e7e7fe047aed7b2902338bd9a12d | /app/util/model.py | 7af3e43521093e9a8905ce2faccebe67d9f5eb7e | [
"LicenseRef-scancode-mulanpsl-2.0-en",
"MulanPSL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nacei/h3blog-master | 7a220cf549fb869d602ba421e4bfd5e1b17bd2bb | e433c93f56be63883538b4e03198e6e4e056ecb6 | refs/heads/master | 2023-07-12T05:47:30.845678 | 2021-08-20T13:23:03 | 2021-08-20T13:23:03 | 398,283,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | from flask import request
def get_obj_fields(obj):
"""获取模型对象的表字段, obj或model均可"""
if obj is None:
return []
return [column.name for column in obj.__table__.columns]
def request_form_auto_fill(model) -> None:
data = request.form.to_dict()
if data is not None:
data = {key: value for k... | [
"hanxj@foxmail.com"
] | hanxj@foxmail.com |
a08ec483cb563c809d060d26db913d295ae9ee97 | d7aaa8b5ccb20cd4ed9ba81c52d276191d52afad | /aws_nsm_interface/structs.py | de665057427b3f492599e4b3fa5e5aca6a69dd68 | [
"MIT"
] | permissive | russelmahmud/aws-nsm-interface | edf550ddcfa903f7c8becf27154d2b3d15b0fbb1 | ab80440abb72d2c69c755c377f72d064b0514d07 | refs/heads/main | 2023-02-16T03:51:33.793457 | 2021-01-19T05:22:40 | 2021-01-19T05:22:40 | 330,871,762 | 0 | 0 | MIT | 2021-01-19T05:16:30 | 2021-01-19T05:16:29 | null | UTF-8 | Python | false | false | 1,103 | py | """Structs for NSM API."""
# Standard library imports
import ctypes
class IoVec(ctypes.Structure):
"""
IoVec struct for use in the NsmMessage struct.
The IoVec struct has two fields: iov_base, which is a pointer to a buffer,
and iov_len, which defines the length of the contents in the buffer.
Th... | [
"lucvandonkersgoed@gmail.com"
] | lucvandonkersgoed@gmail.com |
7d721c03caa26629e29120c9c88caf4b817914fe | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/codeInsight/smartEnter/colonAfterFinalCaseClauseWithPrecedingIncompleteCaseClause.py | ff245238744da24b5bebf8391bf5e8c4d1ab488c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 83 | py | match x:
case 1:
pass
case
case 3:
pass
case<caret> | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
6aa7e3d975d5bf066350200717a911882e17e7eb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02572/s151845218.py | 31aa5234e9d20d7b4ae01fd2cf130eac5d0d9908 | [] | 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 | 434 | py | N = int(input()) #入力する整数
A = list(map(int,input().split())) #入力する数列A
SUMA = sum(A) #数列の和
MOD = 10**9 + 7 # mod
C = [0] * (N-1) #累積和数列
for i in range(N-1): #\sum_{j = i+1}^{N}を求めて数列に代入する
SUMA -= A[i]
C[i] = SUMA
ans = 0 #求める答え
for i in range(N-1):
ans += A[i]*C[i]
ans %= MOD #その都度modで割った余りにする
print(ans) #答えを出力する | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
421db7ccdd9e41909059dc08bf8ce7640d20deee | 65f469808cd1d408524ff70ff42d2a8f7276e805 | /swagger-gen/python/swagger_client/models/order_res_base.py | ec564b12fb79e83230663a35133b7dc7b76bd787 | [] | no_license | CryptoGnome/api-connectors | 94cabc32b8af7d9a35d72336eb4e8f919adc69ad | c4f5dba196b0d2bb321b5a068481f34d02ae40fa | refs/heads/master | 2020-09-26T23:00:49.861037 | 2019-12-06T08:38:15 | 2019-12-06T08:38:15 | 226,361,891 | 5 | 0 | null | 2019-12-06T15:52:50 | 2019-12-06T15:52:49 | null | UTF-8 | Python | false | false | 6,300 | py | # coding: utf-8
"""
Bybit API
## REST API for the Bybit Exchange. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: support@bybit.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class OrderResBase(object):
"""NOT... | [
"simonzgx@gmail.com"
] | simonzgx@gmail.com |
22921a548069e69a88ed036d29bfcc83ba21a4ef | cd208b4a40be8bf166da79fdc126dbcb71e95a7d | /app/states/state_expiration_date.py | 71b993036530fc25dce01aef9c241befa95b0714 | [
"MIT"
] | permissive | Moirted/MyPersonalKitchenBot | 63a2b1be6e21e90ed908c9f3162bd085162cd83f | 03de0beeaf2665e8b3ddd1709da3d4edcd422b80 | refs/heads/main | 2023-04-21T12:17:52.486113 | 2021-05-16T13:00:22 | 2021-05-16T13:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from aiogram.dispatcher.filters.state import State, StatesGroup
class ExpirationDateState(StatesGroup):
number = State() | [
"nickshel@yandex.ru"
] | nickshel@yandex.ru |
d58122e4b9eb67fb24fb0ea49da965e4144d324c | 8944fdc8b6fc8ab8aac7d7a69b30630dded3aac8 | /BTS.py | 8968a9487d0b9c1562178dd5cb964d3481cbd60a | [] | no_license | d4nielix/BTS_simulator | ae62b67f3d5f355ca454afcc0fabefdf9e2b42a3 | 3858732b1d8552861e2cafaf0cd3b0e4741e3f42 | refs/heads/master | 2023-08-14T17:32:50.518556 | 2021-10-06T06:50:02 | 2021-10-06T06:50:02 | 414,099,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,498 | py | from ResourceBlock import ResourceBlock as rb
from User import User
from typing import List
import logging
# from numpy.random import randint, exponential
import time
import matplotlib.pyplot as plt
from Generator import Generator
gnrt = Generator()
def nonzero(p: int):
tmp = round(gnrt.rndexp(p))
while tmp ... | [
"daniel.cichosz1@gmail.com"
] | daniel.cichosz1@gmail.com |
79c19d888d893e972115162a390efd937500f92b | 90f39575e1164e928359dd9afb602999bf68a71c | /valuenode.py | b747c749b403c752a05962ee9c650c90a253b6e9 | [] | no_license | sachinjose/Programming_Language | bcf4cbaa147f236b29be4b97936d3540b6e399fe | 1d5749e7339a95b25ce37a93987b447e7e46e85c | refs/heads/main | 2023-06-01T23:56:39.824175 | 2021-06-17T04:39:55 | 2021-06-17T04:39:55 | 374,157,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,381 | py | from strings_with_arrows import *
import string
import os
import math
import constants
from error import *
from position import *
from lexer import *
from nodes import *
from rtresult import *
########################################################
## Value
########################################################
##... | [
"sachinjose16@gmail.com"
] | sachinjose16@gmail.com |
d13d6cb9808efd0098b69557877ebcab3b1fb584 | 94a3afadfc4d89cf19cca0ee966007ae09f7f81c | /lnk.py | 01c62bc706a7ba3f4163aae85cb7187a76a58f2b | [] | no_license | devendermathu/Rahul-Amantya | db354ffa3d70d924030988bccf61c41b251e9662 | 70d3a2b56d2b5b604a0af7dfc8a2b1b5dd5e6d91 | refs/heads/main | 2023-04-17T08:58:47.469047 | 2021-04-18T12:55:18 | 2021-04-18T12:55:18 | 323,076,878 | 0 | 0 | null | 2021-04-18T13:07:28 | 2020-12-20T13:21:43 | Python | UTF-8 | Python | false | false | 4,238 | py | from bs4 import BeautifulSoup as bs
from requests import Session
import csv
from lxml import html
s = Session()
s.headers['User-Agent']='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0'
f = open('fnl_lnk', 'r',encoding='utf-8').read().split('\n')
fw = open('toyoto_data.csv','w',encoding='ut... | [
"rahulmath846@gmail.com"
] | rahulmath846@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.