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
753b42ccddf3a2b6b07464b8a1830571ae36357c
9a72da59caf9d829cb3981a4b5e8bcde640732be
/releng_tool/engine/post.py
91998ef0745137254bcc8301649d44f51dd92fcd
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
releng-tool/releng-tool
0fa8c44b864ee10e7a8c8eeb54af7acc62b3cd56
d05eb2153c72e9bd82c5fdddd5eb41d5316592d6
refs/heads/main
2023-08-22T09:52:12.341285
2023-08-06T21:27:18
2023-08-06T21:27:18
155,482,664
12
2
BSD-2-Clause
2023-01-03T06:21:00
2018-10-31T01:54:18
Python
UTF-8
Python
false
false
1,775
py
# -*- coding: utf-8 -*- # Copyright releng-tool # SPDX-License-Identifier: BSD-2-Clause from releng_tool.util.io import interim_working_dir from releng_tool.util.io import opt_file from releng_tool.util.io import run_script from releng_tool.util.log import note from releng_tool.util.log import verbose import os import...
[ "james.d.knight@live.com" ]
james.d.knight@live.com
a726d8d15555906150e531309e38907de9a77f6a
0103ede8054cab35c0d7f255a22245ad650b74b7
/OpenCV_3_License_Plate_Recognition_Python-master/Main.py
11f19c084439a4adb52272b61751ab6c0606cd25
[]
no_license
theone25/AI-FPT
0f755a8c1de88620f8bd534192660208dec8b7e6
3b23887589390b816a3fe1fe5e96e80191b076af
refs/heads/main
2023-06-20T13:00:21.349490
2021-07-25T20:01:45
2021-07-25T20:01:45
389,429,258
0
0
null
null
null
null
UTF-8
Python
false
false
4,659
py
# Main.py import cv2 import numpy as np import os import DetectChars import DetectPlates import PossiblePlate import pytesseract import re import matplotlib.pyplot as plt from imutils import contours pytesseract.pytesseract.tesseract_cmd=r"c:\Program Files\Tesseract-OCR\tesseract.exe" # module level variables ####...
[ "mohamedbouziani25@gmail.com" ]
mohamedbouziani25@gmail.com
1d0732a71e9bc0ea34d65285bed483cbaeb51d0d
2c176efa2badeae55d6ac1a5d8d9233cbfaef4c2
/FM622A_Code/Lab 05.py
1e220ee52d87fddaffc3b80dc9de118c6ac9119b
[]
no_license
FlagTech/FM622A_Example_Script
ef28b901c0c3e6ce2b1a6c2293f2bcaaced8a11e
9361135f3e7b8d2498c576f62b71799c2e078532
refs/heads/master
2022-11-30T09:34:29.892741
2020-08-11T09:45:50
2020-08-11T09:45:50
286,705,242
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from machine import Pin, I2C from ssd1306 import SSD1306_I2C import framebuf oled = SSD1306_I2C(128, 64, I2C(scl=Pin(5), sda=Pin(4))) pic_list = [0x1e, 0x3f, 0x7e, 0xfc, 0x7e, 0x3f, 0x1e, 0x00] pic_buffer = bytearray(pic_list) pic = framebuf.FrameBuffer(pic_buffer, 8, 8, framebuf...
[ "noreply@github.com" ]
FlagTech.noreply@github.com
f721507be811bf83fdfeda382ca87868bcc879ae
235ccb690816f184fbea3cf92841de55b5b1b7a6
/src/test_cases/orderMs_sta.py
6d39916c39267341647ee8a888063170c84761cf
[]
no_license
yangweijia/ECommerce
9f3f57549ad99bd0908598d1b83fee92c064927d
7f5748ed7b149ad95d2fa5f28c2b7c0112f82936
refs/heads/master
2021-05-07T23:04:53.349392
2017-10-18T10:03:29
2017-10-18T10:03:29
99,678,559
0
0
null
null
null
null
UTF-8
Python
false
false
4,244
py
# -*- coding: utf-8 -*- ''' Created on 20161020 @author: yangweijia ''' import sys sys.path.append("./models") sys.path.append("./page_obj") from models.myunit import MyTest from models.star import brower from models.function import insert_img from page_obj.loginPage import loginPage from page_obj.base im...
[ "admin@C02RQBUDFVH3.local" ]
admin@C02RQBUDFVH3.local
23a45798837cbcc0ddc9dee1624142225d15b2c9
927dd1abc7e7bdfab50ef9702aefa88f7fc296c5
/preprocessing/dataset.py
09a52752d3a4c45beda24ba9db1a0516801ec580
[]
no_license
Zheng7AI310/kddMIMIC
a0d6e1883a9c92534754ead331412763a3b1f185
559d885f1c17a2defe4da5631147da23e9e5e9a4
refs/heads/main
2023-01-11T09:35:18.547243
2020-11-16T09:03:32
2020-11-16T09:03:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,574
py
import os, yaml, torch import numpy as np import pandas as pd from glob import glob import SimpleITK as sitk from torch.utils.data import Dataset class nnDataset(Dataset): def __init__(self, X, y): self.X = X self.y = y self.len = len(self.y) def __getitem__(self, index): ...
[ "linzhenyu@outlook.fr" ]
linzhenyu@outlook.fr
1bfb09f0d57f326f49a94e3921a775d4936c96f3
7d0f2618b59608deb9c33a5022252de0ceeac35a
/test_single_batch.py
8ba2f5903c1ddb757b3e675c537d8da23ab4fe1a
[]
no_license
JianhaoZhan/ICAA-master
7ce575914b5b20c6afde6b4b3b3a966f1de626a5
ec87c3c5d3ead729a2632cdd92783de640724585
refs/heads/main
2023-06-21T17:56:54.128228
2021-07-16T12:15:24
2021-07-16T12:15:24
379,492,679
1
0
null
null
null
null
UTF-8
Python
false
false
2,721
py
import argparse import os '''python test_single_batch.py --rgb --class_num 101 --gpu 0 --split 1 --base_dir ''' def parse_opts(): parser = argparse.ArgumentParser() # Datasets parser.add_argument( '--class_num', type=int) parser.add_argument( '--gpu', type=int) p...
[ "noreply@github.com" ]
JianhaoZhan.noreply@github.com
81dce2d3f7c5bb01223d286e792081b1b8fab9c5
81958e17335e64690a41fd79955e8a243e82a424
/mnistStudy/neuralNetwork.py
7102332181ac13ed9e18f72f046169ca6d3f2a21
[]
no_license
yuanjin54/ml
95d3c469b9b4fe99f7eb57a48cd6a80441f8e74e
7a29ed75143d436987b7d13b17297ba669ea03f2
refs/heads/master
2020-05-26T22:29:26.342078
2019-06-12T14:17:34
2019-06-12T14:17:34
188,399,664
0
0
null
null
null
null
UTF-8
Python
false
false
1,568
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy as np # 参数 learning_rate = 0.1 input_size = 784 output_size = 10 batch_size = 50 # 导入数据 mnist = input_data.read_data_sets('MNIST_data', one_hot=True) trX, trY, teX, teY = mnist.train.images, mnist.train.labels, mnist.test....
[ "yuanjin@jd.com" ]
yuanjin@jd.com
07dbc42fd8219defc6b8597dd7fb73fd3d8867bc
eeec4846d48c562f14c1516167b2c253c8a706fb
/python/ccf/ledger.py
2c40213e7e4b8930197672463d91453cd385b7e5
[ "Apache-2.0" ]
permissive
som-don/CCF
bff65b013e6b147c58fe8733cce09a3a5a8a8cbd
425692fdcebc0f2dba81d62046c8c0a9911504ab
refs/heads/main
2023-07-19T13:33:55.020360
2021-09-07T19:36:36
2021-09-07T19:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,378
py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import io import struct import os from enum import Enum from typing import BinaryIO, NamedTuple, Optional, Tuple, Dict, List import json import base64 from dataclasses import dataclass from loguru import logger as L...
[ "noreply@github.com" ]
som-don.noreply@github.com
b20de0ebb677a3ed58d1765dc1868a21d1668c7e
73a0af27213e27699e114c9797e5c03e91cc429f
/physicsFormula/Formula/apps.py
cdf4292a000db287e1b9daff66975fd18520b0ee
[]
no_license
aysunkarahan/physicsFormula
359db6741f84c18070fd3999705f4306a1e7704c
e7dfcf808e12cc41ed8e686aefa2c00ed17c0946
refs/heads/master
2020-05-30T08:35:52.860680
2017-03-17T13:49:28
2017-03-17T13:49:28
83,682,805
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.apps import AppConfig class FormulaConfig(AppConfig): name = 'Formula'
[ "noreply@github.com" ]
aysunkarahan.noreply@github.com
2516797fef3b12f0075f1651833922a8823828dc
77e3c60a101b0ea0a895e64820471e7dcaddb772
/models.py
7edeba18fb52f25f82b361854e8017616c292c7c
[]
no_license
marchumeau/img_upload_database_test
1a3f9ccb3580b3eafde2a67cf83187bcd5ded3ea
948079741e92bbdb22f22494c1e497aea4f5726f
refs/heads/master
2023-02-22T19:32:19.422533
2021-01-21T19:34:03
2021-01-21T19:34:03
331,517,238
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
from db import db class Img(db.Model): id = db.Column(db.Integer, primary_key=True) img = db.Column(db.Text, unique=True, nullable=False) name = db.Column(db.Text, nullable=False) mimetype = db.Column(db.Text, nullable=False)
[ "72947138+marchumeau@users.noreply.github.com" ]
72947138+marchumeau@users.noreply.github.com
16e95ad6ec4f07800349ff5a99030824c6059847
099c4154c0d54c9687c4c8de38d63755568c2451
/exercises/philly_bike_messenger/philly_bike_messenger/old_version.py
b71edc9a4c1a85c55261dcd8f1b990b260c378b4
[]
no_license
suptaphilip/python_tutorials
c7cd57f575d76b0d5d56c10014241b628ff2b70e
2582a1eb52a48641f0ecf259d6e42680b591b776
refs/heads/master
2020-04-05T19:04:08.626860
2013-11-14T23:54:25
2013-11-14T23:54:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,925
py
#! usr/bin/env python # Learn Python the Hardway """ exercise 36 from Learn Python the Hard Way Build your own game! ****** Philly Bike Messenger v1.0 ***** to do: finish choice 3. and create functions for choice 1. how to best organize functions? or is there a more efficient way to do this? how to make ...
[ "chrishenrick@gmail.com" ]
chrishenrick@gmail.com
cdb0e447c1ffb9db9e66c8049b1dee199f67c3b0
f40da0a58a7ea5446a402692c336775950e09f65
/17-18/mock-season/team-green/GUIManager.py
ce3041329963087b2da5c73fc5eb730c289408e4
[]
no_license
compvision/archive
e02361725750833f8d2f64a18b9bca9c94d9169b
7ecfff4ed4dc54c672f957ad6571d4b9f5f2ee50
refs/heads/master
2021-01-20T06:36:29.464454
2019-01-12T03:48:30
2019-01-12T03:48:30
101,510,961
0
1
null
null
null
null
UTF-8
Python
false
false
855
py
import cv2 class GUIManager: def __init__(self): #creates a targeting window to place the live feed cv2.namedWindow("Targeting", cv2.WINDOW_AUTOSIZE) def threshWindow(self): #creates a threshholding window to place threshholding image cv2.namedWindow("Thresh", cv2.WINDOW_AUTOSIZE) ...
[ "rob3rtyl33@gmail.com" ]
rob3rtyl33@gmail.com
fdb7367a6380cb62ebd444ff1d6e4f6105546a8e
d253881414f7290ff6911b11264405fa2f4d2b10
/malware/Xtreme RAT/xtrat_decrypt_keylog.py
88f6d9aa49917d5e032f3dbd4b8479078c9c8fb1
[]
no_license
jjo-sec/tools
87104161ba2a1939cbccafdd1225512bab85eb8d
aa22da9639ab99d61f59c294a6cdbe6c19d9d82a
refs/heads/master
2021-05-27T06:07:29.243543
2014-03-31T15:56:54
2014-03-31T15:56:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,110
py
# Copyright (c) 2014 FireEye, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions an...
[ "james.bennett@fireeye.com" ]
james.bennett@fireeye.com
02bdabe52bc097773b81a49357863b67bc913c97
73332abdcadb62f4f262d0c30856c3c257a9ee7d
/tests/mixins/test_iomixin.py
5446c85b67adfa439bc9fec1f77da92295621017
[ "BSD-2-Clause" ]
permissive
code-google-com/oyprojectmanager
454435604cc150c1b54ec2c54294e0fa05490f82
3085ecbe1cc04a73ec69b4848b789009546feae7
refs/heads/master
2021-01-19T02:40:56.342086
2015-01-26T16:40:00
2015-01-26T16:40:00
32,266,400
1
2
null
null
null
null
UTF-8
Python
false
false
11,925
py
# -*- coding: utf-8 -*- # Copyright (c) 2009-2012, Erkan Ozgur Yilmaz # # This module is part of oyProjectManager and is released under the BSD 2 # License: http://www.opensource.org/licenses/BSD-2-Clause import os import shutil import tempfile import unittest from sqlalchemy import Column, Integer from oyProjectMana...
[ "eoyilmaz@gmail.com" ]
eoyilmaz@gmail.com
a74b1db5a96cc5517f157ef2a3dd75e49245b3eb
06e34e2dface0b87fa785cab7e65422a5f20ba18
/Solutions/165-Compare-Version-Numbers/python.py
048bbf21130c6b62a12402c9c0159f5b6c6472cd
[]
no_license
JerryHu1994/LeetCode-Practice
c9841b0ce70451c19c8a429a3898c05b6233e1d4
b0ce69985c51a9a794397cd98a996fca0e91d7d1
refs/heads/master
2022-02-10T04:42:28.033364
2022-01-02T04:44:22
2022-01-02T04:44:22
117,118,143
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
class Solution(object): def compareVersion(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ v1list, v2list = [int(i) for i in version1.split(".")], [int(i) for i in version2.split(".")] cmplen = min(len(v1list), len(v2list...
[ "hjr01211@gmail.com" ]
hjr01211@gmail.com
1500d25ceeb1eccf76cf3a2a60f6ecfae7313623
59dd2d1dc9598bed9ff15e6e6681cc2b42e69f02
/Ch03-kernel-methods.py
8445bd698be8514a819aabe0c937b3a55858fc65
[]
no_license
jingjielim/pythonML
73a4dce29d6929237cf9c35f9e2f57e61da0bcfa
b8510ebdf942e1ad4e7bf62c7a65cae1309b71f3
refs/heads/master
2022-11-14T16:06:13.122560
2020-06-25T13:54:59
2020-06-25T13:54:59
274,674,891
0
0
null
null
null
null
UTF-8
Python
false
false
3,451
py
from matplotlib.colors import ListedColormap import matplotlib.pyplot as plt def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02): # setup marker generator and color map markers = ('s', 'x', 'o', '^', 'v') colors = ('red', 'blue', 'lightgreen', 'gray', 'cyan') cmap = Liste...
[ "jingjie3000@gmail.com" ]
jingjie3000@gmail.com
af903468eb3c7df5323e66da7143b728271ecfde
43f0d69decc41216b224a6cbc9979b958a2803ff
/13.py
e75c48ebf8237c514fae4fced66a5cfeb7d2b761
[]
no_license
IGI-111/AdventOfCode2018
bcd511665749a9ad06c563f8d602be984796696a
70fef115dfafe544172f8c0f4e58165383ef15f1
refs/heads/master
2020-04-09T01:47:19.424122
2018-12-21T12:25:12
2018-12-21T12:25:12
159,917,180
0
0
null
null
null
null
UTF-8
Python
false
false
3,839
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from math import floor class Track: def __init__(self, file, raise_collisions=True): self.raise_collisions = raise_collisions self.track = [] self.carts = [] self.width = len(next(file)) - 1 file.seek(0) self.height = s...
[ "igi-111@protonmail.com" ]
igi-111@protonmail.com
8cc6f251e4577ac25628a27d2febeffc2a0231e6
1dcb9a532794cc53ed528cd69443bd52e2cd1717
/code/params_finder/stats_DNN_classifier_params_find.py
4a57e13d19c2c1f5f225b360d76244b25a433c36
[ "CC0-1.0" ]
permissive
Aftab-Hussain302/textclassification
01d6b1a68579c94419502347947c9a15de354137
e8ff0bcd69f76b225efb27455c3ad6c8a391e1e3
refs/heads/main
2023-04-21T23:56:20.467757
2021-05-16T00:24:28
2021-05-16T00:24:28
367,754,410
0
0
null
null
null
null
UTF-8
Python
false
false
6,317
py
# coding='UTF-8' import io import sys import os import re import pandas as pd import nltk import nltk.data import numpy as np import tensorflow import keras from keras import regularizers, optimizers from keras import backend as K from keras.callbacks import TensorBoard from keras.engine.topology import Layer from kera...
[ "65107684+Aftab-Hussain302@users.noreply.github.com" ]
65107684+Aftab-Hussain302@users.noreply.github.com
cc382c9041af3f3a16deaa7c7d0cab2181eabd06
ba2b767f962bbd5c65b71b452c3da5c981097d92
/data.py
0e058e1f97e8bf47d94cc6038980597697303fbe
[]
no_license
hegde95/Keras-Models
88a4010197141d7cc0a280e47d8e8a19633173fa
e064027ebbb374821ec1182a4a310c0c7814bee1
refs/heads/master
2021-04-20T12:21:14.214306
2020-03-30T08:48:25
2020-03-30T08:48:25
249,683,594
0
0
null
null
null
null
UTF-8
Python
false
false
3,962
py
from torchvision import transforms from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder import os import numpy as np import os.path as osp import json from tqdm import tqdm from PIL import Image import tensorflow from utils import Config class polyvore_dataset: def ...
[ "khegde@usc.edu" ]
khegde@usc.edu
e73b0c2f931c70d88a494d81742b662b1f9f794a
d346c1e694e376c303f1b55808d90429a1ad3c3a
/easy/412.fizzBuzz.py
1d68ac4f80bf7dfcb5ab984bf7365445d85410af
[]
no_license
littleliona/leetcode
3d06bc27c0ef59b863a2119cd5222dc94ed57b56
789d8d5c9cfd90b872be4a4c35a34a766d95f282
refs/heads/master
2021-01-19T11:52:11.938391
2018-02-19T03:01:47
2018-02-19T03:01:47
88,000,832
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
class Solution(object): def fizzBuzz(self, n): """ :type n: int :rtype: List[str] """ #mine L = [] for i in range(1, n+1): if i%15 == 0: L.append("FizzBuzz") elif i%3 == 0: L.append("Fizz") elif i%5 == 0: ...
[ "aria@Arias-MacBook-Pro.local" ]
aria@Arias-MacBook-Pro.local
aa9c859721f3cf61a743cb7f21d7af7caf49b2b0
cf2959812b89424dfc537d3df4b4e64f7b50cd60
/tests/test_issues.py
881b8fd4a50a188b5e17b383c2be12b212cd3ef5
[ "Apache-2.0" ]
permissive
Pandziura/PyRFC
1c91808f6897d56743a5a7e66fb24e938c672960
0718eeb73d45732283d117f33e3395d35e4b2795
refs/heads/master
2020-03-23T04:54:20.141190
2018-07-13T13:20:25
2018-07-13T13:20:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,502
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import socket import pyrfc import pytest from tests.config import PARAMS as params, CONFIG_SECTIONS as config_sections, get_error def utf8len(s): return len(s.encode('utf-8')) class TestIssues(): def setup_method(self, test_method): """...
[ "srdjan.boskovic@sap.com" ]
srdjan.boskovic@sap.com
269f180523b8a200d2477f0616c2852949ef47f7
21de16d5004e1385b1a02625be1bb2ac546ffe53
/settings.py
7cbc89e14e7a76923d9f22574f8292574ce3af4b
[]
no_license
CaseyTM/pygame2
f840031505d175995f06759ffd6c62ff70afb2d5
67c2464d450db65c3e8e699b8b5f0599da0e50e1
refs/heads/master
2021-01-21T09:56:07.183107
2017-02-27T20:49:18
2017-02-27T20:49:18
83,355,287
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
class Settings(): def __init__(self): self.screen_size = (1200,1000); self.bg_color = (255,255,255); self.bullet_width = 3; self.bullet_height = 10; self.bullet_color = (0,0,0); self.bullet_speed = 5; self.timer = 0; self.monster_count = 0; self.game_active = False;
[ "caseymccaskill@Caseys-MacBook-Pro.local" ]
caseymccaskill@Caseys-MacBook-Pro.local
a9c402a9ca70bd87eff2b38291c51b352849f0bc
9f98dadec8c77ab62d41570acefb1394dba99c1f
/blog/models.py
64797e5ccb67ac0da6d94af9988041483da709d8
[]
no_license
kcolson8/MusicBlogWebsite
0c90465d8460e2ec44ba798fd80603bafd70497f
ebf584606b5650301581732e37d4ae13019fb70a
refs/heads/master
2022-11-18T13:54:59.382450
2020-07-21T03:00:29
2020-07-21T03:00:29
255,753,243
0
0
null
null
null
null
UTF-8
Python
false
false
1,369
py
from django.db import models from django.utils import timezone from django.urls import reverse # Create your models here. class Post(models.Model): author = models.ForeignKey('auth.User', on_delete = models.CASCADE) title = models.CharField(max_length = 200) text = models.TextField() created_date = mod...
[ "kelliepanda@gmail.com" ]
kelliepanda@gmail.com
13448e5abb9cdea6389e6c6e90322b4642950228
18f865a906e817b62560404355f6dbbdde171cc8
/codewars.com/python/kyu_7/numerical_palindrome_number_1.py
1e6e8c14f2b2606ecfe986ff1f57c05f8cd807c2
[]
no_license
Mietunteol/playground
fdfeffb2c78a37d902094ace36f2f75ef25bdb99
0c87c215deb32581b12d2481164d2832880ed10a
refs/heads/master
2020-07-07T03:42:58.898415
2019-10-02T12:24:02
2019-10-02T12:24:02
203,234,879
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
# https://www.codewars.com/kata/numerical-palindrome-number-1 def palindrome(num): if not isinstance(num, int): return 'Not valid' if num <= 0: return 'Not valid' return str(num) == str(num)[::-1]
[ "mietunteol@protonmail.com" ]
mietunteol@protonmail.com
16d6e53fe3521c98fd4763fe5ac5618394c97cc9
d8fc4d4ed996b853753724a75bf349f6924ce8a2
/custom_modules_vb/colors.py
efa1dc159638c1ed73cc8df79856cb0e9852a9e1
[]
no_license
raineydavid/identify-users-geo-data
8519f1dc6708cfd78c16d7b6ad995c8b4b5818d0
daa59792b89a4ab4f047f89bb841dec662fb74e6
refs/heads/master
2020-07-26T00:11:21.156857
2019-09-10T12:00:29
2019-09-10T12:00:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
''' This module provide a HEX color palette for plotting purposes. The values of colors are stored in a list below. Prepared by Vytatas Bielinskas. ''' def colors_for_plotting(): colors=['#0096D6', '#008000', '#800080', '#FF7513', '#9D7D59', '#FF7F50', '#6B5D96', '#E1AD21', '#...
[ "noreply@github.com" ]
raineydavid.noreply@github.com
13864eb979ba3a66cdf6ee2f576dc263e861a491
c3c46489188ff047e694dd1c69815eea68fbd630
/dangerous/set-k.py
754758eb5ec904cf50e6a12d0d1ed0fbd840374e
[]
no_license
OpenTaal/database-tools
2248373c3b29b3a3977b791642ed84fd0bdac357
0b7abfb51fcd885fba3c70c4ea441e14758636c8
refs/heads/master
2021-01-01T05:30:21.133771
2018-10-14T15:19:01
2018-10-14T15:19:01
12,519,981
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
#!/usr/bin/env python3 import mysql.connector exit(0) databaseUsername = '' databasePassword = '' for line in open('../.database-username', 'r'): databaseUsername = line.strip() break for line in open('../.database-password', 'r'): databasePassword = line.strip() break cnx = mysql.connector.connect(user=database...
[ "pander@opentaal.org" ]
pander@opentaal.org
9a67e9dd700c56946f60ccab869aba02fedbd15d
c78e462e87d43b6dbb51fed58bf3ddaf103266b4
/train.py
f7d9764fb938c110667d6907101b39dc786dfbe0
[]
no_license
TowardsNorth/airplane_classifier
3c4d3c8209e92d64f4aaeb50504dc8d83c133317
7db760a74d57bd7c5aaefae5a882f8bd25c554fd
refs/heads/master
2020-03-28T07:52:09.457090
2018-02-21T07:39:39
2018-02-21T07:39:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,752
py
from keras import applications from keras.preprocessing.image import ImageDataGenerator from keras import optimizers from keras.models import Sequential, Model from keras.layers import Dropout, Flatten, Dense, GlobalAveragePooling2D from keras import backend as k from keras.callbacks import ModelCheckpoint, LearningRat...
[ "chase@thezimmerman.net" ]
chase@thezimmerman.net
fa13af4000480510be0be6f39f3d0dc96f33a19f
9e06c2dab3dbde717248a58291167e944ca3d0a8
/params.py
7d56b35c153c44d024e52166d87faaca9ad27fec
[]
no_license
arushir/dqn
aa680f58871a8c4b7e3dbbdcd46d43295f9eaf19
5b69c948f008bc622eb3a216a5ccb748da5bf02c
refs/heads/master
2020-04-06T04:16:50.332604
2016-06-17T03:31:56
2016-06-17T03:31:56
59,516,744
2
1
null
null
null
null
UTF-8
Python
false
false
3,097
py
import os import argparse DEFAULT_EPISODES = 2000 DEFAULT_STEPS = 1000000 DEFAULT_STEPS_TO_UPDATE = 2000 DEFAULT_ENVIRONMENT = 'AirRaid-ram-v0' DEFAULT_SKIPPING_CONST = 4 DEFAULT_MEMORY_CAPACITY = 10000 DEFAULT_EPSILON = 0.1 DEFAULT_GAMMA = 0.9 DEFAULT_MINI_BATCH_SIZE = 16 DEFAULT_LEARNING_RATE = 0.0001 DEFAULT_REGU...
[ "arushi.raghu@gmail.com" ]
arushi.raghu@gmail.com
65af97d8dc0010f9ffa2b4dfce5cb9454b8c2868
4ea920127f4e7721e0b37ccf132372f71a3d698c
/euler001.py
e5187d1234fee240b4247c77c9bc4618d5f2fcf7
[]
no_license
PaulWichser/Euler
5c1fa4a54811cf34dcfd5f39a13dd5f7a988b9ab
26899b6d83d50f5a510dd6d1a69e4ae4e699da50
refs/heads/master
2021-07-08T01:10:55.734755
2017-10-04T13:31:13
2017-10-04T13:31:13
104,509,576
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
# https://projecteuler.net/problem=1 #If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. #Find the sum of all the multiples of 3 or 5 below 1000. n = 1000 #number below which we will count multiples of 3 and 5 total = 0 for i in range (...
[ "paul@paulwichser.com" ]
paul@paulwichser.com
aa9c19a2ed520cffc3c428efab5365b6513222fc
a2271d19eb4a1dc60d613c69ac467b4bdf107851
/register/migrations/0002_auto_20210302_2000.py
bcd1087ee7f085eae321338b0f58b12eb780e3e8
[]
no_license
vrushitpatel/SocialConclave
783b2884da50ebe44b04d772b7f0abf352fc6b1f
40248e81baefa336db72d65518c84e4e4d4dc133
refs/heads/master
2023-03-21T00:28:33.684434
2021-03-07T10:42:21
2021-03-07T10:42:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,028
py
# Generated by Django 3.1.3 on 2021-03-02 14:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('register', '0001_initial'), ] operations = [ migrations.AlterField( model_name='delegate', name='topicPref1', ...
[ "vrushit7506@gmail.com" ]
vrushit7506@gmail.com
f040970072c7fe7254cf9d4870fd16787e6fca71
06afc51b71990f6a1d3a5ca1a2612ec8f4efe864
/users/migrations/0003_auto_20201221_2136.py
a86c46be876f157d3c06113a674dff8b86bc869e
[]
no_license
akadiving/Tichera_backend
adea904b597b068fe9d987ef946bf5b77c73a2ca
71bf76506b3b53f6e4c45dce45a18c156db11b20
refs/heads/master
2023-02-04T23:15:05.137199
2020-12-25T12:43:03
2020-12-25T12:43:03
323,727,752
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
# Generated by Django 3.1.4 on 2020-12-21 17:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20201208_1925'), ] operations = [ migrations.RenameField( model_name='newuser', old_name='username', ...
[ "akoivanishvili6@gmail.com" ]
akoivanishvili6@gmail.com
4850be5b0fd0735cafbaab017d2a1263a9d2bc1d
2150a64d20b9d666c8f608f828797a7067f90aa7
/Recursions/Recursion.py
4b7ce61a592aa1360b8d053676309838ce7294c0
[]
no_license
adjeri/Data-Structures-And-Algorithms
226dd83d4d292788c298df9a35e7d30023a6a4b0
b43089bc3550451e148ffcb0261dfa8d9a0122dc
refs/heads/master
2023-02-10T21:03:01.852776
2021-01-05T07:55:21
2021-01-05T07:55:21
318,717,495
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
# Identify the base case # Identify the recursive case # Get closer and closer and return when needed. Usually you have 2 returns counter = 0 def inception(count): if count > 3: return 'done' count += 1 return inception(count) print(inception(counter))
[ "kod047@gmail.com" ]
kod047@gmail.com
46892f452a959069be09fa8cd505b7f60dd743a3
8cf851b331535a5357562ac1e480a42276bdeb8c
/models/__init__.py
ef11b7d4f5636616093864870ad8bd67fa91f069
[]
no_license
OliverHuang1220/IC_CN
3268f0fb4bedb9084b96033de80b17633ec99c93
6afa6cb6138a45d29413a6a7f00d025fd841c5f7
refs/heads/main
2023-07-17T17:41:57.462187
2021-09-01T12:05:28
2021-09-01T12:05:28
400,967,996
2
1
null
null
null
null
UTF-8
Python
false
false
1,938
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import copy import numpy as np import misc.utils as utils import torch from .ShowTellModel import ShowTellModel from .FCModel import FCModel from .OldModel import ShowAttendTellModel, AllImgModel fr...
[ "374198786@qq.com" ]
374198786@qq.com
a06a69b69366331307f44d94200eaef84ea6efa1
84010a75de0402e999380959c95838a163e54143
/Game/tile.py
b83a80f18f6dc048e04aa59331a0f5406ea719fc
[]
no_license
LoganW94/DungeonMiner
ea1690326f84da1ba5240f71cca7729d3337c3ae
a96ee016789a7b310cec654f4e91168d3e031076
refs/heads/master
2021-01-01T06:52:57.997914
2017-11-07T05:31:39
2017-11-07T05:31:39
97,539,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
import json "colors" white = (255,255,255) black = (0,0,0) red = (255,0,0) green = (0,255,0) blue = (0,0,255) grey = (211,211,211) yellow = (255,255,0) violet = (160,10,226) orange = (255,165,0) class Tile: def __init__(self, location, ID): self.location = location self.ID = ID self.type = "Tile" self.tile ...
[ "loganwogoman@gmail.com" ]
loganwogoman@gmail.com
8f652ff83256c8fbcc75eaf2766eb366e09828ed
f622c3926085d822f397266578cb4578d208801e
/grpc_server/views/helloworld_pb2.py
1e1d9b4f8513ad5aa83d74447cd132b3579a6f40
[]
no_license
luoying1105/sayhello
eabf0876e6abf5bd7db8befdc7200e5dd132889b
4872f5ffd7cacf4cb807401125f39170cd64c17f
refs/heads/master
2020-05-16T10:20:53.414540
2019-04-23T09:46:57
2019-04-23T09:56:19
182,979,587
0
0
null
null
null
null
UTF-8
Python
false
true
8,860
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: helloworld.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pr...
[ "411426150@qq.com" ]
411426150@qq.com
9c4db63f3fccff9b34f02d52409ad971da14fb48
069a4ac8e931b77571f90fcc845b2c88ce18e069
/Chapter5/stack_queue_notes.py
4b2ebe26b0e772e5387d2cc623594c35e635490c
[ "Apache-2.0" ]
permissive
qimanchen/Algorithm_Python
0f60c38e01119d7a99469f76194fdeb363008229
72eabb5fcc9fafb17172879c1250d3c9553e583d
refs/heads/master
2020-04-28T17:16:28.520904
2020-01-31T07:27:48
2020-01-31T07:27:48
175,440,054
0
0
null
null
null
null
UTF-8
Python
false
false
2,233
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 栈和队列: 容器 包含 元素(其他数据结构) 只支持数据项的存储和访问,不支持数据项之间的任何关系 最重要的功能: 元素的存入和取出 两种访问顺序: 先进先出 后进先出 栈概念: 元素之间只有时间的先后顺序关系,而无其他关系 后进先出 应用: 前缀表达式: 每个运算符的运算对象,就是它后面出现的几个完整表达式 后缀表达式: 与前面相反 栈与函数调用: 1、进入新的函数调用之前,保存一些信息 -- 函数调用的前序动作 2、退出上一次函数调用,...
[ "1033178199@qq.com" ]
1033178199@qq.com
44b3d98fa7626cf2642c5a234c7581456b1d1efd
894e8d9409a5b9839832688c8d663719985c4b16
/Exercícios/Aula35.py
4db0dff9441f91e6492f8f5fe61979a16cbbec91
[ "MIT" ]
permissive
pedroareis/Curso_Python
ed0ec02624de8a36a281f7e86276184be780b840
a9909971eae7a7dacc3e17fd4ba59821edb61848
refs/heads/master
2022-09-21T02:48:36.213443
2020-06-07T23:02:52
2020-06-07T23:02:52
270,456,112
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
print('+=+'*20) print('Analisador de triângulos') print('+=+'*20) r1 = float(input('tamanho reta 1: ')) r2 = float(input('tamanho reta 2: ')) r3 = float(input('tamanho reta 3: ')) if r1 + r2 < r3 or r1 + r3 < r2 or r2 + r3 < r1: print('\033[1;31mNÃO\033[m é possível formar um triângulo') else: print('Com os va...
[ "pamaralreis@gmail.com" ]
pamaralreis@gmail.com
a4c3f170dac741d91e3fe583125977c02fb676e4
7dde6bf21c784988fff717faccb04d1aa08bb77d
/Variablen.py
521339d452c540321c918c8cc9ca766318ecb55a
[]
no_license
JannikAlaska/Python
a14eb4e8f8792b9be9db986d30bf36193cdb5e1b
427b6e577ea7f372e1bcaa29d41cf4bb16acc570
refs/heads/master
2022-11-08T22:37:19.885070
2020-06-29T06:42:08
2020-06-29T06:42:08
269,565,618
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
# coding: utf-8 # ---Funktionen---------------------------------------------------------------------------------------------------- def f(): def local(): x = "local text" def do_nonlocal(): nonlocal x x = "nonlocal text" def do_global(): global x x = "global text" x = "test" local() do_nonlocal() pr...
[ "Jannik@berthold-ilsenburg.de" ]
Jannik@berthold-ilsenburg.de
d7f92c174fa738bc9ee9614831e0ffcb19e53f82
a29db4b0492a8b4fff620b215ea8af725a658c5f
/chocobo/init.py
1ba5902bfa6f65fad3968ff9a77c3da0bb5746b2
[]
no_license
Bosmansc/Caribouce
bed43255511100f608c14ee012126e7339b2df2c
58d23a79cbc1c8739d65775140aa35e6c6c8f38d
refs/heads/master
2020-12-06T05:43:47.438837
2020-01-07T16:14:24
2020-01-07T16:14:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
"""chocobo is a python package for delicious Chocobo recipes.""" from .chocobo import ( chocobo_roast, )
[ "c.bosmans@napoleongames.be" ]
c.bosmans@napoleongames.be
433954727a229ffd04449f3343858a5eede8e289
db7d00004531557d65e51fcfb13209e30d4f212b
/03-07_RegEx_a_lot.py
4d4cc418f575165a41ed66a261c17e3d258423a4
[]
no_license
ifeedtherain/Python_Stepik
f55301a9211f0ea1893bc0802c4c79f2bfb95af5
fe647b6aad6b8787eab5b6611a746dd6b6c7b422
refs/heads/master
2021-06-19T16:19:34.058312
2017-07-22T12:07:55
2017-07-22T12:07:55
95,206,385
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
import sys import re #1 for line in sys.stdin: line = line.rstrip() if re.search(r'\b(\w+)\1\b', line) != None: print(line) #2 for line in sys.stdin: line = line.rstrip() h = re.sub(r'\b[Aa]+\b', 'argh', line, count=1,flags=re.IGNORECASE) print(h) #3 for line in sys.stdin: line = line.rs...
[ "noreply@github.com" ]
ifeedtherain.noreply@github.com
31fedb2ee9b7af5c41d89b8be6739067f8ea3c72
3f3a3794825798fbab771c118b7b43abadaaae43
/models/resnet.py
81d7be66a66bdddc85c78061d061290e95c15071
[]
no_license
khasmamad99/dpml
f95c2d47513bba6a149d98901b094de0946742b4
65a813af152a92f59c2587fde2169640b61b35ee
refs/heads/master
2022-12-09T11:26:32.059812
2020-09-15T22:25:38
2020-09-15T22:25:38
295,861,607
0
0
null
null
null
null
UTF-8
Python
false
false
14,864
py
import torch import torch.nn as nn from torch.hub import load_state_dict_from_url __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'wide_resnet50_2', 'wide_resnet101_2'] model_urls = { 'resnet18': 'https://download.py...
[ "sh.khasmamad@gmail.com" ]
sh.khasmamad@gmail.com
a4292e68b87952a14644dbbc21fe6004badc032c
3bddb1c90a8e2a6351c6303f59f980b8beffd5e3
/app/middleware.py
c1f11f3458fd543c57fc81d6bcc163547d3629ac
[]
no_license
594WangHao/Project
c1549fd4754dba7a0c5080d1bcbf613f37537994
9d8f50dcd6ea1661ac65500cb5c2d29818991d1c
refs/heads/master
2021-01-19T10:34:30.850059
2017-04-20T06:08:38
2017-04-20T06:08:38
87,877,552
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
from django.http import HttpResponse from django.shortcuts import render try: from django.utils.deprecation import MiddlewareMixin # Django 1.10.x except ImportError: MiddlewareMixin = object # Django 1.4.x - Django 1.9.x class UserCheck(MiddlewareMixin): """ 用户登录检查中间件 """ def process_reques...
[ "wanghao594@hotmail.com" ]
wanghao594@hotmail.com
c6c5b98d66abced8eee513b103a30429094cface
6879a8596df6f302c63966a2d27f6b4d11cc9b29
/abc/problems030/028/c.py
33699ae14e6f2767c00684d9ab5c770609c9fcae
[]
no_license
wkwkgg/atcoder
41b1e02b88bf7a8291b709306e54cb56cb93e52a
28a7d4084a4100236510c05a88e50aa0403ac7cd
refs/heads/master
2020-07-26T03:47:19.460049
2020-03-01T18:29:57
2020-03-01T18:29:57
208,523,188
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
# ABC028 : C - 数を3つ選ぶマン from itertools import combinations ins = list(map(int, input().split())) res = [] for xs in combinations(ins, 3): res.append(sum(xs)) print(sorted(res, reverse=True)[2])
[ "yujin@komachi.live" ]
yujin@komachi.live
c9fa972d9fbf006f62ef6c50153c8e7e7f223381
ee39928879d6ca5ab4abaee209061bc8648b56e9
/player.py
ab4e17a29122611c06dde21e8dd5bad9a3badb1b
[]
no_license
gallo-json/rpi-mp3-player
4c05f153658b567320124a6dbcd4401f5675e846
8d298113de75072345fdfcdd328aee5b8eb4ac68
refs/heads/master
2022-12-18T14:52:11.109114
2020-10-01T12:45:15
2020-10-01T12:45:15
257,699,528
2
1
null
null
null
null
UTF-8
Python
false
false
1,484
py
import os import RPi.GPIO as GPIO import time import threading import subprocess import glob pause_play = 14 next_track = 15 vol_up = 18 vol_d = 23 GPIO.setmode(GPIO.BCM) GPIO.setup(pause_play, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(next_track, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(vol_up, GPIO.IN, pu...
[ "gallojsantiago@gmail.com" ]
gallojsantiago@gmail.com
ebce59403fc3f415f42f6ae367de531b0bbcbee3
3f53032a6a3c7266c1ad576889b1283a671a0e06
/PointCloud.py
b1ccfb9c3869eac7d9b644818cd73ac2c62b5d99
[]
no_license
WaveWarrior3/Project
4337890fd1c080bc727aecfd8d90dcff199ea28b
6595336077d25fe29c5def38f8767911e7862827
refs/heads/master
2023-05-27T16:22:13.307383
2021-06-10T20:34:13
2021-06-10T20:34:13
357,415,557
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
from math import sin, cos import numpy as np def readingTo3D(distance, angle_vert, angle_horiz): return (distance*sin(angle_vert)*cos(angle_horiz), distance*sin(angle_horiz), distance*cos(angle_vert)*cos(angle_horiz)) def PointCloud(LIDAR, parameters): ''' LIDAR is a 2 dimensional array of sensor reading...
[ "wavewarrior488@gmail.com" ]
wavewarrior488@gmail.com
d201477b81f41fe09c29517e0e31fca1bddf127a
b6e09f57c8676e34b035e7f1c7372c2b90e1ced0
/chi_square.py
4d1504991f74e345f4601704467f82bbe3490b6e
[ "Apache-2.0" ]
permissive
codehack9991/Information-Security
7027750ede5c44efab3852a5aed71a625661675b
a85071524b2c31c515974903ebf35b4183de9529
refs/heads/master
2020-05-24T15:51:42.908356
2019-05-18T10:30:14
2019-05-18T10:30:14
187,342,155
2
0
null
null
null
null
UTF-8
Python
false
false
1,487
py
from math import sqrt from collections import Counter import lcg import bbs import ansi import numpy as np import matplotlib.pyplot as plt def is_random(random_nums): # Calculate the number of samples - n n = len(random_nums) r = 10 # no. of classes # According to Sedgewick: # This is valid if n ...
[ "noreply@github.com" ]
codehack9991.noreply@github.com
e92416720e9d10d9c0f591929294d10b632b2e17
77b16dcd465b497c22cf3c096fa5c7d887d9b0c2
/Francisco_Trujillo/Assignments/flaskolympics/olympics6/server.py
29f43c7f8562278fb156e038802a32014712f696
[ "MIT" ]
permissive
curest0x1021/Python-Django-Web
a7cf8a45e0b924ce23791c18f6a6fb3732c36322
6264bc4c90ef1432ba0902c76b567cf3caaae221
refs/heads/master
2020-04-26T17:14:20.277967
2016-10-18T21:54:39
2016-10-18T21:54:39
173,706,702
6
0
null
null
null
null
UTF-8
Python
false
false
777
py
from flask import Flask, render_template, session, request, redirect import random app = Flask(__name__) app.secret_key = 'my_secret_key' @app.route('/') def index(): if not 'gold' in session: session['gold'] = 0 if not 'activities' in session: session['activities'] = [] return render_templ...
[ "43941751+curest0x1021@users.noreply.github.com" ]
43941751+curest0x1021@users.noreply.github.com
022c0a5b59b6ab927a9a5f4463dd7ea34fc79202
3624e9f0a026b57ebdafa4e842b93f56e5a8504d
/Codeforces/54 Beta Division 2/Problem A/A.py
e71f611141ffce1faa0d2fef75b77557ad7af796
[ "MIT" ]
permissive
ailyanlu1/Competitive-Programming-2
54109c8644d3ac02715dc4570916b212412c25c0
6c990656178fb0cd33354cbe5508164207012f24
refs/heads/master
2020-03-23T07:48:20.560283
2018-02-15T06:49:49
2018-02-15T06:49:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
s = raw_input() l = len(s) if 'h' in s: i = s.index('h') s = s[i+1:] if 'e' in s: i = s.index('e') s = s[i+1:] if 'l' in s: i = s.index('l') s = s[i+1:] if 'l' in s: i = s.index('l') s = s[i+1:] if 'o' in s: print "YES" else: print "NO" else: print "NO" else: prin...
[ "adityapaliwal95@gmail.com" ]
adityapaliwal95@gmail.com
10a59fb483b870d8565088d936df3af229200397
e5e2b7da41fda915cb849f031a0223e2ac354066
/sdk/python/pulumi_azure_native/servicebus/v20180101preview/namespace_authorization_rule.py
dae834124429d04d4271d6518385cfa5be49f153
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
johnbirdau/pulumi-azure-native
b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25
d676cc331caa0694d8be99cb90b93fa231e3c705
refs/heads/master
2023-05-06T06:48:05.040357
2021-06-01T20:42:38
2021-06-01T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,831
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
johnbirdau.noreply@github.com
9095d8604e52ade3fa9d9281d9cff4693f66a674
8498eee9d3c7bf6e5667db9d381733405948fe33
/Basic testing/firebase test/test11.py
471ef683dfaf2ce0e2c4986ae69077fb5f2404fa
[]
no_license
syahmi001/Fingerprint_Class_Attendance_System
0d946f7a8fc39515706a8eeb5cdbd7ed27cf62d2
d96d394f75586800a07e6a618dc102009cf851a5
refs/heads/master
2022-12-15T05:53:43.327976
2020-09-16T00:18:16
2020-09-16T00:18:16
294,192,628
1
0
null
null
null
null
UTF-8
Python
false
false
173
py
from firebase import firebase firebase = firebase.FirebaseApplication('https://attendance-36688.firebaseio.com', None) result= firebase.get('/class', None) print (result)
[ "50522796+syahmi001@users.noreply.github.com" ]
50522796+syahmi001@users.noreply.github.com
a03cd0b74173e423e1504dfeef024bbbf613678d
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/eventhub/v20150801/event_hub.py
c58558ab4ee10df9503de6c7df040f6b0f34cf5d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
7,517
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
054c182c7c67ce4417f71a937fd9ab04c1ee7189
f31ec5424f36b0b47cdcce49f6456b3da93556c6
/cinema.py
1e4c862f07572fc7cc2acc51a9b28d72ed1d7441
[]
no_license
V1bajpai/console_cinema
3eaa57c15ba5a7d7add952081bea087474cee053
8c412b9e44e4965791d05d0d56460919f856f549
refs/heads/master
2023-07-14T14:15:44.287696
2021-09-01T10:10:26
2021-09-01T10:10:26
402,014,364
0
0
null
null
null
null
UTF-8
Python
false
false
3,726
py
from openpyxl import Workbook, load_workbook from datetime import datetime, date wb = Workbook() sheet = wb.active ''' check whether user is customer or Admin ''' def isuser(value): if value == 1: pwd = input('Enter password: ') if pwd == '1234': adminfun() if value == 2: ...
[ "vaibhavbajpai07059@gmail.com" ]
vaibhavbajpai07059@gmail.com
7d07744cf78523a06ed7d442dc992472a9d8cd0f
243d917a12bf487081ed455461bf34052f68d36a
/test_sentiment_analysis.py
eaba9224876160ba2ef18aa2c46c8c81befd3d91
[]
no_license
pankajsnehi1/Twitter_Streaming
342c6d68484fc55aaf5147f84184434b34430124
c2dfbb27b68773c584f5453b54d6d88f2fc7a9df
refs/heads/master
2020-05-20T18:06:35.169589
2017-04-14T19:16:30
2017-04-14T19:16:30
84,499,014
0
4
null
null
null
null
UTF-8
Python
false
false
1,004
py
from textblob import TextBlob from nltk.tokenize import WhitespaceTokenizer import re #loading the AFFINN score def get_affinn_scores(file='AFINN-111.txt'): affinn_file = open(file) scores = {} for line in (affinn_file): term, score = (line.split("\t")) scores[term] = int(score) return ...
[ "psnehi1@sheffield.ac.uk" ]
psnehi1@sheffield.ac.uk
7427ccc94a057325ee7fa913190662ee7fdb32c8
2c272b09c0fb28174bb13c213ac65b1daa85b43e
/demo/admin.py
e2c04b008751b683e66ccfb7bd18db0af385372a
[]
no_license
MhKh78/django-starter
3ae1d94d335c66e1d9bafb4dea88f616a1ce7a2a
e890605c2cdbcb807cebfea063ce9e2f30f25498
refs/heads/master
2023-01-10T16:35:43.365411
2020-11-09T13:03:24
2020-11-09T13:03:24
311,310,588
1
0
null
null
null
null
UTF-8
Python
false
false
652
py
from django.contrib.admin import ModelAdmin, register, site from .models import Book, BookNumber, Character, BookFields # Register your models here. # admin.site.register(Book) @register(Book) class BookAdmin(ModelAdmin): list_display = [ BookFields.TITLE.value, BookFields.DESCRIPTION.value, ...
[ "mhkh431@gmail.com" ]
mhkh431@gmail.com
38248e35ea4b6601b817789314674bef3655c182
e0f6d645580a80d0accf218abf0b1f3f7c3f3027
/Python_Algorithm_Interview/Sparta_algorithm/week_3/03_insertion_sort.py
de0c2f160e8d3751b671db7ea56c964d8cc58f27
[]
no_license
MoonAuSosiGi/Coding-Test
656946e4900cf91bbe43438ec5bffb789d82c1e2
d04e2f6d7e4d36e70d943b0bb1c90d27a743082f
refs/heads/main
2023-03-04T00:36:59.645526
2021-02-15T14:12:41
2021-02-15T14:12:41
312,986,148
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
input = [4, 6, 2, 9, 1] def insertion_sort(array): n = len(array) string = "" for i in range(1,n): for j in range(i): if array[i - j - 1] > array[i - j]: array[i - j - 1] , array[i - j] = array[i-j], array[i-j-1] else: break ...
[ "hunlee@Hunui-MacBookPro.local" ]
hunlee@Hunui-MacBookPro.local
56bae0ea261cac580770b5cc789b04b6b2ad0c17
a275cec1fddb6e034b4e9df72f8039536c009990
/codes/leetcode/merge-sorted-array.py
0ddbcf9899003e159cb71c435e5f14e50ece09e7
[]
no_license
taoste/dirtysalt
a3cbd16710c81de65f00aa919f4e67a1fc66d226
bd68294fb7727d598ea1c8bf0a559247e07c1aea
refs/heads/master
2021-08-24T10:44:47.607924
2017-12-09T08:47:12
2017-12-09T08:47:12
113,807,519
1
0
null
null
null
null
UTF-8
Python
false
false
795
py
#!/usr/bin/env python # coding:utf-8 # Copyright (C) dirlt class Solution(object): def merge(self, nums1, m, nums2, n): """ :type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: void Do not return anything, modify nums1 in-place instead. ...
[ "dirtysalt1987@gmail.com" ]
dirtysalt1987@gmail.com
9d2221c0b5ff30efbb9e575d756eb9988ae15422
2e9c7b3fbcbb89e7868537877fa74f806da04143
/src/Pdfs.py
cfc67597298801dbf141b7b26d9dc2d61513fdcd
[ "Apache-2.0" ]
permissive
j-e-james/dadi-cli
722b7f809c60255a60fe2286aec7e2385cfb6c8d
71c0958888c09f78ec946cfdb86ad18966bae463
refs/heads/master
2023-03-11T23:27:07.511429
2021-02-23T05:27:08
2021-02-23T05:27:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,440
py
import dadi import dadi.DFE as DFE def get_dadi_pdf(pdf): if pdf == 'beta': return DFE.PDFs.beta elif pdf == 'biv_ind_gamma': return DFE.PDFs.biv_ind_gamma elif pdf == 'biv_lognormal': return DFE.PDFs.biv_lognormal elif pdf == 'exponential': return DFE.PDFs.exponential ...
[ "xin-huang@users.noreply.github.com" ]
xin-huang@users.noreply.github.com
e5bc3462261a3f9679d4f4336f5d6baa4e3be558
78eb6f030fb5694f6f0969ea456713b351fbbc40
/csimplifypd/pd/migrations/0007_auto_20190325_1750.py
b1133d67a0ca05afae0f4c98de79e43c20b31a21
[]
no_license
ParfectShot/csimplifyitpd
23b18d892852f51a03a92e03910f7162394fc024
809a15378c267fa1825d1b238be02264c2760c73
refs/heads/master
2020-04-22T21:28:43.823855
2019-04-16T11:18:51
2019-04-16T11:18:51
169,405,988
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
# Generated by Django 2.1.5 on 2019-03-25 12:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pd', '0006_auto_20190319_1721'), ] operations = [ migrations.CreateModel( name='User_role_link', fields=[ ...
[ "prtshydc@gmail.com" ]
prtshydc@gmail.com
fcee7705a89269b8a280eb0e32633a0c42a451de
80a5d51792999c3c042157b16b9a73c184e761b1
/sudoku/main.py
2d48198e5015d486fc1cfb59b9ab2a07b7eba096
[ "MIT" ]
permissive
eudika/puzzle
b7c650bbca36341bfef52d7e6620234d5de8b6dd
ede8c33c322f63b92736c2ec3135127322718733
refs/heads/main
2023-02-19T09:05:56.514214
2021-01-14T16:12:56
2021-01-14T16:38:31
329,669,675
0
1
null
null
null
null
UTF-8
Python
false
false
867
py
import logging from question import questions from sudoku import solve def run(): for q_no, q in enumerate(questions): print("=" * 80) print(f'Question {q_no}') print("-" * 80) print_table(q) print() for a_no, a in enumerate(solve(q)): print("-" * 80) ...
[ "eudika@gmail.com" ]
eudika@gmail.com
5666f7847d1dd2aede0d1d0572c957bc26bf50ed
14d940630ab365be939fc08d3d95b0a98789bae7
/lab103_robo_testes.py
53c976a5f967be537db278f7a9d6ac845b034565
[]
no_license
accolombini/python_completo
1da6f58f0c57b978d70582d96dc12b80c2d5b8a8
935102173a1112273b09734392dca08d76e9c749
refs/heads/master
2023-01-09T07:51:15.494101
2020-10-11T23:39:08
2020-10-11T23:39:08
283,790,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
""" # Motivando -> observe os teste antes de serem rafatorados -> note a repetição dos códigos class RoboTestes(unittest.TestCase): def test_carregar(self): megaman = Robo('Mega Man', bateria=50) megaman.carregar() self.assertEqual(megaman.bateria, 100) def test_dizer_nome(self): ...
[ "accolombini@gmail.com" ]
accolombini@gmail.com
61521147a37c8d844f8209e562aaf3f635bed7c8
51419322c63610f3966e3045c1cf9b96fbeff294
/SR6.py
d70a415b261860f8e8bbb166c21f10ea19605284
[]
no_license
Est17256/SR6
1c8c9ae8544a4973e34b75a04a7dd5736aec432e
1a52975bad353e44180d23435d55bb9b07626853
refs/heads/master
2020-05-03T07:05:23.215642
2019-03-29T23:41:36
2019-03-29T23:41:36
178,488,779
0
0
null
null
null
null
UTF-8
Python
false
false
16,845
py
#Luis Esturban 17256 #Graficas por computadora #SR6 #29/03/2019 import numpy as np import random import struct from math import * from operator import attrgetter from collections import namedtuple import sys def char(c): return struct.pack("=c", c.encode('ascii')) def word(c): return struct.pa...
[ "noreply@github.com" ]
Est17256.noreply@github.com
13fb54d0852fe1dfeeb443e83fb8420c7d983528
c4c584e0be173fd11ffd8628143c1a5b5d7b4c0d
/src/bitmessagekivy/kivy_helper_search.py
684a1722fba14467f6e49e6d025d1bd0c6953985
[ "HPND", "MIT", "BSD-2-Clause-Views", "BSD-2-Clause" ]
permissive
PeterSurda/PyBitmessage
de0bb4bd3e6773becd0a0cd7b0edd3ae7fce1360
035fac1fc5e7900146230055627f62a23e7f0686
refs/heads/master
2023-01-08T03:08:59.283864
2020-06-05T11:43:42
2020-07-22T08:38:05
125,002,771
2
1
MIT
2018-08-25T08:36:40
2018-03-13T06:24:52
Python
UTF-8
Python
false
false
1,630
py
from helper_sql import * def search_sql(xAddress="toaddress", account=None, folder="inbox", where=None, what=None, unreadOnly=False): if what is not None and what != "": what = "%" + what + "%" else: what = None if folder == "sent": sqlStatementBase = ''' SELECT toaddr...
[ "surbhi.s@cisinlabs.com" ]
surbhi.s@cisinlabs.com
28563c3b130a73ea862d0125f84c2e5cd56f81e7
f149eb0b0ed7f1cf00d3be82bd4286136020664c
/03 - Luigi and Kubernetes/02 - Combine kubernetes and luigi/src/preprocessing/__main__.py
870cb9d473da96adc5cbc70f8b3f11e9fb41e074
[ "MIT" ]
permissive
falknerdominik/luigi_with_kubernetes_summary
101a7f1547c455d7c0fa3009ab9154441601c12f
0f28a7498edc9154c981b8609fd836c44c17fa55
refs/heads/master
2022-12-11T06:16:51.527726
2020-02-10T13:00:55
2020-02-10T13:00:55
228,582,252
1
0
MIT
2022-12-08T03:35:02
2019-12-17T09:35:59
Python
UTF-8
Python
false
false
57
py
from .simple_workflow import run_pipeline run_pipeline()
[ "falkner.dominik@gmail.com" ]
falkner.dominik@gmail.com
c0d09bb346d17f9647d0cb98ed516a1c54e792b9
1b88475faf74b38fafff09e2a1abc7b7b498f343
/project/performance.py
2e91229b52b04d1430b2e1f54496090d4e8be5fa
[]
no_license
sakjur/parallell
f52687ab6d5283a70f6405d04275d36d144330f6
f1f1367d35317655daafb54f2b49d79eb3d09124
refs/heads/master
2021-06-27T12:32:30.297631
2016-03-25T16:59:38
2016-03-25T16:59:38
103,145,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
#!/usr/bin/env python3 import subprocess processes = ['./par_nlg.out', './par_sq.out', './seq_sq.out', './seq_nlg.out'] sizes = ['120', '180', '240'] cores = ['1', '2', '3', '4'] def run_process(run): rv = subprocess.check_output(run).decode('utf-8') rv = rv.strip() rv = rv.split('\n') for i, line in enumerat...
[ "sakjur@gmail.com" ]
sakjur@gmail.com
93bd5ff878015575feff95877e17f92032e72d5f
c90c262c48f1c337167e322da1d2309020ceac99
/myhome/main_app/migrations/0001_initial.py
4cecb5dad381d3f475cca87c51000b623f114e23
[]
no_license
guyunzh/my_home
f803cb28819597bd8005129c2682c47b3993f91c
16a59dbe42ee6c649494b78886c4fa5c8e584251
refs/heads/master
2021-04-27T00:11:06.636621
2018-03-17T10:54:27
2018-03-17T10:54:27
123,764,988
0
0
null
null
null
null
UTF-8
Python
false
false
780
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-04 04:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Messa...
[ "guyunzh@163.com" ]
guyunzh@163.com
5ce2877174aefee668e2ae0473644df3c6ca6f7b
85a1396d05ed319d64097fa3fc121e4854d2c24a
/tests/test_connect.py
b246a544220b67742ac5078c772222115a37c951
[]
no_license
zoexiong/web-tractdb
6476a66e74df05f25659d337767834b1e22d998a
4550145e33804115c3ce8a481a74a60eb9d3c1d7
refs/heads/master
2020-04-06T06:50:37.760430
2016-11-21T06:22:18
2016-11-21T06:22:18
66,410,163
0
0
null
2016-08-23T23:08:59
2016-08-23T23:08:58
null
UTF-8
Python
false
false
826
py
import tests.docker_base as docker_base import requests import unittest def setup(): docker_base.compose_ensure_up( 'tests/test-compose.localized.yml', 'test_main' ) def teardown(): pass class TestConnect(unittest.TestCase): def test_connect_pyramid(self): response = reques...
[ "jayfo.github@gmail.com" ]
jayfo.github@gmail.com
e05cb938b2c8a1e4a8ce5c5a76275e5ecde873ab
cb9ada4eab114276b2ef8eaf5e8d3faf047e86a6
/compare_singlechromSEQ_toLGs.py
9712e87f786f6190990b050d83fead348b7a58d3
[]
no_license
tfording/marmorata_linkagemap
f5ba9f0bad685d60bb7fa19a1914511096b0f272
ba4da0b2ee2e852ed495d0a5899b3acde897bd46
refs/heads/master
2021-03-24T13:09:41.446838
2018-02-22T19:04:29
2018-02-22T19:04:29
90,071,377
0
1
null
null
null
null
UTF-8
Python
false
false
3,204
py
#author=Tyler Fording def compare_singleChromSEQ_2_LGs(single_chom_path, LG_path): single_ChromSEQ_dict = singleCromSEQ_import(single_chom_path) lg_dict = LG_import(LG_path) for key in single_ChromSEQ_dict: print 'This starts the comparison for chromosome: '+str(key) for lg in lg_dict: ...
[ "tfording@gmail.com" ]
tfording@gmail.com
0805d0d3bab7db888f1100aaa875e33667988239
1f7fce552cc68731f683ded3f831e8f4650c7197
/Axis16/main/migrations/0009_kartavyaregistration.py
1be3f60f6b5585457a1db0143d9da9c6a1c78c22
[]
no_license
tanaypatil/axis-website
3985068cf1c52bb038b7174cbdf938b8b4084c03
b5eda2906150a38b1bb0daf8b23c9194572b849c
refs/heads/master
2020-06-13T03:14:05.855948
2019-06-30T13:12:11
2019-06-30T13:12:11
194,514,303
0
1
null
null
null
null
UTF-8
Python
false
false
2,426
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-15 08:24 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0008_ornithoregistration'), ] operations = [ ...
[ "tanaypatil197@gmail.com" ]
tanaypatil197@gmail.com
991afb7cdc2fcb16b03ef8ae726eb4229e75f067
09531f58bd76948a83f287c668eeb9566b253c5a
/church/migrations/0024_auto_20210314_2040.py
b6645361acfb5fc6e44125948232afaa1d4e23de
[]
no_license
crossroadsinajax/website
82358c429f79e364cc8825b3bd8ffd8de969fee5
6d85cbc97d2457f021def9b187498805092fe1f9
refs/heads/prod
2023-02-24T07:47:20.438949
2022-11-23T18:24:08
2022-11-23T18:33:25
240,397,981
0
1
null
2023-02-15T18:52:38
2020-02-14T00:43:17
Python
UTF-8
Python
false
false
427
py
# Generated by Django 3.1.7 on 2021-03-14 20:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('church', '0023_auto_20200424_0158'), ] operations = [ migrations.AlterField( model_name='user', name='first_name', ...
[ "kyle@verhoog.ca" ]
kyle@verhoog.ca
d7223e33cf1a53d89ca0729366e2b0ddfc6f1740
d2e82d8bc2a4604b6e734f7521ddae2716486b96
/20190521/futureData_model4/record/draw_record.py
bf0bc758b03291cdde27003399b6195b2623e921
[]
no_license
JudyPhy/spider
af74dbf8b74b335b64247b382e73b669796e5c1a
eb32aab272269f13a97ecea17eb6135f9e7e3d49
refs/heads/master
2021-07-05T19:07:50.427310
2020-08-14T09:29:49
2020-08-14T09:29:49
159,917,490
0
0
null
null
null
null
UTF-8
Python
false
false
1,312
py
from common import common def __getDrawRecords(draw, history_raceResults_rows): draw_records = [0, 0, 0, 0, 0] # [No1, No2, No3, No4, All] for race_date_No, dict in history_raceResults_rows.items(): for horse_code, row in dict.items(): plc = row['plc'].replace('DH', '') ...
[ "pujie@chinatsp.com" ]
pujie@chinatsp.com
97c069ca064fb33b7d4719f5d2073453efe1716a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_296/ch6_2019_04_22_18_58_02_325401.py
499aadc8a44219fa30fdbadc9ec1e86a5ba174aa
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
def encontra_maximo(a): i = 0 b = 0 while i < len(a): if a[i] >= a[i-1]: b = a[i] i += 1 return b lista = [] print(encontra_maximo(lista))
[ "you@example.com" ]
you@example.com
6b785ccf6de401b6de6be7b80935b38f0153b522
8a6cf531ed72310d7114237407302ef075171937
/ores/ores.py
8b81ab5f852c87b9c7043f4eebd231d7dbbbe645
[ "MIT" ]
permissive
ureesoriano/ores
64a7f3c8a8917fe33449302c55cff23952a5719c
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
refs/heads/master
2020-03-17T21:54:12.610518
2018-05-20T08:36:13
2018-05-20T08:36:13
133,980,352
0
0
MIT
2018-05-18T16:43:18
2018-05-18T16:43:18
null
UTF-8
Python
false
false
1,552
py
""" This script provides access to a set of utilities for ORES * precached -- Starts a daemon that requests scores for revisions as they happen * score_revisions -- Scores a set of revisions using an ORES API * stress_test -- Scores a large set of revisions at a configurable rate * test_api -- Runs a series of tests a...
[ "aaron.halfaker@gmail.com" ]
aaron.halfaker@gmail.com
629a1aa4b0ed8c56a54428a2ba2654e13391825d
497b182773f09897c04c4bf10fc153905071a580
/replace_headers.py
99e5a59b96b6f2b1f9a233d293f3a3110850ed32
[ "MIT" ]
permissive
kakasearch/sublime_trans_Headers
26ec06ae86a995a1e5bab1f6b2a3646008c270fb
5b897464817f83055fb8f71d57aaef3227bfd1b7
refs/heads/main
2023-08-14T03:15:57.328360
2021-09-20T14:25:37
2021-09-20T14:25:37
408,472,520
0
0
null
null
null
null
UTF-8
Python
false
false
688
py
import sublime, sublime_plugin import re class RephCommand(sublime_plugin.TextCommand): def handle(self,m): m2 = m.group(2).replace("\n",'') return f'"{m.group(1)}": \'{m2}\',' def run(self, edit): # print(self.view.substr(self.view.sel()[0])) sels = self.view.sel() for sel in sels: if sel.empty(): ...
[ "62104649+kakasearch@users.noreply.github.com" ]
62104649+kakasearch@users.noreply.github.com
6a252959643d7bf3738c3915d574db90f89fe263
6af64b0420e3a9df003607ea1b61cb72b6955452
/billboard_scraping/billboard_scraping/settings.py
61dab046a911621e52a1b6b98fc41f0ef19b41f2
[]
no_license
scrantonicity/songs_data
f08ee775056313d951bd1d57933d264851c1c27b
f698e8dc40db4af29c4a9eb474b7e1e2490265c7
refs/heads/master
2020-04-02T13:57:25.372958
2018-10-24T13:18:23
2018-10-24T13:18:23
154,504,163
0
0
null
null
null
null
UTF-8
Python
false
false
3,426
py
# -*- coding: utf-8 -*- # Scrapy settings for billboard_scrape_2 project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.or...
[ "dchyun@andrew.cmu.edu" ]
dchyun@andrew.cmu.edu
6aa36c92b623f01a9f44977df0f9ef20aae82091
3533a613893528e0cffaba26c297a0f7b32f8e95
/sample/mouseBrush_en_ex1.py
93af981743887ea359f2278acfa13dec00ef2641
[]
no_license
YGKo/OpenCV
75d64f2e0bf6e0699cb50afbd0a705638b6ae79d
60878bc04c054ce053f72d49eee81b6c98fc09a8
refs/heads/master
2022-11-19T21:07:00.396774
2020-07-08T01:21:55
2020-07-08T01:21:55
269,486,526
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
import numpy as np import cv2 as cv from random import shuffle b = [i for i in range(256)] g = [i for i in range(256)] r = [i for i in range(256)] def onMouse(event, x, y, flags, param): if event == cv.EVENT_LBUTTONDBLCLK: shuffle(b), shuffle(g), shuffle(r) cv.circle(param, (x,y), 50, (b[0], g[0]...
[ "young2325@naver.com" ]
young2325@naver.com
aeee10979dd5fd6b4e0388c3fdfc64f99aa5f61d
9d4ed31ebe11eb3fa40b7ab809e40762446708e0
/Python diye Programming sekha 2nd/Tracking mails.py
2fe4654d874fd2edd55cfbcbc3d191bb4e519754
[ "MIT" ]
permissive
mitul3737/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
299dc5abbfc98ea66cda94b2b3de31ac32ab2b3c
ca2c15c597a64e5a7689ba3a44ce36a1c0828194
refs/heads/main
2023-04-17T20:49:03.252440
2021-05-16T19:07:16
2021-05-16T19:07:16
360,768,274
0
1
null
null
null
null
UTF-8
Python
false
false
170
py
text="Email us for any feedback here: shahriyarmitul3737@gmail.com py.book@subeen.com book_py@subeen.com thank you" import re print(re.findall(r'[.\w]+@\w+[.]\w+',text))
[ "shahriyarmitul3737@gmail.com" ]
shahriyarmitul3737@gmail.com
f3803bd5899d2ec301af143949d9bc7afaab5493
6cf97da506148842a789e31c24f65448b637e7c1
/subsectores/migrations/0010_registromeses_meta_cualitativa.py
a72f66fb7650228506e087a4dedf8a16a00a25b1
[ "MIT" ]
permissive
CARocha/plasystem
435c17a8a040884998110268f2da0503332d858f
b8967e5c1e91288f5f1652746dca3e79bf4eb66d
refs/heads/master
2020-04-06T03:59:21.462429
2017-11-07T18:04:28
2017-11-07T18:04:28
83,086,732
0
3
null
null
null
null
UTF-8
Python
false
false
494
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-11-07 17:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('subsectores', '0009_auto_20171002_1629'), ] operations = [ migrations.AddFi...
[ "crocha09.09@gmail.com.com" ]
crocha09.09@gmail.com.com
01270a239051ddb184d7bd50da83537aa9471214
2ead2b29aa5cd0de97d3bf57ffbdca5114dd9ad1
/clients_in_ip_range.py
fa44ce023470a4254ed38393507ea7301d37e04f
[ "MIT" ]
permissive
meraki/automation-scripts
c9d036cdd98063776bcffa3794987de75167cbc9
c6939a9bb9df5d87ac15a333f70d50fb2728a30a
refs/heads/master
2023-06-09T13:18:40.674543
2023-06-06T06:41:50
2023-06-06T06:41:50
96,457,083
348
190
MIT
2023-05-22T23:30:44
2017-07-06T17:49:01
Python
UTF-8
Python
false
false
13,438
py
readMe = """Python 3 script that lists all clients with IPv4 addresses within the specified range or subnet. Script syntax, Windows: python clients_in_ip_range.py [-k <api_key>] -i <ip_range> [-o <org_name>] Script syntax, Linux and Mac: python3 clients_in_ip_range.py [-k <api_key>] -i <ip_range> [-o <...
[ "noreply@github.com" ]
meraki.noreply@github.com
7d469603db0e47df80b77a097e36f9b514d84b71
51f49fbdc09e38f1de8e9594232bde26ad7acb9e
/main.py
371c28c1f5e123ee275ce7415cd273125f1514b1
[]
no_license
CesarArias11/Homework-6
40cc2e1755be690099f4b6fe3b90a7413a812a28
3c1d907289b2eef8d1edd74357472b034c2e2802
refs/heads/master
2020-06-06T05:36:16.189024
2019-06-19T03:33:27
2019-06-19T03:33:27
192,652,118
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
def playing_board(row, column): for i in range(row): for i in range(column): print("|", end=" ") print("") if i != row-1: for i in range(column): print("-", end=" ") print("") playing_board(5, 9)
[ "a01411995@itesm.mx" ]
a01411995@itesm.mx
3a5dc6eafc59516641248f7c3aebc075047530d1
5d1fe587dd7cb0517a805e63e665be65d1ca582b
/simpleclac.py
399948281b09b66992093888bcdc5806db89d155
[]
no_license
vishnuchandrank/python-exercises
035e236197a610156474bcab82ace968baea1a2b
3cb3dcd6dd8ca0280ec3835e7dad753059b7fd2e
refs/heads/master
2021-09-02T05:16:56.755631
2017-12-30T18:10:42
2017-12-30T18:10:42
114,962,232
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
print ("enter first no") def add (x,y): return x+y def subtract(x,y): return x-y def divide(x,y): return x/y def multiply(x,y): return x*y print ("select operation.") print ("1.add") print ("2. sub") print ("3. div") print ("4. mul") choice = input("enter choice (1/2/3/4)") num1 = i...
[ "noreply@github.com" ]
vishnuchandrank.noreply@github.com
f3b095aab2099cf1a4956081a8357cf4160ac645
9ac16f3a952475715756cd4985e9355c6c0059b6
/docker/app/app/backend/apps/_archive/accounts_new/profiles/models.py
ccc1478f984975ead9d71f229d8be54404e828e1
[ "BSD-3-Clause", "ISC" ]
permissive
JTarball/docker-django-polymer-starter-kit
14a9900bb1f4402ffffaf8a428fd600d2430d35c
b5250030b1646e29567c15d01ba4668c6ad535c9
refs/heads/master
2021-01-19T22:14:36.890793
2015-11-18T18:49:14
2015-11-18T18:49:14
46,353,679
1
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import AbstractUser class AccountsUser(AbstractUser): USERNAME_FIELD = 'username' # name of field on the User that is used as the unique identfier. activation_key = models.CharField(_('activat...
[ "james.tarball@gmail.com" ]
james.tarball@gmail.com
2b5857fd3339ea473935c6b98c83a01dce10e814
75ed0a5e52f8e9183b24c7ee6445176d8771d4a8
/settings.py
b5258b084deb3ad17e45f2af766412a396fc6717
[]
no_license
erudisill/py-serial-dual
9b39fad6a92f311c1694a36d7631cf5228bb2186
6d5d88407ba914468d177e511d073cb1c0cdf4fd
refs/heads/master
2021-01-01T05:05:57.111500
2016-05-22T21:23:28
2016-05-22T21:23:28
58,065,644
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
''' Created on Dec 19, 2014 @author: ericrudisill ''' from cpSerial import CpSerialSettings import json class SettingsEncoder(json.JSONEncoder): def default(self, obj): if not isinstance(obj, (Settings, CpSerialSettings)): return super(SettingsEncoder, self).default(obj) return obj.__di...
[ "gilbert@cphandheld.com" ]
gilbert@cphandheld.com
8bf6bf0f0529c8de74b55af35c2d596377b57310
a4a78b5dffee5d93a623203573a50901a04f3d80
/Machine Learning/Perceptron/basic_perceptron.py
98f6cdebfbd159dc2f530ddbcb307ea6686fd55f
[]
no_license
anshulg825/Codecademy-Courses
8d0be9af4ab441601b165d32b6587c25233463b6
d723095c0003fc28fb8195c79d8d89267ebc65c6
refs/heads/master
2022-12-02T09:52:19.107423
2020-08-15T11:53:51
2020-08-15T11:53:51
267,338,644
0
0
null
null
null
null
UTF-8
Python
false
false
2,648
py
lines = [] class Perceptron: def __init__(self, num_inputs=3, weights=[1,1,1]): self.num_inputs = num_inputs self.weights = weights def weighted_sum(self, inputs): weighted_sum = 0 for i in range(self.num_inputs): weighted_sum += self.weights[i]*inputs[i] return weighted_sum def activ...
[ "anshulg825@gmail.com" ]
anshulg825@gmail.com
88b91dd95cc543fa6962a007d04f81a594f90d98
53c1b5ec154b6b9edd9809bf1e310c87a5505db8
/src/laundryFinder.py
d81b8e97955433f9c10fb838be065996c0c7d10b
[]
no_license
smehan/py-gmap
80cbff12b9fa47fc7b7353f9bf8693a3c2ed080e
9aa9b8148ab9d2c1561501d231e57ddce3820cf4
refs/heads/master
2021-01-01T05:26:15.659304
2016-05-05T16:48:22
2016-05-05T16:48:22
56,088,068
0
0
null
null
null
null
UTF-8
Python
false
false
5,103
py
# Copyright (C) 2015-2016 Shawn Mehan <shawn dot mehan at shawnmehan dot com> # # -*- coding: UTF-8 -*- # standard modules import logging import csv import os import sys import datetime import json import pprint # 3rd party modules from Gmap import map_api as goog # Application modules from loggerUtils import init_log...
[ "shawn.mehan@ieee.org" ]
shawn.mehan@ieee.org
4bbf878102a3909adbe15119fe50e8bfa223e314
0120bed7614d1439ada39add0b552901bb15efae
/parsetab.py
a35f914b7b8b92eefbabfb491e9432ddd5ba4f8f
[]
no_license
marcegarzab/compilerOO
5ef03e09392d53a3850ab7e85b41e38376f95861
40802d4390d66f5e60ff1653a33e9aa4270da536
refs/heads/master
2020-04-27T14:04:30.977817
2019-04-01T17:16:55
2019-04-01T17:16:55
174,395,603
0
0
null
null
null
null
UTF-8
Python
false
false
26,569
py
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'AND ARROO BOOL CHAROO COMA COMILLA CORCHDER CORCHIZQ CTEDECOO CTEINTOO CTEWORDOO DECOO DIFERENTE DIV DOTHIS DP FALSEOO FUNC GETOO ID IF IGUAL IGUALIGUAL INCMAS INCMENOS...
[ "marcegarzab@gmail.com" ]
marcegarzab@gmail.com
d6401a0408bfff25960d9fd6412ab72f807a80b0
fd4c197b9583403e34a3e661514e90790367125f
/RandomCodes/FahrenheitToCelsius/test.py
dbe8075a6ad87f45b04b9be235bca71a36993380
[]
no_license
shiv21081999/DataScienceCourseCN
b2e5fcca63f687836275ee12c1fac5d4f47bd0f0
dd70ae020b0a309c9c2e2bebc5afebd805bb591c
refs/heads/master
2022-07-10T11:18:27.344852
2020-05-13T09:33:02
2020-05-13T09:33:02
263,136,707
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
start = int(input()) end = int(input()) step = int(input()) for i in range(start, end+1, step): c = int((i-32)*(5/9)) print(str(i)+'\t'+str(c))
[ "s9868121001@gmail.com" ]
s9868121001@gmail.com
c65b48d84f99ebccf26093532b1570cd43d87262
8c104c11a00c88d1896d346f78658b35d8955a19
/qbic-offline/qbic_v1.py
c9ff6b8aa85cbeab98f1c096acc1d3e4591b8d83
[ "MIT" ]
permissive
vincentiusmartin/QBiC-Pred
818a6ebea1df3b63e2e98d67f55ff3f89f7d8371
5971d81364bcbe1959d70361fb0ce68021dd453f
refs/heads/master
2022-01-19T10:28:43.544257
2020-11-10T22:22:02
2020-11-10T22:22:02
148,937,977
9
7
MIT
2022-01-06T22:28:01
2018-09-15T20:34:25
JavaScript
UTF-8
Python
false
false
16,421
py
import pandas as pd import time import os import multiprocessing as mp import numpy as np import scipy.stats import argparse from timeit import default_timer as timer import utils import config def inittbl(filename, chromosome_version, kmer = 6, filetype=""): start = time.time() file_extension = os.path.spl...
[ "vincentiusmartin@Vincentiuss-MacBook-Pro.local" ]
vincentiusmartin@Vincentiuss-MacBook-Pro.local
e4548643aab43e8d437b4045cc74f50d92e7440b
3fc8904fe6cc8711eb32c91aa19949093d44c9e6
/settings.py
de9091323d0728478de0ed4c3e91d42f858d121b
[]
no_license
entone/cm-py
0ffd385f908955546ff373c6251ae7165eb01465
4064f9af04c22cb272bd79d3d14a1cbadea79deb
refs/heads/master
2020-05-16T19:06:04.877926
2009-11-24T03:20:28
2009-11-24T03:20:28
383,445
1
0
null
null
null
null
UTF-8
Python
false
false
178
py
CAMPAIGN_MONITOR_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXX' CAMPAIGN_MONITOR_URL = 'http://api.createsend.com/api/api.asmx' CAMPAIGN_MONITOR_NAMESPACE = 'http://api.createsend.com/api/'
[ "jdennes@gmail.com" ]
jdennes@gmail.com
df45bd3b7577e0039d27c223860742502e62e05f
4ea832d725d820b0c3796a87cdb9f763a8b657cd
/MyTensorFlow/utils.py
8658fe74d9d950be224ba88447c47f03c2a9b5a1
[]
no_license
Ollitros/DataScienceProject
07cc6b9577ae63eb3aede152e46d4dd5a07f8a09
b14e6add0c929a0820647e8d085e0c1e131d573e
refs/heads/master
2022-02-28T01:09:43.441967
2019-10-05T14:51:47
2019-10-05T14:51:47
120,162,173
0
0
null
null
null
null
UTF-8
Python
false
false
4,778
py
import numpy def scale_to_unit_interval(ndar, eps=1e-8): """ Scales all values in the ndarray ndar to be between 0 and 1 """ ndar = ndar.copy() ndar -= ndar.min() ndar *= 1.0 / (ndar.max() + eps) return ndar def tile_raster_images(X, img_shape, tile_shape, tile_spacing=(0, 0), ...
[ "Ollitros@gmail.com" ]
Ollitros@gmail.com
ffdf10d115bbe62ae79c8896bbad1640e2034d83
830f91bec2e42ae2e254b4dedab20ec8ed141aa5
/OpenCV/3-2 Add.py
87aa6e8889bb1daa8bb9d39184f692213e3b1dc7
[]
no_license
PierreVon/Learning-python
fb70f6d0fd51cd82e1d768e9fca22f199c8cae1a
0d1adb924a9d3f5cedcb1c44599e21e54fd1adc3
refs/heads/master
2020-05-07T12:37:01.054271
2019-06-14T07:15:42
2019-06-14T07:15:42
180,512,972
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
import numpy as np import cv2 as cv # g (x) = (1 − α)f 0 (x) + αf 1 (x) img1 = cv.imread('Pictures/pikachu.png') img2 = cv.imread('Pictures/ts2.jpg') rows, cols, channels = img1.shape img2 = cv.resize(img2, (cols, rows)) img = cv.addWeighted(img1, 0.7, img2, 0.3, 0) cv.imshow('Taylor Swift', img) cv.waitKey(0) cv.d...
[ "pierrevon@PierreVondeMacBook-Air.local" ]
pierrevon@PierreVondeMacBook-Air.local
f43412055ec513a5990f03202a87d5485c439a14
80f61952fbefce793f6ece7b7cde21e108c47b31
/citron.py
2a726af766fd869230023cbc8258f7ddf1d0b3b2
[]
no_license
nomissbowling/discord-musicbot-citron
1e9912b86e5a4d44b00ce6e7c61e0cc4d28e1671
b1733897a406db818aabb5e758a12559e671ae46
refs/heads/master
2022-11-28T16:43:13.778886
2020-08-07T15:36:23
2020-08-07T15:36:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,761
py
from __future__ import print_function import os import os.path import io import queue import asyncio import pickle from googleapiclient.discovery import build from googleapiclient.http import MediaIoBaseDownload from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request i...
[ "202x102x@stu.kobe-u.ac.jp" ]
202x102x@stu.kobe-u.ac.jp
44d29f830d3e5ff019aae440ae7dc5aa1008ad18
34a29db85593aef5411c351c8d270f05c8de11e3
/rever.py
1c627eb27129808ea57c132fcf611a774a7e5950
[]
no_license
Dhanush-nancy/python-programming
86eb11b32791a48abe86d3e0474d23ccbf9c1952
2d9c90d33bbb537928e1abda1e57768573f648e7
refs/heads/master
2020-03-28T20:42:50.550331
2019-07-05T08:53:05
2019-07-05T08:53:05
149,095,371
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
Number=int(input("Please Enter any Number:")) Reverse=0 while(Number>0): Reminder=Number %10 Reverse=(Reverse *10) + Reminder Number=Number //10 print("\n Reverse of entered number is = %d" %Reverse)
[ "noreply@github.com" ]
Dhanush-nancy.noreply@github.com
68be9becb1f195d995195e96a0a50ba5b6a58bce
2a788f6e0db36ea2565e6b4b161827e31cc968b7
/test/test_convert.py
c00c417416589d4931e0e7b63a2f89583b2675de
[]
no_license
djairdutra/scan-pdf
354626f334d471e5fe4a42fff630ac676f76a325
0d2d96a3bbb0b97f01b93c1a290b296e85c21d37
refs/heads/master
2020-05-28T03:03:36.338043
2018-11-07T22:32:43
2018-11-07T22:32:43
188,862,507
0
1
null
2019-05-27T14:52:05
2019-05-27T14:52:04
null
UTF-8
Python
false
false
732
py
import unittest import mock import sys from assertpy import assert_that class Options(object): pass class ConverterTest(unittest.TestCase): @classmethod def setUpClass(cls): sys.modules['subprocess'] = mock.Mock() def test_convert(self): from scan_pdf import Converter opti...
[ "andi@tryb.de" ]
andi@tryb.de
7b589fe0f54d06768eb053d2894d7e2fd2c10d4d
6aa09367bbdeaaa5322927d5cf2023f31d833307
/1154/a/52834456.py
541c0dd3beba4e9ea5f5936a9fcd3bf9c8e35d62
[]
no_license
vishwesh-D-kumar/codeforces_submissions
5b72915b76cca75846f5c859e63629e3533c88bc
2af328f3694b65d38d708f2bc07fec8971e75e58
refs/heads/master
2022-12-30T02:23:52.579361
2020-10-17T13:03:22
2020-10-17T13:03:22
277,927,770
0
3
null
2020-10-17T13:03:23
2020-07-07T21:40:22
Python
UTF-8
Python
false
false
289
py
def I(): return(list(map(int,input().split()))) # input() x=I() # sum=(x[0]+x[1]+x[2])/2 sum=max(x) index=0 for i in range(len(x)): if x[i]==sum: index=i x.pop(index) # print(x) print(int(sum-x[0]),int(sum-x[1]),int(sum-x[2])) # a=x[0]+x[1]-x[3] # b=x[0]-a # c=x[0]-a # print(a,b,c)
[ "vishwesh18119@iiitd.ac.in" ]
vishwesh18119@iiitd.ac.in
1bc2e1a71176da0225d48c5517b60a55773d3b1c
91513c697d7792d70de616d1c540cb44a928dedb
/DataClean.py
c2e6ad61bf6a1c96d7a5849271daa5e68990703f
[]
no_license
skyismine2010/ai_challenger
8cd59f1fe6809e9e60d24f7dc578dd5815cbd129
11c226ade24f3685e977582836d4f6705abaed68
refs/heads/master
2020-03-27T19:14:45.940039
2018-09-01T07:13:06
2018-09-01T07:13:06
146,975,311
2
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
import jieba import csv import itertools class Label(): def __init__(self, str_list): self.label = dict() self.label["traffic convenience"] = (str_list[0]) self.label["distance from business district"] = (str_list[1]) self.label["easy to find"] = (str_list[2]) self.label["w...
[ "hao.lin@hobot.cc" ]
hao.lin@hobot.cc
bef1367142e9764e00cc61f269f1417a9941e126
e63f4e4359029eabf0a9704ad611e0918c4736d7
/reception/migrations/0007_auto_20201102_1334.py
1e64df12123c7c2981044ab8954376f73f0f715a
[]
no_license
Chukwunazaekpere/hotel-management-backend
93af2b59b5cfda69ebb25e8750255659e6f4302b
5dd17260a6fe37fdd90d0853686c95ce5bc4ec9a
refs/heads/main
2023-01-22T06:21:22.316442
2020-11-14T12:21:36
2020-11-14T12:21:36
308,897,786
0
0
null
2020-11-14T12:21:37
2020-10-31T14:18:59
JavaScript
UTF-8
Python
false
false
1,152
py
# Generated by Django 3.1.2 on 2020-11-02 12:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('reception', '0006_auto_20201102_1311'), ] operations = [ migrations.RemoveField( model_name='oc...
[ "emmanuelchinaza5777@gmail.com" ]
emmanuelchinaza5777@gmail.com
27aaf496e222973de6028e29d9daaeed7fbbb599
4a615b9dbf14023721e04086125a66a8e222a5fb
/Atividades Prof Brunão/aula8/insert_db.py
ec50bc7ba623bc9ae33c85f1d0c412750f76d0b5
[]
no_license
ArthurSpillere/Exercicios_Entra21_Python
28322fd2529517b901b3bf0b23289092c91a4985
8d85e39f04f80ef1a0a82a2175bcf70b348ed524
refs/heads/master
2023-01-22T14:14:23.024113
2020-11-21T00:42:04
2020-11-21T00:42:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
import sqlite3 conn = sqlite3.connect('clientes.db') cursor = conn.cursor() # vamos inserir valores na nossa tabela cursor.execute(""" INSERT INTO clientes (nome, idade, cpf, email, fone, cidade, uf, criado_em) VALUES ('Regis', 35, '00000000000', 'regis@email.com', '11-98765-4321', 'Sao Paulo', 'SP', '2014-0...
[ "davycarvalho2017@hotmail.com" ]
davycarvalho2017@hotmail.com
e6ded47abebe9a6ff3e8aee27c1d2ae6ee87c24f
9381941a02725c6f4ca818329144f7e413b50b5d
/fewrel/fewrel_eval.py
a94223f93e4b04f10ef62c23a4c520de491279d5
[ "MIT" ]
permissive
vhientran/emnlp21_fewrel
861d82b0ac58d589a8841319ba9518ee3838cf28
894bee155196f99116e2ff12a01e2a942f861242
refs/heads/master
2023-08-27T09:37:47.622625
2021-09-07T21:17:12
2021-11-01T19:18:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,621
py
#!/usr/bin/env python3 ############################################################################### # This file was ported from the original FewRel repository as part of the work # described in the paper "Towards Realistic Few-Shot Relation Extraction", # published in EMNLP 2021. # # It contains a code for training...
[ "swu389@dev-10-178-20-51.ob1.bcc.bloomberg.com" ]
swu389@dev-10-178-20-51.ob1.bcc.bloomberg.com
6b6381a9315f93876e04e7e4d4bfdbfd922d169d
a287d866d7e1ef37699a3a40dc4c4f1b466c0b94
/todo/models.py
6af846eb781f4345c5f8267276af0330f84545f5
[]
no_license
muhammadnumanlatif/course-in-python
b98adec4be7483d01a46e61b6075088f1f5e1c79
012135f50989f61de89fb7215bc8dfc22ad23d73
refs/heads/master
2023-06-25T03:31:37.313123
2021-07-25T18:13:22
2021-07-25T18:13:22
386,954,459
0
0
null
2021-07-25T18:13:24
2021-07-17T14:08:00
Python
UTF-8
Python
false
false
216
py
from django.db import models # Create your models here. class Todo(models.Model): name = models.CharField(max_length=100) due_date = models.DateField() def __str__(self): return self.name
[ "muhammadnumanlatif@gmail.com" ]
muhammadnumanlatif@gmail.com
d1ea48e356bded5737464a3999aae76e2ef6fe2f
af503c2fab49530e2abf8b259272650e5228b2af
/easy/13_romanToInteger/romanToInt.py
14340492bbfd4a990484790993ec21d643495e6f
[]
no_license
hellomryoo/leetcode
37ce88fd14cf7d2caefefa2efce4141fed40c982
d2994d6a262c998b955733f55be8478930dd4898
refs/heads/master
2023-06-07T10:57:27.703853
2021-07-13T13:37:25
2021-07-13T13:37:25
385,611,306
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
class romanToInt: def romanToInt(self, s: str) -> int: romanMap = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000} previous = 0 result = 0 for x in s[::-1]: current = romanMap[x] if previous > current: result -= current ...
[ "hy2506@columbia.edu" ]
hy2506@columbia.edu