blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb33ad3ea3a65fcbe419a5cdd37ea445686a3795 | a2548845125656fa47617d34f1b7e00019f5eb74 | /utils/postprocess.py | a6ed9a86b5cc20cee8b1c0138198823ef61d0f6c | [
"BSD-3-Clause"
] | permissive | COSE474-WhereIsMyWaifu/detector | 57f983cd4ed021023cdddd5633c5600afc9108bc | 23c1850899aafa1af35af2a3a3d08ba09272b4b2 | refs/heads/master | 2020-08-30T00:33:56.729047 | 2019-12-23T15:22:56 | 2019-12-23T15:22:56 | 218,216,092 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,418 | py | import numpy as np
import PIL.Image as Image
class PostProcessor(object):
def resize(self, from_size, to_size, prediction):
x_rate = to_size[0] / from_size[0]
y_rate = to_size[1] / from_size[1]
max_rate = max(x_rate, y_rate)
prediction['pred'] = np.array([pred * [max_... | [
"talluay@gmail.com"
] | talluay@gmail.com |
d2a70095853cf66fcee8f1b49317c3ede2a0e2bf | 7e5160f3b278d6197229a05c6682a9bbfb15504b | /Assignment_2/Q20_datetime_file.py | c55bca04995d49e800fadf507b97f62b6d3d6333 | [] | no_license | hitesh2940/Python_practice | 2a135f22aa13f61a087da6eb29ae7827faa995d4 | 7dcec70e43d167d6ff9d63f3e9016328d22d9057 | refs/heads/main | 2023-08-14T22:58:02.074851 | 2021-09-21T10:06:43 | 2021-09-21T10:06:43 | 399,853,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | #Write a python program to read current date and time, delete content of file JD_file.txt and save date time in it.
import datetime
f = open("JD_file.txt", "r+")
f.seek(0)
f.truncate()
f.close()
ct = datetime.datetime.now()
f=open("JD_file.txt",'w+')
f.write(str(ct))
f.close() | [
"noreply@github.com"
] | hitesh2940.noreply@github.com |
80796e8fe36dfaf85f2154db7bc01de0d37ca837 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/411/usersdata/321/79296/submittedfiles/av1_programa2.py | 7523b13236ebbd307d04c1c424ebe8e6ed24a9a4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
#Entrada
a= float(input('Preço normal da etiqueta: '))
b= int(input('Condição de pagamento: '))
#Saídas
if b == 1:
t= a - ((a * 15)/100)
print('%.2f' % t)
elif b == 2:
to= a - ((a * 10)/100)
print('%.2f' % to)
elif b == 3:
print('%.2f' % a)
elif b == 4:
total= a + ((a ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4d37d3f4430224a7d858060b0224715fd558aa1d | 2fdc95192f1b268990cf97efb7970c1c8be8a657 | /E_AGV_V1/run.py | b425dbe65e0e253bf6bf3ac5ec54c0c70c29cef0 | [] | no_license | arrtvv852/AGV-Emulator | 4c9f98779cf6b88dd13d33d388d05eef5c4b70bd | 44faff07dc5bdbc8784e0ae91598ee128e70ed65 | refs/heads/master | 2020-05-04T17:17:20.654877 | 2019-04-03T14:38:33 | 2019-04-03T14:38:33 | 179,305,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,126 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 3 16:32:10 2018
@author: CIMlab徐孟維
"""
import ShopFloor as SF
import socket as SK
import pickle
import threading as td
import tkinter as tk
import time
def Display(Vehicle):
time.sleep(1)
window = tk.Tk()
window.title("AGV Agent")
window.... | [
"noreply@github.com"
] | arrtvv852.noreply@github.com |
c99fc98cb19087ac23f06bd2e4062101e9c970b7 | 76ddef791495e09b66e701816d03f2f86aca73d4 | /words.py | f3ec182ec8fcba0ef5fb4c04699deb8d415ea0ad | [] | no_license | kragen/spellmell | 8e1511bdcd69cd0c28e3cbbcf5dd67f49485b85f | f5452e787489f3320b312c80a64cd8b5554cec3e | refs/heads/master | 2021-01-16T00:35:40.105761 | 2008-12-11T02:01:36 | 2008-12-11T02:01:36 | 88,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import re
import sys
def words(text):
return map(stripquote, re.findall("""[a-z']+""", text.lower()) )
def stripquote(s):
#return s.replace("'", "")
return s.strip("'")
for line in sys.stdin:
for word in words(line):
print word
| [
"darius@static.unknown.charter.com"
] | darius@static.unknown.charter.com |
a26b70f1e1d51b49d484ae8516312583af8cba38 | 9079354291951a1782ec43efaead5876895eece8 | /sent_to_vec/masked_lm/pervasive_model.py | bb2efc8c00655a488446593750ed5ca65dab961b | [] | no_license | luungoc2005/nlp-test | c9a2e0174546221b0e6d2501d9c4dfeca5c6efd0 | ed43a4b1bbcd23c3fc39e92d790864c73a5999f3 | refs/heads/master | 2022-12-08T14:17:07.271865 | 2019-05-26T16:23:20 | 2019-05-26T16:23:20 | 125,201,975 | 0 | 0 | null | 2022-12-07T23:37:52 | 2018-03-14T11:24:54 | Jupyter Notebook | UTF-8 | Python | false | false | 5,854 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from config import LM_VOCAB_SIZE, LM_HIDDEN_DIM, LM_SEQ_LEN, LM_CHAR_SEQ_LEN, START_TAG, STOP_TAG, UNK_TAG, MASK_TAG
from common.modules import LockedDropout, WeightDrop
from common.splitcross import SplitCrossEntropyLoss
from common.wrappers import IMo... | [
"luungoc2005@gmail.com"
] | luungoc2005@gmail.com |
d8e1ab0778a17030a2ee03eccba776743384747f | c05577170c952fcac1e832259289a3ad37fbef91 | /group 6 project new.py | c5676068369e458519621f9d771769f7cdf5aac7 | [] | no_license | Bolodeoku1/PET328_2021_Class | b005bfd9c54c9293fb1bfe676a6ed4cf8df6ceae | 58e16e7e10a6b6727bc4e965f4801be8a6b15393 | refs/heads/main | 2023-07-03T06:43:56.010665 | 2021-08-09T21:28:00 | 2021-08-09T21:28:00 | 381,508,480 | 0 | 0 | null | 2021-06-29T22:07:00 | 2021-06-29T22:06:59 | null | UTF-8 | Python | false | false | 503 | py | B_comp = float (input('What is the bit cost?'))
CR_comp = float (input('What is the rig cost per hour?'))
t_comp = float (input('What is the drilling time?'))
T_comp = float (input('What is the round trip time?'))
F_comp = float (input('What is the footage drill per bit?'))
# convert inputs to numerals
# the formula... | [
"adewale.bolodeoku@stu.cu.edu.ng"
] | adewale.bolodeoku@stu.cu.edu.ng |
3667b52e372a2dccb9a702ddf3b9a2920f3cc1d3 | adc148caac17c04434e405aff0dcb1839a5b15b1 | /v2/poker_handler.py | eabee06ac30aa23dadedceb459e45f38b6db8469 | [] | no_license | Sophie-Williams/SolutionGambling | 9dca9f2a28d3de9bcc79fd652e0756bbf0935e7e | 4ed17002e2bf4916ab13f4938832220ecdaaa8e6 | refs/heads/master | 2020-05-19T15:32:22.060495 | 2017-08-02T04:03:30 | 2017-08-02T04:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,036 | py | import json
import traceback
import time
import deuces
import pika
import praw
import SG_Repository
import SG_Messages
import ConfigParser
import SG_Utils
config = ConfigParser.ConfigParser()
config.read("settings.config")
config_header = "Poker"
username = config.get("General", "username")
version = config.get("Gene... | [
"egan.c.wall@gmail.com"
] | egan.c.wall@gmail.com |
f0dd3b2420a5624df7d347b967ad3514ea27823d | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/test/sceventcastnomination/tanzaku_post.py | aeb7000b88fa6e55783a45f19b4974b7cf7135dc | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | # -*- coding: utf-8 -*-
from platinumegg.test.base import ApiTestBase, AppTestError
from platinumegg.lib.opensocial.util import OSAUtil
from platinumegg.test.dummy_factory import DummyType
from platinumegg.test.util.scoutevent import ScoutEventTestUtil
from defines import Defines
from platinumegg.app.cabaret.util.api i... | [
"shangye@mail.com"
] | shangye@mail.com |
3a06b6dd1ebce702804e9865497efe32c035f0ef | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/insights/latest/favorite.py | d55a6dac0ab47d25c6e220984056f3c50b84acf8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 9,210 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
9d4e46266c0eeba54c377658d47edf697b79c0f3 | 72c3731ba71ed8b0d18fda32feb33f4344542608 | /api/babelconverter/views.py | 18a831d9473e9d12d94db80c6e357f1c02f08e07 | [] | no_license | AugustoCPinheiro/OpenBabelConverter | 2603b3f07a489a29c8938ee9e3cf99d9f7c78b3e | 152eabd75639f1c9c4560ea8d995b8b0435b573d | refs/heads/master | 2022-12-10T05:09:59.507063 | 2019-10-17T22:23:13 | 2019-10-17T22:23:13 | 196,431,031 | 1 | 0 | null | 2022-12-08T06:41:50 | 2019-07-11T16:35:58 | Python | UTF-8 | Python | false | false | 2,214 | py | from django.http import HttpResponseRedirect
from django.http import HttpResponse
import os
import datetime
from django.views.decorators.csrf import csrf_exempt
import json
from django.core import serializers
from babelconverter import utils
import requests
from PIL import Image
import numpy as np
@csrf_exempt
def comp... | [
"augustocepinheiro@gmail.com"
] | augustocepinheiro@gmail.com |
402855c5f07be19f37f9e64bb5cec230be3bda3e | 7bb2b8a71e74e4a63a1c365ae63bc296b8daf502 | /project-euler/src/053.py | 7856ea133771b6eef557dd2be25ecd6233d5458c | [] | no_license | mseravalli/prog-pract | 3e038df2e59f8e377f9f2e4180162ed4c01cacce | 58ff9ced25b877685768003c36a0c29ad2387fe1 | refs/heads/master | 2021-01-17T09:33:24.524944 | 2013-09-16T11:42:53 | 2013-09-16T11:42:53 | 32,332,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | #!/usr/bin/python
import math
lim = 100
count = 0
for i in range(1, lim+1):
for j in range(i+1):
c = math.factorial(i)/(math.factorial(j)*math.factorial(i-j))
if c > 1000000:
count += 1
print count
| [
"marco.seravalli@gmail.com"
] | marco.seravalli@gmail.com |
cfe4bf82f8699e90bd73b3ef7cb353fc5e90bcac | ce3b5719811cbd530318590dda524ffeb7dc0c97 | /lista-de-exercicio-2/Questao12.py | 4a030ec83f3459f42bb68d9c728c086554b1f80d | [] | no_license | warleyken42/estrutura-de-dados | dbc6825d5b7a555dbed636011392ac91280ab6f5 | a039da5ab66f0e3bff779543a296a4e561ce0a51 | refs/heads/master | 2020-08-10T20:08:29.227728 | 2019-11-28T22:59:45 | 2019-11-28T22:59:45 | 160,401,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | horas = int(input("Digite quanto ganha por hora: "))
quantidade_horas = int(input("Digite o numero de horas trabalhadas:"))
salario_bruto = quantidade_horas * horas
cinco_porcento = (5 / 100.0) * salario_bruto
dez_porcento = (10/ 100.0) * salario_bruto
onze_porcento = (11 / 100.0) * salario_bruto
vinte_porcento = (20... | [
"warley-ft@hotmail.com"
] | warley-ft@hotmail.com |
366adcdd2354b540a6cb703281de83a7f577216c | b1c07da68cfaa7d770e1ac0da1f946aca0871d69 | /facebook.py | 2d46804b2548aff63ee9dc3c1fc81cfe56b9f22d | [] | no_license | bugresearcher/Python-Tool | 191fc9e10f4d61a68db3b705dab838913983c31a | 0ca43f407c0229a437179ddd0e67e87234692970 | refs/heads/master | 2020-03-21T21:35:00.055512 | 2018-06-28T21:52:57 | 2018-06-28T21:52:57 | 139,071,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,982 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import os
import sys
import random
import warnings
import time
try:
import mechanize
except ImportError:
print "[*] Please install mechanize python module first"
sys.exit(1)
except KeyboardInterrupt:
print "\n[*] Exiting program...\n"... | [
"noreply@github.com"
] | bugresearcher.noreply@github.com |
164f4ccbd1e5d977f9155e7c47cf8cebf91a3f3f | 9e92a66f1e2aa8b910673ea5839c406055114898 | /posts/migrations/0003_auto_20200520_1420.py | e2162ee27b27586871860c381626eedf490812ad | [] | no_license | alexlega/hw05_final | f9055cf7b6e7f00d9775d187d6499cbd8f80a2fc | 8557b7437e8ea5b240342ed1963ccfada2b87572 | refs/heads/master | 2023-06-03T23:24:45.287006 | 2021-06-13T09:48:58 | 2021-06-13T09:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # Generated by Django 2.2 on 2020-05-20 14:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20200518_1808'),
]
operations = [
migrations.AlterField(
model_name='group',
name='title',
... | [
"sorochinsky.alex@gmail.com"
] | sorochinsky.alex@gmail.com |
f476a782bb7c0fa3988eeb584d7ee79e3ad18377 | bb09de22997670f0f3c3c360fa20d6a5394b7aa0 | /tests/lambda_functions/build_test.py | a4a36f093d8703d3978fe432b6c0c83f22f96ae6 | [
"Apache-2.0"
] | permissive | securitywarrior/binaryalert | 4bda9de405f641eb7cdb48d83c42e5ddbd635032 | 548fbfb9fd913a74381ff58afed46a60f36b5312 | refs/heads/master | 2021-01-21T11:33:08.356220 | 2017-08-30T22:09:52 | 2017-08-30T22:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | """Test lambda_functions/build.py."""
import os
import tempfile
import unittest
from unittest import mock
import zipfile
from lambda_functions import build
@mock.patch.object(build, 'print')
class BuildTest(unittest.TestCase):
"""Test top-level build command."""
# pylint: disable=protected-access
def se... | [
"noreply@github.com"
] | securitywarrior.noreply@github.com |
5119426e1ed1aa1986eb3fece023820bdd09b97c | 9943e71076dc24be03b6d3576949476e2835156f | /mqtt_google.py | 77780c169f38a942d2ae66ea9fdfa82a3d4d87bd | [] | no_license | bransyah/Project_2 | d434bd1d57152f79ef0a21b8343f3560c47d829e | 9e263ac3a8149c76ff17a8bbe8049147b8e85401 | refs/heads/main | 2023-02-08T14:01:52.079511 | 2021-01-01T16:58:27 | 2021-01-01T16:58:27 | 322,575,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,400 | py | import datetime
import jwt
import ssl
import time
import paho.mqtt.client as mqtt
#Project ID of IoT Core
PROJECT_ID = "hsc2020-04"
# Location of server
REGION_ID = "asia-east1"
# ID of IoT registry
REGISTRY_ID = "fog"
# ID of the Gateway
GATEWAY_ID = "fog_rpi"
# ID of the Device
DEVICE_ID = "esp32_fog"
# Type of en... | [
"noreply@github.com"
] | bransyah.noreply@github.com |
2638d5a94f13b1dd9710696b782e2a9917a36ecf | d3efc82dfa61fb82e47c82d52c838b38b076084c | /ETF/etf_mysql/QueryEtfcountDB.py | c87ce03178907dbea9a4db749e8d62ffbca25e77 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import MySQLdb
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/mysql")
from mysql_config import *
def QueryEtfcountDB(ticker):
date = time.strftime('%Y%m%d', time.localtime(time.time()))
str = ('SELECT sum(component_share) from xtp_etf_componen... | [
"418033945@qq.com"
] | 418033945@qq.com |
89ff34b007ce902cc181bb8558322d1b36c921a2 | 42419e1bba2c6915fb3f9b89d64e27994d9763c5 | /src/network.py | d6a0066875f85f1d28301b0bb5be6eb677c60adc | [
"MIT"
] | permissive | xiamenwcy/Counting-ICCV-DSSINet | 904cae03ea99625e31c70c78a46c83e51fc8077d | 2582e5f6e117e63ef743c09318e70eae13bcc395 | refs/heads/master | 2022-02-22T17:08:41.058817 | 2019-10-29T15:29:15 | 2019-10-29T15:29:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,824 | py | from __future__ import print_function
import torch
import torch.nn as nn
from torch.autograd import Variable, Function
from torch.nn.modules.conv import _ConvNd
from torch.nn.modules.utils import _pair
from torch.nn import functional as F
from utils import compute_same_padding2d
import logging
from math import exp
impo... | [
"gek_u@foxmail.com"
] | gek_u@foxmail.com |
cbfb4ec1efcc22c8bed49f3d5112e308cf9f64db | 83ee7862590cf47efb0f38b39d1a0c4bf4d5a2f8 | /dl_tools/common/exception.py | c34149051c03636cc30b93dd8924343441ad947e | [] | no_license | lygztq/deep-learning-tools | f92523b4b67e842d7cd66681fa9151f8c088ebe3 | 7b8c3be8e2728a7066ffabce9adc33f8a95bb510 | refs/heads/master | 2020-08-28T08:29:01.977429 | 2019-10-26T03:39:29 | 2019-10-26T03:39:29 | 217,649,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | class EmptyAttribute(object):
pass | [
"lygztq@gmail.com"
] | lygztq@gmail.com |
8f6969872bdcbfe8e05ab30d2c37160924a1798e | 14c3de56e43e6ee2fd281c3c30c6a899c88a5636 | /lesson_5/jobparser/items.py | 490fc9a1eb156954514a96079ce667f97f22a76f | [] | no_license | Hadirback/python_data_parsing_course | 8b17ad4d62e4bd86c3ec270682b6350b5a9bcce8 | 46ee6f9fb7b9ea54cf7bfeecfe8da0dd2072d61a | refs/heads/master | 2022-10-17T07:15:06.641823 | 2020-06-08T20:24:27 | 2020-06-08T20:24:27 | 263,717,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class JobparserItem(scrapy.Item):
# define the fields for your item here like:
name = scrapy.Field()
salary = scrapy.Field()
salary_mi... | [
"mail.evgeny.filippov@gmail.com"
] | mail.evgeny.filippov@gmail.com |
011abdf7e55854aad8d948f584ab8fcc499a4084 | 3618700bbeb5dd36b01ab3a39fe36e1a09de3d1e | /crawler/Trst1.py | 0cb7a556d4ab42c0a91b4d11a01ff151e915f88b | [] | no_license | Guaijs/Sql_injection_detection | d2c6d4ca0a45781ab86b0b55cbf0191ae38d6173 | 6d00a1859f9dd549c700e0768d19db93cf480065 | refs/heads/master | 2022-06-02T10:38:08.629298 | 2020-05-05T14:32:38 | 2020-05-05T14:32:38 | 250,199,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,322 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 29 14:01:28 2018
@author: ESionJL数据猫
question:1.当前url若爬取到的pagelinks为[],则将其移除visited列表。
2.spiderpage()函数中,当前url爬取到的网页为UNknown,会报错,如何规避,并将此url移除。
3.返回title为空
4.网站不可加载
5.过期网站,垃圾网站
"""
import re
import requests
from bs4 import BeautifulSoup... | [
"1249697647@qq.com"
] | 1249697647@qq.com |
c772b810a9760e5ff8cbb46d46b9a06bb0bc6a44 | 626eb6d26cfbf605da6948e18ae265bbdb393908 | /txircd/modules/sakick.py | 02db8c8825db25c4aa0109423f069d7b062e3d47 | [
"BSD-3-Clause"
] | permissive | smillaedler/txircd | 3e4cf8ca4d61876b8b5672cb0d4fa4729cb0fb10 | 6a5a65edb9d9ed383a14dc7fa758071805220a04 | refs/heads/master | 2021-01-17T06:09:57.960863 | 2013-07-21T03:36:24 | 2013-07-21T03:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | from twisted.words.protocols import irc
from txircd.modbase import Command
class SakickCommand(Command):
def onUse(self, user, data):
cdata = data["targetchan"]
udata = data["targetuser"]
reason = data["reason"]
cdata.sendChannelMessage("KICK", udata.nickname, ":{}".format(reason), ... | [
"ElementAlchemist7@gmail.com"
] | ElementAlchemist7@gmail.com |
8b748833500e66fb41053714a4da66557c56381b | 0347ccdb695e43c79fc4907d283cc82ceb72355e | /model.bidaf+cnn.py | 934c44906aa35d26f1abcc71a967ba81fffe3e4b | [] | no_license | daguix/cs224n-assignment4 | a8d4d277ad174453f92ed45af788766b100c718f | b71a208b98516bebb3b7f266b8154ba45111ac6c | refs/heads/master | 2020-03-13T21:38:21.309076 | 2018-05-18T15:56:50 | 2018-05-18T15:56:50 | 131,300,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,068 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import time
from os.path import join as pjoin
import numpy as np
import tensorflow as tf
from utils import Progbar
from evaluate import evaluate
import numbers
from evaluate import evaluate
from tensorflow.contrib.layers import xavier_initializer
from tensorflow.pyt... | [
"amaroukaci@MacBook-Pro-de-Amar.local"
] | amaroukaci@MacBook-Pro-de-Amar.local |
0ef8047e301f8b79d8060b4e0aa3ee0698f6838f | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/operations/_directory_role_template_directory_role_template_operations.py | e7eb0324c20421ffb6c86524e22d669d23d9b2ee | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,977 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
f55900e54ef00863d8b784cba0e718dd5da9d58b | e00d41c9f4045b6c6f36c0494f92cad2bec771e2 | /hardware/misc/redshift/actions.py | f3306205d733debeae52481a7ff60929d4d62998 | [] | no_license | pisilinux/main | c40093a5ec9275c771eb5fb47a323e308440efef | bfe45a2e84ea43608e77fb9ffad1bf9850048f02 | refs/heads/master | 2023-08-19T00:17:14.685830 | 2023-08-18T20:06:02 | 2023-08-18T20:06:02 | 37,426,721 | 94 | 295 | null | 2023-09-14T08:22:22 | 2015-06-14T19:38:36 | Python | UTF-8 | Python | false | false | 948 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():... | [
"muscnsl@hotmail.com"
] | muscnsl@hotmail.com |
55643a0d93c4f29688a49a0228d26ac0e38d1ca6 | be98d0d6301b93523207e9be4d35e9c0cc9fc566 | /shopnt/prod_to_xls.py | c6236501993cb69d1637b0c302088eb4afa23baf | [] | no_license | teacherSsamko/crawler | a0d9028665c4f5533fc739bf869f803ba814ff4d | 1cd4a3c4c5140d015f49f444ec08321ad6ad24d4 | refs/heads/main | 2023-02-23T23:23:56.122758 | 2021-01-31T23:59:53 | 2021-01-31T23:59:53 | 323,949,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import os
import datetime
from openpyxl import Workbook, load_workbook
from pymongo import MongoClient
mongo = MongoClient("mongodb://localhost:27017")
db = mongo['aircode']
col = db['shopnt_prod']
today = datetime.date.today()
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
prod_xls = Workbook()
rows = []... | [
"ssamko@gdflab.com"
] | ssamko@gdflab.com |
5d6bc8f73dad42c04c8512ac6b4eb900548dd9ef | c089ca6a1dbb4c4a9ed039adf3a3d0f768039209 | /factory/client.py | 0444831104c4aa4cca87558ab6ae586cd030112e | [] | no_license | shubham-chhimpa/design-pattern-python-3 | 3e98f2c742935b39e29ede7a3acf58ceb716e097 | 939d0455a26a7a723c73dd042df20def3c5d68a9 | refs/heads/main | 2023-07-01T17:02:05.705384 | 2021-08-01T13:49:46 | 2021-08-01T13:49:46 | 391,400,536 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from factory.chair import Chair
from factory.chair_factory import ChairFactory, ChairType
if __name__ == '__main__':
chair: Chair = ChairFactory.get_chair(ChairType.BIG)
print(chair.get_dimension())
| [
"chhimpa.shubh04@gmail.com"
] | chhimpa.shubh04@gmail.com |
b81c1c5060c9040565fb0e296101b4a288efed15 | c4f4e59e998a093b7a005323ee36a0ab1ed2738c | /NLO_simulation/src/genericCrystal.py | b1f9108a77c52a6a018871e68e5cb4c08adce1d4 | [] | no_license | patinkaew/slac_mec | 98a4842fda0685166108f984dc2504e7864ed6c9 | bdce4135a8a0617d2dd41ee80309b7d6f2d698bb | refs/heads/master | 2022-11-12T10:24:48.988523 | 2020-06-25T02:54:35 | 2020-06-25T02:54:35 | 274,289,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,129 | py | import numpy as np
from pandas import read_csv, DataFrame
import collections
from pynlo.media.crystals.CrystalContainer import Crystal
from utils import *
class genericCrystal(Crystal):
def __init__(self, data = {}):
super().__init__(data) # only contains length and enable_catching
self.data = coll... | [
"pinkaew@stanford.edu"
] | pinkaew@stanford.edu |
680c21cf0706bd61c182757516285b0c3d931fc4 | 081641354e1a685fc3bb504383bd85b09b47fede | /Pub/urls.py | 1296cdcd8db62fccb0aa9fb5d3bf1f5530b0b7b5 | [] | no_license | nitnelavsT/PeakPoke | e0771afbdbee191a2f224e24531eee38d9e956d3 | 816c655f9b91e6cfd54b694607b417e56d9d34d6 | refs/heads/main | 2023-04-23T17:54:52.342793 | 2021-04-13T17:08:21 | 2021-04-13T17:08:21 | 348,394,175 | 1 | 2 | null | 2021-04-08T16:21:25 | 2021-03-16T15:14:33 | Python | UTF-8 | Python | false | false | 286 | py | from django.conf import settings
from django.conf.urls import url
from django.contrib import admin
from django.urls import include, path
from . import views
urlpatterns = [
path('', views.PubView, name="Pub"),
path('<Pub_id>', views.PubDetail, name="DetailPub"),
] | [
"noreply@github.com"
] | nitnelavsT.noreply@github.com |
6ac225ca6bffd67999e217a1294f2c3b91f43186 | f200553bc6c5222d2bc7de5bd62835c30af3e5ed | /flask_sketch/handlers/api_framework_handler.py | f733056fff62a3323147362fe522314a66fa7c85 | [
"MIT"
] | permissive | ericsouza/flask-sketch | 6a69f3dd143ea30d4e4c72402decb546e1836bbc | 65625a567e5492b3787c5da3ba5e12b1473783c4 | refs/heads/master | 2023-03-27T05:36:23.030008 | 2021-03-17T00:57:22 | 2021-03-17T00:57:22 | 281,234,890 | 11 | 2 | MIT | 2021-03-30T01:32:50 | 2020-07-20T22:03:49 | Python | UTF-8 | Python | false | false | 4,578 | py | import os
from os.path import join as pjoin
from flask_sketch import templates
from flask_sketch.sketch import Sketch
from flask_sketch.const import requirements as reqs
from flask_sketch.utils import GenericHandler
def restx_handler(sketch: Sketch):
if sketch.api_framework == "restx":
sketch.add_requirem... | [
"ericsouza0801@gmail.com"
] | ericsouza0801@gmail.com |
148e209d46c7be46d45fb222ec36e6fd80c00963 | 1514d33d13c03b2802b07f4df553d6b6085d9e05 | /Objects_and_Selections/list_colors.py | ac2bc2f4c708685f6fe7df9c8cb99c72c33cfd97 | [] | no_license | inchoate/Pymol-script-repo | 8eeab25ffc1c912454edac86ce3363b7a97dc8b9 | c31b8ba45bf36880b3bbac12bc5037151bb5d187 | refs/heads/master | 2021-01-16T07:09:10.847023 | 2011-04-06T07:17:28 | 2011-04-06T07:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | #
# This is how to do it from the PyMOL command line or .pml script:
#
iterate all, print color
#! /usr/bin/python
#
# and this in a Python script
#
import pymol
pymol.color_list = []
cmd.iterate('all', 'pymol.color_list.append(color)')
print pymol.color_list
| [
"jlec@j-schmitz.net"
] | jlec@j-schmitz.net |
fbf516fe4394792fc23ef89eabd0e7246aecf87f | 4bbac84a15fd45bbd5639588c6fd137b993e1700 | /urlshortener.py | e0f1328f7159d1a851b1cbb1a7bde0eb42182ca9 | [] | no_license | omini25/Python-Projects | 5fe87394f3eac874840a8021c3e24408ff5863ff | 9733a0b519fd1d3f12888b2f2d5d67a6952e5d04 | refs/heads/master | 2023-03-24T21:43:13.859673 | 2021-03-24T09:49:22 | 2021-03-24T09:49:22 | 351,025,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import pyshorteners
url = input('Enter url to be shortened: ')
shortener = pyshorteners.Shortener()
shorts = shortener.tinyurl.short(url)
print(shorts) | [
"david.igiebor@yahoo.com"
] | david.igiebor@yahoo.com |
c25921b5bb4731635cf3d1b7bd4d68d97291f809 | 38fa16204c98f3b76d7b50f091c4be37d0a701b4 | /practise/008/userinfo.py | dba81c40f8e713f13ee66850a1abaf036e3c40e5 | [] | no_license | wangyouyan/Python | 989ca5be89d63ea729350628ed1236c95d17b38a | 164221a6e5c1216b310ec5bfbdeb5a314fdf07ea | refs/heads/master | 2020-04-05T23:19:27.849083 | 2017-02-10T12:12:56 | 2017-02-10T12:12:56 | 46,403,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#Author:Rain Wang
#E-mail:wyyservice@gmail.com
def get_user():
#obj = SqlHelper()
obj = SqlHelper.instance()
obj.fetch()
print id(obj)
return '1'
def del_user():
#obj = SqlHelper()
obj = SqlHelper.instance()
obj.remove()
return '1' | [
"wyyservice@gmail.com"
] | wyyservice@gmail.com |
f692582b38415ba143f8127110a30effb73043cf | 4b3b541280aecc745cc566d1f23ffdaf89ecbf7e | /day11-1.py | b14f2329995e593a25d2998c0ae105ff6db99b40 | [] | no_license | BenSchomp/adventofcode2018 | f075320f51d16baaf3426c5fe8f2d57be851a089 | bacd1f83460adbe3965c972791f096f8887fcc50 | refs/heads/master | 2020-04-09T06:07:23.310349 | 2018-12-12T06:40:59 | 2018-12-12T06:40:59 | 160,099,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | serialNumber = 8868
def getCellScore( x, y ):
rackId = x + 10
powerLevel = rackId * y
powerLevel += serialNumber
powerLevel *= rackId
powerLevel = int(powerLevel / 100)
powerLevel = powerLevel % 10
powerLevel -= 5
return powerLevel
def getSquareScore( x, y ):
squareScore = 0
for i in range(3):
... | [
"ben@benschomp.com"
] | ben@benschomp.com |
931ff4decea9ba0390f54c1e38fc3db017d63a1b | aecc2b15fe59e9678ff480487d04155ee8b1723c | /Lesson5/6.py | 3ff0180cdc2eedc744742ada8941bacecada1a8a | [] | no_license | oLONIo/python | 4ba9038c1c1cfd9220aa0ae8176b860fa264f55e | 1d23b026727c9270a016a26366eafe333671a3b4 | refs/heads/main | 2023-08-12T07:24:41.413488 | 2021-09-27T21:40:09 | 2021-09-27T21:40:09 | 402,148,179 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | dict = {}
with open('test6.txt', 'r', encoding='utf-8') as kek:
for line in kek:
hrs = line.replace('(', ' ').split()
dict[hrs[0][:-1]] = sum(int(i) for i in hrs if i.isdigit())
print(dict) | [
"zomby2005@gmail.com"
] | zomby2005@gmail.com |
9dccf3fce678428834b1b6d44b3078a9f3d10912 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /qNQkYzY8GpiFMmndh_15.py | 04665608d5fe8d6044d89c6b6ab5a3f91fff7fbe | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | """
Write a function that connects each previous word to the next word by the
shared letters. Return the resulting string (removing **duplicate characters**
in the overlap) and the **minimum** number of shared letters across all pairs
of strings.
### Examples
join(["oven", "envier", "erase", "serious"]) ➞ ["ov... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
eb89e1fda1e5910212522c3fc8577fa1876daf61 | 69b3fad3677f6747e8f9a61fd0f1d4b76dda1a39 | /setup.py | fb3e9eef276fafa53412e4d6afe00a487870e47c | [
"MIT"
] | permissive | xlash/utilities | 095afe9628aa976a6466111f45a75ce9c2ee2155 | 5be5b3389b9185bc2a7c33c73d582bd4da03f9dd | refs/heads/master | 2021-11-26T04:23:31.244729 | 2021-11-20T20:32:12 | 2021-11-20T20:32:12 | 76,275,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from setuptools import find_packages, setup
from utilities import __version__
setup(
name='utilities',
version=__version__,
license='BSD',
author='GNM',
author_email='solutiondb@gmail.com',
description='Utils lib for utils methods',
url='https://github.com/xlash/utils',
install_require... | [
"guillaume.nourry.marquis@gmail.com"
] | guillaume.nourry.marquis@gmail.com |
148becdb0e76e3891732d79b23892af820fa597a | a7bca6f23b047860b1f00f1e49a9cdaf30a1325c | /src/fiwtools/utils/io.py | 8f7f754d2df1811072b09f4fbfd095a12289286f | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | visionjo/FIW_KRT | ad0a14bf7433bdee461562dfea5e0f4068e0d4ba | bc07ba242ccaf762a55c80204d7da05d55847ec5 | refs/heads/master | 2022-10-03T05:27:32.698912 | 2019-09-11T19:13:00 | 2019-09-11T19:13:00 | 103,139,927 | 28 | 8 | MIT | 2022-09-19T19:14:09 | 2017-09-11T13:33:54 | Python | UTF-8 | Python | false | false | 6,500 | py | from __future__ import print_function
import io
import os
import string
import warnings as warn
import scipy.io as scio
import numpy as np
from .common import is_numpy
def csv_list(imdir):
"""Return a list of absolute paths of *.csv files in current directory"""
return [os.path.join(imdir, item) for item in... | [
"robinson.jo@husky.neu.edu"
] | robinson.jo@husky.neu.edu |
0cf0e7bca8f20419ea4d9ea8e7f0ef30f50527ee | 9c5e09b4f048a13961c0f4a1370a7bf01a421d92 | /gym/vector/utils/shared_memory.py | b9437814da8b9effa7bf5d1ba032e233e777c442 | [
"MIT"
] | permissive | StanfordVL/Gym | daa8c780f5ace3e33c3bf0f7109f40a0a820d59e | 5e14d19e57d8ba318b97a5edda0ab2ea591dea08 | refs/heads/master | 2023-02-03T02:44:40.185713 | 2020-12-17T14:10:16 | 2020-12-17T14:10:16 | 280,579,514 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | import numpy as np
import multiprocessing as mp
from ctypes import c_bool
from collections import OrderedDict
from ... import logger
from ...spaces import Tuple, Dict
from .spaces import _BaseGymSpaces
__all__ = [
'create_shared_memory',
'read_from_shared_memory',
'write_to_shared_memory'
]
def create_sh... | [
"shawn@DNa1c068f.SUNet"
] | shawn@DNa1c068f.SUNet |
2cfce4c854012a75cc66bb76be74ba258699c121 | 55477438db40d977c78292ca89af3a517139dbff | /login_and_reg/settings.py | ac2441384f52b35ca46734d39739ee5aef535132 | [] | no_license | Wilsonbluong/The-Wall | aa1528df6eb7f07c5092dfa9db8d258443bbb71c | 3524ed0b716804d3bc7cc791d6ff7a80d4551702 | refs/heads/master | 2023-01-06T02:05:21.361078 | 2020-10-22T18:56:38 | 2020-10-22T18:56:38 | 306,432,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | """
Django settings for login_and_reg project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"wilsonbluong@gmail.com"
] | wilsonbluong@gmail.com |
1b8eaa30f76e70cfc285f4f677afdfc236302cae | ee692010c2596a31848b0273db1d054e3fb0d208 | /MetaData/python/PU_MixFiles_2017_miniaodv2_310/mix_2017MC_GJets_HT-40To100_TuneCP5_13TeV-madgraphMLM-pythia8.py | 4ae63072d88142e6f1113a614b3070efeef65e66 | [] | no_license | cms-analysis/flashgg | 67e2dca6070e7a0e876d19d9b3ad6b021485bf28 | 4edea8897e2a4b0518dca76ba6c9909c20c40ae7 | refs/heads/dev_legacy_runII | 2023-06-18T05:40:10.010854 | 2023-05-30T07:53:40 | 2023-05-30T07:53:40 | 20,220,358 | 27 | 205 | null | 2023-05-30T07:53:42 | 2014-05-27T13:10:32 | C++ | UTF-8 | Python | false | false | 3,048 | py | import FWCore.ParameterSet.Config as cms
# configuration to model pileup for initial physics phase
from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects
from SimGeneral.MixingModule.mixPoolSource_cfi import *
from SimGeneral.MixingModule.digitizers_cfi import *
mix = cms.EDProducer("MixingModule",
digi... | [
"noreply@github.com"
] | cms-analysis.noreply@github.com |
94a36e04ac2d6a5b3d6282e7a6e18b4676c908cc | 39502ddee170646c55fc13b01626a51f08c9b02b | /main.py | 88bc403d25f54bbc912895c21b6786cdfc90a30c | [
"MIT"
] | permissive | PWN0N/Working-Time-lapse | 9688c8a8210a72654862582c96e1dd107a0670ed | 1ebe4cb1a669a1b77528b4f2583e27fdd4e5953b | refs/heads/master | 2020-12-07T23:35:45.072572 | 2020-01-09T14:57:13 | 2020-01-09T14:57:13 | 232,826,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,678 | py | import signal
import numpy as np
from PIL import ImageGrab
import cv2
import time
import sys
import os
flips_time_mins = 30
interval = 5 # seconds
num_frames = flips_time_mins*60/interval
num_frames = int(num_frames)
year = -1
month = -1
day = -1
out_fps = 24
cammode = 0
shutdown_msg = False
def signal_handler(sign... | [
"juangshin@gmail.com"
] | juangshin@gmail.com |
dc406b8fcccc1b7a9739c3696ab62e5757aea49e | cbb7ac0cc690c2d3af1873a876cda7ea99776424 | /owllook/fetcher/cache.py | fdccbe18e5fe86cc3c409c844afb886bf7c1dbf6 | [
"Apache-2.0"
] | permissive | demidroid/owllook | 8c4dfab3d18da3d8af143f3d78e378e74e8c4fc0 | eb385b34af3acad55829c5584dc69b7275cc398f | refs/heads/master | 2021-05-14T10:46:24.722794 | 2017-09-18T12:43:12 | 2017-09-18T12:43:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,187 | py | #!/usr/bin/env python
import aiohttp
import asyncio
import re
import async_timeout
from bs4 import BeautifulSoup
from aiocache.serializers import PickleSerializer
from aiocache.log import logger
from aiocache.utils import get_args_dict, get_cache
from urllib.parse import urlparse, parse_qs
from owllook.database.mongo... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
d0ecd64306843d99786527eb755a6f027b3eabf0 | 6b0474d4402c8c64264658472dce4880fdf5faa7 | /server/env/bin/pip | 8a9c5f33980e8ad281ccd0474633414177c48993 | [] | no_license | ndanekov/SoundEtitor | a6603856d2befa2618510fc28e5bc54aaea82b48 | f8bb5df23db107ffe1c580761688cfbeeb5e1586 | refs/heads/master | 2021-05-23T10:09:51.890871 | 2020-04-24T11:45:24 | 2020-04-24T11:45:24 | 253,235,032 | 0 | 0 | null | 2021-01-05T23:51:18 | 2020-04-05T12:56:38 | Python | UTF-8 | Python | false | false | 264 | #!/home/demo/webapps/SoundEditor/server/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ndanekov@visteon.com"
] | ndanekov@visteon.com | |
0de89bf37b2188627d7e101337a48dc428a6e524 | 0ddc60e3df2e8017c934fef4c4c50e757a3a1093 | /bookpatient/urls.py | cfe46b25c848084d440d2b4e066e9f8709404da1 | [] | no_license | AyanNandaGoswami/OnlineBedBookingSystem | 46ac8d155774bba89f2785bf5a44095b7214859f | 922aa61d05ef9942f3134e8f6eb870916beb8b37 | refs/heads/master | 2023-04-26T15:32:47.535157 | 2021-05-24T13:30:27 | 2021-05-24T13:30:27 | 365,438,714 | 1 | 0 | null | 2021-05-24T13:30:29 | 2021-05-08T06:36:12 | JavaScript | UTF-8 | Python | false | false | 173 | py | from django.urls import path
from .api import BookBedAPI
app_name = 'bookpatient'
urlpatterns = [
path('add-new-bed/', BookBedAPI.as_view(), name='book_new_bed'),
]
| [
"ayan02472@gmail.com"
] | ayan02472@gmail.com |
8a1c7f9881a66c19227307b4c8279944234b51da | 232e351b56bd0f281219459255d14b25f2743df9 | /skintonemodel.py | 0d504609afe085aa04a740bdcab32f24f72aae17 | [] | no_license | Fox520/RandomScripts | 9e083d5c03668b924bf77b0eb83c42c9d263e8c0 | 9939c616615faf87b05fda562d8cb6c84cd1adf8 | refs/heads/master | 2022-11-19T01:14:13.340451 | 2020-07-09T09:01:47 | 2020-07-09T09:01:47 | 275,651,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("out.csv")
hsn_counts = dict(df["Client Skin Tone"].value_counts())
fig, ax = plt.subplots()
keys = list(hsn_counts.keys())
values = list(hsn_counts.values())
ax.bar(keys, values, label="count")
for a, b in zip(keys, values):
plt.text(a, b, str... | [
""
] | |
82b51fe93c8b41331689f871b18a4710ae4130c9 | 3e7000dfb8d818ffd439a6bd20b86cc616ec93ab | /BinaryTreeToBinarySearchTree.py | a6fdd94e54918b478f2dd66f232fe40409aa2ab3 | [] | no_license | marsunique/LeetCodeOJ | 56c32f27a5eeb88f6c932d3c224fef6aa572036f | 2bcd0f6a704346cdac4ecccd6c0baef579d38fac | refs/heads/master | 2021-01-24T11:00:43.864200 | 2017-12-04T15:06:13 | 2017-12-04T15:06:13 | 70,289,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # 1) Create a temp array arr[] that stores inorder traversal of the tree. This step takes O(n) time.
# 2) Sort the temp array arr[]. Time complexity of this step depends upon the sorting algorithm. In the following implementation, Quick Sort is used which takes (n^2) time. This can be done in O(nLogn) time using Heap S... | [
"marsunique@gmail.com"
] | marsunique@gmail.com |
49ff6d0647e90328d83dcb70674c331fa8cdfba9 | bc208f555386f71c27668d6b470ccf77941be288 | /build/FlaskApp/utility/Status.py | 60a9a74c3d18b0baba531163eb6780bf30a8e4ac | [] | no_license | sohan99/openstackVM | f9ae8b63bdf571ff5ad19b3b128adc4fa77d7c8f | a4598a82fc0e82f0d1824cd8bad5d681cbf61723 | refs/heads/master | 2016-09-06T11:38:01.438271 | 2015-10-13T20:51:07 | 2015-10-13T20:51:07 | 42,589,521 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py |
import sys, getopt
import configReader
import LogDump
from novaclient import client
import novaclient.exceptions
class status:
def __init__(self):
authDict = {}
KEY_FILE = "key.conf"
try:
authDict = configReader.readConfigFile(KEY_FILE,"KeystoneAuth")
self.nova=client.Client(authDict['versionnumber'], ... | [
"sohanspoojary99@gmail.com"
] | sohanspoojary99@gmail.com |
d38341b1d1618080340bdc9c5cee50ce678b5380 | 9577168f8a3206199d1be7c388b88d0458b4c1ed | /createapi.py | 3cea52fadc3aeba83ec6640ef0644f711ebaa605 | [] | no_license | julie-norris/interview-take-home-challenges | 4a3f297ad26e7e688b6e03c0cc39c63a9e68a5d9 | 14de8cb72ebe6b6cf4e7bb330e20f372e07c8a68 | refs/heads/master | 2020-04-02T19:49:52.611353 | 2018-12-13T23:22:17 | 2018-12-13T23:22:17 | 154,747,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,795 | py | from flask import Flask, request, jsonify, render_template, flash, session, redirect
from flask_restful import Api, Resource,reqparse
from datetime import date, time
from datetime import datetime
import uuid
app=Flask(__name__)
api = Api(app)
class Trips():
def getOpenings(self):
"""Get time openings for current w... | [
"noreply@github.com"
] | julie-norris.noreply@github.com |
8020cb403883467ba6b46d36b37b6b9b20ceabd1 | 902371721144a9883a6dee2897992f0389cd4d65 | /manuscript_analyses/exac_analysis/src/reformat_annots_exac.py | f1878d7aad5abc75de70ae359845965255f88853 | [
"MIT"
] | permissive | keoughkath/AlleleAnalyzer | e6242afc980da8ce9ed673c12aa3b928af35c470 | a33adc53f515fe5f00e519b703dd9abf006b2804 | refs/heads/master | 2022-02-09T17:22:21.106039 | 2022-02-01T02:24:37 | 2022-02-01T02:24:37 | 118,212,667 | 12 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | import pandas as pd
in_dir = '/pollard/data/projects/AlleleAnalyzer_data/exac_data/exac_annotated_variants_by_chrom_parallel'
out_dir = '/pollard/home/kathleen/projects/AlleleAnalyzer/manuscript_analyses/exac_analysis/dat'
cas_list=['SpCas9','SpCas9_VRER','SpCas9_EQR','SpCas9_VQR_1','SpCas9_VQR_2',
'StCas9','StCas9_2... | [
"keoughkath@gmail.com"
] | keoughkath@gmail.com |
d6276e415487898851243f5c53a4f4dd06e136eb | 5485db6dd499451327934c18f2fdcd51e8076d54 | /src/py/flwr/common/__init__.py | bcda11c3db5cbfc24718881e0d4df52c076e9e62 | [
"Apache-2.0"
] | permissive | zliel/flower | 4ccfb87b232ab94afcbdf69ea83c878261ac625e | c5a4b2718bed5ec73a3838cc997c38b5ba4862e7 | refs/heads/main | 2023-02-12T03:49:14.989260 | 2021-01-08T15:50:35 | 2021-01-08T15:50:35 | 328,227,435 | 0 | 0 | Apache-2.0 | 2021-01-09T19:09:29 | 2021-01-09T19:09:28 | null | UTF-8 | Python | false | false | 1,761 | py | # Copyright 2020 Adap GmbH. 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"noreply@github.com"
] | zliel.noreply@github.com |
94201870b49b0bb7c6b9c0e36a1f4c0cfcda92d2 | 8d0d664839f2f2c48e9e919d2c17bd4fae7812ac | /texts_to_self/config.py | 51a75a2fcd074fbeb8a2ed4cbcdcef88e60d3917 | [] | no_license | iMel408/texts_to_self | 15a3fc650753684cd92570cf168b3947c1fd4a41 | 5b53e9dbc0c839bb19f83262282da474c95fee9f | refs/heads/master | 2022-12-13T08:49:20.099017 | 2019-07-07T14:27:34 | 2019-07-07T14:27:34 | 186,907,626 | 1 | 0 | null | 2022-12-08T05:10:31 | 2019-05-15T21:51:37 | Python | UTF-8 | Python | false | false | 470 | py | import configparser
config = configparser.ConfigParser()
config.read('texts_to_self/env.cfg')
os.environ['SECRET_KEY'],
SECRET_KEY = config['flask']['secret']
TWILIO_ACCOUNT_SID = config['twilio_api']['sid']
TWILIO_AUTH_TOKEN = config['twilio_api']['token']
FROM_PHONE = config['phones']['twilio']
ADMIN_PHONE = con... | [
"melissascampini@gmail.com"
] | melissascampini@gmail.com |
cd05b9c66b95fe844a81ef8918fdebfd11c81376 | b86fae199d0d1eb62be6edc8c56c0dae2b0077a9 | /PythonTutorials/flask_app.py | 19dc5e0b705916373d31914d39fdd2315d7a32e1 | [] | no_license | Tudi/TempStorage | 5657fae8876c055d85f535636a18763676bfac9b | 1fcf4df2fdda1ebf34c818a1df0d777e4cc9a864 | refs/heads/master | 2023-07-23T12:47:34.292055 | 2023-07-17T11:24:49 | 2023-07-17T11:24:49 | 55,682,824 | 10 | 5 | null | 2022-12-07T17:50:27 | 2016-04-07T09:42:49 | C | UTF-8 | Python | false | false | 1,961 | py | import datetime
from flask import Flask, request, render_template
from peewee import Model, CharField, DateField, SqliteDatabase
app = Flask(__name__)
app.config['DEBUG'] = True
app.config["Environment"] = "Development"
@app.route('/index')
def Hello_world():
return "Hello world"
@app.route('/test/<int:first_... | [
"jozsab1@gmail.com"
] | jozsab1@gmail.com |
415beba6c61cf7ecef07ef791a319764562c8b6f | 0b64701dbf438a868d936a47996ec01575519fe5 | /WHOISinfo/venv/lib/python3.8/site-packages/simpleurllib3.py | d700a032ac8c4e41a3c0b429d0a71d29894840ad | [] | no_license | mhNi00/APIprograms | 1f1d27064827f33052e153981a8d982f6ed73d2c | 23809d29770c3c8eae2d654a73d2b9d468bc9972 | refs/heads/main | 2023-05-15T03:02:02.508012 | 2021-06-08T18:19:01 | 2021-06-08T18:19:01 | 359,907,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,404 | py | """
Easy to use urllib3 simplifier.
Usage:
```
>>> client = simpleurllib3.Client()
>>> resp = client.get('http://httpbin.org/ip')
>>> resp.status
200
>>> resp.data
"{'origin': '127.0.0.1'}"
"""
import warnings
import pkg_resources
import urllib3
import certifi
import luddite
class OutdatedModule... | [
"michalnawarecki@wp.pl"
] | michalnawarecki@wp.pl |
12fed0bc773dcdc74c7354af413d3ba82c78af68 | 8015e3ba1cbc677b499bf9c4c4910189800ce3bf | /python/arithmetic-operators/main.py | cd902d62758fadaff60f837cdae7a9db50529c31 | [] | no_license | wanariffoo/coding-practice | 48db6a2ae7b0df5d525db596ff9f279deb7aa958 | 5689e4b3be58918d9b41a9f05e24797a5f15de0f | refs/heads/master | 2020-09-01T13:30:26.724563 | 2020-08-02T22:58:05 | 2020-08-02T22:58:05 | 218,968,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # https://www.hackerrank.com/challenges/python-arithmetic-operators/problem
if __name__ == '__main__':
a = int(input())
b = int(input())
print('{0} \n{1} \n{2}'.format((a + b), (a - b), (a * b))) | [
"wanarif_foo@hotmail.com"
] | wanarif_foo@hotmail.com |
34215bb3f33e0ccc1fb0937cbb976722eb8b69d8 | f88dc05250d7bb954c9ae28aed55b1df4fe6241d | /NotiManagerAdmin/cocos2d/tools/gen-prebuilt/gen_prebuilt_libs.py | d8d3e06119e5517250300b7581fafe568e35e384 | [] | no_license | RoughHands/NotiManagerClient | 73c73e18d16b3fa18b0b3a7c4f136e0d89d48904 | 6d3716d6746c6b0454d601950a4636ed499974f6 | refs/heads/master | 2021-01-18T11:00:05.037575 | 2015-10-11T06:12:04 | 2015-10-11T06:12:04 | 23,171,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,486 | py | #!/usr/bin/python
# ----------------------------------------------------------------------------
# generate the prebuilt libs of engine
#
# Copyright 2014 (C) zhangbin
#
# License: MIT
# ----------------------------------------------------------------------------
'''
Generate the prebuilt libs of engine
'''
import os
... | [
"sinhyub@gmail.com"
] | sinhyub@gmail.com |
a5d01803894a913c19db18352f78d138ce00dd9c | 3577df7abbb49dc3e83dc116cfb9e9e9f44bfbe9 | /Init.py | bb145731f27124e5c2a5ebcd9424de615b771306 | [
"MIT"
] | permissive | Garretming/IMSiLopKit | 646fb3b4029f52caa0930549607e734f9b9af4c6 | a55da2da9a055fbc96ccf97cce738405a6d8523b | refs/heads/master | 2023-05-14T00:36:55.929067 | 2021-06-10T10:07:36 | 2021-06-10T10:07:36 | 375,615,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | '''
Author: your name
Date: 2019-03-08 15:17:28
LastEditTime: 2021-06-10 15:49:40
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: /IMSiLopKit/pod_auto_script/gitInit.py
'''
#!/usr/bin/evn python3
#coding=utf-8
import os
import sys
def parseArgument():
# 1、提交仓库组名 2、项目名 3、提交消息备注
ar... | [
"Please make sure you have the correct access rightsand the repository exists.Completed with errors, see abovePushing to gitee.com:Garret_829/ghiot.gitgit@gitee.com: Permission denied (publickey).plyy520523@qq.com"
] | Please make sure you have the correct access rightsand the repository exists.Completed with errors, see abovePushing to gitee.com:Garret_829/ghiot.gitgit@gitee.com: Permission denied (publickey).plyy520523@qq.com |
b931342b6d9004f19690c272364da7cf8f82d932 | 343bfc5758566f31bb4f49ad870d81102b8a8cd2 | /inference.py | 9481a031a6f4116a90beee2351e9dbbaf7a3d17f | [
"Apache-2.0"
] | permissive | anminhhung/GAN-Pytorch-Template | fd3875a3837cff7a868f60568da36ff58055df21 | 5ea1a43a4b9957c1a683477645dca6fcedf3c313 | refs/heads/master | 2023-04-01T19:59:40.256016 | 2019-02-24T16:00:10 | 2019-02-24T16:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import numpy as np
import cv2
import torch
import torch.nn.functional as F
from torch.autograd import Variable
import torchvision.transforms as transforms
class TagPytorchInference(object):
def __init__(self, **kwargs):
_input_size = 320
sel... | [
"frotms@gmail.com"
] | frotms@gmail.com |
72686e90d0df1916583d7cc774458465981a2994 | 2029fa6e3446c5e01b27739e7e0dcac7b3791fef | /count_wins.py | 88c1a4d64dfeb1a744d9a96517adbfe6d23266e3 | [
"MIT"
] | permissive | alan-nguyen/master-python | 82daa7341ba9e68ced9125d8833b00ae04a6e948 | 2e1cc773123f4bdb0ab2ff0acd667e2e16ccdc4f | refs/heads/master | 2021-08-18T15:58:38.207359 | 2020-07-02T04:12:24 | 2020-07-02T04:12:24 | 200,452,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | def count_wins(dice1, dice2):
assert len(dice1) == 6 and len(dice2) == 6
dice1_wins, dice2_wins = 0, 0
for i in range(0, len(dice1)):
for j in range(0, len(dice2)):
if dice1[i] > dice2[j]:
dice1_wins += 1
elif dice1[i] < dice2[j]:
dice2_wins += 1
return ... | [
"tuan8101@gmail.com"
] | tuan8101@gmail.com |
e7ac1d8c71f70a2ebee9d88a3804542fdc12abc1 | d594f3926f6379ef7c382c608cb211f507240420 | /csunplugged/tests/classic/management/test_loadclassicpages_command.py | 7a33734206fe1f6e5621b4183a0ba25918999801 | [
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"OFL-1.1",
"LGPL-2.0-or-later",
"AGPL-3.0-only",
"CC-BY-4.0",
"Apache-2.0",
"BSD-3-Clause",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uccser/cs-unplugged | 0b9151f84dd490d5b90771a3706327a623d39edc | 363e281ff17cefdef0ec61078b1718eef2eaf71a | refs/heads/develop | 2023-08-25T08:45:29.833025 | 2023-08-22T02:58:35 | 2023-08-22T02:58:35 | 66,315,075 | 200 | 41 | MIT | 2023-09-14T02:15:40 | 2016-08-22T23:16:40 | Python | UTF-8 | Python | false | false | 698 | py | """Module for the testing custom Django loadclassicpages commands."""
from unittest import mock
from tests.BaseTestWithDB import BaseTestWithDB
from django.core import management
from django.test import tag
@tag("management")
class LoadClassicPagesCommandTest(BaseTestWithDB):
def __init__(self, *args, **kwargs)... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
051c053b73a14b7fad3a06b450de5056cf8a044c | 16385e10f6ad05b8147517daf2f40dbdda02617c | /site-packages/cs.web-15.3.0.6-py2.7.egg/cs/web/components/static/react/__init__.py | 90e19c2b4dcc68a2577b0068f52d34e7587580fb | [] | no_license | prachipainuly-rbei/devops-poc | 308d6cab02c14ffd23a0998ff88d9ed0420f513a | 6bc932c67bc8d93b873838ae6d9fb8d33c72234d | refs/heads/master | 2020-04-18T01:26:10.152844 | 2019-02-01T12:25:19 | 2019-02-01T12:25:19 | 167,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
#
# Copyright (C) 1990 - 2016 CONTACT Software GmbH
# All rights reserved.
# http://www.contact.de/
#
"""
"""
__docformat__ = "restructuredtext en"
__revision__ = "$Id: __init__.py 161953 2017-07-20 12:55:37Z yzh $"
from . import v15_6_1
__all__ = ["v15_6_... | [
"PPR4COB@rbeigcn.com"
] | PPR4COB@rbeigcn.com |
32dc1c88a380742ad5859299a1edd666250cb48c | 594d954fb5552bfd7a4cbf975813e0134e5dc9fa | /Problems/Vowels and consonants/main.py | 8d1301179e0e485f94fac12ab6cfcee26ec9bec8 | [] | no_license | dhanin/Hangman | c21987bb0c7b2a3968d53d3aee398ac3850c55f0 | 83c3c128be0ca21b8b8e02def7f13f5f3b70f52f | refs/heads/master | 2023-03-22T01:51:54.030523 | 2021-03-18T16:31:57 | 2021-03-18T16:31:57 | 349,144,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | string = input()
for ch in string:
if not ch.isalpha():
break
else:
print("vowel") if ch in "aeiou" else print("consonant")
| [
"php_th@yahoo.com"
] | php_th@yahoo.com |
ff0e88f34eb6938840ec84f1427cc15edb606eef | 36d269be264a99ebfd95139a5f949663c588c96a | /sniffer/sniffer/http_sniffer.py | f4fdcb2ba6bf65fa71db3659070e5241e4059c2c | [] | no_license | chulman/packet-sniffer | 0fc2e82539cf4ff115b70ced859f102304f5c68a | a3ee086a4f93bbf245cf0a774e3cf5d5f570269d | refs/heads/master | 2020-04-20T13:06:13.672813 | 2019-02-23T13:45:34 | 2019-02-23T13:45:34 | 168,860,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | import hexdump
import scapy.all as scapy
from scapy_http import http
from datetime import datetime
import json
from collections import OrderedDict
from django_redis import get_redis_connection
from django.core.cache import cache
import argparse
def get_arguments():
parser = argparse.ArgumentParser()
parser... | [
"chlcjfals0122@gmail.com"
] | chlcjfals0122@gmail.com |
ccd8344a9f13bb3a798f2065a30bd0d715bb5bb0 | 7d1c3551a44cb940fab63a808f953e807f5b2a28 | /tradeNappApi/wsgi.py | 5c17b9303b7469097cf62dfc475d47a3d11d9782 | [] | no_license | GayathriRaja/tradeNappApi | 356515c2d9c382aaadae8cfd1102239046b2f13f | 90bd0f59566d6ebacf1db1c1834455ffe7a2d849 | refs/heads/master | 2022-12-29T06:03:26.854219 | 2020-09-30T14:24:18 | 2020-09-30T14:24:18 | 299,532,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for tradeNappApi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"gayathrraja@gmail.com"
] | gayathrraja@gmail.com |
3aff4072976515670e34f948342becfa4c2b18e7 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/group_morning/school/study/parent.py | 7e99ab840ff28cb6a18c2c4e39a3c3281a2a0f69 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | var express = require('express');
let https = require ('https');
let body = '';
let subscriptionKey = 'b53239afba713a1cdd73ee9877849c8c';
let host = 'api.microsofttranslator.com';
let path = '/V2/Http.svc/TranslateArray';
let target = 'en';
let params = '';
let ns = "http://schemas.microsoft.com/2003/10/Serializ... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
d180c9a0488339e766e7d36b3df378032e8065f1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02970/s808061498.py | 84c4907d1b62a518823b275a00f596abd485e54d | [] | 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 | 123 | py | N, D = map(int, input().split())
if N % (2*D+1) == 0:
ans = N // (2*D+1)
else:
ans = (N // (2*D+1))+1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9d6e15952bf0ebce83bc403f916e3f4a0fe4cb14 | 5c783f40027536bf04a54fddd4545f06c122b62b | /contents/models.py | b7212b3566e4cb3e62f06c1c9d4c1733649a859a | [] | no_license | stuartelimu/sb-intranet | ab45d54e1f7b72a3d1cb27b7db666fca1b43fa3c | af4a2e929397188a1bee9bd26de0468857b4cd4f | refs/heads/master | 2023-01-22T17:00:52.597000 | 2020-11-19T05:51:20 | 2020-11-19T05:51:20 | 263,233,850 | 0 | 1 | null | 2020-11-19T05:53:14 | 2020-05-12T04:39:53 | HTML | UTF-8 | Python | false | false | 680 | py | from django.db import models
from tinymce import HTMLField
class Category(models.Model):
title = models.CharField(max_length=120)
def __str__(self):
return self.title
class Meta:
verbose_name_plural = 'Categories'
class Activity(models.Model):
title = models.CharField(max_length=120... | [
"stuartelimu@gmail.com"
] | stuartelimu@gmail.com |
163eed9f3ba8509d389a8ddf80630b111e1adc2a | 0d98c690d1d966f953443b0e7ddc007611b8f1b2 | /one_way_anova.py | f6bda915b5caddd618b0d4c9b571b18ea15e1691 | [] | no_license | ianzur/asarco_el_paso | 8c7b71ab447edc89539bb39ad115a637eb3c2b7b | 26a76c27a6c2cc0e9c1241d717cd9b5420e1086e | refs/heads/master | 2022-11-23T15:49:05.168274 | 2020-07-23T20:50:40 | 2020-07-23T20:50:40 | 282,051,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | """
Are the average blood lead levels different between children based on the radius (miles) of the smelter where they spent the first two years of their life in 1972? In 1973?
Ho: proximity to the smelter during the first two years of life has NO effect on the mean blood lead level (mu_1 = mu_2)
Ha: proximity to th... | [
"noreply@github.com"
] | ianzur.noreply@github.com |
198ea75f7e5b3646278f8c47370b37ac4214a246 | 13ea4e6f59b1f87302dfa32d2c911263dfe9814f | /server.py | eb40eae9209cffec0e1d59018a58cfabdd89cf98 | [] | no_license | ozirno/PyClientServer-Demo | 07333771160d53ef33d1ab7d087e1ec310303f13 | f2068915408c1b1cce0ae0ab188d07143364d75f | refs/heads/master | 2021-04-12T08:13:23.057505 | 2016-09-25T19:29:55 | 2016-09-25T19:29:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import sys
import socket
import signal
connected = False
def signal_handler(signal, frame):
global connection
global connected
print('\nExiting')
if (connected):
connection.close()
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, s... | [
"arembedded@gmail.com"
] | arembedded@gmail.com |
d64b781daefef1110feddb5e2744a760069ebee6 | 4b459b254a7b77bdbaec250de7e2094dc0c97dec | /KmeansClustering.py | 0ad9a7e8e64b51cca8edb956a0f16a69f45e19da | [] | no_license | VirajDeshwal/KMeans-Clustering | a2fcbad5f48b9a455b9caaa67338287d55de2baa | d2bec00187208650e87976aeab6b0316397f4faa | refs/heads/master | 2021-09-03T15:24:20.690833 | 2018-01-10T04:37:30 | 2018-01-10T04:37:30 | 116,908,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 9 19:22:40 2018
@author: virajdeshwal
"""
print('Lets begin with the Kmeans Clustering.\n')
#intake = input('Press any key to continue....\n\n')
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
file = pd.read_csv('Mall_Cust... | [
"viraj.deshwal@outlook.com"
] | viraj.deshwal@outlook.com |
d48ef93a9e163544fdfbe6db1328052df56d5cb7 | 4fad774a1a687a77f3f2e095622053d114201f51 | /src/codeposter_images.py | 2b994016e3c2ab8146797009c09cb40b5ef2820d | [] | no_license | jhumphry/tilings | 350892544f02c94d15d731a0ad7b33cb675c418f | b8524ab6b82c23834add7f0c77824e5f6bc3fd81 | refs/heads/master | 2020-09-15T16:04:59.464225 | 2019-11-23T09:15:47 | 2019-11-23T09:15:47 | 223,497,821 | 0 | 0 | null | 2019-11-22T22:38:10 | 2019-11-22T22:38:09 | null | UTF-8 | Python | false | false | 1,022 | py | import os
import random
import sys
from vector3 import Vector3, random_norm1
from tiling3 import Tiling3
target_dir = "posters/codeimages"
def unit_ball():
random.seed("A seed to keep the pattern consistent.")
z = Vector3(0,0,0)
v = dict((random_norm1(), None) for i in range(80))
e = dict((frozense... | [
"cranch@cantab.net"
] | cranch@cantab.net |
bf9a99c1fbd4e7d74fba7c31b418178d0eeb5143 | 3c66373d07ced2bc8eff0f49d9848169f332e191 | /directory_sso_api_client/__init__.py | a0ddb16219cd47ebd5559f956b0182aa8ef68993 | [
"MIT"
] | permissive | uktrade/directory-sso-api-client | 174c51307e90b02663b7f1f57a168f0695b4a26a | f93d552527d0cfff948cccc9c5c32293924693b1 | refs/heads/master | 2023-07-22T11:40:05.866044 | 2023-07-06T09:13:31 | 2023-07-06T09:13:31 | 72,042,961 | 0 | 1 | MIT | 2023-07-06T09:13:33 | 2016-10-26T20:45:44 | Python | UTF-8 | Python | false | false | 89 | py | from directory_sso_api_client.client import sso_api_client
__all__ = ['sso_api_client']
| [
"rikatee@gmail.com"
] | rikatee@gmail.com |
a12137297210e2a7150057ab063356d001721283 | d7744325ebf3963874f924d8474003ba13eccc78 | /openstack_sdk/tests/compute/test_host_aggregate.py | 347db1b835d9bd6875cda671e9d0fac13c153b5b | [] | no_license | cloudify-incubator/cloudify-openstacksdk-plugin | 5fc80c0438eaf2c05833b6795ef1ce3bfb18bea8 | cdc5f80d8c597d78c80577191538ade1cf7238de | refs/heads/master | 2021-07-14T16:04:54.253530 | 2020-06-22T12:17:55 | 2020-06-22T12:17:55 | 155,547,727 | 1 | 0 | null | 2020-06-15T12:09:28 | 2018-10-31T11:40:20 | Python | UTF-8 | Python | false | false | 5,078 | py | # #######
# Copyright (c) 2019 Cloudify Platform Ltd. 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | [
"mohammeda@cloudify.co"
] | mohammeda@cloudify.co |
10d61f06d704d646df9442f624733c2ca3254ec4 | cbf967d1359e2d284a2d9acb39dc28cb363d6f1d | /backend/course/api/v1/viewsets.py | cd5e653768a7b3c797677ce2388856d66c087a6e | [] | no_license | crowdbotics-apps/ceh-trainer-19190 | 1eaed7e7dabff24aa10fda0f41ebc98c6237c254 | 4ed128efe6cebada48196a8be05343355f5dce9f | refs/heads/master | 2022-11-20T15:53:34.774222 | 2020-07-26T11:51:10 | 2020-07-26T11:51:10 | 282,638,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | from rest_framework import authentication
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
from .serializers import (
RecordingSerializer,
EventSerializer,
Subscript... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
adc2754dfd54adf3e35acefd3fd83a06c74b18e0 | 87dcd590e7174c30a4caca1039966d6659cb0f29 | /count.py | 320c3e411b38dd90944f5587b3357d0657bfcc8d | [
"Unlicense"
] | permissive | mecroby/test_pi_learning | 8ad1cde9dd9e4e707863ccb865722122d8dd6a07 | 5e32b768968b523445578f8dc33dd720930c72e7 | refs/heads/master | 2021-07-14T09:11:08.719483 | 2017-10-18T20:23:50 | 2017-10-18T20:23:50 | 107,400,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 14 14:48:25 2017
@author: roby
"""
import sys
count=0
for line in sys.stdin:
count +=1
print count
| [
"noreply@github.com"
] | mecroby.noreply@github.com |
5f5c70b276a12bb5f83506928706a4162ca598d4 | abbc11abfabb0d3976789a9ec073b28892c78778 | /bias_classifier/classifier_all.py | c3bdb57855da671e2e85b26f5d47dd0e150137c6 | [] | no_license | sunxhap/machine_learning | b06b28b3aba5b39704d8a3ae282f366dad6af406 | ef1d80a16fd35f03e428ac27b9b0f771f6f1edbb | refs/heads/master | 2022-05-01T15:22:07.314221 | 2017-11-12T09:12:30 | 2017-11-12T09:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,915 | py | # -*- coding: utf-8 -*-
"""
@Time: 2017/11/8 13:42
@Author: sunxiang
"""
import csv
import random
import math
def loadCsv(filename):
lines = csv.reader(open(filename, "rb"))
dataset = list(lines)
for i in range(len(dataset)):
# 有0 的情况
temp_list = list()
for x in dataset[i]:
... | [
"1925453680@qq.com"
] | 1925453680@qq.com |
c13d1f9ed680f1a733827a0c11d2c1f63413f6e4 | f7eedef4cff9bcb9ad8aec7a872cdbedf1844d5f | /HQMS_Cloud/controller/WXSchedule.py | 593217605863c318932a2637e9f64f8607e1b608 | [] | no_license | 8261956/HQMS | dd6bfc9d3a364d82e771ca50e45a4b97594698e8 | 9b95fd26f9c5fc920436d1545eeb47c0151c08d9 | refs/heads/master | 2021-05-05T22:42:23.058859 | 2018-03-28T03:11:23 | 2018-03-28T03:11:23 | 116,200,468 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,545 | py | # -*- coding: utf-8 -*-
import json
import sys
import traceback
import datetime
import web
from common import DBBase as DB
from common.func import packOutput, checkSession, str2List
from WXQueue import WXQueue
from WXWorker import WXWorker
class WXSchedule(object):
db = DB.hqms_cloud_db()
def __init__(self... | [
"qiupengfei@cleartv.cn"
] | qiupengfei@cleartv.cn |
a55dac7f367c56e690c755d0fe804af2e655c9c9 | cffe83637b3965ad27f5a679e187bfaf46afa690 | /.stversions/cookbook/magic_browser/cookbook/nuke/menus/Lumbermill/BuildShot~20210212-114815.py | ae6334ddf7ac7ae3b88f406b07d78e13323f2ac3 | [] | no_license | gmolinart/LC_MASTER | da768a592821fe4dc55bdf693291df3409c3f035 | 2f17eaf5c4c7f70be0c0b5976b479002da4e7d52 | refs/heads/master | 2023-04-29T07:38:24.653457 | 2021-05-17T18:42:34 | 2021-05-17T18:42:34 | 368,287,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | import nuke
from cgl.core.path import PathObject, lj_list_dir, find_latest_publish_objects
from cgl.core.config import app_config
from cgl.plugins.nuke.cgl_nuke import NukePathObject, import_directory, import_media, set_comp_default_settings , confirm_prompt
import os
def check_file_on_system():
current_shot =... | [
"gmolinart@gmail.com"
] | gmolinart@gmail.com |
54714091e40e4dea6c5b79bad259c023f9dcf308 | b7a2b794541f7d6f76261ca5cfaf58eb05be830b | /codes/2022/oct/scaled_dot_product_attention.py | bf2e60efb1f5f6846256c1e06f8e9fe74be1f010 | [
"MIT"
] | permissive | GaoangLiu/GaoangLiu.github.io | 3853cdd8599f8ab7bc073de376e32762c1a0ded3 | 66cf3d9cd0e074af21ec97ce15a0e9211b23a884 | refs/heads/master | 2023-05-15T03:31:30.950588 | 2023-05-01T02:18:00 | 2023-05-01T02:18:00 | 163,704,502 | 0 | 1 | MIT | 2021-07-14T00:25:03 | 2019-01-01T00:18:31 | Jupyter Notebook | UTF-8 | Python | false | false | 1,618 | py | #!/usr/bin/env python
import codefast as cf
from tensorflow import matmul, math, cast, float32
from tensorflow import keras as K
import numpy as np
# Implementing the Scaled-Dot Product Attention
class DotProductAttention(K.layers.Layer):
def __init__(self, **kwargs):
super(DotProductAttention, self).__i... | [
"ssruoz@gmail.com"
] | ssruoz@gmail.com |
debf8eb20dcdf7314e802ca1575b3fa5315ac73b | 5674a52ee8a3e6abfb02baef223a4e48e8e379bd | /st_app.py | b4d89fa6df1a56bf48d6227bcf2ec03443a61399 | [] | no_license | student1304/cryptoquote | ebd439ddd6fd3e9f2eca1d47b41f6b98031290b0 | b3794701b3a39fcb653cc023d875c875f0eec21b | refs/heads/master | 2023-01-20T03:56:00.922458 | 2020-11-27T17:24:25 | 2020-11-27T17:24:25 | 316,559,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import streamlit as st
from cryptoquote import encrypt
st.title('Cryptoquote by Alex')
st.write('Please enter a quote which you want to turn into a cryptoquote game')
quote = st.text_area('Enter or paste your quote here:')
encrpyted = encrypt(quote)
st.write('Your game begins:')
st.markdown(f'**{encrpyted}**')
st.tex... | [
"student1304@online.de"
] | student1304@online.de |
be0f894d955a7f808f25605b1110a6f45b61ddff | a67781ba3d5a093f9d38fa5a823a31600a142ad0 | /LeetCode/DataStructure/BinaryTree/MaxDepth_Rec_BottomUp.py | f3b6760b9306a35e13ef65997074bcc2fb50d7ea | [
"MIT"
] | permissive | hooyao/Coding-Py3 | 0166a67263a5351b3c85540d75c4f155ff3f558d | f462b66ae849f4332a4b150f206dd49c7519e83b | refs/heads/master | 2021-04-15T09:45:35.230859 | 2019-06-22T07:24:22 | 2019-06-22T07:24:22 | 126,565,644 | 0 | 0 | MIT | 2019-12-02T01:44:14 | 2018-03-24T04:29:50 | Python | UTF-8 | Python | false | false | 1,007 | py | import sys
from BTreeUtils import BTreeHelper
from BTreeUtils import TreeNode
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def maxDepth(self, root):
"""
... | [
"hooyao@gmail.com"
] | hooyao@gmail.com |
5d2be0a0fb70fa8c5e5cc20312f86901bd3ba25c | 7c3929a55b39be0dbe12856e61e4ecb31ad20378 | /Algo/less5/task_1.py | cf987d78127e385a119733c3142b67409cc612b1 | [] | no_license | ElenaAn12/GBLearning | 01f3a1d34e86150e2defb31153dbd0611d7eeefe | 40d13fae34dccbf7246a7991c45df0e1abfa62a0 | refs/heads/master | 2022-07-06T21:01:35.598574 | 2020-05-17T09:43:02 | 2020-05-17T09:43:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | """
1. Пользователь вводит данные о количестве предприятий, их наименования и прибыль
за 4 квартала (т.е. 4 отдельных числа) для каждого предприятия.
Программа должна определить среднюю прибыль (за год для всех предприятий)
и вывести наименования предприятий, чья прибыль выше среднего и отдельно
вывести наименования пр... | [
"cronos1009@yandex.ru"
] | cronos1009@yandex.ru |
6f1f21782fa25c1e0c733ab8bf19c1b0653e4f1a | b76c6813f2ce2fd24a33175a0249cd9544583fe7 | /blog/migrations/0035_auto_20200603_1114.py | 873a1f8a79a322df963468181144adc5403b8b8e | [] | no_license | adrianglez2203/nuevo_as | 0074e6d8155a471bb7d81bc3456914acdc7fba98 | df375410e9d6922ebb931645ff8f1c7b3f5cb93b | refs/heads/master | 2022-08-01T23:43:51.328124 | 2020-06-06T15:35:23 | 2020-06-06T15:35:23 | 270,111,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 3.0.6 on 2020-06-03 15:14
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0034_auto_20200603_1112'),
]
operations = [
migrations.AlterField(
... | [
"adrianglez2203@gmail.com"
] | adrianglez2203@gmail.com |
4f599928dcbe084ccabaf12fc95e50b9adde750b | 30ebffdf55185e26577325d8a577db030b57a695 | /mysite/Cars/migrations/0001_initial.py | 0ff669ceb53824b0a51f7115082c7d28968cbea7 | [] | no_license | JabbarMurad/django_jm | 3de1630ee0d4127e0fa54a6f09a15d1b00b36cdd | 0cbfeaad16f59bbc61820ffc981e0de3441f06c6 | refs/heads/master | 2023-02-03T22:55:45.280691 | 2020-12-22T11:06:22 | 2020-12-22T11:06:22 | 323,609,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # Generated by Django 3.1.4 on 2020-12-21 09:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Specs',
fields=[
('id', models.AutoField(au... | [
"IDRAK@ws0113.corp.idrak.az"
] | IDRAK@ws0113.corp.idrak.az |
9903b6cb1114f4fd84facf1b3807dca171725ee3 | 8b53eaac440ed565748698f8dc9f69a2d8f68a16 | /projeto/settings.py | d93691129f1d353dfcd38c2bfee5e061f3f6ecc6 | [] | no_license | kelver-web/projeto-django | eb0a9ecd07a1708a52bc377d74f485839773c13b | dba4fde3d2a8fb7a1d315163447c1764adde4bc0 | refs/heads/master | 2023-06-08T21:05:41.178115 | 2021-06-24T21:19:51 | 2021-06-24T21:19:51 | 369,625,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | """
Django settings for projeto project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"kelverwt@gmail.com"
] | kelverwt@gmail.com |
303f90ad9c974b79b7ade8db79e26bb8c6485dd5 | 29b6631380f6d5a0543d0a303b7e610a1594e0c5 | /main.py | 9ae61fcc5e08c90006321053713df4d1603363fc | [] | no_license | citrica/players | aa54c9e02eeb2d26c01b6ff05d105379ad86774a | d3902443b07fc5f51dc9a7136603a628670d3044 | refs/heads/master | 2020-09-15T22:34:13.796563 | 2019-11-23T10:39:04 | 2019-11-23T10:39:04 | 223,571,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | class Player():
def __init__(self, first_name, last_name, height_cm, weight_kg):
self.first_name = first_name
self.last_name = last_name
self.height_cm = height_cm
self.weight_kg = weight_kg
def weight_to_lbs(self):
pounds = self.weight_kg * 2.20462262
return pou... | [
"inma.rueda28@gmail.com"
] | inma.rueda28@gmail.com |
d490050414ca89df702b722da8dc2bdba1855034 | a2b5061255a53e3cf6ff561cd1d8fc5e3d54427c | /tcpdump.py.bak1 | 0f4aedf6337fa0b19035c2f431080ad89735c396 | [] | no_license | G1-10ST/NetworkGuard | 3f07a274236519aceeecc83ac64f2232d8820f25 | b88b058b2e502d23e0c768cd0b5318cbc3703939 | refs/heads/master | 2020-09-12T07:51:47.687043 | 2019-11-21T19:32:24 | 2019-11-21T19:32:24 | 222,360,538 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,275 | bak1 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 4.26
# in conjunction with Tcl version 8.6
# Nov 18, 2019 06:43:42 AM IST platform: Linux
import sys
import re
import subprocess
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
... | [
"itm2017008@iiita.ac.in"
] | itm2017008@iiita.ac.in |
d687fed816f59497ad6ab2dfd2601c0db090c0b8 | 15855ce729e78fa0628d0e5a774b7fcaff7acc85 | /seleniumProject/seleniumScripts/DealWithWebelements4.py | 087a8ee8b6c0c406d1c2f9bf537ee3ee23a0ce01 | [] | no_license | nikhil-shukla/GitDemo | d8c63aec6978aed251c0a4df3c5b4aacef702735 | f060716815f9ba1025ce8fc525dd10e9ddc0b2dc | refs/heads/master | 2023-07-08T22:48:26.439978 | 2021-08-16T13:25:18 | 2021-08-16T13:25:18 | 396,787,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
import time
# s=Service("F:/Study/SeleniumWebDrivers/chromedriver.exe")
driver = webdriver.Chrome("F:/Study/SeleniumWebDrivers/chromedriver.exe")
driver.maximize_window()
driver.get("https:... | [
"nikhilshukla912@gmail.com"
] | nikhilshukla912@gmail.com |
5a784f9267f47e84390f91db1ca4a696fddfa026 | 52c2ccb6fb55126a65bff2b4b7f653e4b0805759 | /tibiawikisql/models/__init__.py | 210e3bc5e7f40f3b77dd0e2dda1538287ab80d97 | [
"Apache-2.0"
] | permissive | Galarzaa90/tibiawiki-sql | 4907236d518cdc6a53f32645efa3b22517e91f90 | 982be5ebd7905354b6c6a31c4247b2ee21bbe943 | refs/heads/master | 2022-08-09T09:18:46.533611 | 2022-07-23T13:56:07 | 2022-07-23T13:56:07 | 108,594,636 | 22 | 11 | Apache-2.0 | 2022-06-28T16:46:13 | 2017-10-27T20:52:55 | Python | UTF-8 | Python | false | false | 1,552 | py | # Copyright 2021 Allan Galarza
#
# 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 agreed to in writi... | [
"allan.galarza@gmail.com"
] | allan.galarza@gmail.com |
922757483f5b92750a41e5763823e5796f197e37 | 1e0baa4961b734cc5c73c01b5baa5cdff2dca1bd | /create_remove_sheet_test.py | 1fc50189c43ded1f2100894f5fa18022094f1266 | [] | no_license | mallikarjunasai995/Automate-the-Boring-Stuff-with-Python-Chapter-12-Excel | d5b690781c1e1acff99a552ab4efc005b8131272 | d8e315a90780dbbe728cdad6eda2eae380aa88b7 | refs/heads/master | 2020-08-13T18:31:59.207458 | 2016-08-30T15:17:55 | 2016-08-30T15:17:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import openpyxl
wb = openpyxl.Workbook()
print(wb.get_sheet_names())
print(wb.create_sheet())
print(wb.get_sheet_names())
print(wb.create_sheet(index=0, title='First Sheet'))
print(wb.get_sheet_names())
print(wb.create_sheet(index=2, title='Middle Sheet'))
print(wb.get_sheet_names())
print(wb.remove_sheet(wb.get_... | [
"chendong333@gmail.com"
] | chendong333@gmail.com |
42ab79d67ef44fa6522a1970e74a26b4debaf35c | 86a0be02c5fd86936742efb64f8d0fa82a7c96aa | /volunteer/models.py | bb5e7a199b9ea4cb4ab3fe37a7fa41ab1d44cb2a | [] | no_license | chapkovski/every-second-auction | 8e0c5a3b46c88c17e9f7545ee89845b7021609be | a8213eeb17f9b04b4b67e3111fe49cd6d1d6e75f | refs/heads/master | 2021-01-23T10:56:56.636657 | 2018-06-20T01:08:48 | 2018-06-20T01:08:48 | 93,109,957 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | from otree.api import (
models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range
)
# from background_task import background
# from background_task.models import Task
import atexit
import subprocess
from django.db import transaction, models as dmodels
import c... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
1344bc46f555597e1654cc4a18d9b3bb99d739fe | 1065fe984e4dfe4e164e09f72a96b183cecdc94f | /sencity/settings.py | 870bdab1aa9bef6facd1538c9cfe9255b88f5190 | [] | no_license | tim-vu/sencity | 6cdd0ee60c4448ea8c3e95f177b2e90d3140d396 | cecd1c03bf84e10a853be23ef2f3e6c8b9974794 | refs/heads/master | 2023-07-29T08:02:01.065283 | 2021-09-01T12:22:52 | 2021-09-01T12:22:52 | 402,050,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | """
Django settings for sencity project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"tim.vuegen@hotmail.com"
] | tim.vuegen@hotmail.com |
7cf2b1b60761c5b530a5da47afc9898a2f48d0c4 | 2ab78b5953537a7a7318afe55924656af36e9c01 | /202003-ai-labtest-results/Submissions/17057696.py | d2e602f226f6b37669ad4a7f3560ad84d8d30118 | [] | no_license | ricwtk/misc | 9ed67b329840d6fb3ad9ee0e20ced99d57b9c89c | 994e2967736e5afa0a017d2df55ed48f31641886 | refs/heads/master | 2022-07-30T06:24:52.304591 | 2022-07-12T02:06:47 | 2022-07-12T02:06:47 | 188,970,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.colors import ListedColormap
import numpy as np
# import glass.csv as DataFrame
data = pd.read_csv("glass.csv", ... | [
"ricwtk@gmail.com"
] | ricwtk@gmail.com |
986c674c72844f58e048f8216519e9f4e8400d50 | 0fb136802af06082a981bdb3a89db436be273ea2 | /ata/ata_timer/migrations/0005_employee_team_id.py | 19320a183f215e6b0dab56bf5eeae536c48c03dd | [] | no_license | ata333/wasem_task | 654b6ef30c59795f9a8dc72ad3377a9855d06950 | 1d49ffbdb41518ddca77ffdf5ba8c0a9b67a0fe1 | refs/heads/main | 2023-02-17T01:23:01.383078 | 2021-01-20T12:26:39 | 2021-01-20T12:26:39 | 331,279,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 3.1.5 on 2021-01-16 10:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ata_timer', '0004_remove_employee_team_id'),
]
operations = [
migrations.AddField(
model_name='... | [
"ataaburajabedx@gmail.com"
] | ataaburajabedx@gmail.com |
c606d65881d68d6ccbea9e9dca2d271c3fbb4b90 | 4210b6df0fb265285d3fb57c694042190a51deb5 | /init-tables.py | 15d41119f2cf73bbae50fda7709ace285e698b06 | [] | no_license | ryebread8303/gw2api-py | 21ee8020947b23ba0c7b03a5d3e82d5919778b2b | d1668eb738cbaf4e96d3ffdd5c73132711b64557 | refs/heads/master | 2020-12-24T20:33:36.484155 | 2016-05-22T20:44:03 | 2016-05-22T20:44:03 | 59,261,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | #!/usr/bin/python2
import requests,json
import sqlite3 as sql
import sys
def jsonreq(uri):
return json.loads((requests.get(uri)).text)
def insertitem(idnum,name,nosell):
cur.execute("INSERT INTO Items VALUES(?,?,?)",(idnum,name,nosell))
baseapi = "https://api.guildwars2.com/v2"
item_list = jsonreq(baseapi+"/items"... | [
"ryebread8403@gmail.com"
] | ryebread8403@gmail.com |
53255a5fce27a2f72d42848404eef76c04596bdf | b9776d148da3bf9d37954d34b1ab236d41310cb2 | /product/models.py | a5d9a1154df4995cc85fccb43f48fc8043cdc8de | [] | no_license | Harshitsharma34/ResaleApp | b3cb62fa1953aa042c3ad19beb8162eba094c87a | a23187dfb05db2445ebbafa9a316e2da89b2d489 | refs/heads/master | 2022-11-05T18:29:42.140170 | 2020-06-19T17:31:33 | 2020-06-19T17:31:33 | 273,293,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.utils.text import slugify
# Create your models here.
class Product(models.Model):
CONDITION_TYPE = (
("New", "New"),
("Used", "Used"),
("Extremely Old", "Extremely Old")... | [
"harshitsharma34@gmail.com"
] | harshitsharma34@gmail.com |
f43f5ef928e91ce17d483b1409cabfdfee353f1a | 9dd9999d1cad18349a0354669b5696134209495e | /rate_models/sr1fsim.py | 801523aad3b7edb9ae9e04d5f094fc015e5d0c27 | [] | no_license | phetdam/prog_proj | d8edf1d8a850557bea384eaa0d89bb12fe8f72f9 | f06c5a6a755be258a371f04d2a5d69a782e5bbb5 | refs/heads/master | 2020-03-27T14:36:25.819919 | 2019-05-24T04:56:21 | 2019-05-24T04:56:21 | 146,671,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,788 | py | # runs simulations of and plots single-factor short rate models (cir and vasicek).
# can be specified data to calibrate models with, the type of model to run, and
# the number of processes to generate.
#
# Changelog:
#
# 10-29-2018
#
# removed PL_TITLES; the title of each plot will simply be MTYPE
#
# 10-27-2018
#
# ad... | [
"djh458@stern.nyu.edu"
] | djh458@stern.nyu.edu |
0975a9270e7422949e57a1c4734c1c3efa1d7ecb | a773e293d6e43376e3554770a1da9322b05f143b | /scratch/test/conv2d_test.py | d3417c7d4e14042585a2aee827dbf903312d820b | [
"MIT"
] | permissive | zli117/ML-From-Scratch | 11c18f8e0c843c9ada9ea02943baf9623a82e85c | cb97308ae9e297354b398dfe7a0d5fb361b866e9 | refs/heads/master | 2020-03-08T08:00:30.021522 | 2018-08-22T06:34:33 | 2018-08-22T06:34:33 | 128,009,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | """
Test for convolution 2d layer
"""
import unittest
import numpy as np
import torch
from torch.autograd import Variable
from torch.nn import Conv2d
from scratch.layers.conv2d import Conv2DLayer
class TestConv2DLayer(unittest.TestCase):
def setUp(self):
self.configs = [
# in channel, out ch... | [
"development.my6565@gmail.com"
] | development.my6565@gmail.com |
02ef3aceb670550ecb12d3958c68f836e5511627 | e7a9032a3a222dc7363e1f9c083559ef98ae33c7 | /scripts/convert_conll03_to_json.py | 76900a39699429f3a551ffb5dfaa92b8cf05911d | [
"MIT"
] | permissive | fagan2888/instance-based-ner | ed6ccee034661e6a9572ce8f2962b643f1a47c0d | 7bd8a29dfb1e13de0775b5814e8f9b27ec490008 | refs/heads/master | 2022-12-17T15:03:05.615927 | 2020-09-16T01:18:10 | 2020-09-16T01:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | # coding=utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import codecs
import random
import ujson
def load(filename):
with codecs.open(filename, mode="r", encoding="utf-8") as f:
words, ta... | [
"sadistictornado@yahoo.co.jp"
] | sadistictornado@yahoo.co.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.