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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7b5e84aa6a7c4f42ef55fe9cce9e91ab83974836 | def828a9a90a35db9d6659d190ab96209c1b3e07 | /home/views.py | 242be66654ed56550b43a4c5643aab849ba87fa3 | [] | no_license | bglynch/trydjango | 1ccf41328142ab00a06ba587c34da5f911cd37c9 | 6e6b14dee9ef18cd86c3984dadff0091d1283907 | refs/heads/master | 2020-03-20T00:45:04.444662 | 2018-06-13T12:06:10 | 2018-06-13T12:06:10 | 137,054,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from django.shortcuts import render
from .models import Author
# Create your views here.
def get_index(request):
authors = Author.objects.all()
return render(request, 'home/index.html', {'authors': authors}) | [
"bglynch17@gmail.com"
] | bglynch17@gmail.com |
62526de5c41406d7c4d2c400d9630f6f77f8a84a | 155b365fb459caff5f57f9e5eb55a26895a016cd | /evento_01/evento_01/urls.py | 291e0231fe3e480d4a9dcaeb87cb9442753711cd | [] | no_license | Claison/EVENTO | a43fa39eb3ea4fdd29c4c9ffd858b6e20be1c02b | 61b97f980f7cd77b4de92088c6601378a520ea86 | refs/heads/master | 2021-06-25T18:55:51.229559 | 2017-09-12T00:59:17 | 2017-09-12T00:59:17 | 103,141,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | """evento_01 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')
Class-... | [
"30608657+Claison@users.noreply.github.com"
] | 30608657+Claison@users.noreply.github.com |
1a37bd84c5c393aea5ef676343ab97d2c5aee110 | 5d0a956acd40aecff1bbea2692f4d8cc916f0f6d | /tfo/recursive_auth/tfo_enabled_parser_tcpdump.py | 3e29293deb31619c1ee79a0e1c6386a86dc7bf04 | [
"BSD-2-Clause"
] | permissive | byu-imaal/dns-privacy-conext19 | 31cf692efb72164e127e2f135b2a3e657113f467 | 5e48592341390744aa2ec38bd11722cbd22bfe36 | refs/heads/master | 2020-07-24T10:11:59.297463 | 2019-10-16T22:22:33 | 2019-10-16T22:22:33 | 207,890,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,557 | py | """
Checks to see if resolvers send data in their SYN
Parses output pcap from `tfo_enabled_issuer.py` abd outputs a list of json objects
Used to identify which IPs had the TFO flag set when querying the authoritative server
"""
__author__ = "Jacob Davis as part of research at imaal.byu.edu"
import argparse
import s... | [
"jacobgb24@yahoo.com"
] | jacobgb24@yahoo.com |
3dd9507f991d960f4966a2df70d53208413a035f | fafb4b5998833c322ea406dafa8181cc1f953066 | /userCheckFermat.py | a06f9819e694b16412623c25cfd000903ff1a6aa | [] | no_license | mahack-gis/Programming_GIS6345 | ed63082e02abe450b232207d08deb4f9f48f5449 | 173db5fc0967bee45221b760d19c81d0bdaa171f | refs/heads/main | 2022-12-22T17:31:49.851474 | 2020-10-05T00:27:24 | 2020-10-05T00:27:24 | 301,254,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py |
# This code requests input from the user to check if Fermat's Last Theorem is true.
# Fermat's Last Theorem says that there are no positive
# integers a, b, c such that an + bn == cn.
def check_fermat(a, b, c, n):
if an + bn == cn:
print(false)
else:
... | [
"noreply@github.com"
] | mahack-gis.noreply@github.com |
f901b5b704cea5bb9a905cd7578871b92f26ecd4 | f59b52d7edbdae647b6c8137198f5386787f70dd | /Python/HW4/Tfidf.py | fc2f907f8b57a5cabd0186b1205bc04872a9eb0d | [] | no_license | alinashchukina/Avito-Analytics-Academy | 667bc178217851d276a77af6ca9b71f65c061c26 | e3074afc8f789745b681d867bc6fe85758cdbf7f | refs/heads/master | 2023-02-05T04:53:50.279237 | 2020-12-27T22:06:39 | 2020-12-27T22:06:39 | 295,599,946 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | from Count_vectorizer import CountVectorizer
import numpy as np
class TfidfTransformer():
"""
Transforms matrix with numbers into tf-idf matrix
Has parameter to_round = True by default
"""
def __init__(self, to_round=True):
self.to_round = to_round
def tf_transform(self, count_matrix)... | [
"noreply@github.com"
] | alinashchukina.noreply@github.com |
40307c43f43f7a883b8709b9b7a14ea74027f427 | 0c1bdb505b6a3b295b4965cda3adf2e0720274ec | /KodolamaczKurs/Prace domowe/Create_date_time_and_datetime_objects.py | 8d4f54c01b3ef1020eb1aa1c559a4c5dd596f292 | [] | no_license | TPSGrzegorz/PyCharmStart | 3786802a5fc62b316ea00904f4f31fe54f21ac71 | ec0e2f23b03ecd3d4a57e2f2fc71914f76ce7bb3 | refs/heads/master | 2022-12-13T17:58:20.817473 | 2020-09-08T15:58:08 | 2020-09-08T15:58:08 | 269,414,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from datetime import datetime, date, time
my_birthday = date(1987, 9, 25)
my_time = time(5, 24, 5)
now = datetime.now()
print(my_birthday)
print(my_time)
print(now)
print('######## Zadanie 2 ########')
dt = datetime.now()
print(dt)
d = dt.date()
print(d)
t = dt.time()
print(t) | [
"grzegorzb@outlook.com"
] | grzegorzb@outlook.com |
781782dc9fc9bab7ca93ae38f17db36d6e004b67 | bae5f696b76af428fb5555c147c4f1bcff1bb62e | /metalearn/examples/evaluate_test_data_envs.py | 1f25c6c717085714ed0519ac4b1425fe888f373f | [
"MIT"
] | permissive | cosmicBboy/ml-research | 1e309f881f9810e7a82a262d625db5d684752705 | 04fd31f68e7a44152caf6eaaf66ab59f136dd8f5 | refs/heads/master | 2021-01-24T09:58:25.662826 | 2020-08-10T22:08:23 | 2020-08-10T22:08:23 | 123,030,133 | 8 | 4 | MIT | 2019-06-29T20:13:37 | 2018-02-26T21:03:02 | Jupyter Notebook | UTF-8 | Python | false | false | 2,129 | py | """Evaluate controller after training."""
import joblib
import pandas as pd
import os
import torch
from pathlib import Path
from metalearn.metalearn_controller import MetaLearnController
from metalearn.inference.inference_engine import CASHInference
from metalearn.task_environment import TaskEnvironment
from metalea... | [
"niels.bantilan@gmail.com"
] | niels.bantilan@gmail.com |
454c8b640d184f49c3a567e4bd2e1c1574e7d7f5 | 0e8a7c5f9740490d51fcdccd175960155836911a | /blog/views.py | a60c378b0d6eae1a542b2c5e22cdfce069488380 | [] | no_license | DickLiu/suorganizer | a2cef8077f4013496b8c51eb604f4197fb60324e | f882b0ff2c2ea1e45ff9d59e78322738333ec91e | refs/heads/master | 2021-01-23T21:49:42.427759 | 2017-12-24T12:43:03 | 2017-12-24T12:43:03 | 83,112,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from django.shortcuts import (render, get_object_or_404, redirect)
from django.core.urlresolvers import reverse_lazy
from django.views.generic import (View,
ArchiveIndexView,
CreateView,
DateDetailView,
... | [
"495100061dick@gmail.com"
] | 495100061dick@gmail.com |
db4c205a1c301818753f25df685020906cb5d83c | 7dccf283800b0b47aece8dc7f0c209f5fea527a2 | /ROCC/fitted_Q_iteration/fitted_Q_agents.py | 20ceb89aad9f568488536eed458b0c1b942392ae | [
"MIT"
] | permissive | ucl-cssb/ROCC | 4e713f513a96390c64df23eb414d8a8e374431cb | e7491672bcafc0fac08fe750829e4fac2805d35a | refs/heads/master | 2021-07-10T14:53:31.150305 | 2020-11-17T09:58:01 | 2020-11-17T09:58:01 | 218,557,979 | 13 | 1 | null | 2020-11-17T09:57:37 | 2019-10-30T15:20:47 | Python | UTF-8 | Python | false | false | 10,912 | py | import sys
import os
import numpy as np
import tensorflow as tf
import math
import random
from tensorflow import keras
'''
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
'''
import matplotlib.pyplot as plt
class FittedQAgent():
'''
abstract class for the Tor... | [
"zcqsntr@ucl.ac.uk"
] | zcqsntr@ucl.ac.uk |
bbd8a1b955771a4160746c6c140fa4361f92d898 | f504d13891eef0a140dd9ac8ade4f5c85613611f | /venv/Scripts/pip3-script.py | d0b7e5bda7bf72aae68c7a63740bd1df19431079 | [] | no_license | owloliviakelly/imagesize | 8674ee430de971c76e9e22e5da0a38ae432df615 | 5b0270aeae50722ad45bf97a160c5b7c504726c9 | refs/heads/master | 2020-05-17T19:47:27.912769 | 2019-04-28T15:30:21 | 2019-04-28T15:30:21 | 183,925,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #!C:\Users\Anna\PycharmProjects\untitled4\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"50046877+owloliviakelly@users.noreply.github.com"
] | 50046877+owloliviakelly@users.noreply.github.com |
5249a6811fad92b075afe3535e1eb24bef84ca78 | f2befaae3840bafd181cc712108e3b64caf2696f | /app/portal/horizon/openstack_dashboard/dashboards/settings/user/panel.py | 9b9781eb0b3ae92466380018fce619077f697488 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-adcaas-openstack | 17d5c408d421dcfe542002e1f850b2d9f29f1663 | 02bd8a606215c0fa08b926bac1b092b5e8b278df | refs/heads/master | 2023-08-28T12:09:54.972191 | 2022-08-12T02:03:43 | 2022-08-12T02:03:43 | 164,592,273 | 4 | 23 | Apache-2.0 | 2022-08-12T02:03:44 | 2019-01-08T07:40:35 | Python | UTF-8 | Python | false | false | 863 | py | # Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"a.zong@f5.com"
] | a.zong@f5.com |
f8e584f21699ce5bf51c3992ef099f5f3548d4d1 | 52fb627ec952bf647c625f9372581bff4764da76 | /wo_websocket.py | 71f69201f610ea526be8c98ac46edded4b559f1b | [] | no_license | syyunn/smpc-dl | b89071d277347e28979973e734b329f51020a6b0 | 41bd40ef7866062a53fb20bcff994c51f38f38d5 | refs/heads/master | 2020-08-06T00:17:01.474179 | 2019-10-05T16:39:14 | 2019-10-05T16:39:14 | 212,768,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,515 | py | import time
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
import syft as sy
hook = sy.TorchHook(torch)
class Arguments():
def __init__(self):
self.batch_size = 64
self.test_batch_size = 64
self.... | [
"syyun@snu.ac.kr"
] | syyun@snu.ac.kr |
963899297ea299d27a48d4ec9b9e92f8ecd95e6d | ba3fddb7588dd0a86f7f59ebfacebe78a50a6815 | /classification.py | f86bffbbc89c5c1f0a1b4aa375ee860debecc799 | [] | no_license | tobi258/CSCI-576-Final-Project-1 | a94c5ec72f582de5d7f946cbf95c9b046d37e2d2 | 5b80010d2b90157430030205aa640a355976a847 | refs/heads/master | 2023-01-25T02:11:36.857069 | 2020-12-05T00:52:09 | 2020-12-05T00:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | import pandas as pd
from pandas import DataFrame as DF
import json
import os
from typing import List
from sklearn.model_selection import GridSearchCV
from sklearn.tree import DecisionTreeClassifier
from sklearn.naive_bayes import GaussianNB, MultinomialNB
from sklearn.ensemble import AdaBoostClassifier
from sklearn.svm... | [
"yingxuan.guo9771@gmail.com"
] | yingxuan.guo9771@gmail.com |
7913c130e1f4209bcfa6624d9d38a314535ef7cf | 811746ebface45597cf3182af7af3c53021f7348 | /hw_0805.py | 220c8616ed609596fcb7f6ef190a09f92a0dab68 | [] | no_license | injoon5/C3coding-python | 94b217a72047f01d2ac9b366065c8386bc80cadc | 7a314854db88e3168066f7ecb087a607a5b87402 | refs/heads/master | 2022-12-22T20:28:25.728920 | 2020-10-07T11:12:31 | 2020-10-07T11:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | files = [
'apple.jpg 20180101', 'Frozen.mp4 20140507',
'Rough.mp3 20160305', 'LoveWhisper.mp3 20170909',
'pizza.jpg 20120505', 'Avengers.mp4 20111225',
'Navillera.mp3 20161005', 'Incredibles2.mp4 20180905',
'lion.jpg 20180726', 'PacificRim.mp4 20131231'
]
| [
"noreply@github.com"
] | injoon5.noreply@github.com |
7e667d3486931ba59373c5e36d220ef4f6aa1832 | fa1730dd1cd97d3c16946d71c2cee46948aef7b6 | /libs/trainer.py | 5aaf9269fba995ef95453de06c3d6d9d05b9fb30 | [] | no_license | dmitrii-marin/fast-semantic-segmentation | 0e613e8296619ed769863b6e3212a5f00a0f9747 | 6bff8a4a5c938c1c8c651e4adfc2dcf75050d942 | refs/heads/master | 2020-04-01T15:14:37.242102 | 2018-10-13T17:54:14 | 2018-10-13T18:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,890 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import functools
import time
import tensorflow as tf
from third_party import model_deploy
from third_party import mem_util
from builders import model_builder
from builders import dataset_builder
from builders... | [
"andrienko@live.ca"
] | andrienko@live.ca |
6f1ea8613628207e2684c6f0ca5e634b1b909f47 | 29f828a588cfec578bd75f735a9103f4da5696ff | /91_Python_Tornado_F2E/F2E.im-master/app/webCrawler_scrapy/pipelines.py | 772630485716eed943e25b6e2262ded9f41ca0c1 | [
"MIT",
"BSD-3-Clause"
] | permissive | lzpdzlzpdz/lzpdzlzpdzPython | 8f0dc50dffd057167830a9845959d2e29a675cc1 | 5718190700d9eba39caa11b0d4be7233d279449e | refs/heads/master | 2021-10-11T13:51:39.756353 | 2019-01-27T04:15:45 | 2019-01-27T04:15:45 | 109,458,743 | 0 | 1 | null | 2019-01-27T04:15:46 | 2017-11-04T01:53:50 | Python | UTF-8 | Python | false | false | 3,565 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from twisted.enterprise import adbapi
import MySQLdb
import MySQLdb.cursors
import codecs
import json
from logging import log
c... | [
"lzpdzlzpdz@sina.cn"
] | lzpdzlzpdz@sina.cn |
c26a20010545e8b411902603912afc4551a57f92 | d25896680f1b75c4d29f9ba35a6965a1aa03e3ad | /myenv/bin/autopep8 | c3626cb73943284f1c23df0f2b232f8685243de6 | [] | no_license | AydinSanoz/DjangoProject1 | 25eec38ce42cd128f36e753e3e9da689dcf6a61b | b8d2897fb4e03ee72ec523e8ccf01d3f3c9c05d4 | refs/heads/master | 2023-02-06T22:20:17.358303 | 2020-12-28T19:04:17 | 2020-12-28T19:04:17 | 325,047,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | #!/Users/catalina/Desktop/repositories/django/myenv/bin/python3.9
# EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.4','console_scripts','autopep8'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'autopep8==1.5.4'
try:
from importlib.metadata import distribution
except ImportError:
... | [
"aydinsanoz2@gmail.com"
] | aydinsanoz2@gmail.com | |
06f1a43f6bc4ae7fd812d6ce5cd6fbb22658ad50 | 5ec788214449203feff42a68ac85d7eaa8428aa7 | /src/assertion_finder.py | e6ebc059c068361f4eda06dfe583e5b3fd7cb029 | [] | no_license | wangwillson1/polygraph | e89eba0afe95cbaa53f2d047ce37b7093f3d2716 | 545f47fca963bff0c3ab5a34490e3060133a4403 | refs/heads/master | 2023-02-15T18:09:22.540804 | 2021-01-17T13:18:56 | 2021-01-17T13:18:56 | 330,081,349 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | import json
from src.definitions import ROOT_PATH, SETTINGS
import requests
from allennlp.data.tokenizers.sentence_splitter import SpacySentenceSplitter
class AssertionFinder:
def __init__(self):
self.base_url = "https://idir.uta.edu/claimbuster/api/v2/score/text/"
self.headers = {
'... | [
"james.rosstwo@gmail.com"
] | james.rosstwo@gmail.com |
60738160b15b49779d9eaf9e8d83139fd7afa508 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_0/Python/sleepingfire/d.py | ba96e3d60f9df7e644e9b38c0dc4523c1c6882bd | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | import sys, os, math
def main(K, C, S):
minimum = math.ceil(K / C)
if minimum > S:
return "IMPOSSIBLE"
cs = [1] * (C + 1)
for i in range(1, C+1):
cs[i] = C * cs[i-1]
tiles = []
idx = 1
depth = 0
for k in range(1, math.ceil(K / C) * C + 1):
idx = (idx - 1) * K +... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
5181964f5dabcf8422ed8caf47606b01b18e0794 | 2df685967eae6ca93636ea6edb5158c192a27427 | /esmvalcore/cmor/_fixes/cmip6/cesm2_waccm_fv2.py | bc8068af8abd32fb825028a187f30ff1298286cd | [
"Apache-2.0"
] | permissive | BSC-ES/ESMValCore | 4755b7c438624a3adbdaebfb8149b7a2bb022bf3 | 639e5abbf64498abdbe404d9b1ce813bf3f7e42e | refs/heads/main | 2023-08-24T22:44:52.874064 | 2021-10-18T09:27:47 | 2021-10-18T09:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """Fixes for CESM2-WACCM-FV2 model."""
from .cesm2 import Tas as BaseTas
from .cesm2 import Fgco2 as BaseFgco2
from .cesm2_waccm import Cl as BaseCl
from .cesm2_waccm import Cli as BaseCli
from .cesm2_waccm import Clw as BaseClw
from ..common import SiconcFixScalarCoord
Cl = BaseCl
Cli = BaseCli
Clw = BaseClw
F... | [
"noreply@github.com"
] | BSC-ES.noreply@github.com |
34b46ce40d254e490f29734e91f39c6af8b67bd4 | b07d9b13b677daf5732dc0623b64f6514fc28b73 | /oxford_dict.py | fb1489442792fdf7349daab07d97197a4b1729a1 | [
"Unlicense"
] | permissive | abdnh/anki-oxford-dict | c7c46adac348e5342689ed5af2947d90e6605db9 | 7be9d76619f80ee187aeffd45c5eb7bea0535c1e | refs/heads/master | 2022-11-21T18:33:51.336549 | 2020-07-28T22:54:22 | 2020-07-28T22:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import requests
class ODError(Exception):
pass
class ODConnectionError(ODError):
pass
class ODWordNotFound(ODError):
pass
class OxfordDict:
def __init__(self, app_id, app_key):
self.app_id = app_id
self.app_key = app_key
def get_word_data(self, word, lang='en-gb'):
url ... | [
"abd.nh25@gmail.com"
] | abd.nh25@gmail.com |
a24387d89088254301d368ebf2e5e55d143a8c4c | 0f0f8b3b027f412930ca1890b0666538358a2807 | /dotop/addons/base/tests/test_translate.py | c61011c1179ece9a596ac5d562a30db71e6c1d7e | [] | no_license | konsoar/dotop_pos_v11 | 741bd5ca944dfd52eb886cab6f4b17b6d646e131 | 576c860917edd25661a72726d0729c769977f39a | refs/heads/master | 2021-09-06T13:25:34.783729 | 2018-02-07T02:11:12 | 2018-02-07T02:11:12 | 111,168,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,651 | py | # -*- coding: utf-8 -*-
# Part of dotop. See LICENSE file for full copyright and licensing details.
import unittest
from dotop.tools.translate import quote, unquote, xml_translate, html_translate
from dotop.tests.common import TransactionCase
class TranslationToolsTestCase(unittest.TestCase):
def test_quote_un... | [
"Administrator@20nuo003-PC"
] | Administrator@20nuo003-PC |
b0e17c91d87c7d7e5fcc3f873986d920f6918c16 | 21a561ec0d40554a43dc5a6dfab0f4f62ddb615d | /canteen/base/__init__.py | aaae304df48bbcbcb386327709ca4b1e4a9c8d98 | [
"MIT"
] | permissive | mindis/canteen | 2745a0ebec696d1fbfcc6c4c69582711a4a7e8e6 | a0cf38333417e879712394800a49eb9d0450f96f | refs/heads/master | 2020-12-25T19:15:21.612088 | 2014-02-24T11:29:59 | 2014-02-24T11:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf-8 -*-
'''
canteen base
~~~~~~~~~~~~
:author: Sam Gammon <sam@keen.io>
:copyright: (c) Keen IO, 2013
:license: This software makes use of the MIT Open Source License.
A copy of this license is included as ``LICENSE.md`` in
the root of the project.
'''
# import all... | [
"sam@keen.io"
] | sam@keen.io |
bc92b0315786a4c62e3b89b66150a21319aea14e | 3ee6c7a9e3191b414dd2e2b48dd0c02b073e6509 | /Codeforces solutions/Jigsaw puzzles.py | e36a897506b67a8b3265bc2bd9f7ab79a1dba594 | [] | no_license | officialstephero/codeforces | 70d334c5ac503a967f1bd7f9a60bc02776d42a96 | db09da45dec49846507eb4f872865ff927b03c81 | refs/heads/main | 2023-09-03T10:40:58.338180 | 2021-11-21T11:51:55 | 2021-11-21T11:51:55 | 430,342,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | n = list(map(int, input().split(' ')))
f = list(map(int, input().split(' ')))
f = sorted(f)
dif = []
for i in range(n[1] - n[0] + 1):
p = f[i:n[0] + i]
dif.append(p[-1] - p[0])
print(min(dif))
| [
"93861108+officialstephero@users.noreply.github.com"
] | 93861108+officialstephero@users.noreply.github.com |
c79dcbd3e94c42a92504220ffb36ebae2587156d | 6d5414a710f09c8a1613e1cb60dfff2d8b37e8ad | /Biweekly Contest 40/Maximum Repeating Substring.py | 62ae08890abed3b5a9fbacc68b6a88d4b8a0ed12 | [] | no_license | prashanthr11/Leetcode | 59985b5037f70933965d509083545e58716b9ec3 | c9a034073062ea01f76448b962152ec8f9b82228 | refs/heads/master | 2023-04-15T09:19:36.526698 | 2021-04-17T16:09:55 | 2021-04-17T16:09:55 | 273,557,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | class Solution:
def maxRepeating(self, a: str, b: str) -> int:
cnt = 0
tmp = b
while b in a:
cnt += 1
b += tmp
return cnt if cnt else 0
| [
"prashanthr6789@gmail.com"
] | prashanthr6789@gmail.com |
0324f681a4d12c47fa524aa35bd3858f1955c899 | 98f730ec6a43d8be4a34b0f2a44a9d35989d2287 | /tests/unit/entity/test_user_groups_entity.py | d83bcc41f01048931032fe2204cd5fa53a0413ae | [] | no_license | scottwr98/pynifi-client | 9337a4f322536ee466d419a788b8b5948cdc62d7 | 013ac2ffa591284a0d6cbb9ed552681cc6f91165 | refs/heads/master | 2020-04-18T08:47:03.680749 | 2017-11-04T23:59:58 | 2017-11-04T23:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"ajish@rootedinsights.com"
] | ajish@rootedinsights.com |
4d6818fd181734e7ac03a56f5310f9b12201c7cb | 5f819267052b7fb0908d32a9f9d335a5f0bb5294 | /trainer.py | 31f5a45cf33f64efe8b3cfdb134f63066ae8f022 | [] | no_license | Quillbolt/stn-crnn | fe5c4a5178a56071d23d7764ae390cd3641ed80c | c2a72fe856590397a137a6885b2d81c833cf730a | refs/heads/main | 2023-02-20T10:36:24.728234 | 2021-01-20T04:21:46 | 2021-01-20T04:21:46 | 331,189,386 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,964 | py | import torch
from tqdm import *
from utils import *
import torchvision.transforms as transforms
from torch.optim.lr_scheduler import CosineAnnealingLR, StepLR
from torch.nn.utils.clip_grad import clip_grad_norm_
from collections import OrderedDict
from itertools import chain
class OCRTrainer(object):
def __init__(... | [
"khiembka1992@gmail.com"
] | khiembka1992@gmail.com |
0e1f057eb60d71eb77035c425589ccfcfdccfee4 | 46ed61ef3c08908b0be5a9c38f1f6c017577eced | /attention_src/coco_train.py | d4f676d7eb550185eef36996edbafb2284a8bf41 | [] | no_license | miss993/Attention-Modeling-for-Image-Captioning | 4fa05c9c0da34ec8968fe99bdd111461f9969089 | 7a8c67d410b17edb1465eaec522f7f41fff8ea7d | refs/heads/master | 2020-05-24T20:34:15.998191 | 2018-11-17T18:02:10 | 2018-11-17T18:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,372 | py | import argparse
import torch
import torch.nn as nn
import numpy as np
import os
import pickle
from coco_data_loader import get_train_loader
from coco_build_vocab import Vocabulary
from coco_model import EncoderCNN, DecoderRNNWithAttention
from torch.nn.utils.rnn import pack_padded_sequence
from torchvision import tran... | [
"chaitanya100100@gmail.com"
] | chaitanya100100@gmail.com |
9363a989c86865fd89d14d0fc1c01f2e8361c7b4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04011/s295435245.py | 4d2ae76e99072dfb9ca262f4ebf7f3e478f48296 | [] | 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 | 139 | py | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = 0
if N>=K:
ans = K*X+(N-K)*Y
if N<K:
ans = N*X
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f72c2d83842366bb3b5275dacda4c858fffcf29b | 4da53524474bbb91202ae1be9ad312c03cff35c7 | /b58.py | 22f992978676ac447d29be6467b0866ee9f1f3f4 | [] | no_license | sedhuraman146/sedhuprg | 642d1b841085b56843b3c5a1b603a2ca97a66465 | 94f5d1311c1c1ba5379c0d4c3d9e3cc5f4bf2baf | refs/heads/master | 2020-05-15T15:23:01.893750 | 2019-05-14T06:20:16 | 2019-05-14T06:20:16 | 182,371,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | n=int(input("enter the number:"))
c=0
while(n>0):
n=n//10
c=c+1
print(c)
| [
"noreply@github.com"
] | sedhuraman146.noreply@github.com |
1da82694458a1675eda0715f585913a2ace1f065 | cd25757a1ce38f99534f8790e9d4359ab609fc17 | /build_index.py | f6d9ab58ca76b8c373d37eab4bd893fd9a161f81 | [] | no_license | daviddwlee84/SearchEngine | 64be99b2114364e8a0913a51d11215bb3c9806fa | 283d1db39900cddf3a2aad6141bd8c9f253a832a | refs/heads/master | 2023-03-16T17:55:22.135027 | 2021-02-24T09:49:54 | 2021-02-24T09:49:54 | 288,898,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | # Build index for search models
import os
import sys
import pandas as pd
from tqdm import tqdm
import argparse
curr_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(curr_dir)
from search.annoy.build_index import AnnoyIndexBuilder
from search.elastic_search.build_index import ESIndexBuilder
class In... | [
"daviddwlee84@gmail.com"
] | daviddwlee84@gmail.com |
dfde144f354340ed0365426e42f2d5d79a76425d | 5bf1de9330ef119f4ae9c1206c3bcf4bdbebbb20 | /src/Reinforcement_Learning/utils/model_utils.py | 157d94c7ecf6bd71fc4a09f14c57491c4242250d | [] | no_license | IanQS/blogpostcode | 44fbe128322a0eee5421062af585962bbbc33f14 | 489a89e5ec2d90f3c00e42cb9eb3d142d71d1882 | refs/heads/master | 2020-04-11T02:15:36.532722 | 2019-03-26T15:04:36 | 2019-03-26T15:04:36 | 161,439,760 | 2 | 2 | null | 2019-12-16T21:20:58 | 2018-12-12T05:57:15 | JavaScript | UTF-8 | Python | false | false | 1,526 | py | """
Utilities for the agent
- replay buffer
- OU noise
- etc
Author: Ian Q.
Notes:
"""
from collections import deque
import numpy as np
import numpy.random as nr
from operator import itemgetter
class ReplayBuffer():
def __init__(self, size = 10000):
self.limit = size
self.buffer = d... | [
"itq@alumni.cmu.edu"
] | itq@alumni.cmu.edu |
ddaa1e1aeedc42417713853efc45458f1252fa0d | 833651f3d3e72ccc29559292387e33dd337b40b3 | /base_app/views.py | eb6a62bee30276df6a226893cfb92af823bc0ac0 | [] | no_license | yubhrraj/7SemMinorProj | 7fc2c1cf435c443f7d61ee0faf9ca3cb6092f909 | 7435879cac1c1dc7f0df52deed36752f0b39ff9c | refs/heads/master | 2020-04-09T13:25:35.742858 | 2018-12-06T13:39:03 | 2018-12-06T13:39:03 | 160,371,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,872 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.views.generic import View,TemplateView
from .forms import UserForm, linkform
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.contrib.auth import l... | [
"yubhrraj.p@gmail.com"
] | yubhrraj.p@gmail.com |
68a1af811c9c0d813596a1ba7d0a197abe188521 | 77c3da51b6428d2d830648b5964d842ac96432ab | /03_basic_file_operation.py | 3695231e03894a75f8e03d6022eda9075848f192 | [] | no_license | rh13/i1-python_exercise_on_files | 2adc44db5819ab6de55cb63e5f17a754dfc25d6c | 850ad4eaf7ae95ab5c652f0212358c89f99036ef | refs/heads/master | 2020-03-07T10:45:46.412730 | 2018-03-30T14:54:36 | 2018-03-30T14:54:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | h=open("03_basic_read.txt","r")
with open('03_basic_file_operation.txt','w') as author:
for i in h:
a,b,c=i.split(",")
s="-".join((a,c))
author.write(s)
| [
"rhlikhon13@gmail.com"
] | rhlikhon13@gmail.com |
6dc727f287f4402d70fc96da1581c86a74d66922 | 399ccb8958b17e94d9cd4221bb16ce6ec0e4ccce | /museflow/__init__.py | 33df4447a16bcaae6711f028904c72288ff12e87 | [
"BSD-3-Clause"
] | permissive | tpt-adasp/museflow | de4d108eefe48f990decf60ef06a0c90b77346bf | e5642fd48687a6d3165e213eaab79d5d78d4c0d5 | refs/heads/master | 2022-12-31T06:25:04.094256 | 2020-10-21T21:17:04 | 2020-10-21T21:17:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import logging
import sys
logger = logging.getLogger('museflow') # pylint: disable=invalid-name
logger.addHandler(logging.NullHandler())
| [
"cifkao@users.noreply.github.com"
] | cifkao@users.noreply.github.com |
c5b2f86108ef15f5f1ac362a8347eaf8587e4578 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_considerable.py | 90514ebc212bd524acaa3c6e06d566fdda7c1fb1 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
#calss header
class _CONSIDERABLE():
def __init__(self,):
self.name = "CONSIDERABLE"
self.definitions = [u'large or of noticeable importance: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2]... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
93385eb9ba6fb78c134e86b1f2ce26787d68f5fd | 1148206c43cd123e624736be7ba325db5166c0b7 | /src/server/testing/test_reviews.py | bc57027dbbbe92b09bdcf8f54e1f5713c9acc6da | [] | no_license | DAPMElab/TBWA_Vendor_Portal | 6a66e0913abc57981be1b581e33760029b46cebb | 9b5094d5b2247dc14c016caa98aca668f65db023 | refs/heads/master | 2020-04-01T08:32:29.878264 | 2014-06-06T07:17:38 | 2014-06-06T07:17:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,622 | py |
import template
import json
import unittest
import rethinkdb as r
TABLE = 'reviews'
class TestReview(template.TestingTemplate):
""" Tests the API endpoints associated with handling reviews. """
def __create_review(self, review={
'Submitter': 'review submitter',
'CompanyName': 'test_... | [
"natebrennand@gmail.com"
] | natebrennand@gmail.com |
3a2ea89e484f2726eccb65d1780abd6d75ab0039 | bd3edde39bb88bf007e778ccbe0f50876debf73d | /app/core/views.py | 4b2d84ea627e237e42e4cfc61cc80e2c604cc25f | [] | no_license | raidyue/parkinglot_flask | 7c8f954a0452e38e8d811ea9f9648d702bc7f590 | ecf4422d75da5105395138bb24934d3a3af187cb | refs/heads/master | 2021-01-10T04:54:37.730574 | 2015-12-03T06:48:45 | 2015-12-03T06:48:45 | 47,187,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | # encoding=utf-8
from flask import Blueprint, render_template, request, session, url_for, redirect, flash
from app.models import User, db
main_bp = Blueprint('main', __name__)
@main_bp.route('/hello')
def hello():
return render_template('helloworld.html')
@main_bp.route('/')
def index():
username = sessio... | [
"yxd506388664@163.com"
] | yxd506388664@163.com |
60b4567896b5ba43ae28d30f439247b2cde8e8d8 | bc9008d7b1f6032f392c24b791965404847573de | /tarefa_3.py | f6b0681911a38e334cb611763d53e468321f0772 | [] | no_license | korallin/minicurso_nlp | e5c907314c356200fef89fcfa0bf24d342fb15ed | 3dfa9f241571674466932bce0f7878b437ece038 | refs/heads/master | 2023-07-14T05:18:06.548732 | 2019-10-04T12:20:23 | 2019-10-04T12:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | # Ola vamos criar
import pickle
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from sklearn.pipeline import Pipeline
from sklearn.svm import LinearSVC
from sklearn.metrics import classification_report
from sklearn.tree import DecisionTreeClassifier
with open('itens.pkl', 'rb') as f_in:
... | [
"bruno@potelo.com.br"
] | bruno@potelo.com.br |
227c65532562036f5e133f80f39c5b3e37744a30 | 0214ce4dd9c8973751120ced006ec90ddc10e0e6 | /xepmts_staging/models/inline_response20029.py | f37d1190293987f4bcc393b0a61685193252124f | [] | no_license | jmosbacher/pmts-staging-api-client | b9b4175a8ab52bd1c22a2845ab564cd0bd4d2e1c | d25cacc6c75b5d716414e08184c4a6bc205126f9 | refs/heads/master | 2022-11-08T09:18:38.371104 | 2020-07-01T14:52:46 | 2020-07-01T14:52:46 | 276,405,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | # coding: utf-8
"""
PMT API
API for the XenonnT PMT database # noqa: E501
The version of the OpenAPI document: 0.1
Contact: joe.mosbacher@gmail.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from xepmts_staging.configuration import Confi... | [
"joe.mosbacher@gmail.com"
] | joe.mosbacher@gmail.com |
c7040ddfb3234fa81c557c5b53c237e3a8c31aeb | 884bcd609959b27748570d3ea6b1b0942126db73 | /03 Longest Substring Without Repeating Characters.py | 24922e5c5625309f911402a9a1f557c4c58fbc09 | [] | no_license | hemxzp/leetcode | 9a7dbe94849ea51ee6b51fd3cb6238b37584aa87 | bf243269810869d28c7484667f46fb1cc0464005 | refs/heads/master | 2020-04-01T19:50:03.994795 | 2018-12-10T13:02:45 | 2018-12-10T13:02:45 | 153,573,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # -*- coding:utf-8 _*_
class Solution:
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
m=1
a=[]
if s=='':
return (0)
for i in s:
if i not in a:
a.append(i)
else:
... | [
"1316437633@qq.com"
] | 1316437633@qq.com |
ca9d516a63d3e04ca632b57273b2672ee116ff83 | 393cd5f71ba672a532a70452fdd945b7d890ca8c | /codes/naive_bayes.py | 83fb15af04856f8d543fe14036f5e6c6bd44b142 | [
"MIT"
] | permissive | kushalsatya11/Automatic-Code-Complexity-Prediction | ccf8756b9d2e9a2703bfd45949753d2b9e4baab2 | b4e2b12896ac0b420232ebb330c8338bd12c2d8e | refs/heads/master | 2021-06-17T20:32:15.237225 | 2019-09-25T07:01:33 | 2019-09-25T07:01:33 | 203,235,119 | 0 | 1 | MIT | 2021-04-26T19:26:05 | 2019-08-19T19:17:52 | Java | UTF-8 | Python | false | false | 2,251 | py | import csv
import numpy as np
from sklearn.cluster import KMeans
from sklearn import tree
from sklearn.metrics import accuracy_score
from sklearn.naive_bayes import BernoulliNB
import matplotlib
import matplotlib.pyplot as plt
from sklearn.manifold import TSNE
from sklearn.model_selection import KFold
from sc... | [
"shagun16088@iiitd.ac.in"
] | shagun16088@iiitd.ac.in |
203fa172f84ee4e08171567c7f92913a36514a6f | 0bbadd843b28df32fdb22f027f06313ebff8d839 | /es_index_create.py | 5fdb1d50457074c49640905072b50ef72d6a162a | [] | no_license | Quastrado/text_search_engine | 5ce256b34d056c177f7e3e9e2b534485a9ebb70e | 8ee8ab221307597d5075f2d0f5aca7d053a10639 | refs/heads/master | 2023-06-17T03:47:24.482037 | 2021-06-13T13:14:27 | 2021-06-13T13:14:27 | 372,085,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import json
from elasticsearch import Elasticsearch
from app.actions import BaseActions
from app.models import Post
from app.db.session import SessionLocal
# actions = BaseActions(Post)
session = SessionLocal()
posts = session.query(Post).all()
# es = Elasticsearch([{'host': 'localhost', 'port': 9200}])
# i = 0
... | [
"Ataxyswriter@yandex.com"
] | Ataxyswriter@yandex.com |
fd1464a1341d4c5adf11605e34d1f027dd436fee | ff7a68c14d3139e199453d1c24874ee3af392fd9 | /utils/testll.py | 48e33d04cff34695f00702512de0068c030a0858 | [
"CC0-1.0"
] | permissive | patrickmmartin/owictrl | 0ce74aefc63abdac90d10a221bfd61979b004046 | c8ef7244a032b40a6ab4dac22fbed3e7f2902d5e | refs/heads/master | 2021-01-22T07:39:14.869943 | 2017-06-16T16:16:29 | 2017-06-16T16:16:29 | 28,648,848 | 1 | 0 | null | 2017-06-16T16:16:30 | 2014-12-30T23:18:29 | Python | UTF-8 | Python | false | false | 2,124 | py | #! /usr/bin/python
""" test cases for the mini language output """
import unittest
import edgelang
import edgell
class EdgeLangBaseTestCase(unittest.TestCase):
""" base class with setUp """
_blank_move = [0, 0, 0]
_LED_only = [0, 0, 1]
def setUp(self):
pass
class EdgeLangLLTestCase(EdgeL... | [
"patrickmmartin@gmail.com"
] | patrickmmartin@gmail.com |
4e2af1e710b0143771e5e7899d03b60112140c79 | c995aadb4d9e878f7315c7b180130f85c7760bd7 | /src/contract/user/getByIdUserContract.py | 0199dd6f4eb41ed91fb991fbde6dba20bd2dad75 | [] | no_license | machine-projects/SICON_API | 82366051f3dbe224f2b09fde5ebfd8c3a87cba2b | 00c941b44760c0a68f476abef424c19950233466 | refs/heads/master | 2023-03-30T00:02:06.029715 | 2021-03-27T20:59:59 | 2021-03-27T20:59:59 | 347,988,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from src.infra.model.resultModel import ResultErrorModel
class GetByIdUserContract(ResultErrorModel):
def __init__(self):
super().__init__()
def validate(self, _id):
if not _id:
self.add_error('id', 'id é obrigatorio.')
if not _id.isnumeric():
self.add_error('i... | [
"felipe_toffoli1@hotmail.com"
] | felipe_toffoli1@hotmail.com |
63c9a0b1b02b8e131d836166d8ff40992a215c05 | a18d516ca6db6c9e69788851167dc6bead70de1d | /P3-concurrency/common.py | c0ec89f43d7d3e43745ad45967bf7f5391fcdfd7 | [] | no_license | YGYtl/python3-web-PC | d7080a386e2629465e08815468223f5a707588f8 | 5d64f7fb5b68563f84aaf0afd399d8cb0d1bed4b | refs/heads/master | 2022-09-27T07:54:54.983494 | 2020-05-31T02:52:06 | 2020-05-31T02:52:06 | 268,081,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | import os
import time
import requests
from logger import logger
basepath = os.path.abspath(os.path.dirname(__file__)) # 当前模块文件的根目录
def setup_down_path():
'''设置图片下载后的保存位置,所有图片放在同一个目录下'''
down_path = os.path.join(basepath, 'downloads')
if not os.path.isdir(down_path):
os.mkdir(down_path)
... | [
"ygy.cs06@outlook.com"
] | ygy.cs06@outlook.com |
a7bdc7e68f69e1ee5f6344a4c53f9201e381210e | 43b4874111ad43cc66f9a5974f58d6897e980757 | /34. Find First and Last Position of Element in Sorted Array.py | 45964ea8c74b898a6b8e20c6629c2ccf1c249913 | [] | no_license | backcover7/Algorithm | 39aa0444676ee7354c32e0cc1e1c16fcabe93ec4 | 8b0cb32550b14d1a9dc63d156c001445a58c2d2b | refs/heads/master | 2020-08-14T06:43:34.857421 | 2019-12-23T23:49:58 | 2019-12-23T23:49:58 | 215,116,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | class Solution(object):
def searchRange_cheating(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
if len(nums) == 0: return [-1, -1]
if target in nums: index = first = nums.index(target)
else: return [-1, -1]
... | [
"noreply@github.com"
] | backcover7.noreply@github.com |
7b6f7484cb3c1c0a99d4139fa6e0a1b4a53cbb31 | 6452ffce36d1d50dbb27657398af4314ba73c0aa | /python/sqlite-benchmark-graph.py | 90612bef91573d686282d438380c1415e3b71cf0 | [] | no_license | laysakura/sqlite3_benchmark | 1bde4f37be88e20d8a7a385ab897bfe571f7ce3b | f125db9466f9467b7fbd877285e8bd2669fe5346 | refs/heads/master | 2016-09-06T09:06:43.350515 | 2012-11-20T12:55:22 | 2012-11-20T12:55:22 | 6,775,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | #!/usr/bin/env python
import smart_gnuplotter
g = smart_gnuplotter.smart_gnuplotter()
import Config
import Util
def get_graph_file_name(var_graph_file_params):
ret = ""
for key in var_graph_file_params.keys():
ret += "%(key)s_%%(%(key)s)s--" % {"key": key}
return ret[:len(ret) - len("--")]
def ... | [
"lay.sakura@gmail.com"
] | lay.sakura@gmail.com |
330d0f81dcb58d00bfd0329cfe9ee601c4e8999c | 867def0d5d7e14b8364c6d3cb281379a64255e0a | /venv/Scripts/pip3-script.py | 1c9fd9c5ee55604d3baf97ee0959f06455ffcebd | [] | no_license | abdo-fysal/cnn | a0d0a21db55b3b95ee8dfcdc5e013f7e43152f96 | 75d684883cd9942c87cbaf4eee01ebbdb5b78aa5 | refs/heads/master | 2021-01-25T10:06:12.303699 | 2018-02-28T20:46:39 | 2018-02-28T20:46:39 | 123,338,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!C:\Users\abdo\PycharmProjects\untitled1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"abdo.faysal@yahoo.com"
] | abdo.faysal@yahoo.com |
c4a8c3340dd04fd502ece451bc4af09e878efb4a | 397ff57da9aa5ca08e159b75d36efb3896d6155e | /old_models/utils/torch_input.py | f5e3aca2f149880cfdfff8086092e1ab528baaeb | [] | no_license | antorhasan/bank_line_prediction | a25656a57dd7c13139783f288766181f5e60186b | be4b8584de522b6f4485382307707f0bc36b2cbe | refs/heads/master | 2022-12-10T19:07:09.928835 | 2022-03-04T21:32:11 | 2022-03-04T21:32:11 | 192,115,348 | 0 | 1 | null | 2022-12-08T11:47:50 | 2019-06-15T19:13:57 | Python | UTF-8 | Python | false | false | 599 | py | import torch
from torch.utils import data
class Dataset(data.Dataset):
'Characterizes a dataset for PyTorch'
def __init__(self, list_IDs, labels):
'Initialization'
self.labels = labels
self.list_IDs = list_IDs
def __len__(self):
'Denotes the total number of samples'
retur... | [
"kaziantorhasan@gmail.com"
] | kaziantorhasan@gmail.com |
a003bcb38318a40c71739f4d1552601723b08b17 | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/test_20190626132733.py | 79accd38ca746ea23e96e964bef94a8f31ed415e | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | # # class Foo:
# # answer = 42
# # f1 = Foo()
# # f2 = Foo()
# # print(f1.answer)
# # print(f2.answer)
# # # both will print 42
# # f1.answer = 84
# # Foo.answer = 21
# # print(f1.answer) # 84
# # print(f2.answer) # 21
# class Foo:
# def __init__(self):
# self.answer = 42
# f1 = Foo()
# f2 = Fo... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
e481fb804a420ea35504640c9219c0b0f7da94c0 | 2d8d8742bc510a1cf67f0e208568d63bcbf49d4f | /Prediction/bcd.py | 5cb39b996493324aac80a4e1091533c3f9e0321c | [] | no_license | abhikbhattacharjee/BE_Project | bb834a32229ac2f914921ec555084c689a9a90b8 | f6cf474266f74f5e362c3216c270ce35eb669d3c | refs/heads/master | 2023-08-21T21:36:26.798272 | 2021-09-26T10:47:02 | 2021-09-26T10:47:02 | 197,564,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 7 10:16:09 2019
@author: chinmay
"""
import pandas as pd
p_c=pd.read_excel("Peakcalling_1e-4__PePr_peaks_homer.xlsx", 'Peakcalling_1e-4__PePr_peaks_ho')
cols = [1,2,3]
df = p_c[p_c.columns[cols]]
#df=df.sample(n=258)
df.to_csv(path_or_buf="pred... | [
"noreply@github.com"
] | abhikbhattacharjee.noreply@github.com |
2e7eeb1bbc26d482b08aabe4f0ca5824c1d7a472 | 02ffd6dfd5ef11027f9cd3b45f5ba48d5144747c | /7 Variable.py | f02bbf47fafe9dce47c8864c2a49d70a070ecb56 | [] | no_license | Zoran1024/tensorflow1.x- | 686f87962ab5c9a42ccc8d0898fc6e78399a6f52 | 9ce3808d0da7866967a6679f2564971ea1b8fb4f | refs/heads/master | 2022-12-06T16:44:21.881179 | 2020-08-12T09:16:47 | 2020-08-12T09:16:47 | 286,948,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import tensorflow as tf
state = tf.Variable(0,name='counter')
#print(state.name)
one = tf.constant(1)
new_value = tf.add(state,one)
update = tf.assign(state,new_value) # 将new_value加载到state上
init = tf.initialize_all_variables() # must have if define variable
with tf.Session() as sess:
sess.run(init)
for i i... | [
"528778310@qq.com"
] | 528778310@qq.com |
17f4605acddde5733e7845a54b2e7a72f439d2b9 | 58bca29946133281eca5bf1f255b10d497ae2f13 | /ros_ws/devel/lib/python3/dist-packages/moveit_msgs/msg/_MotionPlanDetailedResponse.py | 03fb12b54fc034126496a61dc263bcfe988e87c9 | [] | no_license | AlexanderVieira/robotics | d3656f72f0f375d0229bef923d15d6ffe3d8750f | 0c54b200ccbc702f807212cfe5c40b6ca865b16f | refs/heads/main | 2023-03-31T05:15:19.378479 | 2021-04-09T01:53:26 | 2021-04-09T01:53:26 | 355,740,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | /home/ros_ws/devel/.private/moveit_msgs/lib/python3/dist-packages/moveit_msgs/msg/_MotionPlanDetailedResponse.py | [
"alexander.silva@al.infnet.edu.br"
] | alexander.silva@al.infnet.edu.br |
689746fc5657a327e7a2e445e3ab2ba17677361b | abdc6f531223fd0327bf2f5c5ea6168de9f77178 | /src/Main.py | 56c749b5a44e1e325fe98a7ef032eba61a4fbcfa | [] | no_license | camouflage/Database | 84ea4f38d5e14bed3c589b63e575be7c7d056f6b | 1541e5c0d1cf5d33545c1575e848fc3609012eab | refs/heads/master | 2020-12-24T16:59:10.180889 | 2015-06-24T07:37:17 | 2015-06-24T07:37:17 | 36,067,888 | 4 | 2 | null | 2015-06-24T03:51:13 | 2015-05-22T11:04:16 | Python | UTF-8 | Python | false | false | 733 | py | #coding=utf-8
import MySQLdb
import SharedVar
from Authentication import *
from AdminOperation import *
from EmpOperation import *
def main():
"""
main
"""
print "=========================================="
print "= 欢迎使用 HELEN 酒店管理系统 "
print "= "
print "... | [
"363419254@qq.com"
] | 363419254@qq.com |
9768d6a3edff696c9dc4b9790ff908e5722ada1f | b93bda18f43bdf0cbd549ba1e74d7ffd59a4d3fe | /monsite/urls.py | 45e7dfc7b103471c2b27ff8eb462048d3a4ad302 | [] | no_license | marieaimee40/mon-nouveau-blog | e2efa0d6e4be31492c89ddbc5384cc073f72d977 | f4e6fdb7b5b98fc68d9ddc554b886fadcb8bbc2e | refs/heads/master | 2022-04-21T14:20:34.307569 | 2020-04-21T00:07:25 | 2020-04-21T00:07:25 | 257,427,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """monsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"konemarieaimee@gmail.com"
] | konemarieaimee@gmail.com |
1ec17915e3f19972828f43dc0cadcc6cbec8c414 | cebe96ac3edbc4d47456a72c8af360170cc7d286 | /practice/Test_hw.py | d07721b7f68805aa5c2701b685eab68964e0fe2e | [] | no_license | fullerharrison/afs505_u1 | 5134b9454275d2fd7feeb15087f8d13e326a9286 | fb1c9f5cc3e0d5609ccab98c1f8f7ab6dbc00f50 | refs/heads/master | 2020-12-13T10:42:36.297124 | 2020-05-13T23:55:45 | 2020-05-13T23:55:45 | 234,392,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | statement = input()
if statement == "t":
print("Yes")
if input != "x":
print("Rubbish")
else:
pass
elif statement == "N":
print("No")
else:
print("What?")
| [
"harrison.fuller@wsu.edu"
] | harrison.fuller@wsu.edu |
05b6ac28c06c1faa07725f1786566eb5c14c622c | add4e82987a5e25cca6f2a33b6373bc7e13c9164 | /unittest_md.py | c824d22ec504b6852d1acc6c99ea77c03a2cdf25 | [] | no_license | rogerOncu/hands-on-3 | 35d214d55d1045cd07a8a94d5defe6cc083f4a2f | ebecd8954403197486b285c24d6e06b47bdd94df | refs/heads/main | 2022-12-27T02:54:46.594870 | 2020-10-05T13:48:20 | 2020-10-05T13:48:20 | 301,413,145 | 0 | 0 | null | 2020-10-05T13:48:21 | 2020-10-05T13:11:50 | Python | UTF-8 | Python | false | false | 796 | py | import sys, unittest
from md import calcenergy
from ase.lattice.cubic import FaceCenteredCubic
from ase.md.velocitydistribution import MaxwellBoltzmannDistribution
from ase.md.verlet import VelocityVerlet
from ase import units
from asap3 import EMT
class MdTests(unittest.TestCase):
def test_calcenergy(a):
size = ... | [
""
] | |
cce07889dbbe1d3b324bd258d250530dddba9257 | 26fa881f2bc253cf4f44f48de534164052fd9509 | /server/tests/unit/test_sockets.py | 766f302984601bcc045161854b1134fb5ab4fb74 | [] | no_license | mmfrenkel/KERMit | 95d14e3cda5f423a0d5d7d9448c4d0d012e80866 | 54faa073a46099983a8b14ef03111d6a19fe0085 | refs/heads/main | 2023-01-29T16:31:03.332301 | 2020-12-10T22:29:37 | 2020-12-10T22:29:37 | 301,879,509 | 0 | 3 | null | 2020-12-08T18:11:04 | 2020-10-06T23:32:59 | Python | UTF-8 | Python | false | false | 12,665 | py | """
Unit tests for web socket functionality.
"""
import pytest
from backend import app, socketio
from backend.models.user import User
from backend.google_auth import GoogleAuth
from tests.unit.mocks import verification_token, mock_find_by_g_id,\
mock_no_puzzles_for_player, mock_single_puzzles_for_player, mock_get_... | [
"noreply@github.com"
] | mmfrenkel.noreply@github.com |
9ca1517fe735fd7212f2b5e8eb0ea730c6e464b8 | 6c0886e0b732ebbc5ea31b545b309639aacbcd97 | /HA3/C1.py | e1e97c9c07fe1a60088ce3c77d843a31f481dc53 | [] | no_license | VictorWinberg/fjuo52 | 05614dfa174e3d233878e2c66932a9308505fc25 | fa37579ed49af6f5a80b0c88123c82fb48f2c2bc | refs/heads/master | 2021-05-07T21:11:07.951396 | 2018-03-01T08:34:46 | 2018-03-01T08:34:46 | 108,995,869 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from functools import reduce
from sys import argv
def mul_sum(array, n):
return reduce(lambda x, y: x * y % n, array)
def get_n(p, q):
return p * q
def totient(p, q):
return (p - 1) * (q - 1)
# (a * a_inv) == 1 (mod n) => a_inv = modinv(a) (mod n)
def modinv(a, n):
g, x, _ = euc_algorithm(a, n)
if g == 1:... | [
"dat14vwi@student.lu.se"
] | dat14vwi@student.lu.se |
0b2ec5a68840470333a9e9bad40c105a3a40b7a5 | 8254a350a45a2b9e9469101f247b5a1bab41a0d3 | /hairgen.py | 44923358eceea48c16f91ac1e64f79676d2abe28 | [] | no_license | zhexxian/Hairy-3D-Printing | 5d78e09ceaea5868ceb5dfad2f3071e96d6aaae2 | 22f471a314604876e75e518359eb5ab22f6142ab | refs/heads/master | 2021-01-01T15:23:29.635620 | 2017-07-27T15:45:38 | 2017-07-27T15:45:38 | 97,610,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import bpy
object = bpy.context.object
object_radius = 0.5 * max(object.bound_box.data.dimensions.x, object.bound_box.data.dimensions.y)
bpy.ops.object.particle_system_add()
bpy.data.particles["ParticleSettings"].type = 'HAIR'
bpy.data.particles["ParticleSettings"].count = 3000
bpy.data.particles["ParticleSettings"].... | [
"shunyutan@hotmail.com"
] | shunyutan@hotmail.com |
079a78638966c854c7a692303e50cb2a90e5ee38 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02847/s323542817.py | e4b56ed542d286d18994ff8e3ae443092f5f3288 | [] | 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 | 320 | py | from sys import stdin, setrecursionlimit
WEEK = {
'SUN': 0,
'MON': 1,
'TUE': 2,
'WED': 3,
'THU': 4,
'FRI': 5,
'SAT': 6
}
def main():
input = stdin.buffer.readline
s = input()[:-1].decode()
print(7 - WEEK[s])
if __name__ == "__main__":
setrecursionlimit(10000)
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ce296890810f5eea7f7228c73a9c33edeabfaad3 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_465.py | e154871c10ca2a59b29c8328d23975e31a1fcf9d | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | # how to avoid hard-coding urls in webapp templates
url
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
b1f57009af00762a242e004c6e7fdbf9f617c947 | a9dccb9ebbfd482729663d4cae6f074d8bd44c2d | /TP5/EJ2.py | 30f8929b44561c83a89efc434b78e1a9d20cad12 | [] | no_license | FMachiavello/tp-python | 90ce840a3d9e7edf1033480146b5781da1b86f0c | e1ba1fe52242df50d42cf17d136d1b137bea469d | refs/heads/master | 2022-12-09T00:10:09.476003 | 2019-06-07T03:10:43 | 2019-06-07T03:10:43 | 294,257,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | def contDeLetras(cadena):
"""Determina si en la cadena ingresada hay mas letras 'A' o letras 'B'"""
if type(cadena) not in [str]:
raise TypeError("Ingrese una cadena valida")
cadena = cadena.casefold()
l1 = cadena.count("a")
l2 = cadena.count("á")
l3 = cadena.count("e")
l4 = cadena.c... | [
"valiktroi16@gmail.com"
] | valiktroi16@gmail.com |
e8390081053f84852515f18c5edfb636621d94b6 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /dp/dp_d/12309481.py | 505ec598e3b892ba10e55f5a4b003c8f412ac4cc | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | def main():
N, W = map(int, input().split())
wv = [tuple(map(int, input().split())) for i in range(N)]
dp = [-1]*(W+1)
dp[0] = 0
for w, v in wv:
for j in range(W-1, -1, -1):
if dp[j] >= 0 and j+w <= W:
dp[j+w] = max(dp[j+w], dp[j] + v)
print(max(dp))
main(... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
469e35add0a86c5c3185a155ac831b9ec771d346 | 3d1ac9d26cad86054154b2eddff870edf31aa70f | /credits/admin.py | ae667a26f659fe19d99a7c71d0848cb82f31b649 | [] | no_license | ASquirrelsTail/issue-tracker | a26f1035d73f41be7a62d048b21737b3d449adaf | 089126403f135631b72f5a66adb1a219ff7a9fc7 | refs/heads/master | 2022-12-18T19:55:37.420616 | 2019-11-17T19:45:26 | 2019-11-17T19:45:26 | 202,887,245 | 0 | 1 | null | 2022-12-08T06:08:24 | 2019-08-17T13:55:24 | JavaScript | UTF-8 | Python | false | false | 565 | py | from django.contrib import admin
from credits.models import Wallet, Credit, Debit
# Register your models here.
class DebitAdmin(admin.TabularInline):
model = Debit
readonly_fields = ('wallet', 'created', 'amount',)
class CreditAdmin(admin.TabularInline):
model = Credit
readonly_fields = ('wallet', ... | [
"rjtwilton@hotmail.com"
] | rjtwilton@hotmail.com |
88d557e6724162366d68b42f9f4abee826fff315 | 6f62d7de4294271fd2648d363f7719b9d8a45b5e | /models.py | 6af57efba03243817d026c96c5d2ae3f954be3f8 | [] | no_license | JosephHaowen/projectInterview | 3424bb3817564031a35f3c7d80b47d01ed8be863 | 13513c697cd269a54ff918fcb6a0fffb5085e7e1 | refs/heads/master | 2020-12-24T21:01:42.624111 | 2016-05-06T02:02:05 | 2016-05-06T02:02:05 | 56,777,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
from database import engine, Base
def loadSession():
metadata = Base.metadata
Session = sessionmaker(bind=engine)
session = Session()
return session
class Degrees(Base):
__tablename__ = '... | [
"ht398@cornell.edu"
] | ht398@cornell.edu |
450a62527548570c20fc470b499265a82fc790e0 | 987e54f6da76b24fca9cb478affeb03fe10e2dae | /download_images/pipelines.py | 4b0b15e6a9398493adbec883539c00fa70731f86 | [] | no_license | amansinghal123/web-scraping-project | c4cc8a2196b724c032a7c87e82f5ab0e0aaae3b1 | c1120eec8529b7745bff7bf234c00fe00f909d30 | refs/heads/master | 2022-04-26T08:40:38.183191 | 2020-05-04T14:35:33 | 2020-05-04T14:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class DownloadImagesPipeline:
def process_item(self, item, spider):
return item
| [
"noreply@github.com"
] | amansinghal123.noreply@github.com |
875f21f2992805a22b91db7f9b8a250e83dcac74 | 882448f56a2152dcd5363ee3891a2ae49830067e | /Shell.py | e5908b8c5cf50e3abb5691ff3c8746f74495ddee | [] | no_license | cclauss/Swamipp | dc648832b16997c4fc93721bd1031db75ca54c1c | 81838bcb121c7f3152f49f6540633c3a37d85c36 | refs/heads/master | 2023-07-03T05:01:42.602170 | 2020-09-05T15:27:48 | 2020-09-05T15:27:48 | 293,207,105 | 0 | 0 | null | 2020-09-06T05:03:13 | 2020-09-06T05:03:12 | null | UTF-8 | Python | false | false | 3,037 | py | import Swamipp as Swami
import os,datetime
import _thread, sys
import argparse
parser = argparse.ArgumentParser(description="Swami++")
parser.add_argument("file",nargs="?",type=str,help="file to be executed",default="")
args=parser.parse_args()
if args.file:
try:
code=open(args.file,"r").read()
y=datetime.dat... | [
"48455071+ClackHack@users.noreply.github.com"
] | 48455071+ClackHack@users.noreply.github.com |
a9a03fa3c380ea00731a5dce56c784abd1cc7440 | 20b1277d0254b89bfe415416a7b00b3fc78f4e6c | /calendar.py | a5e40f5067ce308d2fa0b6741f58173eb2abdf8b | [] | no_license | parasjitaliya/DataStructurePrograms | f9f20e21234e514f8bb83de6f58a557a56533366 | d09041a4ab00da9138ac1ca92db187615bc956c4 | refs/heads/master | 2021-01-07T02:46:03.410541 | 2020-02-24T07:42:58 | 2020-02-24T07:42:58 | 241,556,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | class Calendar:
def calender(self, month, day, year):
# assigning the year and month values to variable
y0 = year - (14 - month) // 12
x = y0 + y0 // 4 - y0 // 100 + y0 // 400
m0 = month + 12 * ((14 - month) // 12) - 2
d0 = int((day + x + (31 * m0 // 12))) % 7
# days... | [
"parasjitaliya@gmail.com"
] | parasjitaliya@gmail.com |
c1136a5987a63ebf2de45eff64448bbd8fb0ce61 | fe2b1fff2e6a2eabdcb722fc9b4f0ff85413e228 | /Capstone2_MelanieM/website-final/virt/bin/f2py3 | 42d5199a7742cf2fccf514e4547ce7e23d9753be | [] | no_license | mmalinas/Springboard_Git | 2c2c4ec7389bf4ecc495a9a84e12ce0fe76a492d | 2dc7563b33867ebeb7bcc45d550001471b73b618 | refs/heads/master | 2022-12-10T06:20:41.520715 | 2019-11-13T00:21:50 | 2019-11-13T00:21:50 | 197,436,074 | 0 | 1 | null | 2022-12-08T07:31:38 | 2019-07-17T17:43:16 | Python | UTF-8 | Python | false | false | 303 | #!/Users/melaniemalinas/Documents/Springboard/Springboard_Git/Capstone2_MelanieM/website2/virt/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"melaniemalinas@melanie-malinass-macbook.local"
] | melaniemalinas@melanie-malinass-macbook.local | |
4a659b8042ba74a94c18b7b2402f9afc3af4bd3b | eb1c205ccbfe05b1ed6f21e97320ad3d16b1e6ac | /skmeans_utils.py | 586750fc4cdcb14f00edd273dc8b60ed0f08a65d | [] | no_license | thevishalagarwal/IncrementalSKMeans | e946778fa6c3a63c3ce17cbdafbee6d3ffa4bd3a | bd153d2bf5c221905edd9dbacc9e2fce100aff89 | refs/heads/master | 2021-05-07T05:55:35.609400 | 2017-11-29T08:12:08 | 2017-11-29T08:12:08 | 111,684,033 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | import cPickle
import gzip
import numpy as np
from matplotlib import pyplot as plt
def normalize(x):
return x / np.sqrt(np.sum(x**2, axis=0))
def showImage(img):
img = img.reshape((28,28))
plt.imshow(img, cmap='gray')
plt.show()
def angleBetweenVectors(x1, x2):
a = np.arccos(np.dot(x1.T,x2))
return a*180/np.pi... | [
"noreply@github.com"
] | thevishalagarwal.noreply@github.com |
d60ad3880d7c6e574a14889e96134d03ea0cf5a7 | 54fdaa05078261180cbd7cc94c132527725b189d | /test/crab_ElectronPlots_newskim_eraBv2.py | 3669634ae8acc57d136ad537adca62dd18a27724 | [] | no_license | psiddire/ZeeAnalyzer | e488d3b65108ca923bd459cda41e61f3bd746a5b | d94b1fd4f4de19f5cdeaf405e4c0d6629b889888 | refs/heads/master | 2021-09-07T12:20:36.554253 | 2018-02-22T18:31:52 | 2018-02-22T18:31:52 | 113,574,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # from https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookCRAB3Tutorial
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'plots_Zee_newskim_eraBv2'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transfe... | [
"psiddire@nd.edu"
] | psiddire@nd.edu |
1b90511986a531459e5946949c883716a0400749 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories/267667/kaggle-heart-master/ira/data_iterators.py | cf51b09e680a9c57f815dfc6f35d04a33d7f6edb | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,976 | py | import data
import glob
import re
import itertools
from collections import defaultdict
import numpy as np
import utils
class SliceNormRescaleDataGenerator(object):
def __init__(self, data_path, batch_size, transform_params, patient_ids=None, labels_path=None,
slice2roi_path=None, full_batch=False... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
d7b6b9885167a93f16a840f3c754138d408cbf89 | ee2bf52e37e23ea3030da212beb484319a35ed80 | /2015-2016 Nivel Basico/16_ejercicio16/Ejercicio16.py | 4e2874414e60ade932b0e3facb14bf2c7d454533 | [] | no_license | Trietptm-on-Coding-Algorithms/CLS-Exploits | 318fde8c3817fc6cf7e81ddf392f5eeac1f5c898 | 94ea56cf51fcd89330c0d93e62d5f3d905e5e602 | refs/heads/master | 2020-03-20T19:15:58.696676 | 2016-08-28T11:02:32 | 2016-08-28T11:02:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,482 | py | import socket, struct, binascii, array, time
from nutshell import *
p = lambda x : struct.pack ("<I", x)
u = lambda x : struct.unpack ("<I", x)
signedHex = lambda val, nbits : hex ((val + (1 << nbits)) % (1 << nbits))
def littleE2Hex (x):
val = binascii.unhexlify (x.encode ("hex") )
y = array.array ('h', val)
y.b... | [
"kalianon2816@gmail.com"
] | kalianon2816@gmail.com |
4cf9b4ddf5b75a0c24363f4cabbb4a2c429cd06e | 1d9e681b204e6ec2d7a710ef45b7dec082239491 | /venv/Lib/site-packages/od_python/models/inline_response_200_23.py | be19e551a11c272b3e2fa1c510c9a94e50aeca25 | [] | no_license | 1chimaruGin/DotaAnalysis | 0e0b85805cc83e4cc491d46f7eadc014e8d6b1f1 | 6a74cde2ee400fc0dc96305203d60c5e56d7ecff | refs/heads/master | 2020-07-21T20:48:07.589295 | 2019-09-07T12:20:15 | 2019-09-07T12:20:15 | 206,972,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | # coding: utf-8
"""
OpenDota API
# Introduction The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays. Please keep request rate to approximately 1/s. **Begining 4/22/2018, the OpenDota API will be limited to 50,000 free calls per month.** We'll be offering a... | [
"kyitharhein18@gmail.com"
] | kyitharhein18@gmail.com |
42376b861ece80075b0aeda3fb258441d5be2c61 | 65df0fbd17c7afae6e5073fff818dd28b7d0c4c8 | /assignment1/pythonFiles/getURIRedirect.py | cf7c1e1aca9fa35dfb1f0cacc9e88e32a0f482fe | [
"MIT"
] | permissive | khajamasroorahmed/cs851-s15 | 8ef3e1115425ef050803ba940b00c5f15c2ee14f | 45217f23c7c940543697e355100644252bb90520 | refs/heads/master | 2021-01-18T08:40:13.310490 | 2015-05-02T09:10:38 | 2015-05-02T09:10:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | #CS751 Spring 2015 Offered by Dr. Michael Nelson - Assignment 1
#Filename: getURIRedirect.py
#Author: Khaja Masroor Ahmed
#UIN: 00999044
#CS Email: kahmed@cs.odu.edu
import json
f = open('status.txt','r+')
w = open('uriRedirect.txt','w')
w2 = open('uriRedirectCount.txt','w')
uriRedirect = {}
for line in f:
data = js... | [
"max.bizarre@gmail.com"
] | max.bizarre@gmail.com |
c7bc15d72bb90e5fb7c6d3a794bcdc3c286ee53a | a3926c09872e1f74b57431fbb3e711918a11dc0a | /python/hash_table/1346_check_if_n_and_its_double_exist.py | a5c2c203328d0dbf68510dd50017a7aac7c37ec2 | [
"MIT"
] | permissive | linshaoyong/leetcode | e64297dc6afcebcee0614a153a566323bf223779 | 57080da5fbe5d62cbc0b8a34e362a8b0978d5b59 | refs/heads/main | 2022-09-15T00:05:36.476268 | 2022-08-16T14:09:11 | 2022-08-16T14:09:11 | 196,914,051 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | class Solution(object):
def checkIfExist(self, arr):
"""
:type arr: List[int]
:rtype: bool
"""
sa = set()
for a in arr:
if 2 * a in sa or (a % 2 == 0 and a // 2 in sa):
return True
sa.add(a)
return False
def test_check... | [
"linshaoyong@gmail.com"
] | linshaoyong@gmail.com |
120135cf7bd569963888ffe1e1a46f48570cdbf8 | 524f3dfc55411c6bde7d5a0386f33f57adcc7f33 | /ARCTIC_reader.py | 46cb595967edb5664e6bbd6041b7be6a1ca3cace | [] | no_license | socom20/speech-cloner | 776f61b28a35a99bb0ed7606638925d9dbea74b7 | 3ad0828b5419e004a5bf7fe05f94954677e5bdee | refs/heads/master | 2020-05-07T10:42:01.013476 | 2019-07-15T02:21:50 | 2019-07-15T02:21:50 | 180,427,808 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,983 | py | import numpy as np
import matplotlib.pyplot as plt
import os, sys
import librosa
import pickle
import hashlib
import h5py
from collections import namedtuple
from audio_lib import calc_MFCC_input, calc_PHN_target
from sound_ds import Sound_DS
class ARCTIC(Sound_DS):
def __init__(self, cfg_d={}):
... | [
"49447659+socom20@users.noreply.github.com"
] | 49447659+socom20@users.noreply.github.com |
50a7a10cb9a1aa88a71c786a4b06da91c96801bc | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/anagram/7a7f1153e39747b2922e1c830c65ac0a.py | 23159322f0bf7864d05c50ccb0628b12b1aae17c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 246 | py | def detect_anagrams(word, possibles):
found = []
for possible in possibles:
if sorted(list(word.lower())) == sorted(list(possible.lower())) and word.lower() != possible.lower():
found.append(possible)
return found
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
528c4a1f5896ec1fbbc0e2b833b6a51ca7381b80 | 17cbe826892d06dc5aee4e4c2a5747e10933f2d0 | /hmtl/modules/text_field_embedders/__init__.py | 233345c6669cbadde24653011c00aa7013aa3810 | [
"MIT"
] | permissive | rahular/joint-coref-srl | 3fdd0e37a56e3be894f3da4ceeb030a599ff4388 | cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be | refs/heads/main | 2023-02-16T21:53:11.721014 | 2021-01-18T15:31:47 | 2021-01-18T15:31:47 | 330,708,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # coding: utf-8
from hmtl.modules.text_field_embedders.shortcut_connect_text_field_embedder import (
ShortcutConnectTextFieldEmbedder,
)
| [
"rahul@di.ku.dk"
] | rahul@di.ku.dk |
9e6a32c74ef8c3f40f7b6e855c2a9e2e658eb9af | a3485f1573fb1d2e9c029e37acf040e0dc669301 | /BackgroundProgram/market/apps/users/migrations/0002_auto_20170704_1624.py | 7db364b0f97898394733c9f0372feede625cd8b9 | [] | no_license | lgb020/SupermarketFastCashier | ac132368695dfcb49af2ed5470e6f5fa5336f451 | 2c6f8987431d305f0a76cbda0625b445224e7d07 | refs/heads/master | 2020-04-25T01:38:54.812102 | 2019-02-21T14:12:31 | 2019-02-21T14:12:31 | 172,414,753 | 0 | 1 | null | 2019-02-25T01:41:51 | 2019-02-25T01:41:51 | null | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-04 16:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"jpf199727@gmail.com"
] | jpf199727@gmail.com |
224c593b401c1b0ef3ab7e2b9e9e5ccc27c82d6b | 0a2e72ea9c7057296ad666125b9c51983a6d33e6 | /web.py | 4fd39de8a799b6b53ea6cb058f134f552596d3ec | [] | no_license | pavankumarmeruva/python | c417cb8b0d0a1ec776943d0e1308dfa30317eb39 | 6bc10050504018b6f0bdb0f5d5a580671d381d2d | refs/heads/master | 2021-03-08T06:41:32.587899 | 2020-03-31T03:07:34 | 2020-03-31T03:07:34 | 246,327,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,037 | py | #!/usr/bin/python
print "#!/usr/bin/python
print \"
<!doctype html><html lang=\\"en\\"><head><meta charset=\\"utf-8\\"/><link rel=\\"icon\\" href=\\"/favicon.ico\\"/><meta name=\\"viewport\\" content=\\"width=device-width,initial-scale=1\\"/><meta name=\\"theme-color\\" content=\\"#000000\\"/><link rel=\\"apple-touc... | [
"noreply@github.com"
] | pavankumarmeruva.noreply@github.com |
e85d89a65920bd230348b41cb77c529402e4c82e | e7397ed7c8a79b1df463205ccf8358a183f51d68 | /venv/Lib/site-packages/aiourllib/response.py | 5bf90d796885539c1d25f4126078ade10641c607 | [] | no_license | yzx6151211/test | 7515a1e15fa16d1ba35a6af3afcd331e579427c0 | 59ffb77c240dc7e3f18d45e0d0863b9080c9fe40 | refs/heads/master | 2023-03-31T10:57:11.523739 | 2021-04-08T02:00:12 | 2021-04-08T02:00:12 | 355,732,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,672 | py | import asyncio
import collections
import json
import re
import gzip
import zlib
from . import (
exc,
utils)
class ResponseException(Exception):
pass
class TransferEncodingException(ResponseException):
pass
class ContentEncodingException(ResponseException):
pass
class Protocol(object):
C... | [
"523882246@qq.com"
] | 523882246@qq.com |
a3ae2ee8ebc61a3af3ad97aa79f0e6bfa8f005c2 | fe002077b2e8135e322a7939b3a7be27473650f9 | /opencv_python/0820.py | ac29e6d01bdefc7653953af0012e242e004654bb | [] | no_license | leekyungjin333/LinuxGUIex | 94d903b39c32f1a0f6d0396c5710a28edf2a39d7 | 6972cfff681e8d6568f41069c99c0394198618fe | refs/heads/master | 2020-07-16T11:12:30.785506 | 2019-09-06T04:13:20 | 2019-09-06T04:13:20 | 205,778,526 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py | # 0820.py
import cv2
import numpy as np
#1
def rectSum(sumImage, rect):
x, y, w, h = rect
a = sumImage[y, x]
b = sumImage[y, x+w]
c = sumImage[y+h, x]
d = sumImage[y+h, x+w]
return a + d - b - c
def compute_Haar_feature1(sumImage):
rows, cols = sumImage.shape
rows -= 1
cols -= 1
... | [
"leekyungjin333@users.noreply.github.com"
] | leekyungjin333@users.noreply.github.com |
21eebbc0b1756a0f6d929b7deaf6b26650c96230 | 6445533255d69bd5fe3ea80fdb2b10c14ef03f70 | /Clinic_Essentials/apps.py | 6f44fd8d440aa45c13047df5101b085c36277d45 | [] | no_license | 17shashank17/Clinic | ed37458bb059f1691ccbbdd57a4364899e93c2fc | 3b0647600a6a0b826635d8e3c7b958b749732d6e | refs/heads/master | 2020-09-30T19:42:28.434286 | 2019-12-11T12:19:04 | 2019-12-11T12:19:04 | 227,359,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from django.apps import AppConfig
class ClinicEssentialsConfig(AppConfig):
name = 'Clinic_Essentials'
| [
"17shashank17@gmail.com"
] | 17shashank17@gmail.com |
0d8b96bf89c8d646fecdd498d7573ec350c21dbf | 966edfa4539288983c39c7dfc2ad003fa608ee4e | /rolling_ops (1).py | 1265f499bfa1fc06835da61941be289f2b4e0513 | [] | no_license | btindol178/Algorithmic-Trading | ee2b067d7476dadd0dc6d0af765a8a56924a5dae | 99dbad5ec3d496d26dddacd6f5d155921c3c3ea4 | refs/heads/main | 2023-05-04T10:01:51.765390 | 2021-06-01T16:06:05 | 2021-06-01T16:06:05 | 346,842,518 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | # =============================================================================
# Import OHLCV data and perform basic data operations
# Author : Mayank Rasu (http://rasuquant.com/wp/)
# Please report bug/issues in the Q&A section
# =============================================================================
#... | [
"noreply@github.com"
] | btindol178.noreply@github.com |
bf00d39dfbcf3248fb20c2c1c1e443dd5b17008f | 9b4b3ca4f48c170c33575af59be737208a23389c | /Forum/Forum/forumapp/admin.py | 6dd93e2f7ad6a19d034a2c74b08d92edb08bae25 | [] | no_license | DanielStankovych/fifth-project | b54e787f1c3016a3fafd59941d874bd2b193dc3a | 0415401681fc1d49d02a87c7fc26488176f91d7e | refs/heads/master | 2023-08-22T17:45:18.261348 | 2019-11-14T10:52:06 | 2019-11-14T10:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from django.contrib import admin
from . import models
from .models import Category
from .models import Post
from .models import Profile
# Register your models here.
admin.site.register(models.Post)
admin.site.register(models.Category)
admin.site.register(Profile)
| [
"noreply@github.com"
] | DanielStankovych.noreply@github.com |
d25ebbe6badfd094abd005663fc100b84313ce48 | 81829702fe531aa34a1a39d209cd9a27ad717133 | /fiubauth/settings.py | 638aea82d0c7e49c4d695d6427a6e53363622348 | [
"MIT"
] | permissive | MartinCura/fiubauth | 3b2fd9d798baf47a88382c7d76b26996d30740d8 | 61e344082956a56c76c0e9d68c72778e90cd1f93 | refs/heads/master | 2022-02-08T15:56:00.195792 | 2021-06-09T19:49:05 | 2021-06-09T19:49:05 | 171,236,958 | 0 | 0 | MIT | 2022-01-24T15:44:52 | 2019-02-18T07:39:14 | Python | UTF-8 | Python | false | false | 3,302 | py | """
Django settings for fiubauth project.
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/depl... | [
"martincura@gmail.com"
] | martincura@gmail.com |
3d2c1cf2f0fd2003ca03ac47c8cb4bc4f252c788 | e906dfa9290ed6d43f0d99898e6714f9e2712daa | /Problem001.py | 8aca21d55ce3a32342321f93f5c120afaa71e010 | [] | no_license | onp/ProjectEuler-py | 9fa80ab0e85ac29f04c05f63a367b49e50aa5aa8 | 3fa17a9b7d154ba48b04f9ac6884df1a3fb812be | refs/heads/master | 2021-01-23T17:30:51.284281 | 2014-03-12T23:40:01 | 2014-03-12T23:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Project Euler Problem #1
# Multiples of 3 and 5
''' If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
'''
a= [x for x in range(1000) if (x%3==0)|(x%5==0)]
print(sum(a))
... | [
"a.more.reliable.source@gmail.com"
] | a.more.reliable.source@gmail.com |
96fd35a1314f73aa37ac76aef4bb32df8cc4fe3a | cd052f960846ea33e22abdded3106fb492f16c31 | /爬虫项目/code09/ITCast/ITCast/spiders/itcast.py | ed76197004fcb89ff0c9826496a95830942d4f4d | [] | no_license | byst4nder/his_spider | 2d96457b70894c36506e8061d8a3201ac337a5d0 | a51e31acff41292e568ac22b0e213e6cb48218fa | refs/heads/master | 2020-07-21T12:06:28.952083 | 2019-09-06T14:25:58 | 2019-09-06T14:25:58 | 206,857,595 | 1 | 0 | null | 2019-09-06T19:04:02 | 2019-09-06T19:04:02 | null | UTF-8 | Python | false | false | 1,322 | py | # coding:utf-8
# 可以通过命令创建爬虫
# #scrapy genspider itcast itcast.cn
import scrapy
from ..items import ItcastItem
class ItcastSpider(scrapy.Spider):
name = "itcast"
allowed_domains = ["itcast.cn"]
start_urls = ["http://www.itcast.cn/channel/teacher.shtml"]
def parse(self, respon... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
e8dce776e101aefc99de1b30282da6ad07504850 | 53dfc1a19373bd068fdc1673e1542867836ba985 | /test.py | 78d52ad3045bf8c2c785c812387af9ea4c8db660 | [] | no_license | mivanrm/UDP-file-transfer | efd3ea4036d747436642220eb8b86f2fea6e641f | 7e44ae323e7213ccbfde6b71d1b145a86ad48553 | refs/heads/master | 2022-02-26T20:53:43.442329 | 2019-09-26T16:34:07 | 2019-09-26T16:34:07 | 210,993,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | f=open("abc.txt","rb")
f.__sizeof__ | [
"mivanrm12@gmail.com"
] | mivanrm12@gmail.com |
d17b309bad63ad2a121a0fc94c0e27562b2357a8 | 094fe32f3144ee03d53df10ae3e8518f372d6b62 | /service.prb-clean/resources/lib/commontasks.py | 812457d26b2a7dcd5a653b0159269762f34d0c3b | [] | no_license | PhantomRaspberryBlower/repository.prb-entertainment-pack | 0b72ad49b4183c8b45b704295beadf09831f23a3 | 02e103228ad86aee3d8cef6fac3806c1f3605f45 | refs/heads/master | 2022-06-19T04:14:07.841398 | 2022-05-17T09:53:21 | 2022-05-17T09:53:21 | 192,784,863 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | #!/bin/python
import os
import xbmc
import xbmcgui
import shutil
import re
'''
Written by: Phantom Raspberry Blower
Date: 21-08-2017
Description: Common Tasks for Addons
'''
INVALID_FILENAME_CHARS = '\/:*?"<>|'
def remove_tree(dir_path):
shutil.rmtree(dir_path, ignore_errors=True)
def xbmc_version():
ret... | [
"jasonbulis@hotmail.com"
] | jasonbulis@hotmail.com |
ea5590f27ece0d76b627816b057ee992c98f014b | 5ed7df827c86692ce02d51580a2d1feeb409c087 | /Freshman Year/CS111/Problem Set 2/ps2pr4.py | 793d2d77e09d390c3dea883a7ea6d24177caed37 | [] | no_license | Aweirdanomaly/SchoolWork | 713d8cb9eaea66cc4042e0f638f3eee7c04493af | 9f4e97e7e56e22953bf097c131ca6b5555bfe6ee | refs/heads/main | 2023-02-13T18:45:03.970543 | 2021-01-08T08:10:11 | 2021-01-08T08:10:11 | 325,880,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 23 23:37:54 2019
@author: Carlos
"""
# Problem 4 part 1
def copy(s, n):
"""takes in string 's' and integer 'n' and copies 's' 'n' times"""
if n <= 0:
return ''
else:
b = copy(s, n-1)
return b + s
#Problem 4 part 2
def... | [
"carlosarielos2@gmail.com"
] | carlosarielos2@gmail.com |
68bf009de745f3d83520e2323ac43fc8e2a5e812 | f9bf38f58e56f4cc6f9170bf05b874c1247f7c29 | /Source/analyze.py | 1e9f8bf666962482601db6271dcd4f8b07249cce | [] | no_license | e2Xg/ThesisSource | ad2fd6c3494e13bbe57fc311865169353e86b548 | f8a0d0a1fa4104b2e74890583c6773cc06ec9a44 | refs/heads/master | 2022-05-16T03:04:53.801277 | 2019-09-17T03:45:06 | 2019-09-17T03:45:06 | 186,252,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,573 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
from Source.analyze_geometry import analyze_geometry
from Source.Engine.engine_performance import engine_performance
from Source.analyze_weight import analyze_weight
from Source.analyze_aerodynamics import analyze_aerodynamics
from Source.analyze_point_pe... | [
"50546864+e2Xg@users.noreply.github.com"
] | 50546864+e2Xg@users.noreply.github.com |
b80a77d8f486d5a17060304316da99d0e4bbddfe | 7d3e83bf2a100c347c11cb9d8193abb5f4c00360 | /build/exe.win32-3.6/mkmany.py | 62563a1bdec32a5dcc33669ce5ab066ff136a8d0 | [] | no_license | shinde-shantanu/LC_Maker | ad25cdc830711d48dd72a2a60a1c05e3bd1eb3d0 | 4105f853feeaa5b3951cfd521392277b430739ad | refs/heads/master | 2020-08-08T00:16:09.207357 | 2019-10-20T13:47:17 | 2019-10-20T13:47:17 | 213,636,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,495 | py | import pandas
#from lc1 import give_print
from pandas import *
df=read_csv('dbaa.csv')
from docx.enum.text import WD_ALIGN_PARAGRAPH
import docx
from docx import *
import tempfile
import win32api
import win32print
def print_all():
#merged_document = Document()
filename = 'lc - Copy.docx'
d1=docx.Document(f... | [
"shantanushinde.shinde@gmail.com"
] | shantanushinde.shinde@gmail.com |
77628a507acbcfef9cf2afa34963e24495defd86 | 19662499684e7244185f81d69fd37713931d0e78 | /pyzx/local_search/simulated_annealing.py | cee62b3cb13e28cc672cae381755437686d8ab3b | [
"Apache-2.0"
] | permissive | rkruegs123/pyzx | 6e32578b280365f4bd4ec7a475dc1caead943725 | e1254d8cc98c2af6662411af14436aa5b4f2b658 | refs/heads/master | 2023-04-12T09:37:44.654974 | 2021-04-27T15:39:28 | 2021-04-27T15:39:28 | 361,756,628 | 0 | 0 | Apache-2.0 | 2021-04-26T13:16:47 | 2021-04-26T13:16:47 | null | UTF-8 | Python | false | false | 2,846 | py | # PyZX - Python library for quantum circuit rewriting
# and optimisation using the ZX-calculus
# Copyright (C) 2021 - Aleks Kissinger and John van de Wetering
# 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 c... | [
"rkruegs123@gmail.com"
] | rkruegs123@gmail.com |
6d0343e54fbaea11fb067aa7b20d85419dff3c7a | 11063daf6a13da6c5ddc94ae542b2e466a1f869c | /test-demo/io-go-demo.py | 39f73e59cb8477fdafc7a89c42e7b992620cdec4 | [] | no_license | effielikesmilk/test-demo | 1caf9517479b51681d19d00cfeec07d8ff499a89 | 3ca9294555b3cfd9220b64755ac3e01eb39f9e7d | refs/heads/master | 2021-07-16T10:55:32.596585 | 2017-10-23T11:34:08 | 2017-10-23T11:34:08 | 107,973,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # -*- coding:utf8 -*-
from __future__ import print_function # 禁用print,只能用print()
import os
import json
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
@app.route('/webhook', methods=['POST'])
def webh... | [
"noreply@github.com"
] | effielikesmilk.noreply@github.com |
f4346c34f19288408128c36398eb661b7ac8aef3 | bf3157570dfb3e91001d8a30b7d89a06b6e5b5ff | /InitialConfiguration.py | 78a5a26ca586270e3a8323dfb4d187975bf248b9 | [] | no_license | shenoyvvarun/twit-miner | 0c9dcbee52ae5508a6a118b5bb82fed1181ec39b | fcf1331fe636678868a84270cc64cd06bc474dc0 | refs/heads/master | 2021-01-16T19:59:16.837543 | 2013-03-18T17:05:24 | 2013-03-18T17:05:24 | 9,126,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | from TweetsClassifier import Classifier
from TweetsValidator import Validator
from TweetsProcessor import TweetProcessor
import json
#This code should be executed during the inital configuration / starting up
def main():
#has to be executed only once
addTrainingToTweets()
a =7.5
b =5.8
c =1.3
print "Please Be ... | [
"ahmed.bolwar@gmail.com"
] | ahmed.bolwar@gmail.com |
fc9b5929a490b9c6b323bc58c23b48778a7c5d42 | 153d52766a377fa12c3dab41f1ef4059d875d31d | /openebs/tests/test_model_scenario.py | 5676f8ab69ba1099e60aef2edd7fce7f2cb73931 | [] | no_license | StichtingOpenGeo/openebs2 | 8b09ec2d8b8a4f6eed5d8169f11506cdfbedde45 | f30110b08151de213d536f7223a6b46ac27f3d78 | refs/heads/master | 2023-05-23T22:07:06.397095 | 2023-05-11T10:30:26 | 2023-05-11T10:30:26 | 11,089,319 | 2 | 1 | null | 2023-05-11T10:30:27 | 2013-07-01T08:45:34 | Python | UTF-8 | Python | false | false | 8,146 | py | from datetime import timedelta
from django.contrib.auth.models import User
from django.contrib.gis.geos import Point
from django.test import TestCase
from django.utils.timezone import now
from kv1.models import Kv1Stop
from kv15.enum import *
from openebs.models import Kv15Scenario, Kv15ScenarioMessage, Kv15ScenarioSto... | [
"joelhaasnoot@gmail.com"
] | joelhaasnoot@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.