blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce4db0d1eefa29d48921b8c480811378e92db97a | b943d3c32cac2b4d9ab85753c0a611688fba82ad | /resume_parser/parser_app/views.py | 3379793d2e341273319f0dea8815914b786cd1c5 | [
"MIT"
] | permissive | ashokraman/ResumeParser | 787e0d5fdc560c35630c1a78411e28725812a737 | 2238b7f3ea955f04cf5ccda619a15f62fcf066e3 | refs/heads/master | 2020-06-20T13:16:49.115304 | 2019-07-04T05:38:26 | 2019-07-04T05:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,190 | py | from django.shortcuts import render, redirect
from resume_parser import resume_parser
from .models import UserDetails, Competencies, MeasurableResults, Resume, ResumeDetails, UploadResumeModelForm
from django.contrib.auth.models import User
from django.contrib import messages
from django.conf import settings
from djang... | [
"omkarpathak27@gmail.com"
] | omkarpathak27@gmail.com |
f8b20135a0371d89e32f4b88100180d8d03aeb95 | 22a3051f110d7ddf7d4470aec6e3b6b9ec38769d | /Math problems/DataAnalysis.py | 16bcdccccf418b25172ab33fc9cb06d7f9051e0e | [] | no_license | bilalib/Math-problems | b47993f4093090c1434e75dd83b58b8020c8fee2 | 020499e861358f171cd2f2924d642d62a14ba45f | refs/heads/master | 2020-06-01T21:26:35.409965 | 2019-06-23T00:12:53 | 2019-06-23T00:12:53 | 190,932,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,553 | py | from Settings import *
from pylab import *
import seaborn as sns
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
import json
from Problem import Problem
from datetime import datetime
# The amount of days the Per-Question bar graph should reflect. 0 => All days
LAST_N_DAYS = 3
def analyze(history_file_nam... | [
"bilalib@umich.edu"
] | bilalib@umich.edu |
36930f21ba8d41407c35a4beec90cabd1b4db5d3 | bc62a832051f5981b648115c3aa61dc8855c7698 | /ExampleCodesFromClass/Week8/Class2/Example1_TokenizerInterface.py | c5e1cd7b2b3577e0464ec3671a933fdd15519a66 | [] | no_license | stelukutla/LING516 | cc49749916b5fa0f304f15d80a3130dfbf3b8060 | 45628c975be04ed620a6e7ba58acb183a655680f | refs/heads/master | 2020-04-07T01:11:22.005198 | 2018-11-03T23:48:17 | 2018-11-03T23:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | from bottle import get, post, request, route, template, run
import re
import string
def do_tokenize(someString):
pattern = "[" + string.punctuation + "]"
allOccurences = re.findall(pattern, someString)
print("These are the locations of tokenization in this sentence: ", allOccurences) #Just for checking.
fo... | [
"vbsowmya@gmail.com"
] | vbsowmya@gmail.com |
05423c174b31b915d1aa2e5c7e66eff20ca99cb2 | 735f4a6eb4e9c72dc664926ff8b42d02da9067f2 | /batch_four/session-3/simple_file_creation.py | e0e87709ebb33e6df3d688ad5803ce85956fee80 | [] | no_license | sopanshewale/python-datascience | 943b689d4264ad06f19c8039745ba6625d556282 | 0014b48d2397e16536731e1ee91e5e36f31e1ed9 | refs/heads/master | 2021-01-11T20:24:58.567677 | 2018-06-09T07:07:10 | 2018-06-09T07:07:10 | 79,097,836 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/python3
f = open ('simple_data.txt', 'w')
f.write("Hello to writing data into file")
f.write("Line ------2")
f.write("Line ------3")
f.close()
| [
"sopan.shewale@gmail.com"
] | sopan.shewale@gmail.com |
48df31f511a2c0cdd28adb617140b4b8e1fcdf10 | b2b6cc7b5b1c2e95fddb492d9fc3508e66e6b5a2 | /Project_final_ver/random_player/pathfinding.py | c592912a35fc62e4700bf8c39ee5ab1f23ae6de7 | [
"MIT"
] | permissive | vivianjia123/RoPaSci-360 | 331f80892e3930488403bed317b3bd49fde83915 | 1c93b3d6766053a0e0d5cd59254c2c7eeb50546f | refs/heads/main | 2023-07-19T13:22:44.188778 | 2021-09-02T13:27:10 | 2021-09-02T13:27:10 | 402,426,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,691 | py | """
COMP30024 Artificial Intelligence, Semester 1, 2021
Project Part B: Playing the Game
Team Name: Admin
Team Member: Yifeng Pan (955797) & Ziqi Jia (693241)
This module contain functions to defines core game structure and actions.
"""
import math
import random
def boarder_check(position):
if (posi... | [
"noreply@github.com"
] | noreply@github.com |
08614e6d097655c7c676a0336d9f847227e88e3d | 090a4e026addc9e78ed6118f09fd0d7d4d517857 | /validators/funnel/_marker.py | 475ac8c006ae087f0522dd87148fdf5d681678a6 | [
"MIT"
] | permissive | wwwidonja/new_plotly | 0777365e53ea7d4b661880f1aa7859de19ed9b9a | 1bda35a438539a97c84a3ab3952e95e8848467bd | refs/heads/master | 2023-06-04T19:09:18.993538 | 2021-06-10T18:33:28 | 2021-06-10T18:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,407 | py | import _plotly_utils.basevalidators
class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="marker", parent_name="funnel", **kwargs):
super(MarkerValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"wwwidonja@gmail.com"
] | wwwidonja@gmail.com |
ab2f5517b77290ef79e8d5d6fcfa1dbbde88463a | 5a0d31d01df4744a831068e33714756dcd3aca95 | /lol.py | 76efc25f7b46511049bbb3d095a073c32b21d672 | [] | no_license | MathieuDuponchelle/Kerious-Resource-Editor | 39ff04d326e64f28c34b1cf96dec566a24c0b3ec | a336c6d6baca0ab90cce8ee54c2565cff4fda8bb | refs/heads/master | 2020-12-24T15:40:25.581900 | 2012-10-10T15:11:08 | 2012-10-10T15:11:08 | 5,225,734 | 2 | 1 | null | 2012-08-17T15:59:26 | 2012-07-29T21:20:56 | Python | UTF-8 | Python | false | false | 9,128 | py | #!/usr/bin/env python
#
# signal.py
#
# Copyright (c) 2006, Richard Boulton <richard@tartarus.org>
# Copyright (C) 2012 Thibault Saunier <thibaul.saunier@collabora.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as publi... | [
"mathieu.duponchelle@epitech.eu"
] | mathieu.duponchelle@epitech.eu |
4a6a8081f0a61267663b27c945c0579c07a15037 | 585bac463cb1919ac697391ff130bbced73d6307 | /325_MaximumSizeSubarraySumEqualsk /solution.py | 6417978633d4d8ceb321da2c951a69503bfe6ecb | [] | no_license | llgeek/leetcode | ce236cf3d3e3084933a7a4a5e8c7766f7f407285 | 4d340a45fb2e9459d47cbe179ebfa7a82e5f1b8c | refs/heads/master | 2021-01-22T23:44:13.318127 | 2020-03-11T00:59:05 | 2020-03-11T00:59:05 | 85,667,214 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | class Solution:
def maxSubArrayLen(self, nums, k):
maxlen = 0
presum = dict()
accsum = 0
for idx, num in enumerate(nums):
accsum += num
# if num == k:
# maxlen = max(maxlen, 1)
if accsum == k:
maxlen = idx+1
... | [
"linlinchen@Linlins-MacBook-Pro.local"
] | linlinchen@Linlins-MacBook-Pro.local |
c1b2c1b26af07056fd80e5dca67a5001815af546 | 093ac6d8f8398536b98455cc5db4ac3cbeb1a96d | /debugger-tools/gdb-loader.py | 541f98f65fc969b9adecaecc26b2424d0a1abe96 | [] | no_license | roswell/clasp | 721316c5605f716f16eb036beb7dbb16974d26af | 8ba34fc54a34d3a5f14af01ede1ba53e99da56e9 | refs/heads/main | 2021-06-08T14:59:50.260028 | 2021-05-07T05:31:33 | 2021-05-07T05:31:33 | 91,808,485 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | import os
import importlib
#
# The wrapper module
#
inspector_mod = None
debugger_mod = None
dir = os.path.dirname(os.path.expanduser(__file__))
print( "\n\n\nLoading clasp gdb python extension from directory = %s" % dir)
sys.path.insert(0,dir)
def maybeReloadModules():
global inspector_mod, debugger_mod
i... | [
"meister@temple.edu"
] | meister@temple.edu |
5f5c946119f93d0807da026d011f603897bc22be | 2e74c7339c63385172629eaa84680a85a4731ee9 | /functions/adding_machine/adding_machine/summarizers.py | e2c7e2177df872c5c6880129cd2080aec0c8204f | [] | no_license | zhusui/ihme-modeling | 04545182d0359adacd22984cb11c584c86e889c2 | dfd2fe2a23bd4a0799b49881cb9785f5c0512db3 | refs/heads/master | 2021-01-20T12:30:52.254363 | 2016-10-11T00:33:36 | 2016-10-11T00:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,857 | py | from __future__ import division
import pandas as pd
import agg_engine as ae
import os
import super_gopher
from functools32 import lru_cache
try:
from hierarchies import dbtrees
except:
from hierarchies.hierarchies import dbtrees
import numpy as np
from scipy import stats
from multiprocessing import Pool
import ... | [
"nsidles@uw.edu"
] | nsidles@uw.edu |
67269e55398033362ab23e10f0576fc5aeae98ab | 2e1b5bd2d33f0beb965be77f1de2ae035c491125 | /chapter4/qt04_drag.py | f30b52e75694194da80bf8c948af65dfb20391a1 | [] | no_license | mandeling/PyQt5-1 | 1cf6778e767e5746640aa0458434751a226a2383 | 9334786e70b2657e0f94b6dad4714f2aa239d0cd | refs/heads/master | 2020-05-07T19:08:40.072960 | 2019-04-11T10:44:48 | 2019-04-11T10:44:48 | 180,799,901 | 1 | 0 | null | 2019-04-11T13:37:55 | 2019-04-11T13:37:55 | null | UTF-8 | Python | false | false | 887 | py | import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
class Combo(QComboBox):
def __init__(self, title, parent):
super(Combo, self).__init__(parent)
self.setAcceptDrops(True)
def dragEnterEvent(self, e):
print(e)
if e.mimeData().hasText():
e.accept()
else:
e.... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
1bb398a7369351058579f2038fcb6b751f225a55 | f6b3d08c885d6265a90b8323e9633cd1eae9d15d | /fog05/web_api.py | e0106d9fc772dc61ee4643cf731c81a9ccbcca32 | [
"Apache-2.0"
] | permissive | kartben/fog05 | ed3c3834c574c1e9d13aea8129fd251cea7d63a2 | b2f6557772c9feaf9d6a9ad5997b5c2206527c91 | refs/heads/master | 2020-03-18T21:21:27.633610 | 2018-05-23T09:25:50 | 2018-05-23T09:25:50 | 135,276,221 | 0 | 0 | null | 2018-05-29T09:54:48 | 2018-05-29T09:54:47 | null | UTF-8 | Python | false | false | 34,780 | py | from jsonschema import validate, ValidationError
from fog05 import Schemas
from dstore import Store
from enum import Enum
import re
import uuid
import json
import fnmatch
import time
import urllib3
import requests
class RESTStore(object):
def __init__(self, root, host, port):
self.root = root
self... | [
"gabriele.baldoni@gmail.com"
] | gabriele.baldoni@gmail.com |
c8de9587cfa328523bcd043b6d6c474b118c7a35 | cd8f75fab354c46b25f483f7d439e1f59275c585 | /Tareas/T04/t04.py | ed4def3d5ee0bcacdc8d16bbefb1516713e29f58 | [] | no_license | lechodiman/iic2233-2017-1 | 34efb8406f0cd4e6dae3ff088ab18f52cfd2693f | 4eeb63cb83712927117acaa353772de0eafea9f2 | refs/heads/master | 2022-12-12T15:19:51.597453 | 2018-02-11T00:55:38 | 2018-02-11T00:55:38 | 121,068,729 | 1 | 0 | null | 2022-12-08T00:02:08 | 2018-02-11T00:53:03 | Python | UTF-8 | Python | false | false | 36,901 | py | from random import randrange, choice, random, expovariate, uniform, triangular
from my_random import weighted_choice
import csv
from bernoulli_event import bernoulli
import matplotlib.pyplot as plt
class AdvancedProgramming:
'''
Class to control the course. It controls all the events in a semester
'''
... | [
"lechodiman@uc.cl"
] | lechodiman@uc.cl |
7755fbe30daf087ea1b362b26e78416cadd75210 | 04e6bcdbcb8d0e3a40bd62792e70fca10641c8c7 | /src/sentry/models/integrationfeature.py | 8f8e15b118cfe531d8b697fe18e6a1381e69bc01 | [
"BSD-2-Clause"
] | permissive | andrzej-tests-1/sentry-app | f711b1a05c8a7d28e8d8e023b8feffc72dc7202e | fd920bb0e6a4956f57f3dfe4301768e1c4b0d4d8 | refs/heads/master | 2020-05-30T16:50:56.477815 | 2019-06-02T15:58:55 | 2019-06-02T15:58:55 | 189,854,339 | 0 | 0 | BSD-3-Clause | 2019-06-02T20:30:53 | 2019-06-02T14:09:39 | Python | UTF-8 | Python | false | false | 2,338 | py | from __future__ import absolute_import
from django.db import models
from django.utils import timezone
from sentry.db.models import BoundedPositiveIntegerField, FlexibleForeignKey, Model
class Feature(object):
API = 0
ISSUE_LINK = 1
STACKTRACE_LINK = 2
EVENT_HOOKS = 3
@classmethod
def as_cho... | [
"noreply@github.com"
] | noreply@github.com |
ab0e131dbda35a73953eb849d62f9e43b2ed13f0 | 507667654ae3b93b1b19588b114631683f5a1e1b | /Python_Programming/Lab7/MakeAmericaTweetAgain/env/Scripts/getTweets.py | bbe15aa19c9b2fca524ae7a270c0f69a6725f169 | [] | no_license | ndchoate/UC-Fall-2016 | dba54ee14101bf410ec2a39b1252eb520cff10d6 | a99ec47dbb872390629ce28927713cdbc5bffcd0 | refs/heads/master | 2021-01-18T19:53:13.382445 | 2016-11-24T21:30:09 | 2016-11-24T21:30:09 | 69,291,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | from sys import argv
import time
import json
from api import getAPI
REQUEST_DELAY = 5
MAX_REQUESTS = 5
def main():
try:
#arg = "BotNdc"
arg = argv[1]
api = getAPI()
tweetResults = []
tweetIndex = api.user_timeline(screen_name=arg, count=1)[0].id
time.sleep(REQUEST... | [
"ndchoate@gmail.com"
] | ndchoate@gmail.com |
e215ba31603bbe6754adacf620abbefadcf26cc9 | 8dba02fc002912c569c410f6a106cec835b2bf4d | /blogsrc/articles/migrations/0008_auto_20201214_1249.py | cd8405eb82abdea601e8296051543cbdfc841afd | [
"MIT"
] | permissive | kemalayhan/personal-blog | f2e5a8caf92b69191bc129628d12a0f3ae2981f6 | 4f6a33144d02c921b68f021b5571798385830e74 | refs/heads/main | 2023-02-27T14:37:49.855511 | 2021-01-30T21:00:14 | 2021-01-30T21:00:14 | 320,511,378 | 1 | 1 | MIT | 2021-01-07T20:25:57 | 2020-12-11T08:21:53 | CSS | UTF-8 | Python | false | false | 341 | py | # Generated by Django 3.1.4 on 2020-12-14 09:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('articles', '0007_tag_slug'),
]
operations = [
migrations.AlterModelOptions(
name='article',
options={'ordering': ['-created'... | [
"kemalayhan013@gmail.com"
] | kemalayhan013@gmail.com |
bd6f55e0c0d9e665f54c9263747e6c31ef9509e6 | 26c54c424dbe79fcd1962bddcbbb218d090eb6fc | /extras1roteiro/credito.py | 48e7a1139be475ae08f430c6bb8ef9f9c3cd210d | [] | no_license | Anap123/python-repo | dbfa4cad586ba5b3bffdc26e70c6170048e59260 | 2532a7cebe88b9987109a93fb5e6c486a5152b22 | refs/heads/master | 2020-08-17T12:52:49.437324 | 2019-05-21T20:55:57 | 2019-05-21T20:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | sal = (int(input()))
comp = (int(input()))
pm = sal*0.3 - comp
if(comp > sal*0.3):
pm = 0
print("%.2f"%pm)
| [
"arthur.mts@gmail.com"
] | arthur.mts@gmail.com |
d065c578a4c2e8291e5137cdf169e777db14c922 | 8b2d5faac1484195335db8729fca7db8994fdab2 | /15_rolling apply and maping functions.py | f7c11c5761503b59a3d74f3504dd1960efdb2499 | [] | no_license | bututoubaobei/python_pandas | 10776899fe6fb2033a16e287b30ef3bbd194592e | d789b5e409991c9a242e6a05b0e6682aa2a8c6e9 | refs/heads/master | 2021-11-24T12:19:17.023468 | 2018-02-08T18:03:05 | 2018-02-08T18:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import quandl
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import style
from statistics import mean
style.use('fivethirtyeight')
api_key="h6wdhv7vRv8o7FyNaWTj"
def create_labels(cur_hpi,fut_hpi):
if fut_hpi>cur_hpi:
return 1
else:
return 0
# we can d... | [
"qiumingming7@gmail.com"
] | qiumingming7@gmail.com |
7b7827a383449551327598c28dc91bad8daa96ff | 5ee26a8f7414c25a30e11d1014c0899df9bfb731 | /Adapter/Python/Solider.py | f82d203e8a23842e153b28f1da5b95573a24400a | [] | no_license | JalalMirzayev/DesignPatterns | fd88890c24706cee11f3ac7830cca5a2961191b8 | a179794740c83b8992d7544843e7449ff10f573c | refs/heads/master | 2021-05-24T13:41:15.612138 | 2020-04-06T20:44:42 | 2020-04-06T20:44:42 | 253,587,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from adapter.EnemyAttacker import EnemyAttacker
import random
class Solider(EnemyAttacker):
def make_damage(self):
print(f"Solider inflicts {random.randint(0, 10)} damage points.")
def make_move(self):
print(f"Solider moves {random.randint(0, 10)} steps forward.")
def set_na... | [
"noreply@github.com"
] | noreply@github.com |
214bde21462492a67176cebc14801baccff32864 | ffaac8893bedff9c911a032c3f06f9a963fe9b01 | /Instances/content_Instance.py | ec81d00bb388c3781c61e5de6592a4ca1964a32b | [] | no_license | Planet-KIM/planet_python_WebScraping | 0300dd8f022c9d5abae3e58ac3fbd6629b8acb18 | 76281b9cf06ae17bc4a8f47ca04191ef099b2629 | refs/heads/master | 2021-03-21T16:38:02.779291 | 2020-04-27T12:29:44 | 2020-04-27T12:29:44 | 247,312,251 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import sys
import io
import requests
from bs4 import BeautifulSoup
from urllib.request import urlopen
def changeUtf8():
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding='utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding='utf-8')
changeUtf8()
class Content:
'''
글 페이지 전체... | [
"55446103+KIM-DO-WON@users.noreply.github.com"
] | 55446103+KIM-DO-WON@users.noreply.github.com |
9c3f0d5c4c2ed881f3c67606e658c371f5c2d090 | 977713cb1a1cd7ad3a5b3e5b121162ad793968e5 | /settings.py | 04838b8e9558cb273ee92d49028c5197cc4bb640 | [
"MIT"
] | permissive | ServiceLearningB/ServiceLearning | 77c3632ea054f6751e2d95a5d97f5e4a4db97e9d | 739b3073ab6d401d5f075ac82197437ba15b97e5 | refs/heads/master | 2021-01-10T15:36:36.047828 | 2016-03-31T21:17:52 | 2016-03-31T21:17:52 | 55,176,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | """
Django settings for Project project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
#... | [
"roconnorc@gmail.com"
] | roconnorc@gmail.com |
bd67f78d612f4ed481565ee3e50e68afd658b000 | a32347b238effbe6e6bdb9ec04de54f1d91ef95a | /recommender/recommender/web/routes.py | ff8062fa954d217251aba5ea5b5047cefca7bbef | [
"MIT"
] | permissive | ScJa/projectr | 7f4e4ebcb2b38b6ed25e49929564d0855f0b69ac | 91298713edeab2c93932d1b372c58564458f2118 | refs/heads/master | 2021-01-09T20:34:52.939109 | 2016-07-17T11:57:56 | 2016-07-17T11:57:56 | 63,527,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | from flask import Blueprint, json
from recommender.core import Recommender
from recommender.database.providers import DatabaseUserDataProvider, DatabaseProjectDataProvider, DatabaseSkillDataProvider
from recommender.util import log
index = Blueprint("index", __name__)
logger = log.getLogger("routes")
def recommend(po... | [
"jakob.schneidr.ga@gmail.com"
] | jakob.schneidr.ga@gmail.com |
31c28ed7776b4678c3ed73a4c1eedb7b626cc4fa | 030225b2ed6eba7671bb337dcf37f9928aaa8d21 | /test.py | 79b8793fcc2237a1f74e69774e562f00cb954d5d | [] | no_license | hyznlp/python | e76ccc604f654db64eb49eadd016ff67c9f67606 | f5aeecc18edcab254cf8e4f806511a67d9276452 | refs/heads/master | 2022-10-30T12:43:32.375725 | 2020-06-15T05:45:35 | 2020-06-15T05:45:35 | 271,713,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | class Node():
def __init__(self, item):
self.item = item
self.left = None
self.right = None
class SortTree():
def __init__(self):
self.root = None
def addNode(self, item):
node = Node(item)
if self.root == None:
self.root = node
return... | [
"dan@huodans-MacBook-Air.local"
] | dan@huodans-MacBook-Air.local |
b2c6b469d5b851da3ef72e607d6b2a3165fca6be | 133db51055e034962b376e832d1f97bb6cc5e468 | /blockchain.py | 523370cb25049b0156d81aaf9f61f3ec2ba0ec39 | [] | no_license | sgr0691/blockchain-exercise | ca701d112aff03a5beaf3b35b18450cfa4ed5404 | 5f243fde9f17238363a3d9b7f4df8e3412626873 | refs/heads/master | 2021-04-12T12:11:50.323871 | 2018-03-26T19:11:59 | 2018-03-26T19:11:59 | 126,773,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,454 | py | import hashlib
import json
from time import time
from urllib.parse import urlparse
from uuid import uuid4
import requests
from flask import Flask, jsonify, request
class Blockchain:
def __init__(self):
self.current_transactions = []
self.chain = []
self.nodes = set()
# Create the... | [
"sgr0691@gmail.com"
] | sgr0691@gmail.com |
7535fc5d441d5f35fcc565e962a1adef5798d705 | de4193a9497d188c885d97aadd726c25bac60a33 | /CHAPTER8/exercise/13.py | db402a196803aaba80c821b6e151620697e1e899 | [] | no_license | seungbinpark/PoseEstimation | 58880bf679ebffc401479040b9446bece6519032 | 09a8d0d4daae04e0667a9da600bab38b9c22febf | refs/heads/main | 2023-02-26T14:39:37.952302 | 2021-02-03T13:34:45 | 2021-02-03T13:34:45 | 327,631,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import numpy as np, cv2, math
from Common.interpolation import rotate_pt
"""def calc_angle(pts):
d1 = np.subtract(pts[1], pts[0])
d2 = np.subtract(pts[2], pts[0])
angle1 = cv2.fastAtan2(float(d1[1]), float(d1[0]))
angle2 = cv2.fastAtan2(float(d2[1]), float(d2[0]))
return (angle2 - angle1)""... | [
"noreply@github.com"
] | noreply@github.com |
b21be155127dfa573d83e56b21b60b4f6aec47e8 | 103a5d2a2bc5b97edaecc2f41d050546daed9a6c | /data/flightVolume/merge_data.py | 586f3530ba1f0c8c86206acb8cbbfb11877da8bf | [] | no_license | saadiyahhPrivate/FP-The-Impact-of-COVID-19 | 94a8a94bc3ca22eeb902f39962c5d0e0f99655d0 | 89716a44108ee371dc01bf51c3a1407d13d8554f | refs/heads/master | 2023-03-06T16:26:25.213701 | 2021-02-17T05:19:13 | 2021-02-17T05:19:13 | 264,024,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import pandas as pd
import geopandas as gpd
import json
commercial = pd.read_csv('number-of-commercial-flights.csv')
commercial = commercial.rename(columns={"Number of flights": "commercialFlights", "7-day moving average": "7DayMovingAvg_Commercial"})
allFlights = pd.read_csv('total-number-of-flights.csv')
allFlights... | [
"saadiyah@mit.edu"
] | saadiyah@mit.edu |
1d6bcb58dc1aec8b0217d5471a49dfeea89d522d | 97507a2e349f6aee37bf851ccf3184893c97c621 | /Python/2019_03_20_Problem_64_ Knight_Tours.py | 0c1e5143c75bb836d3a4b73d8f5bf52081595d76 | [] | no_license | BaoCaiH/Daily_Coding_Problem | 935d581f3ac9cb5b72e871191c4d5f93413ab294 | 97eae3ee806756f4d646d600f434b1e68164ad34 | refs/heads/master | 2020-04-17T04:04:45.630222 | 2020-03-10T11:46:49 | 2020-03-10T11:46:49 | 166,213,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | #!/usr/bin/env python
# coding: utf-8
# ## 2019 March 20th
#
# Problem: A knight's tour is a sequence of moves by a knight on a chessboard such that all squares are visited once.
#
# Given N, write a function to return the number of knight's tours on an N by N chessboard.
# In[ ]:
def possible_moves(N, board, sta... | [
"caihongbao280996@gmail.com"
] | caihongbao280996@gmail.com |
a8b38035f99e59895f47f6e1228d4b88ad66a723 | 3a168e9a045a967917e27ac1d86ae67cb8e0ea2a | /sampleDecorator.py | edffb154b8e07e49685cf25b0617f4a1188b686b | [] | no_license | Defixer/sample_python_decorator | 7e419cd481456ab855f227fce6919faccd6df2b7 | c4020871a56890a418678f46193d818bae1eb1d5 | refs/heads/master | 2020-03-31T07:09:48.680950 | 2018-10-08T02:55:13 | 2018-10-08T02:55:13 | 152,010,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py |
def talk(func):
def shout(wordy):
print("HOY" + func(wordy))
return shout
@talk
def your_name(wordy):
word = " {}".format(wordy).upper() + "!"
return word
your_name("kups") | [
"jp.mendoza017@gmail.com"
] | jp.mendoza017@gmail.com |
efecd6e8598ad283a82bc7fe6aab0b6dec4ceea3 | 5c333d9afed7ecf1feba34c41764184b70f725ea | /scripts/test.py | 22d789f0c247add83cb748c9a559e96f2bcd14b5 | [] | no_license | NMGRL/pychrondata | 4e3573f929b6a465fa959bfe5b5bdfe734514b8c | 0d805ca6b7e5377f253d80ad93749b1d4253cb50 | refs/heads/master | 2020-12-24T16:35:39.308745 | 2016-03-09T18:37:47 | 2016-03-09T18:37:47 | 15,424,677 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!Extraction
def main():
'''
start at 0 zoom
focus
take picture
increment zoom
take picture
start at 100 zoom
focus
take picture....
'''
for i in range(10):
info('info {}'.format(i))
... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
3cb3590aa14685e5f32a7a6934622cf1bec1de7b | 3861bb54eb7967b20265d71bd7bf7f69dfc83277 | /TicTacToe/game_TicTacToe.py | d643e618d7033518db5e591f71e39e6dff598e37 | [] | no_license | dariusstroe/Python_MiniProjects | 1ccb0045e9c6805804ac68e16ce29b9f8d1318e8 | 55c8b674cd47b9c7fc231673b81ab4916575a611 | refs/heads/main | 2023-03-05T10:31:10.250110 | 2021-02-18T12:38:41 | 2021-02-18T12:38:41 | 340,039,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | import math
import time
from player_TicTacToe import HumanPlayer, RandomComputerPlayer,GeniusComputerPlayer
class TicTacToe():
def __init__(self):
self.board = self.make_board()
self.current_winner = None
@staticmethod
def make_board():
return [' ' for _ in range(9)]
... | [
"noreply@github.com"
] | noreply@github.com |
adb78f4021e80526d4619b8d432b810cf041161e | f1be1c3dd57de4534817ff0e75ee117f346c7cf7 | /python/Lexer.py | 519cb7b5eec58ee08b5fe8d485078748e15ffa88 | [] | no_license | rahutchinson/LED-Javascript | fd8f5355c80034a043a723edaba1991ba913c5d4 | 200289f6f9043a8b37a0b15976d8580b98f0f91d | refs/heads/master | 2021-03-30T17:34:17.953634 | 2018-05-14T21:21:58 | 2018-05-14T21:21:58 | 76,993,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,733 | py | '''
Finite state machine tokenizer
(c) Nelson Rushton, Texas Tech CS
March 2017
'''
# whiteChar(c) iff c is a whitespace character.
def whiteChar(c): return (c in " \r\n\t\v")
# lex(s)
def lex(s):
i = 0
tokens = [ ]
# invariants:0 <= i <= len(s), tokens = lex(s[:i]),
while i < len(s):
if whit... | [
"beauregardmiller@gmail.com"
] | beauregardmiller@gmail.com |
8c2611ad5852420460e9005177ed6e1296572354 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/a01.py | d912fcfad8c297d61001f2e370b33ba78e5a3e2d | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
640fb00e3598e3cae1b911e36f126913a0a24f0c | 7bf6897af68b2001dbacc43fe0afd83effb16f47 | /DataStorage.py | b15bed57473576c71fbb88de26e580035c047364 | [] | no_license | senjay/WechatAnalyseAndRobot | 62cfba0cd6bcc493c94fa2f9ef5a8af49a0ac54a | 64c01ed0b6f7a106e0b94048927b2775f9f451bd | refs/heads/master | 2022-11-03T18:28:40.464458 | 2019-06-21T16:46:00 | 2019-06-21T16:46:00 | 193,124,214 | 1 | 1 | null | 2022-11-01T10:06:41 | 2019-06-21T15:48:13 | Python | UTF-8 | Python | false | false | 3,067 | py | import wxpy
import openpyxl
import os
class DataStorage:
def __init__(self,bot,qlist) -> None:
super().__init__()
self.msgtype='获取好友信息'
self.qlist=qlist
self.bot = bot
self.friend_all = self.bot.friends()
self.loginName = self.friend_all[0].raw.get('NickName')
... | [
"760832791@qq.com"
] | 760832791@qq.com |
10e0194e87911711b252133a359ff84c1fcb4710 | 6b1f5f6597d51125e0cfae59300ea75153e3e498 | /Test/msbaopoSpider.py | 07d4afc70a7ff3c28c5f76b1bd22402fcbfd74d8 | [] | no_license | zhangzongbo/spider | 3eba26e212703cdd1ddbf760c1ffa623f03f08ad | 8dfd98b1e2e2f5a4401c4f682dda2016939f2d0c | refs/heads/master | 2020-03-25T14:12:25.996603 | 2019-08-13T07:52:19 | 2019-08-13T07:52:19 | 143,855,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,256 | py | import requests
import urllib.parse
import time
from bs4 import BeautifulSoup
def getHtml():
BASE_URL = 'http://ms31.haixing8.cn/login.php?d=login.log&cid=0&stateid=1&u=21367898&s={}' # 21758788
login_url = 'http://ms.haixing8.cn/commreg/channel.php?d=login.startover&spid=&clienttype=WAP2'
headers = {
... | [
"zhangzongbo1994@gmail.com"
] | zhangzongbo1994@gmail.com |
a32d53da6229348480d5344cd6c35bd4746c2a57 | f21fd87d0dd288f4d905003c0ea67607f6f67d71 | /components/wifi_provisioning/python/security/security1.py | ac56b80135ba3403a688fae87f5673c7cef868cd | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | makserge/esp-va-sdk | e67d08690f1d6b4dcbc9a115d57a22b3e2cea423 | 2279bbb6a1f7a5df80330b211dda17c030edcc4d | refs/heads/master | 2020-04-17T09:01:18.622639 | 2019-01-18T17:44:55 | 2019-01-18T17:44:55 | 166,440,330 | 0 | 0 | NOASSERTION | 2019-01-18T16:40:34 | 2019-01-18T16:40:34 | null | UTF-8 | Python | false | false | 5,331 | py | # Copyright 2018 Espressif Systems (Shanghai) PTE LTD
#
# 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 ... | [
"amit@espressif.com"
] | amit@espressif.com |
8e1527afd907d991eb35c32c39b6233d4569f100 | c5545d337921d1f15f569f687fb2104b6fd0ede0 | /eshopper/migrations/0005_auto__add_wishlist.py | 3b7868c7f17e592abf11c254ef3eaeef138f5d42 | [] | no_license | darshith0000/Eshopper | 32aae0b24b568b2179bd96e0e07ccde2a632a534 | 7a29154e78d4a59ac7d34bca9baed7efc4d026ae | refs/heads/master | 2021-03-12T23:12:50.926936 | 2015-02-16T14:55:06 | 2015-02-16T14:55:06 | 30,871,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,910 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Wishlist'
db.create_table(u'eshopper_wishlist', (
... | [
"darshithb@mindfiresolutions.com"
] | darshithb@mindfiresolutions.com |
1eb2f715857b7860d37606c858a8ac2c834a2f58 | 87fb0ae5563512bf4cfe2754ea92e7f4173f753f | /Chap_08/Ex_181.py | ba2d1b32e7dabdca85b694f6e4635d4a64b0e168 | [] | no_license | effedib/the-python-workbook-2 | 87291f5dd6d369360288761c87dc47df1b201aa7 | 69532770e6bbb50ea507e15f7d717028acc86a40 | refs/heads/main | 2023-08-21T13:43:59.922037 | 2021-10-12T20:36:41 | 2021-10-12T20:36:41 | 325,384,405 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | # Possible Change
# Read both the dollar amount and the number of coins from user and display a message indicating whether or not the
# entered amount can be formed using the number of coins indicated.
def possibleChange(dollars, coins, index=0):
coins_list = [0.25, 0.10, 0.05, 0.01]
dollars = round(dollars... | [
"cicciodb@hotmail.it"
] | cicciodb@hotmail.it |
6cc46adae3cba68f1726db300fc0a2849212a8e0 | b43de8e080cf910133b7e468341abea74bb4f3af | /conv_wf2rt.py | 83bb41bb6c4758e246073570393ee4e9a0f225bd | [] | no_license | ivanovdmitri/sFLASH_analysis | 12fa9e10d9443da17420ddf9b5445da1982f7696 | 953c254cd8fb0439f76da56612b14d10fc6af6ee | refs/heads/main | 2023-03-28T08:46:14.086947 | 2021-03-27T22:20:29 | 2021-03-27T22:20:29 | 349,868,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,097 | py | #!/usr/bin/env python
import argparse
from ROOT import TFile, TTree
from array import array
import itertools
import numpy as np
import sys
import os
import re
def read_xlsx_sheet(xlsx_file,sheet_name):
# one can directly read excel files if
# python-xlrd package has been installed
try:
import xl... | [
"dmiivanov@gmail.com"
] | dmiivanov@gmail.com |
116c66d9f3c1b4f5e2c4991742de3a8413bbff56 | 854b220c25dc886f77c237437c370782a68c8bb2 | /proyectos_de_ley/api/api_responses.py | f94452466a9934b2e9df3b1b8c8aaa98a4e6592c | [
"MIT"
] | permissive | MrBaatezu/proyectos_de_ley | b6bb672b5bcc3c8ca2b6327ee96083466356560d | 56cf6f2f1df6483d2057235132a376b068877407 | refs/heads/master | 2021-01-18T01:10:12.683082 | 2015-10-29T00:44:52 | 2015-10-29T00:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from django.http import HttpResponse
from rest_framework.renderers import JSONRenderer
from rest_framework_csv import renderers
class JSONResponse(HttpResponse):
"""
An HttpResponse that renders its content into JSON.
"""
def __init__(self, data, **kwargs):
content = JSONRenderer().render(data... | [
"aniversarioperu1@gmail.com"
] | aniversarioperu1@gmail.com |
6d0d251cece6178b91ef559d667dbfe116dc0430 | d93c58cf12ac5cf264581a7c9f075674f7f07a00 | /src/DjangoDemo/urls.py | a85dff43a38121f09c164180034b9899d2d789aa | [] | no_license | xiayuncheng1991/DjangoDemo | 818bd33ddfbb7c0e846e2f95d2938b536f2d4104 | 1131998759a90c17a8a7d7dcba30c90d5278f92b | refs/heads/master | 2021-01-15T19:28:01.265080 | 2014-03-09T14:46:53 | 2014-03-09T14:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from blog.views import *
# Uncomment the next two lines to enable the admin:
admin.autodiscover()
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'DjangoDemo.views.home', name='home'),
... | [
"1762284198@qq.com"
] | 1762284198@qq.com |
8e156c837f59e202d492217138849ac70f7caacc | cef2e6549f8b1cd0601ec7d2636b6810a1fa297f | /wikipedia.py | 46c5e21c1f9dbec16ce1f317d448cb772063da54 | [] | no_license | gdebenito/scrapyng-wikipedia | f88831a80cac6ef9ae55fdccb29e8304a769cdc0 | 79e8508fa14cf6c8b61979da34e51036c14911c2 | refs/heads/main | 2023-04-16T21:29:54.385971 | 2021-04-25T09:26:39 | 2021-04-25T09:26:39 | 361,383,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | import scrapy
class WikipediaSpider(scrapy.Spider):
name = "wikipedia"
start_urls = [
'https://es.wikipedia.org/wiki/Parque_nacional_de_Yellowstone',
# 'https://es.wikipedia.org/wiki/Persona_5',
]
def parse(self, response):
for row in response.xpath('//table[contains(@class, "... | [
"gdebenitocassado@gmail.com"
] | gdebenitocassado@gmail.com |
c33c5d21ce909bc806b78c0dde5a40c39d15fbd5 | 00d7e9321d418a2d9a607fb9376b862119f2bd4e | /utils/pdf_figure_stamper.py | 4628dbee41fd552c97249ac0bbeb5cd6de0b08e4 | [
"MIT"
] | permissive | baluneboy/pims | 92b9b1f64ed658867186e44b92526867696e1923 | 5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13 | refs/heads/master | 2021-11-16T01:55:39.223910 | 2021-08-13T15:19:48 | 2021-08-13T15:19:48 | 33,029,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | #!/usr/bin/env python
import os
from pims.files.pdfs.pdfjam import CpdfAddTextCommand
from pims.files.utils import listdir_filename_pattern
# return list of PDF files matching filename pattern criteria (not having STAMPED in filename)
def get_pdf_files(dirpath, fname_pat):
"""return list of PDF files for this dr... | [
"silversnoopy2002@gmail.com"
] | silversnoopy2002@gmail.com |
a650d4a5998d225d3e704c26dccdce127acde442 | 3f742d4ce80f50481df6030304cfa9d7eedce09a | /addBinary.py | 13ad76d9365b98cbee8261e06964afd275a07427 | [] | no_license | guangyi/Algorithm | 12c48206ddb560bd11b7e3f68223ee8cc8f436f0 | 7e747ed1b11a06edc117dd5627ede77409b6a259 | refs/heads/master | 2021-01-10T21:08:15.867142 | 2014-08-26T05:44:44 | 2014-08-26T05:44:44 | 20,144,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # @param a, a string
# @param b, a string
# @return a string
def addBinary(self, a, b):
lenA = len(a)
lenB = len(b)
result = ''
idxA = lenA - 1
idxB = lenB -1
carry = 0
while idxA >= 0 or idxB >= 0:
# when run out of index, use '0' to r... | [
"zhouguangyi2009@gmail.com"
] | zhouguangyi2009@gmail.com |
16d51e454824f67b4b41ef3ca55f13c9e221bf28 | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /HackerRank/ajob_subsequence_bis.py | 71a54d19dcac4f7ce8161b46f701309c0454498c | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #!/usr/bin/env python3
# cf ajob_subsequence.py
# Method 2: using Lucas's theorem
def digits(n):
D = []
while n:
n,d = divmod(n,P)
D.append(d)
return D
def inv(n):
return pow(n,P-2,P)
def binom(n,p):
if 0<=p<=n:
return (Fact[n] * inv((Fact[p]*Fact[n-p])%P)) % P
return... | [
"blg@gmx.com"
] | blg@gmx.com |
8da9c2a940d0fcc58984d08e74744b976b5c49d6 | 120805ddea9478dc2fb2ecdff585e331fbf99916 | /manage.py | fa0bc3052519c3fde9e262e1541a77e6dbb20655 | [] | no_license | alexeydukhovich/yandex_backend_school | f9de8183197d322a652ae0055fe7fdf0661ef0f7 | 4cfc3f122946980b3ca1bc4c3682de186e380183 | refs/heads/master | 2020-07-11T10:16:18.503190 | 2019-08-26T17:48:00 | 2019-08-26T17:48:00 | 204,511,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from app import create_app
from core.database import db
app = create_app()
manager = Manager(app)
manager.add_command("db", MigrateCommand)
if __name__ == "__main__":
manager.run() | [
"alexeydukhovich@gmail.com"
] | alexeydukhovich@gmail.com |
3d68f1509239d5a47991a10e89e8b0245d0eda81 | 90553c367927a4a0c613f2b716cb34556af06684 | /src/api.py | 0c0c8a9c59d2e7b87df93a146ed9df8b51a2d959 | [] | no_license | ngkc1996/url-shortener-backend | 1428615d779b8d422f2d928f03ec9286d5a798a7 | 76e2072c9d965f3987753787aeba0fef86acc94d | refs/heads/main | 2023-08-02T09:05:24.062874 | 2021-09-20T09:09:31 | 2021-09-20T09:09:31 | 405,525,360 | 0 | 0 | null | 2021-09-20T09:09:32 | 2021-09-12T02:12:21 | Python | UTF-8 | Python | false | false | 2,453 | py | import os
from http import HTTPStatus
from flask import request, redirect
from flask_restful import Resource
from src.db import add_url, get_document_by_id, get_document_by_url, decrement_document_by_id
from src.check_regex import check_url_valid
BASE_URL = os.environ.get("BASE_URL")
class URLShortener(Resource):
... | [
"ngkc1996@gmail.com"
] | ngkc1996@gmail.com |
5ffa6b2852b346708c25363f91526d06e20b67ea | e43f21fb134fd5609f910b0decdee30e53023982 | /DrawFigures720/analysisExps.py | b28a470c274f1c2fd61e09382d0095fc4d11d8af | [] | no_license | rubiruchi/TEexp | bafb1d956c6720b08935b2f06d82641af0688ab3 | dbd219016873ae4281194c1ec7e1854f6277d797 | refs/heads/master | 2022-10-16T03:37:44.284910 | 2020-06-11T04:04:50 | 2020-06-11T04:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,701 | py | #summarize we want which kind of figures
#1. Z<=1 the performance ratio, 2. Z>1 the throughput ratio
#3. the performance increase for each alg?
#compare the whole throughput between step 1: min(max(le)) with step 2: maximize whole network throughput ?
#4. path utilization CDF
#5. flow entries CCDF
#6. link utilizations... | [
"czhang226-c@my.cityu.edu.hk"
] | czhang226-c@my.cityu.edu.hk |
df2ff3db7a4108d0c2ebdb1e4027c6e6897ddf3f | 4ddedf2a3829d7cead057da3ed2ffcffc153786e | /6_google_trace/SONIA/testing/feature_encoder/BPNN/cluster/ann/cluster_4.py | f832fe7fc0ffacb1d946f6351bc72a3b4f6f55c4 | [
"MIT"
] | permissive | thieu1995/machine_learning | b7a854ea03f5559a57cb93bce7bb41178596033d | 40595a003815445a7a9fef7e8925f71d19f8fa30 | refs/heads/master | 2023-03-03T10:54:37.020952 | 2019-09-08T11:42:46 | 2019-09-08T11:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,838 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 13 15:49:27 2018
@author: thieunv
Cluster --> Update 10% matrix weight dua tren c_tung_hidden va dist_tung_hidden
Ket qua toi` hon cluster 3 (Toi nhat)
"""
import tensorflow as tf
import numpy as np
from scipy.spatial import distance
from math ... | [
"nguyenthieu2102@gmail.com"
] | nguyenthieu2102@gmail.com |
476abbd5b335730c6e16e3a8b6cb4482c8c5263c | 3bec21e0d6a9e6df61fdd45da9f813a00e758fd3 | /Insomnia_Ranking/preprocess.py | 3c17f8d99a4c8732982855dfbc9ba1cb82039491 | [] | no_license | Sungwon-Han/Learning-Sleep-Quality-from-Daily-Logs | e5d1f87018b3dd2ca84a829dea744bf91f0d0c6e | a505d7f32392c9ca57fc79c40a21255fd4ebd4ce | refs/heads/master | 2021-06-28T19:15:39.729479 | 2020-09-23T06:39:43 | 2020-09-23T06:39:43 | 169,042,617 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | import pandas as pd
import numpy as np
import pyprind
def max_min_normalization(sleep_activity_nap):
min_ = sleep_activity_nap.min()[3:]
max_ = sleep_activity_nap.max()[3:]
sleep_activity_nap_feature = list(sleep_activity_nap.columns)[3:]
userId = sleep_activity_nap[["userId","month","date"]]
sle... | [
"noreply@github.com"
] | noreply@github.com |
33dee721b6270508e69fbb4d7fab0c50ba9838d6 | f375f6edff092bac8e1c7d9628a37d837d8d5206 | /organize/forms.py | 37b795e63d67dd505b28b1f5e2028c6f7ea25e7b | [] | no_license | SumedhaShetty/HeadSpaceCoders | 4d92534c71fbc3b023f5dac57a128cf1003481f8 | 432dffbf1c2e74d7cedaf8532e7725628a83af3a | refs/heads/master | 2023-05-01T18:25:44.478177 | 2020-02-23T06:12:43 | 2020-02-23T06:12:43 | 242,450,880 | 0 | 1 | null | 2023-04-21T20:47:52 | 2020-02-23T03:37:20 | JavaScript | UTF-8 | Python | false | false | 215 | py | from django import forms
from .models import Event
class PostForm(forms.ModelForm):
class Meta:
model = Event
fields= [
"title",
"content",
"img",
] | [
"sumedhashetty8@gmail.com"
] | sumedhashetty8@gmail.com |
a9cd81676f816e00ef69cf3442787107109adc24 | 7834e7a48399b156401ea62c0c6d2de80ad421f5 | /docs/sphinx/conf.py | 6a6e8b3e6216ce0aa57a8b196300a395552f700e | [
"MIT"
] | permissive | vojnovski/pysparkling | b9758942aba0d068f6c51797c8fb491cf59c3401 | 21b36464371f121dc7963dac09d300e7235f587e | refs/heads/master | 2020-04-08T18:33:55.707209 | 2016-07-27T15:12:59 | 2016-07-27T15:12:59 | 62,555,929 | 0 | 0 | null | 2016-07-04T11:06:18 | 2016-07-04T11:06:18 | null | UTF-8 | Python | false | false | 10,067 | py | # -*- coding: utf-8 -*-
#
# pysparkling documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 7 12:37:20 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#... | [
"me@svenkreiss.com"
] | me@svenkreiss.com |
0a117f861b3f60e9a1df9e1a1af6745c5cfb7da5 | 55bd8a722a993b5831e7b5556c4c6d60dd388984 | /TRIMbatch/batch.py | e5291769b02d0dfeafabe3677fe51fac532a9800 | [] | no_license | bundseth/TRIFIC | 88a3b18ec47622fb78f320b29a711c24d22d4b7c | 15ffabeeeb083a15b2b1cc606f46805fc3081896 | refs/heads/master | 2021-08-31T08:11:41.635000 | 2017-12-20T18:38:09 | 2017-12-20T18:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,832 | py | import os
import pathlib
import subprocess
from . import compoundparse
from . import ionparse
class Batch:
def __init__(self,saveto,ion,mass,energy,number,angle=0,corr=0,autosave=10000):
# Batch object must be initialized with an ion and location for the Batch object to write a .IN file to within the TRIMDATA direc... | [
"undsethb2@gmail.com"
] | undsethb2@gmail.com |
5405bae6fd3682fa18b2ac967334cf490035517b | 3949aaab457f08908c96db9eaa6105f4c0c7f6c5 | /canny_edge.py | 8910134e5bf7627e9de864665651ccfa761edbb1 | [] | no_license | darshan1504/Computer-Vision-Assignment | a0ab261faeb28e5e5fbf41ca3d2eabb47565b9f1 | 9ac6d84bc32a9e8b467da5e38bb874a88544bc96 | refs/heads/master | 2021-05-15T11:19:46.336600 | 2017-10-25T19:51:00 | 2017-10-25T19:51:00 | 108,318,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,033 | py | # Importing all the libraries
import cv2
import pylab as plt
import numpy as np
img = cv2.imread('image.jpg');
# convert to grayscale using open cv function
gray_image = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY);
# Plot the original image in the plot area
plt.subplot(2, 2, 1)
plt.imshow(gray_image, cmap='gray') # Plots ... | [
"djethwa2810@gmail.com"
] | djethwa2810@gmail.com |
056eb32c8505ccab7a062ed6637a7159eb4ccbe2 | ea92859e68b6f51c5e9b80196e98fbb209b4dc73 | /build/chapter4/catkin_generated/pkg.develspace.context.pc.py | 3e3ba7efddce9124ef4bc85625458ac4d9f103ab | [] | no_license | Guo-ziwei/ROS | 2a36ccd22ebb7084ffd89d55a144565bd8400f59 | 8dbae0d31676cf9a1864d7b9e7f35f83dfa021e0 | refs/heads/master | 2021-07-11T01:15:45.117417 | 2019-03-12T09:28:15 | 2019-03-12T09:28:15 | 153,623,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "chapter4"
PROJECT_SPACE_DIR = "/home/... | [
"mechanicbeiyou@gmail.com"
] | mechanicbeiyou@gmail.com |
33516c24ec951e32d2454058cccb932ff632af1d | 9855a6472fa9cd0a0ed75d5d1110eb5450e38c35 | /django_mailbox/runtests.py | f5b0ff3b0c41ddd22e10232d108f622b41e04984 | [] | no_license | JessAtBlocBoxCo/blocbox | efef025333b689e4c9e0fb6a7bfb2237fcdc72a0 | 0966fd0ba096b2107bd6bd05e08c43b4902e6ff2 | refs/heads/master | 2020-04-11T04:30:25.792700 | 2015-09-22T04:41:34 | 2015-09-22T04:41:34 | 23,008,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | #!/usr/bin/env python
import sys
from os.path import dirname, abspath
try:
from django import setup
except ImportError:
pass
from django.conf import settings
if not settings.configured:
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3'... | [
"jess@blocbox.co"
] | jess@blocbox.co |
30d69ee46b287f605e3b00585551ac99490e0da6 | 28a75dffa5c69658dc5237d0c725f2727fdbad66 | /core/migrations/0003_auto_20161230_0845.py | ee617fbcf84ce5158c579f61762015f6997614d9 | [] | no_license | Scaledesk/pepsi_app | d6e5d53cb08eda1db3b67bbf4391386567662a56 | c83428dd08b55d2f054c3c518e4d1d1b02d6a2c6 | refs/heads/master | 2021-04-29T09:24:08.915514 | 2017-12-21T10:16:30 | 2017-12-21T10:16:30 | 77,633,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-30 08:45
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20161230_0843'),
]
operations = [
migrations.AlterModelOptions(
... | [
"deepak.bartwal@outlook.com"
] | deepak.bartwal@outlook.com |
5801d61a76bb6014cefa063ced6f04c6567f17bd | 3e50738d43130403c6263db59fa89d9bd09277b8 | /backend/ceph_perf_api/ceph_perf_api/urls.py | 6ec507c94071bf648e025441dadd35e477814b2b | [] | no_license | alswell/lctc-ceph-performance-workbench | e52a89225cdd81d32961b828203ddae28877833a | aab4acff8c089a2dd818c8bc3e18b79bdf227601 | refs/heads/master | 2021-01-02T08:13:42.939546 | 2017-10-16T02:06:09 | 2017-10-16T02:06:09 | 98,964,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | """ceph_perf_api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"zhouning2@lenovo.com"
] | zhouning2@lenovo.com |
1c59577d6902a03d8bd0d2ab797126dd295d5699 | c6c470017412d55c79c331ad8663ca8769605c17 | /app/util/base/base_dao.py | 606b3c5a2897d2957d633f300bc76d589af8359c | [] | no_license | 9Echo/gc-goods-allocation | 0d96fabe5ce38f3290ea7a22261ac6bc5fcfff4a | 5fb62820fa697ffc45931c4c19a9b0775feb1fc5 | refs/heads/master | 2023-04-13T12:15:28.479707 | 2021-04-26T11:53:03 | 2021-04-26T11:53:03 | 298,716,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | # -*- coding: utf-8 -*-
# @Time : 2019/11/12 14:40
# @Author : Zihao.Liu
import traceback
import pymysql
from pymysql import MySQLError
from app.util.db_pool import db_pool_ods
class BaseDao:
"""封装数据库操作基础类"""
def select_one(self, sql, values=None):
_ = self
conn = None
cursor = N... | [
"1094015147@qq.com"
] | 1094015147@qq.com |
b3c5dba2d752effee260014af048c20f6498d839 | c2e316c3d47f519c28a332f6a9cf8e10c9a1bb6e | /End_to_End_ML/regression_model/config/config.py | 8eeefad8f68ab65afe4ee7362610252c3a7d1f0e | [] | no_license | iRahulPandey/DataScience | 9e84ad99f1b46d24cf723ec78a647b7ff71ee5f7 | c40f2b1abd72327f9d4553c4ad4101c73919faf0 | refs/heads/master | 2023-04-08T00:22:09.285158 | 2021-04-11T13:11:34 | 2021-04-11T13:11:34 | 347,886,245 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # import library
import pathlib as pl
import sys
# path to the root folder
root_path = r".\regression_model"
# path to package root
PACKAGE_ROOT = pl.Path(root_path).resolve()
# path to dataset
DATASET_PATH = PACKAGE_ROOT / "datasets"
print(DATASET_PATH)
# path to trained model
TRAINED_MODEL_PATH = PACKAGE_ROOT / "... | [
"rpandey1901@gmail.com"
] | rpandey1901@gmail.com |
4b41a372e6be94215e21b79d21ea497aa8ffa11f | 7372d91b86166621402c52ceb9fbccec4f9b8035 | /display.py | c8c8a125cd5f1c98ada8a233e2f7ad064fe9905c | [] | no_license | bsthowell/ngrams | f4bdbde0ed4eb8db39bbe6b364fd9ce4d303cd2d | 377fdfae1231d0719032440488c0d00f29c8ce52 | refs/heads/master | 2021-01-11T04:16:10.145410 | 2016-10-18T02:43:36 | 2016-10-18T02:43:36 | 71,193,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
#occ = occurrences
import sys
import matplotlib.pyplot as plt
import numpy as np
import seaborn
OCC_SCALING = 0.01
OCC_SCALING = 1
LINE_LEN = 15
def find_end_points(year, occ, grad):
theta = np.arctan(grad)
d_year = LINE_LEN * np.cos(theta)
d_occ = LINE_LEN * np.sin(theta) * OCC_SCALING
... | [
"bsthowell@gmail.com"
] | bsthowell@gmail.com |
3b98d9957343a21a0180bd5459bf78102ba1e140 | 7a7e2201642a730460dd4d3b0441df3710898787 | /PythonWidget/utils/dict_add_property.py | 8bbc35f19b7e2e8cb75fa7aefa989c3814ba339e | [
"BSD-3-Clause"
] | permissive | xiaodongxiexie/python-widget | 87118cbd75927f2f181fc5c9ff1a0fbd1c12af27 | 58fd929ee57884a73a1d586c7b891c82b9727f93 | refs/heads/master | 2023-04-02T03:13:51.929149 | 2023-03-23T02:17:21 | 2023-03-23T02:17:21 | 89,505,063 | 188 | 55 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # -*- coding: utf-8 -*-
# @Author: xiaodong
# @Date: 2017-11-21 16:34:12
# @Last Modified by: xiaodong
# @Last Modified time: 2017-11-23 16:24:03
from collections import abc
from keyword import iskeyword
class DictAddProperty:
def __init__(self, mapping):
self.__data = {}
for key, value in mapping.items():
... | [
"1027887088@qq.com"
] | 1027887088@qq.com |
625be6865689feaf51c9b0b8de50380c2cbb2a69 | fc8c4d46dcad7c768a06e8ce31a8aa4ee32c8256 | /week6/heap_sort_05135902補交.py | abeb16f0d4b39f56b55a089af514ea6a3e501a01 | [] | no_license | wangshuti/DSA | 75cfb34af69998a743b99d557b6a72ba96eb1f69 | 7a3380b06ace3c3a68ee93aff19f89799b5dc6b8 | refs/heads/master | 2020-07-30T19:27:55.810783 | 2020-01-10T04:13:26 | 2020-01-10T04:13:26 | 210,332,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import math
class Solution():
def adjust(self, heap, k, n):
root = k
tmp = heap[root]
child = 2 * root
while child <= n:
if child < n and heap[child] < heap[child + 1]:
child = child + 1
if tmp... | [
"noreply@github.com"
] | noreply@github.com |
56de2963e60e6e11338f4093d9a14ad286f5e4a4 | 5992c932bf01602a0f33710113659e928cb15f93 | /ask/qa/admin.py | cbad346012d084778cf2cd815ca41c01078a5866 | [] | no_license | ArystanK/stepik | 9efe280f3503067123c12455f00020dc994702cc | 52cc2d6fbe956887f02cbceb6254501e9c55e4c4 | refs/heads/master | 2023-03-31T14:57:53.305721 | 2021-03-13T12:40:44 | 2021-03-13T12:40:44 | 347,365,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from django.contrib import admin
from qa.models import Question, Answer
# Register your models here.
# http://www.djangobook.com/en/2.0/chapter06.html
admin.site.register(Question)
admin.site.register(Answer)
| [
"aarystan@outlook.com"
] | aarystan@outlook.com |
cfa26a0c985f3dc65c0bb7b976cb22b6b8e96f4e | b44d0ae229c16a0bd65ea1a664c136b5423a0e8b | /encrypt.py | 09e6110d7c89cbad17a2aad39cbff410cec791a7 | [
"MIT"
] | permissive | aidankirk617/Steganography | dcf78db3f48c0df0313ecbe5b99633056ec0a431 | a49f5d37b5da26e07e42b405008f369e301f41f4 | refs/heads/main | 2023-07-18T02:54:35.550510 | 2023-03-18T18:03:28 | 2023-03-18T18:03:28 | 403,672,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,347 | py | ##############################################################
# Project 4 CS 352 : Functional Programming
# Date: 5/07/21
# Authors: Aidan Kirk, Melanney Orta
# Description:
#
# This file uses the Pillow Image library to encrypt a message
# that the user inputs into an image that can later be decrypted.
##############... | [
"noreply@github.com"
] | noreply@github.com |
6e2565371a7c9484f4c5fe11f0bbe409bbbf233c | 229e77f42680d6558b70179e6366de3be17d4c53 | /data_loader.py | 8372c6284839fd78005be09a2c013adbdd50c8ab | [] | no_license | leibovic/mrscutronadotcom | 33e2059fd3dcef71adf72fe457518da09420c4dd | 0267992c122615c9b28b88b8b3fe49b6c9af26aa | refs/heads/master | 2020-05-29T11:57:52.802493 | 2013-11-23T02:04:58 | 2013-11-23T02:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | import model
import csv
from datetime import date
import datetime
import time
import urllib
def load_comments():
comment_id = 1
timestamp = datetime.datetime.now()
user_id = 1
post_pk = 6
content = 'comment'
new_comment = model.Comment(comment_id=comment_id,timestamp=timestamp,user_id=user_id,p... | [
"katiemthom@Katies-MacBook-Pro.local"
] | katiemthom@Katies-MacBook-Pro.local |
055ec397b411b35fba3e8146761d0addd4610000 | a7dea2e55794c6c7161c37ecef1792aacb77db16 | /ResumenContenido/manage.py | 71d6dbce4cf8d0cd90b9a4146c841251cefc9b4d | [] | no_license | Kyntal/RepasoContenido | 186caaa6a6c1ccbfd2c057251bf9ecfa3b04f0dc | 51af993e140afecd7d062532343af5a11120935c | refs/heads/master | 2020-04-05T12:06:51.324805 | 2018-11-09T13:39:44 | 2018-11-09T13:39:44 | 156,859,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ResumenContenido.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"clandres1985@gmail.com"
] | clandres1985@gmail.com |
261e6d817f1c6e5c39aa39a4651ecd0813d56ffb | 300a2f9f1d5e74bced0e21b7fa14d8afdfc68f66 | /test7.py | 057f45f97b3bddfc66720653aad7c859d7a03b71 | [] | no_license | makoflexite/stepik---auto-tests-course1 | 108748cc73116573b8dcf8ee7deeb745ef931d99 | db4f605fdb03c0436f9ee83b2d0a5fc59d0a0042 | refs/heads/master | 2021-05-20T02:10:32.995306 | 2020-04-01T10:25:22 | 2020-04-01T10:25:22 | 252,141,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from selenium import webdriver
import time
import math
def calc(x):
return str(math.log(abs(12*math.sin(int(x)))))
try:
link = "http://suninjuly.github.io/redirect_accept.html"
browser = webdriver.Chrome()
browser.get(link)
button = browser.find_element_by_class_name("btn")
button.click()
... | [
"mako@flexite.com"
] | mako@flexite.com |
c3ab52e0c857c71ffaabff7df542b4872c48dbcf | 87f574548a321a668f325bc3d120a45366b0b76b | /studioadmin/views/email_users.py | 7f409efcb24684c5ca97d5f8c036492e52fb13ac | [] | no_license | judy2k/pipsevents | 1d19fb4c07e4a94d285e6b633e6ae013da0d1efd | 88b6ca7bb64b0bbbbc66d85d2fa9e975b1bd3081 | refs/heads/master | 2021-01-14T11:11:26.616532 | 2016-10-07T20:47:39 | 2016-10-07T20:55:13 | 36,600,721 | 0 | 0 | null | 2015-05-31T11:51:14 | 2015-05-31T11:51:14 | null | UTF-8 | Python | false | false | 11,607 | py | import ast
import logging
from math import ceil
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import Group, User
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.template.loader import get_template
from django.template.response i... | [
"rebkwok@gmail.com"
] | rebkwok@gmail.com |
82129cfc274273c3eef0e57fffe16503c8fb6a19 | ced9931dbb22a52e67dc381a09318692292d96c4 | /webevent_calendar_ripper.py | 8a261e08ba5a60f01a863b01208fbecc419b888c | [
"MIT"
] | permissive | dpgettings/webevent_calendar_ripper | e4095acedcecf8749db0001b03bffaeb5257ac83 | a74db62749642b47098591517c0d9e27ca0a00ee | refs/heads/master | 2021-01-22T05:19:50.291877 | 2014-01-06T04:18:46 | 2014-01-06T04:18:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,553 | py | """
To Do:
1. Option to specify filename for output .ics file
2.
"""
import time
import urllib2
from bs4 import BeautifulSoup as BS
import re
from collections import OrderedDict
# ##############################
# Utils
# ##############################
# URL of WebEvent CGI interface
cgi_url = 'http://calendar.u... | [
"daniel.p.gettings@gmail.com"
] | daniel.p.gettings@gmail.com |
5f5183b00d36f0f2487f1167dba4c6665c2b0648 | 58f2ae3c3034a9fc5218a4a9d15e671d24d6f5d8 | /urlybird/breveurl/views.py | 35123906cc207f17d29a2111d33453059b00b2e0 | [] | no_license | sovello/urly-bird | c92101780a9ef495382884202b8fbc4025000624 | e08581bed189854decff35af6670acff1ec9de51 | refs/heads/master | 2021-01-19T19:05:35.226208 | 2015-06-25T14:42:01 | 2015-06-25T14:42:01 | 37,679,859 | 0 | 1 | null | 2015-06-18T19:21:55 | 2015-06-18T19:21:55 | null | UTF-8 | Python | false | false | 4,850 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.core.urlresolvers import reverse
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.http imp... | [
"sovellohpmgani@gmail.com"
] | sovellohpmgani@gmail.com |
d0452e6ba4cd264c160db8efac12a5b7888c33f0 | febc7b300d502c0dccd2fe0b0a7fdd707af2a450 | /portfolio-project/jobs/migrations/0001_initial.py | eede75bbbc9407ced16dd0b46ae5445fa6ef73c9 | [] | no_license | OJVELEZ/portfolio | 7d0b5a429524299807e128712b5cc61cf91c2248 | 6467b6fb5c6ebf19ed6ac149bd40f29d11a7b65d | refs/heads/main | 2022-12-25T19:15:59.997981 | 2020-10-07T19:22:47 | 2020-10-07T19:22:47 | 302,137,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # Generated by Django 3.0.3 on 2020-10-07 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.AutoField(auto... | [
"ojvelez@gmail.com"
] | ojvelez@gmail.com |
b747686cd2550844b2734decf0654e9fecd0328d | 6c551955fc9ed4e42e575e972c303d5ea22971b7 | /ebook_converter_bot/__init__.py | ececf1d475bd63bb5b638a5dd8cfe37ea94a4194 | [
"MIT"
] | permissive | budikesuma/ebook-converter-bot | df04cf1d25fd18f0c7d406448b5207c49e9fbfa1 | a6496bf4cbcf7b446b4898678c33db1debee3554 | refs/heads/master | 2023-08-23T11:32:37.717575 | 2021-11-05T18:15:31 | 2021-11-05T18:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | """ Bot initialization"""
import json
import logging
from logging.handlers import TimedRotatingFileHandler
from pathlib import Path
from sys import stdout, stderr
WORK_DIR = Path(__package__).absolute()
PARENT_DIR = WORK_DIR.parent
# read bot config
with open(f'{PARENT_DIR}/config.json', 'r') as f:
CONFIG = json.... | [
"ysh-alsager@hotmail.com"
] | ysh-alsager@hotmail.com |
15a59428a27529aafc46c577811104b43b63a731 | 460027c62df6a6939c342d2d2f49a727c8fc955c | /src/nuxeo/jcr/interfaces.py | 0cd0ba5c447f9981fb9a2c9e36f5c777740674bf | [] | no_license | nuxeo-cps/zope3--nuxeo.jcr | ef6d52272835fa14375308bf5a51dbee68b2252a | 88e83d30232226ad71b6f24a2c00e5ad9ba5e603 | refs/heads/main | 2023-01-23T19:56:27.515465 | 2006-10-20T16:54:01 | 2006-10-20T16:54:01 | 317,994,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | ##############################################################################
#
# Copyright (c) 2006 Nuxeo and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS P... | [
"devnull@localhost"
] | devnull@localhost |
5a4e0307e782f952605dbf2d809b6b997e45ba16 | b92d45aac3edec2783cfd2a99fab597761f33199 | /axeshop/urls.py | a22f5d197a7bc47f8c5ad1dd3c6b4707188767b4 | [] | no_license | TonyAJ7/simple_shop | 8ae01c086aa9e44070460701966ac523ff72c5ff | bccc796174581aa852a89d23bf476a27b062363a | refs/heads/main | 2023-08-02T16:04:20.685280 | 2021-10-03T12:02:03 | 2021-10-03T12:02:03 | 413,057,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | """axeshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"djabbaroov@gmail.com"
] | djabbaroov@gmail.com |
15db9912c847ddc41fe4a73c01f6bf56cbbb57e7 | a19b4b0c8648c4e943ab6e80d67c43fb5c179e67 | /score_predict_site/venv/Scripts/pip-script.py | aad60e709fd04606ac9507905f064ea125533b05 | [] | no_license | jiayouxujin/cs17_depot | f1d9c5d6da2c419ee1132544ce828917f7c12774 | 91908f5b2c1e16352ed3677e7ff077bba15452de | refs/heads/master | 2020-04-11T13:10:44.254388 | 2019-03-14T13:36:43 | 2019-03-14T13:36:43 | 161,806,403 | 0 | 5 | null | 2019-03-14T13:36:44 | 2018-12-14T15:46:07 | Python | UTF-8 | Python | false | false | 434 | py | #!C:\Users\93531\Documents\GitHub\cs17_depot\score_predict_site\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"1319039722@qq.com"
] | 1319039722@qq.com |
55ab31a1fb8e40f0be7d7c50c80d783ea3e9c73e | b2a1fff667cacc70544438a4ca35f4e009a10455 | /normalizing_flows/models/optimization/__init__.py | 722c81ed1620c3803616520ecc3af150fc2b55b9 | [
"MIT"
] | permissive | NahuelCostaCortez/normalizing-flows | 34cb07915c2f99dfc29bef4964b092559a9a74cf | f365a0f1b2a05662e73965b9255d6127cf44e64c | refs/heads/master | 2023-06-26T23:34:41.616682 | 2021-06-09T11:41:12 | 2021-06-09T11:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | from .schedules import LinearWarmupSchedule | [
"brian.groenke@colorado.edu"
] | brian.groenke@colorado.edu |
8335c2807bbb6b0b6c7021c995b6e04e41dd8a69 | 5ae6f679ecb6fd1d8d5dee221c371f43ddd9d05b | /src/pb/entities/regencia/cristaleria.py | e7ea50d2330f774c418e0bffefc88f359eb3d173 | [] | no_license | estalg/CeleqBackEnd | 02e858399a13a186ff3551e7a30f8f52805ea774 | 5f08bf710c97fe1211a88a15c92522462d083806 | refs/heads/master | 2022-04-08T10:15:43.509301 | 2020-03-04T19:33:43 | 2020-03-04T19:33:43 | 234,360,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | from sqlalchemy import Column, String, Integer
from ..entity import Base
from marshmallow import Schema, fields
class Cristaleria(Base):
__tablename__ = 'cristaleria'
nombre = Column(String, primary_key=True)
material = Column(String, primary_key=True)
capacidad = Column(String, primary_key=True)
... | [
"estivenalg@gmail.com"
] | estivenalg@gmail.com |
457cb1c7a96954037fd6b141b28a35ae28da34ea | 4596bb41523caedba4d0aa2b60731aa687bc3bf5 | /entries/models.py | 98b1153855cf6f8c0af9ee5303a6aeb7cd233f00 | [] | no_license | naveenijeri/Blog_App | 5f38c80352306891c7bff3d5048605601a942f7c | 5908253fb8aeebf764ed88b073eb6a94fbd49d01 | refs/heads/master | 2022-12-10T11:28:32.767460 | 2020-03-18T07:41:54 | 2020-03-18T07:41:54 | 248,153,899 | 0 | 0 | null | 2022-12-08T03:49:44 | 2020-03-18T06:19:16 | Python | UTF-8 | Python | false | false | 519 | py | from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
# Create your models here.
class Entry(models.Model):
entry_title=models.CharField(max_length=50)
entry_text=models.TextField()
entry_date=models.DateTimeField(auto_now_add=True)
entry_author=model... | [
"naveen.ijeri123@gmail.com"
] | naveen.ijeri123@gmail.com |
e8b7a1389f35f4a9c774f36a26469d3e1f246357 | 0301df471aa9d0a957676c56cbf98b384c13fd47 | /menu.py | 422d0cb60988050b86fa33efb68caf5279522edd | [] | no_license | thotran2015/FinalProject | 3798ad5e23d162e371a7132a9937bd5a5eb25677 | 770e8c0738ca37704207d19767a7918a34646178 | refs/heads/main | 2023-04-25T20:28:36.186978 | 2021-05-21T17:02:42 | 2021-05-21T17:02:42 | 364,755,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,341 | py | # import kivy module
import kivy
# base Class of your App inherits from the App class.
# app:always refers to the instance of your application
from kivy.app import App
# this restrict the kivy version i.e
# below this kivy version you cannot
# use the app or software
kivy.require('1.9.0')
# to use this must have to... | [
"thotran9@mit.edu"
] | thotran9@mit.edu |
1ffbd9a7b4755de5985c1918e01e034631e1fc93 | dea3132777935c321973e2ec0af47aa3cbf1f191 | /11 HMM/hmm_template.py | fe547aa79d56d526617c10e6e953ad5eda2dc09f | [] | no_license | SBangslund/SE04_AI | c14a11b1db0bbf8fd642b289d6ecdd6256dbb48f | 7a2f5ac41e7b25b4b10a4033d2c940a79d1fd0ff | refs/heads/master | 2022-05-09T06:10:07.110424 | 2020-04-30T14:39:12 | 2020-04-30T14:39:12 | 247,294,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | import numpy as np
"""
Hidden Markov Model using Viterbi algorithm to find most
likely sequence of hidden states.
The problem is to find out the most likely sequence of states
of the weather (hot, cold) from a describtion of the number
of ice cream eaten by a boy in the summer.
"""
def main():
np.set_printoptio... | [
"s.bangslund@hotmail.dk"
] | s.bangslund@hotmail.dk |
3aaf3331c8160b13805128f0a48758614d163f12 | e5f7d7706062b7807daafaf5b670d9f273440286 | /stocks/admin.py | 3da94a24279993788e7694d3af8b4fe75814404d | [] | no_license | fchampalimaud/flydb | bd01839c163aa34277091f454f8ad38e3fd45dc4 | 2d3ad9ff5903a26070258f707228334cd765a647 | refs/heads/master | 2021-06-17T15:38:25.517946 | 2018-01-17T16:16:00 | 2018-01-17T16:16:00 | 185,334,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from pathlib import Path
from django.contrib import admin
from django.apps import apps
app = apps.get_app_config(Path(__file__).parent.name)
for model in app.get_models():
admin.site.register(model)
| [
"hugo.cachitas@research.fchampalimaud.org"
] | hugo.cachitas@research.fchampalimaud.org |
74f037f36854ed429ba78246687bfa075c1ec9b2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/689.py | ade9216b11543d12d4e0795d77c30c952d9e8947 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from itertools import \
product, \
permutations, \
combinations, \
combinations_with_replacement
from functools import reduce, lru_cache
from math import floor,ceil,inf,sqrt
def intercept_time(i,j):
if i[1] == j[1]:
return inf
else:
return (j[0]-i[0])/(i[1]-j[1])
def intercept_... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
eae9990fc7d211b95d53ce21001e26a1141bf5a6 | be566f2c2370295895fdcdcffa3de1f7ae0dfc5c | /sugarcrm/sugarerror.py | e610a1e61e02e7fb7598fe98d923044881111ad6 | [] | no_license | sboily/xivo-sugarcrm | f7836ec20520caf529ccf7f13a2f65580ed77d2b | ee9d682dea366629fe85d127f3490c03ffe672cb | refs/heads/master | 2016-09-05T18:02:11.813369 | 2014-02-13T00:58:04 | 2014-02-13T00:58:04 | 15,716,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | #
# sugarerror.py
#
# Exceptions to be raised when various problems occur while running sugarcrm software
#
class SugarError(Exception):
def __init__(self, data):
self.name = data['name']
self.description = data['description']
self.number = data['number']
def is_invalid_session(sel... | [
"sboily@proformatique.com"
] | sboily@proformatique.com |
62ef9dfed9b46fa60576c418807f15dfdaffd9b1 | 15c60e42bcda3d4b4b4c4faf62344a29e416e2fe | /cmd.py | 753a64b35afd675f59126c7246a2b58146adafd4 | [] | no_license | luobingfirst/everest | a1cb936e4ee551391c23a52d4f48c4c968b16f58 | 32016a960f50b533a8e385a2992ef4dbace8429d | refs/heads/master | 2020-06-03T16:28:30.961905 | 2019-07-14T22:49:38 | 2019-07-14T22:49:38 | 191,649,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,580 | py | import yaml
import time
from kubernetes import client, config
class cmd:
def __init__(self):
config.load_kube_config()
self.coreApi = client.CoreV1Api()
self.appsApi = client.AppsV1Api()
self.customObjectsApi = client.CustomObjectsApi()
def getPercentFromWeight(self, selector, ... | [
"bing.luo@futurewei.com"
] | bing.luo@futurewei.com |
86fb9e94b090262fcacb889a69841a84681fbe62 | a129f03748a75d4345e67f89a1c2f8b989f32028 | /app/user/views.py | b726d365f1bf257f59c28f9131412c80afb09efe | [
"MIT"
] | permissive | berkayersever/recipe-app-api | 5df365dc5d2487da8a53b726c20619e336c0af76 | 9cab2cd8a32e0bf420f4731bf768fb856f216352 | refs/heads/master | 2022-12-03T11:03:06.681861 | 2020-03-27T01:14:03 | 2020-03-27T01:14:03 | 247,578,582 | 0 | 0 | MIT | 2022-11-22T05:25:42 | 2020-03-16T00:50:07 | Python | UTF-8 | Python | false | false | 935 | py | from rest_framework import authentication, generics, permissions
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
from user.serializers import AuthTokenSerializer, UserSerializer
class CreateUserView(generics.CreateAPIView):
"""Creates a new user in the s... | [
"berkayersever@sabanciuniv.edu"
] | berkayersever@sabanciuniv.edu |
0a623363e3be9cc953a45672ce090585346ee7d8 | 7a22f54ceaa21d4d396be6f6887d9a382137843f | /largest last word.py | fdbab534cc12135cdc4849b93e823ca496e23437 | [] | no_license | ramdharam/MyPythonPrograms | 5834d18d0e181bc0f6d4c9e11854537c7442930a | 6e4b43925d4378a0b314a6bce1c58377fc1eaa35 | refs/heads/master | 2020-03-20T12:31:54.131641 | 2018-06-15T02:41:23 | 2018-06-15T02:41:23 | 137,432,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | class Solution:
# @param A : string
# @return an integer
def lengthOfLastWord(self, A):
if len(A) == 0:
return 0
wordstart, wordend = 0,0
isStart = False
for i in xrange(len(A)):
if wordstart == 0 and wordend==0 and isStart == False and A[i] != ' ':
... | [
"ramdharam@gmail.com"
] | ramdharam@gmail.com |
860cae97491071490e0addb396e65b5c40b370d2 | 676aa014105615e6808727023e2b7e520e55ed85 | /new3.py | 325058827c79fb541eeb6c188ca3b3504f964c10 | [] | no_license | woodypeckers/aizhaoyou | 84708ce5587299d82af8f5868c1eab62424a8dd2 | d3e8675cc7e00b4f2edfe2379f93ec45cd521649 | refs/heads/master | 2021-01-21T20:42:39.781472 | 2017-06-18T08:22:02 | 2017-06-18T08:22:02 | 94,673,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | name = tom
flag = False
if name == "luren"
flag = True
else
print name
| [
"1172941844@qq.com"
] | 1172941844@qq.com |
5a0fbe6057d13a313a9e06fd66c0856d1c9f6828 | 7cb684bef6a03ef2b4ed6ee92e2f9bd8f92bf699 | /python/fit_dengue_my_big.py | 46fa9b98e8c10151332b95e602afa839e05542df | [] | no_license | fccoelho/paperLM1 | a36e70b17539ce5546cc0421c236617085ae6220 | f188e36afcc0b53e1b7ad0aa85c29c4fc09734f6 | refs/heads/master | 2021-01-09T05:58:06.851216 | 2016-03-27T21:13:06 | 2016-03-27T21:13:06 | 23,622,514 | 5 | 2 | null | 2015-06-22T18:46:46 | 2014-09-03T14:00:45 | TeX | UTF-8 | Python | false | false | 8,572 | py | #
# Multi-year fit of influenza epidemics
#
import pyximport;
pyximport.install(pyimport=False)
from BIP.Bayes.Melding import FitModel
from scipy.integrate import odeint
from scipy.interpolate import interp1d
import scipy.stats as st
import numpy as np
import pylab as P
import copy
from collections import defaultdict
... | [
"lmax.procc@gmail.com"
] | lmax.procc@gmail.com |
e5f8a8990eaa19e1d7f405e37646c5086cba3203 | 85660d4d8743a9ee5040a68f99f3c45f49c3b3ba | /main.py | 10eb3326ff294dccb767118036cc053323706a54 | [] | no_license | francisco-avalos/LA_covid19_data_cases | fc09d7bcb8b84909812da0d78a4df3470cdeaef2 | 58daae3b67da5e7fdda8642f0e349fc0684da97a | refs/heads/master | 2023-04-05T14:34:49.194144 | 2021-04-17T05:36:42 | 2021-04-17T05:36:42 | 294,277,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py |
import re
import requests
from bs4 import BeautifulSoup
from functions.web_scrape import convert_scrapped_data_to_dataframe
from functions.la_cases import return_cases, return_cases_NonResidential, rcac_df, hss_df, es_df, nr_df, return_cases_ResCong, return_cases_home, return_cases_educational
from functions.web_scra... | [
"avalosjr.francisco@gmail.com"
] | avalosjr.francisco@gmail.com |
0899b95451cbc880db36e6cbd9db263eb3aacee2 | 65d8e08503a1642f91d3fae36147a6c60af8afb0 | /api.py | ab05580fbca914df59a76b049aaa444eccda7602 | [] | no_license | hermixy/nanoScada | 96539fffd6fc2d4d25efdad13f1ce6e6c059dc6b | 2926999b3fd6310ccf9ec8ad4196e4c494d39b9e | refs/heads/master | 2020-12-30T17:32:07.711121 | 2014-06-28T19:53:36 | 2014-06-28T19:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | import time
import json
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.myTest
coll = db.messageSensor
resp = {"type": "collection", "data":[]}
def makeResp (m, query):
resp['data'] = []
resp['query']=query
for d in m:
print d
resp['data'].append(d)
def findClient... | [
"lmpizarro@gmail.com"
] | lmpizarro@gmail.com |
ca80a1230dfd9a397f560b80bbe5b0331c23f062 | 30b063c58d774376bc7e4424376d3fff0c276d42 | /python/socket/udpecho_interactive/udpBroadcast.py | 986e0473654a5e493845e95c027f146e134902c9 | [
"MIT"
] | permissive | simonlovgren/tests | e2ec7e33379373fced50b1f9da850d74cdb8fbeb | 58e9a2c471edd65c5ddaee97428aa6d0413873d5 | refs/heads/master | 2023-04-06T23:26:36.152930 | 2023-03-31T20:52:07 | 2023-03-31T20:52:07 | 76,958,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Main entrypoint for UDP chat test.
'''
'''
MIT License
Copyright (c) 2019 Simon Lövgren
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software witho... | [
"lovgren.simon@gmail.com"
] | lovgren.simon@gmail.com |
e6d2771b543c2d19deacd0ce9a4d50f734e645ad | 25692e58dceec1f5be4c7930d353bacafd3ff7b0 | /dbfs/바이러스.py | 27b5755cdc5037631740804def3f183bfe85bae4 | [] | no_license | ub1n/Algorithm | a8617fc56d934e99370c367af364f308431423d6 | c9761941082b678a2882d04db8887afb0d664737 | refs/heads/master | 2023-06-11T11:11:52.573748 | 2021-07-02T13:32:09 | 2021-07-02T13:32:09 | 375,415,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import sys
from collections import deque
n=int(sys.stdin.readline())
m=int(sys.stdin.readline())
graph=[[] for i in range(n+1)]
for i in range(m):
a,b=map(int,(sys.stdin.readline().split()))
graph[a].append(b)
graph[b].append(a)
answer=0
visited=[False]*(n+1)
def dfs(graph,v,visited):
visited[v]=True
... | [
"bin951024@naver.com"
] | bin951024@naver.com |
dd4af8ccd881c4ab3f6b34e12aaf051cde9aa1dd | aada09f621fe43869191ac8a119e54ab1c319b5b | /MachineLearning_Carrier_L3/02 ARIMA_code/telecomm_ARIMA.py | eb9e193d1b85fe034a5620785cb726eac5d91aad | [] | no_license | rouxero/Data-Mining-course | a1e582d8de2ef7ba4a61fb5e415dabee0efb6963 | 1108ea2c83d01eb9023ce5c3531cd990f79481e7 | refs/heads/master | 2020-05-24T21:45:58.195354 | 2018-10-22T10:12:14 | 2018-10-22T10:12:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,429 | py | #!-*- coding:utf-8 -*-
import random
import time
import datetime
import pandas as pd
import numpy as np
from statsmodels.tsa.arima_model import ARMA
import sys
from dateutil.relativedelta import relativedelta
from copy import deepcopy
import matplotlib.pyplot as plt
start = '2016-12-31'
end = time.strftime('%Y-%m-%d')
... | [
"wang_feicheng@163.com"
] | wang_feicheng@163.com |
e45a1fac5b581c35a286bd8251ccc0e3f6475205 | ee4a0698f75aa2500bf2ce1b5e5331bc8b57157a | /myproject/course/models.py | 738e4fda86e0a0457361f274b8a857115dd7a817 | [] | no_license | coderrohanpahwa/one_to_one_model | 5398732410027bfad91c5d5db01e528397c87703 | df4fd8ce89d74d41d49671ba8dd5759b80af3d43 | refs/heads/main | 2022-12-25T14:12:31.253350 | 2020-10-06T08:58:38 | 2020-10-06T08:58:38 | 301,669,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.db import models
from django.contrib.auth.models import User
from .views import k
# Create your models here.
class Answer(models.Model):
user=models.OneToMany(User,models.CASCADE)
answer=models.CharField(max_length=100) | [
"coderrohanpahwa@gmail.com"
] | coderrohanpahwa@gmail.com |
911e9801008fc4558b02c6013c59c09bcf1cd5be | f6844123ffd7e2b848503fbd6534248c6b891683 | /dimdimkun/solve.py | bdd93ba14c81a43cda684c18fc0bd92ddc71a82b | [] | no_license | nikkoenggaliano/My-Write-Up | 43178acd23afcc8116af8a473cef2a501867d6cc | 0c94cc73fb9ed9e3c197ef0b2e4f7507fb649a77 | refs/heads/master | 2023-01-15T01:44:02.165347 | 2020-11-27T11:02:26 | 2020-11-27T11:02:26 | 154,408,886 | 6 | 2 | null | 2020-10-01T03:34:19 | 2018-10-23T23:17:15 | CSS | UTF-8 | Python | false | false | 318 | py | #!/usr/bin/env python
from random import choice
import string
s = string.printable
while True:
j = 0
final = ""
key1 = "%c%c%c%c"%(choice(s), choice(s), choice(s) ,choice(s))
padd = "-"
final += key1 + padd + key1 + padd + key1 + padd + key1
for i in final:
j += ord(i)
if j == 1655:
print(final)
| [
"nikkoenggaliano@gmail.com"
] | nikkoenggaliano@gmail.com |
ec41abbb22c1161cd04b0b518c6148e10ad97bd8 | 237c47c072df514689d9fab1fea698fb67aba025 | /signal_coverage/catalogue/models.py | c53b878139a07e189e9df41a55428c5530f127ee | [] | no_license | pivarnikjan/signal_coverage | aa51eb4e44fa28c0b3cc610478b6ce574dfd19da | 6c05926fa01c4aa2f78a9336b448bcff9fb16d95 | refs/heads/master | 2021-01-11T10:25:45.367289 | 2016-12-17T10:42:52 | 2016-12-17T10:42:52 | 76,205,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | from django.db import models
class SignalCoverage(models.Model):
STATUSES = (
('Up', 'UP'),
('Down', 'DOWN'),
)
site_name = models.CharField(max_length=50)
site_lat = models.DecimalField(default=48.0, max_digits=12, decimal_places=9)
site_lon = models.DecimalField(default=20.0, ma... | [
"pivarnikjan@gmail.com"
] | pivarnikjan@gmail.com |
21f1b08d9f5ac07d16ff087a4f5e8c424965f906 | fc72eaf5a143087a9a60b6e4cfc8401f4ec6adb6 | /downloader.py | 1a5a7b33e261013722d3e45668d37a11e090595a | [] | no_license | ciancolo/TesiAndroid | 22968ad5c057390e7084abfbc7f8b1531ea56e58 | f327f6fde98d9f3178eda5557837f562fbef0116 | refs/heads/master | 2021-05-30T16:06:40.465739 | 2016-03-24T08:12:34 | 2016-03-24T08:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | import urllib
import sqlite3
import os
conn=sqlite3.connect("/home/michele/Scrivania/Tesi/Crawler/database.db")
c=conn.cursor()
#url="http://f.giveawaycrew.com/f.php?p=4&i=com.camelgames.fantasyland&v=1.24.0&h=N0Y4UWdjYlN1K1BVd0VYanRqdTl2Zz09&d=K010RjU3RlVxcEdTT1c5T0hFdHpyQT09"
c.execute("select identificativo,tito... | [
"michelezanchi94@gmail.com"
] | michelezanchi94@gmail.com |
8b9a2fbe28639624c74adccfd823ce4364586294 | a1d786fe318dd4b1570e6706208e141842c99b36 | /Project2.py | f60a1c7193f7f89d87b1ea3ebea20ed4c991cfdb | [] | no_license | stevenyeh/Project2 | 2563a5480f1c5b4f90fa93554a269ee0c9428171 | aa629f7731a4c2598331f4f15b0a8b6ba4a39f52 | refs/heads/master | 2021-01-10T03:29:10.178037 | 2016-01-15T01:13:02 | 2016-01-15T01:13:02 | 49,543,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,372 | py | import pandas
import pandasql
import ggplot
import numpy as np
import matplotlib.pyplot as plt
import csv
from datetime import datetime
import scipy
import scipy.stats
import statsmodels.api as sm
import sys
#Wrangling Subway Data
def num_rainy_days(filename):
'''
Run a SQL query on a dataframe of
weather ... | [
"yeh.steven1@gmail.com"
] | yeh.steven1@gmail.com |
0934476d88d102d3ecdad97f93ea2db2840cd912 | 8081704ffd2f9620ddd04b09e7e601ea0ef93f62 | /auth_api/api.py | 05d4263376d033f210a037614b9cea3e01e57125 | [] | no_license | bharris62/djangoTrelloClone | 3a985ff9f8f140a3ec001cfb060c8f544b2333ab | 015426faecd9ccc8b4e6db7b38c47b3a9fe132aa | refs/heads/master | 2020-08-31T05:57:06.201338 | 2017-06-15T23:24:51 | 2017-06-15T23:24:51 | 94,392,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from django.contrib.auth import authenticate, login, logout
from rest_framework import status, views
from rest_framework.response import Response
from django.views.decorators.csrf import csrf_protect
from django.utils.decorators import method_decorator
from .serializers import UserSerializer
class LoginView(views.API... | [
"blakebharris@gmail.com"
] | blakebharris@gmail.com |
24ed08ee2440a58029972c74cc667b12b8251f36 | 9cb3b5e2117377cfda66a69ee7032dd4c688175b | /test/sagemaker_tests/huggingface_pytorch/training/integration/sagemaker/test_smmp.py | a4e68175fa6f87f586b545e090fa9bcb4bd5e4db | [
"Apache-2.0"
] | permissive | mbencherif/deep-learning-containers | 30e10ac616f2d578040373303a52ed18e3550bf2 | 6d75e645fec20c61922ce64893d84713c55b2a1e | refs/heads/master | 2023-04-16T02:06:54.156977 | 2021-04-28T22:03:53 | 2021-04-28T22:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,450 | py | # Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.