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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
081d7e5abd1e6534a8b35c34749bb42b37674a75 | 41e59ef6eed28c5c89fc5e5ad54605077819f812 | /mnist_archs.py | e8337f2311dd87a1c7e47e738a2387ba43589f6c | [] | no_license | zueigung1419/IntrinsicDimDeep | 498185a6bf27d61eb2073c5dfa1ba0514611e142 | 2c5140009eb3efccca1d774dc66cb043c04b26d8 | refs/heads/master | 2022-04-11T11:50:42.203540 | 2020-03-13T11:38:19 | 2020-03-13T11:38:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
# F.Chollet architecture
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(1, 32, kernel_size=3)
self.conv2 = nn.Conv2d(32, 64, kernel_size=3)
# dropout 0.25
self.fc1... | [
"alessioansuini@gmail.com"
] | alessioansuini@gmail.com |
03d238f1b9ccba256f82bd150d054bb5982e40d6 | c4362b27e969f5ffb1b39c85fc212198de91b646 | /extractLegalOpinionsCstmMetadata.py | 048f239378095a6344d1b548accb795462af0859 | [
"MIT"
] | permissive | OpenLawsGR/judgments2AKN | af8be80f931571b1c67fa957dff6c0ae76c67f9f | 0c6217349cde36058d5599800e289fdf0d3eaf23 | refs/heads/master | 2020-09-05T00:34:53.860129 | 2020-01-08T15:35:49 | 2020-01-08T15:35:49 | 219,934,916 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py | # -*- coding: utf-8 -*-
import os
import sys
import fnmatch
import argparse
from functions import extract_data_from_nsk
from variables import NSK_METADATA, NSK_CSTM_METADATA, NSK, TXT_EXT
from variables import LEGAL_TEXTS
from lxml import etree
program_description = 'A module for downloading specific data ... | [
"plessas@ceid.upatras.gr"
] | plessas@ceid.upatras.gr |
523fb7f3aa1c456f2a0e4aa859cb776f8d3f2534 | bcb47f8acc6530e48c7a013d459e453c2e5110c0 | /urls.py | 16f8f43a8d797fad08220b99def350e573c300ad | [] | no_license | gebisys/libreapp | 09cef76e0635eb0fe1803769cba07b4320c29fc9 | 14dede79e47c7a0e0d9c492c5d87df9123ef59ec | refs/heads/master | 2016-09-06T08:06:55.609876 | 2013-06-12T14:47:18 | 2013-06-12T14:47:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib import admin
from django.conf import settings
from news.feeds import ArchiveFeed
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'news.views.index_vie... | [
"gebisys@gmail.com"
] | gebisys@gmail.com |
1116093189d5bbdecb2913592b931a0012e07283 | 4501c310488b7d019098858e8577b020b6346d79 | /Code/PythagoreGUI.spec | 0e1160a49ef72111528452fa78fd7e07d45c8cdb | [] | no_license | nathanbegin/Pythaface | 13d4b030fd9809dd59715f1b0a6cb79db499e012 | 0660421f62b67653a833f31d0fcd8864de7508ae | refs/heads/master | 2020-04-06T04:27:56.778429 | 2017-02-23T01:35:50 | 2017-02-23T01:35:50 | 82,733,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['PythagoreGUI.py'],
pathex=['C:\\Users\\natha\\Desktop\\Pythagore\\Code'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=... | [
"nathanbegin@gmail.com"
] | nathanbegin@gmail.com |
d355e03c44e9a7c2bf59b7e5d70f274fd921714e | e842b091e4d7236b2136ac906eb5108ef17bd8d9 | /16_DynamicProgramming1/Step11/ys_11.py | 737b22c9bb16ef5528ca6bf1c909b13559fda3f1 | [
"MIT"
] | permissive | StudyForCoding/BEAKJOON | 6eb4bfe9a302e29893b128eebe44e8db271546c8 | 84e1c5e463255e919ccf6b6a782978c205420dbf | refs/heads/master | 2023-04-04T09:17:58.145493 | 2021-04-14T07:05:06 | 2021-04-14T07:05:06 | 266,000,040 | 0 | 0 | MIT | 2021-04-14T07:05:07 | 2020-05-22T02:30:13 | Python | UTF-8 | Python | false | false | 563 | py | N = int(input()) #수열개수
arr = input()
arr = arr.split()
arr= [int(i) for i in arr] #입력받은 수열배열
d = [0] * (N)#가장 긴 증가하는 부분수열 길이
max1 = 0
for i in range(0, N):
min1 = 0
for j in range(0, i):
if arr[i] > arr[j]: #앞수열보다 큰 수가 있으면
if min1 < d[j]: #현재 인덱스요소보다 작은 수 카운트
min1 = d[j]
... | [
"69625013+to06109@users.noreply.github.com"
] | 69625013+to06109@users.noreply.github.com |
ea09bbbb1e03af80da8927d9c004f5b2689e5ce9 | 31abd09a08ebbec64951b7724fb94b178546bfd0 | /Classifier/binary_classificationTree.py | 287452ddfad30ccab4cb3b759930b3a3cb1bbde9 | [] | no_license | juancho618/TAI_Project | 9839ab014a14cc5c030217f12e72ab164eada297 | 63d55659cc1e4e7f36461762e99aaaa5f4b2b500 | refs/heads/master | 2021-01-23T02:18:58.628859 | 2017-05-31T07:27:33 | 2017-05-31T07:27:33 | 92,917,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | import pandas as pd
import matplotlib.pyplot as plt # plot library
from sklearn import tree
from dataProcessing import * # dummy encoding
from sklearn.preprocessing import OneHotEncoder # best codification for categorical data
df = pd.read_csv('../finalDS.csv', header=0)
# print df # preprocess dataset with original ... | [
"jjsorianoe@gmail.com"
] | jjsorianoe@gmail.com |
5532be931e0b45443ac49288433d6dbcf3e6db85 | ad297efe52cb150997f6ee7828bb9fbd8512d60b | /scout/Miner/amazon_scraper.py | e2ef13a8379a6122cffd3765cc16b0aad7b9db73 | [] | no_license | happyxiaoxu/zonmine | 8b43f5bbb4dbadda324140bddd04aa603f7f51e8 | e016cbc77c4be05ffdcd74bd98f8da898956a419 | refs/heads/master | 2022-12-16T09:53:04.427931 | 2019-04-03T02:02:38 | 2019-04-03T02:02:38 | 179,192,426 | 1 | 0 | null | 2022-12-08T01:21:41 | 2019-04-03T02:11:17 | CSS | UTF-8 | Python | false | false | 13,415 | py | # from .config import Config
# from .product import Product
from scout.Miner.config import Config
from scout.Miner.product import Product
from scout.Miner.grepwords_api import KeywordsApi
import lxml.html
import re
# from fuzzywuzzy import fuzz
from difflib import SequenceMatcher
from urllib.parse import quote_plus
f... | [
"happyxiaoxu@outlook.com"
] | happyxiaoxu@outlook.com |
d667c4b00b34a3dea6dc5a59897ad12547204d3a | 62f723af2777f987ed25ff4026aa2ad1ef9e5ce7 | /model/modeling.py | 8ca4d7e742ceae0d99665ca8af9b33e4998a5447 | [] | no_license | renjie-liang/Flatten_Net | 0c311b7625323c848d3aac72a14d97647b8ca6fe | fe8ff7932cf05fb36a8bfb674d8061e52a6027ab | refs/heads/master | 2022-12-21T08:02:40.841405 | 2019-10-06T19:09:42 | 2019-10-06T19:09:42 | 211,687,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import torch
import torch.nn as nn
from model.net import *
from lib.config import cfg
class get_Model(nn.Module):
def __init__(self):
super(get_Model, self).__init__()
self.net = eval(cfg.MODEL.NET_NAME)()
def forward(self, x):
x = self.net(x)
return x
def to_stirng(sel... | [
"allen_rj@163.com"
] | allen_rj@163.com |
0121ed472138d492c9faefbd6f0c04308f5c2a4a | 69cbb90a54ef4c312d7939c31d1da4060776306a | /airWritingPrediction.py | d0716f98214463884e6f81fe5825557eb6af1cd4 | [] | no_license | priyankagohil/AirWritingRecognition | 602d08131e7908b6fc13204dc4d0e9f27ca6e041 | 5228798157f7f21b59e6ef688e8f33e076657416 | refs/heads/master | 2023-08-24T10:48:51.588127 | 2021-01-06T17:52:56 | 2021-01-06T17:52:56 | 312,326,541 | 3 | 0 | null | 2021-10-18T05:43:02 | 2020-11-12T16:01:41 | Python | UTF-8 | Python | false | false | 8,577 | py | import cv2
import numpy as np
import copy
import torch
import torchvision.transforms as transforms
import torch.nn as nn
import torch.nn.functional as F
from PIL import Image
rect1_tl = (320, 140)
rect2_tl = (320, 240)
rect3_tl = (320, 340)
rect4_tl = (240, 270)
rect5_tl = (400, 270)
height = 30
width = 30
"""CNN ar... | [
"priyanka@onlinedegree@iitm.ac.in"
] | priyanka@onlinedegree@iitm.ac.in |
05502558d8297623342bf39c101073a7049393f0 | 140003818ac3cf9a7d427ee5f0e87b1bc4f770ec | /metrics/mAP.py | cf8920732faacba76ba21e41f2c07bd950366558 | [
"MIT"
] | permissive | chisyliu/RADDet | e495a80a7bdbd3ecd473130386c00809df5ff4f0 | 5c0020dc24024f5b87e864554769f5926b73593a | refs/heads/main | 2023-04-18T22:21:57.054785 | 2021-05-02T14:16:51 | 2021-05-02T14:16:51 | 364,338,015 | 1 | 0 | MIT | 2021-05-04T17:40:57 | 2021-05-04T17:40:57 | null | UTF-8 | Python | false | false | 4,450 | py | import tensorflow as tf
import tensorflow.keras as K
import numpy as np
import util.helper as helper
def getTruePositive(pred, gt, input_size, iou_threshold=0.5, mode="3D"):
""" output tp (true positive) with size [num_pred, ] """
assert mode in ["3D", "2D"]
tp = np.zeros(len(pred))
detected_gt_boxes ... | [
"zhangaocanada@gmail.com"
] | zhangaocanada@gmail.com |
afbade6cf7187497d35c8ebf245bc2caf3732775 | c0e41a88ff45bdb7bbdc8e4276427b276eec5d13 | /kyo/python/1_function/1_args.py | a93d7b955d358025108b2595479cdd21473a90fb | [] | no_license | sunzhqiiang888/KingSun | 7440748825ed72c411f8ff63c478ad412efa51ac | 7473cc30d398f1ae96cbc7175198052d518fef94 | refs/heads/master | 2020-03-08T08:17:17.284210 | 2018-04-15T03:15:25 | 2018-04-15T03:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #!/usr/bin/env python3
def test(name='未知', age=17, sex='男', phone="13602578723"):
print("学生信息: %s(%d) %s %s" % (name, age, sex, phone))
def testV(name, *args, phone="13877777777", **kwargs):
# print(args, type(args), kwargs, type(kwargs))
print(name, args, phone, kwargs)
if __name__ == "__main__":
... | [
"354340684@qq.com"
] | 354340684@qq.com |
0f3ce92a2ff9742a1df0452ef3c71ce7e361bd2b | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Books/LearningTensorFlow/Chapter5_Text_Sequence_Tensorboard/scan_example.py | 4cf7e1f4fa42316220ed1621d22dc6ddfdcbd77a | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import numpy as np
import tensorflow as tf
elems = np.array(['T', 'e', 'n', 's', 'o', 'r', ' ', 'F', 'l', 'o', 'w'])
scan_sum = tf.scan(lambda a, x: a + x, elems)
sess = tf.InteractiveSession()
print(sess.run(scan_sum))
sess.close() | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
8ffe18e059c8aa73c2d15b8bc652cbaba00d8265 | 2236b86215a6c6895fbb9bc10451497121f70c0a | /rate_prediction/apv25buffering/config.py | 054bb4e5bd3c5ac10362fdc27da32e6ed7a72133 | [] | no_license | perhansson/burst-trigger-toy | b754a5462e175e8098ccb08f1187b32697cf6679 | 6e49bee473e761c36abd8f73c7c9474a40b9e109 | refs/heads/master | 2021-01-19T22:02:02.686562 | 2015-10-28T20:42:10 | 2015-10-28T20:42:10 | 35,178,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | debug = False
batch = True
Nperiods = 10000000
| [
"per.hansson80@gmail.com"
] | per.hansson80@gmail.com |
6a4054dd06199db6b9309cb200c08c31c28b270c | 4d861accd86c2c4fbffeb75e963aa4c099d6dd0a | /Practica5/EjercicioB.py | 6803cb510d11ca5901c54ad48f76ddf90b878768 | [] | no_license | adwolfart/ModeladoyP | 98e7118b600815587ae0840134f84eaab2475a14 | 7bab5fb3a837c14d80077641dc9be91f325b5d9a | refs/heads/master | 2020-07-12T08:08:34.563441 | 2019-11-15T20:42:17 | 2019-11-15T20:42:17 | 204,761,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,988 | py | import threading
from threading import Thread,Semaphore
import time
#semaforo para manipular los problemas de concurrencia
semaforo = Semaphore(1); #Crear variable semáforo
#listas que son utilizadas como bandas transportadoras
listaPiezas = []
listaPiezasEnsamblador = []
listaPiezasEnsamblador1 = []
listaPaqueteFinal... | [
"lopo@lopo-pc"
] | lopo@lopo-pc |
72e036decfd9852b8b0e9d8170a5cb7d4a854ab6 | efd5d310c1a43335a70fbcb89a2480aa7aa1f423 | /goto.py | f3a86a748de3a5238c0a2cc5d452c397e6c070cc | [
"Unlicense"
] | permissive | tianjinghai1978/python-goto | aee690c59ef4e5fecedd742a7db8a44e76de5f52 | acbe736221d2238df3d09beab457d0bb19d05812 | refs/heads/master | 2023-03-19T08:27:22.300630 | 2019-12-15T12:48:22 | 2019-12-15T13:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,676 | py | import dis
import struct
import array
import types
import functools
try:
_array_to_bytes = array.array.tobytes
except AttributeError:
_array_to_bytes = array.array.tostring
class _Bytecode:
def __init__(self):
code = (lambda: x if x else y).__code__.co_code
opcode, oparg = struct.unpack_... | [
"sebastian.noack@gmail.com"
] | sebastian.noack@gmail.com |
26f5feec50c17f59e09b58ec23e082f0893c8b39 | 98c62fa21899dc823cfa6ccdfb89ba5bf5836b1a | /fileupload/admin.py | 25bf6c18faed3ecad700fb19bc7fea68a4c48939 | [] | no_license | sagar-spkt/DjangoAWS | 1ae3bab19303d0344973eb026972c8a7853a5df4 | a7d032370f1697e18054740dc439d5f08087fd88 | refs/heads/master | 2021-08-16T21:46:39.690026 | 2018-12-16T17:29:35 | 2018-12-16T18:17:34 | 162,022,099 | 0 | 0 | null | 2021-06-10T21:03:34 | 2018-12-16T16:56:20 | Python | UTF-8 | Python | false | false | 198 | py | from django.contrib import admin
from fileupload.models import PublicDocument, PrivateDocument
# Register your models here.
admin.site.register(PublicDocument)
admin.site.register(PrivateDocument)
| [
"spkt.sagar@gmailcom"
] | spkt.sagar@gmailcom |
e9880252c3b8871fcba2e2f278da14e2c40131dc | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/services/services/custom_conversion_goal_service/client.py | 6a590a9ac28792be1d45d85fcb1db11c168b6b0e | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 21,247 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
ec7a051e8f0312346a58fd5aba93972c0e87435a | 3a517a9b62e24eccfa44baf8a93857f14e1042bc | /Infy Assigns/Virus.py | d38330ed11c02ce27a4527cce963040597b38385 | [] | no_license | milindaj/codingground | d20831323603e040f3c1285f222a11eb9e653662 | ee9035d539d33e673df54c681102307a41e93585 | refs/heads/master | 2016-09-06T00:46:05.624018 | 2015-01-22T02:29:19 | 2015-01-22T02:29:19 | 29,096,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | # Hello World program in Python
print "Hello World!\n"
#input = "90 120 Infected,90 150 NotInfected,100 140 Infected,80 130 NotInfected#95 125,95 145,75 160"
input = "80 120 Infected,70 145 Infected,90 100 Infected,80 150 NotInfected,80 80 NotInfected,100 120 NotInfected#120 148,75 148,60 90"
split = input.split(... | [
"milindaj@gmail.com"
] | milindaj@gmail.com |
79397345c631e26cb88ef3385cd94d8a3e22ec70 | 678b5e4378d809f5048a9284de1f845a3c4540f6 | /src/scenes/cards/Card.py | 266f093ce35443c5e4d2b72124060ef11cd7b63b | [
"MIT"
] | permissive | codingblocks/get-outta-here | 2fccc4c97104078fdd70c2a9b5ea8cfbaf6a7706 | 8d37047876a93a050f0116086a470df123421cb9 | refs/heads/main | 2023-02-23T14:52:04.986791 | 2021-01-24T22:32:08 | 2021-01-24T22:32:08 | 332,569,558 | 0 | 1 | MIT | 2021-03-25T06:33:31 | 2021-01-24T22:24:59 | Python | UTF-8 | Python | false | false | 6,676 | py | import pygame
from src.config import (CARD_FRONT_BACKGROUND_IMAGE, CHARACTER_SPRITE_PATH, MAP_TILE_HEIGHT,
MAP_TILE_WIDTH, MAIN_FONT_FILE, MAP_TILE_SCALE, CARD_TEXT_SIZE, CARD_TEXT_COLOR,
CARD_IMAGE_SIZE, CARD_TITLE_SIZE, CARD_TITLE_IMAGE, CARD_TEXT_IMAGE, CARD_TYPE_IM... | [
"me@joezack.com"
] | me@joezack.com |
5639c8a9787426db742cd1e8e2e6518dd45c03b3 | 6c83083e1ddff6028a004b6beb40921d3d723a29 | /gofish2.py | 0fb1af0b9d48b1d623a3735d78c095dd193e02cc | [] | no_license | pfigz/python-files-projects | 62255d38ace41150df8c26831be3f631f713a802 | 6ff153dece345ed5d93de4c46df8f0158e634861 | refs/heads/main | 2023-07-17T08:27:47.491472 | 2021-09-09T14:19:37 | 2021-09-09T14:19:37 | 404,751,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,251 | py | #Go fish example 2
import random
def MakeDeck():
deck = []
c = 0
values = ["Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"]
suits = ["Hearts", "Spades", "Diamonds", "Clubs"]
for v in values:
for s in suits:
deck.append([v,s])
random.shuffle(de... | [
"pfigdev@gmail.com"
] | pfigdev@gmail.com |
23eee071d0d6157fda786b1c2e638cb649ec482e | 10261f7a8864a8db3970d9e8ecc26645cf7f901c | /custom_bandits/custom_bandits/envs/custom_twoArm_env.py | f2b8aeadf05c39267ec261d52a8c36356451f023 | [] | no_license | abhikmr778/CS698R-ABHINAV-KUMAR-16907018-ASSIGN-1 | 6219bf94e86b37a55082e761ec291a788ad50351 | ff722b7d9d27fbe6571063a26e04e48efb8f10f3 | refs/heads/main | 2023-07-29T06:47:26.097700 | 2021-09-11T11:13:32 | 2021-09-11T11:13:32 | 405,250,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | ###########################################################################
# #
# Environment Class template followed from #
# https://stable-baselines.readthedocs.io/en/master/guide/custom_env.html #
# ... | [
"abhi.kumar778@gmail.com"
] | abhi.kumar778@gmail.com |
5184f3b5a7ed92581d910e979f58f31d1a589646 | cad83699bb72bc1d560815d5b1c34fc9b371f163 | /cartridge/project_template/manage.py | 4330dc2e1a9c13927f25c69c19985527dbbe4267 | [
"BSD-3-Clause"
] | permissive | BeUnique/cartridge | a1903ecc78029a576e57c3832b16357c7661b1b8 | e5b887fed96d01ab93237f345fc420bcbe56d027 | refs/heads/master | 2021-01-19T06:00:01.090292 | 2011-08-31T01:04:33 | 2011-08-31T01:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | #!/usr/bin/env python
# When project_template is used as the actual project during Mezzanine
# development, insert the development path into sys.path so that the
# development version of Mezzanine is used rather than the installed version.
import os
import sys
project_path = os.path.dirname(os.path.abspath(__file__))
... | [
"steve@jupo.org"
] | steve@jupo.org |
20635d8de0d79ef721fcfb9b23358878187fd7dd | e1032ba0bff93df82f6418f67edcf896dd134c68 | /Hackerrank/sorted_sums.py | a4a2accb0fc5099a0a231c30429d05c63257d35f | [] | no_license | webdastur/ProgrammingProblems | 2956e1700866eeb957ccc027e4e14bb2a9ec37a2 | 8677ecb4d3e1377e5b73351eee19fe68b6febd9c | refs/heads/master | 2022-11-09T16:43:04.469734 | 2022-10-29T13:51:22 | 2022-10-29T13:51:22 | 183,794,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | class SortedSums:
def __init__(self, size):
self.size = size
self.arr = [0] * self.size
def add(self, x, val):
if x == 0:
self.arr[0] += val
return
while self.size > x:
self.arr[x] += val
x += x & (-x)
def rank(self, x):
... | [
"webdasturuz@gmail.com"
] | webdasturuz@gmail.com |
d035e9fd898748e129cda959b3d579e13d600d7b | aae29f1c7c8eabda658a00e39f471377b6da0052 | /pygame_project/main.py | dec238616052d072703a724685d1660c382f7741 | [] | no_license | dreamerror/practice_projects | 52041645ba3c7421b9c7fb1a1f6b376915bd9fd9 | 9d4010e92cf82f49e7938995ee74a8365ef28c80 | refs/heads/master | 2023-06-27T20:33:13.936427 | 2021-07-31T03:48:11 | 2021-07-31T03:48:11 | 389,886,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | import pygame
import random
import sys
from pygame.locals import DOUBLEBUF, KEYUP, K_RIGHT, K_LEFT, K_UP, K_DOWN, K_SPACE, QUIT
pygame.init()
NUM_SHAPES = 5
PUZZLE_COLUMNS = 6
PUZZLE_ROWS = 12
SHAPE_WIDTH = 50
SHAPE_HEIGHT = 50
FPS = 15
WINDOW_WIDTH = PUZZLE_COLUMNS * SHAPE_WIDTH
WINDOW_HEIGHT = PUZZLE_ROWS * SHAPE_... | [
"66074257+dreamerror@users.noreply.github.com"
] | 66074257+dreamerror@users.noreply.github.com |
10ba62e4e2abefa1a7435eb6853c7606548f54aa | 92d5555325b328549b25d3c2af9b8c577d1511cd | /log/config.py | e612e8fe669bfae1ce5e9f6fbdc77cedebcd275c | [] | no_license | zhang29845987/tpshop_login_api_1 | a5d213ead57376fb1e2b91d0554b2bc6541f06f7 | 58a78a60e6378d960ad03c9de4a4f3a006078f89 | refs/heads/master | 2020-09-29T18:12:52.191624 | 2019-12-10T10:32:26 | 2019-12-10T10:32:26 | 227,091,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import logging
import os
# 获取项目根目录
from logging.handlers import TimedRotatingFileHandler
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
print(os.path.dirname(os.path.abspath(__file__)))
# 初始化日志配置
def init_log_config():
#添加日志器 默认日志root
logger=logging.getLogger()
logger.setLevel(logging.INFO)
... | [
"zpb0990@163.com"
] | zpb0990@163.com |
6e7f711485de28b5120b7854383a32ff11f98c7d | cb48956cb48a94da0a25e7742b87b623224664ed | /network/relighting.py | bef13c75f6a6c179329e32a4459a1d8c993cdd27 | [
"Apache-2.0"
] | permissive | Siddharth-Shrivastava7/DANNet | e5f2fb03bd8cb4e19392863566a9b97efa59f955 | 8db10056a4e445d24fc899505923615457cae5b7 | refs/heads/main | 2023-06-20T20:33:32.602314 | 2021-07-30T17:52:00 | 2021-07-30T17:52:00 | 362,430,200 | 0 | 0 | Apache-2.0 | 2021-04-28T10:38:22 | 2021-04-28T10:38:21 | null | UTF-8 | Python | false | false | 7,379 | py | import torch
import torch.nn as nn
import functools
affine_par = True
class ResnetBlock(nn.Module):
"""Define a Resnet block"""
def __init__(self, dim, padding_type, norm_layer, use_dropout, use_bias):
"""Initialize the Resnet block
A resnet block is a conv block with skip connections
... | [
"noreply@github.com"
] | Siddharth-Shrivastava7.noreply@github.com |
1215d8edd938231f4d95f34270b4973a1bf63dbd | 4db6ffdad89c6a3d1cf9731b815dbb7177b10043 | /code/landcover_model/config.py | 39913c695156dfd96525beffad1fcfbf51bf2308 | [] | no_license | hugisveitti/thesis | 55002c38ce58ad5b99dc07900e0a2121cbe096c0 | a99a034fa684eae4d9c7f7cad391a521ff0525db | refs/heads/master | 2023-07-27T05:05:16.535638 | 2021-08-15T19:26:43 | 2021-08-15T19:26:43 | 364,648,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import torch
IMAGE_WIDTH = 256
IMAGE_HEIGHT = 256
num_classes = 9
tensor_type = torch.HalfTensor
device = "cuda"
cross_entropy_weights = torch.tensor([1.75827705e-05, 2.63985891e-02, 4.93802954e-01, 0.00000000e+00,
9.56997597e-02, 6.52813402e-02, 2.43301976e-01, 2.19168076e-02,
0.00000000e+00, 2.51651... | [
"hugiholm1@gmail.com"
] | hugiholm1@gmail.com |
61a68ab16ef1c92be2bcf040f1cde0f7934ad563 | db26b08ad35594a8a2aba36a68bfe37f85728727 | /DjangoAngularAssignment/conversation/views.py | 4f355cbd6325591ee242efd26e5640a770b7f29c | [] | no_license | rafikkamal/django | 83f3217f3e31fd13a5e1c4e81ed583ccfd4971fe | 7d593707f0f33b074e22f75f9ed0a6e0ef0b39d1 | refs/heads/master | 2021-01-20T06:25:30.872254 | 2017-04-30T21:02:12 | 2017-04-30T21:02:12 | 89,877,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,687 | py | from django.db.models import Q
from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.views import generic
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth import authenticate, login
from .models import Conversation
from django.vi... | [
"rafik.rkn@gmail.com"
] | rafik.rkn@gmail.com |
5a7644e93929e110f2439ee13de2a41444e4af81 | bd749eca9a6aa414745bf13106c948fb2794d72b | /blog_app/migrations/0002_auto_20190910_1519.py | eb89b3692ac1da5756d047aa055b459d93bc40d4 | [] | no_license | DreamInit/my_blog | 115b07b40a32fc1d50fb642281a501dcce1ef46c | 1309664c9504a93f36cbf7bbf30cc87cb096608d | refs/heads/master | 2022-11-03T09:28:26.098193 | 2019-09-11T11:54:56 | 2019-09-11T11:54:56 | 207,740,133 | 0 | 1 | null | 2022-10-09T12:20:34 | 2019-09-11T06:33:17 | Python | UTF-8 | Python | false | false | 340 | py | # Generated by Django 2.0 on 2019-09-10 07:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog_app', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='blog',
options={'ordering': ['-created_time']... | [
"chuan.huang@scaleflux.com"
] | chuan.huang@scaleflux.com |
a9280167358863b7781ffed296d8c21e28ee3189 | f0a1b45309785a89bf74eccb75e229fd38a0aaa8 | /math_utils.py | 48245f597c0819e491d64268d76f8b6fe85245c1 | [] | no_license | mikaelmello/python-rsa-implementation | f8f8ecb7f79d8808b4d9ed520c14666560315a2b | 7b501253e41fc4c9f07db02d73896c9c189c8ebf | refs/heads/master | 2020-09-21T13:06:19.271833 | 2020-04-07T18:51:35 | 2020-04-07T18:53:23 | 224,797,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import secrets
import math
def extended_euclid(a, b):
"""Extended euclidean algorithm"""
s = 0
t = 1
r = b
old_s = 1
old_t = 0
old_r = a
while r != 0:
quotient = old_r // r
old_r, r = (r, old_r - quotient * r)
old_s, s = (s, old_s - quotient * s)
old_t,... | [
"git@mikaelmello.com"
] | git@mikaelmello.com |
5278d0ebc39489eb80a4b0a82ecaf609f72027a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03813/s431513228.py | c4298e11e8a394fafce0121831f9fbfa51e6a6ab | [] | 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 | 260 | py |
def read_int():
return int(input().strip())
def read_ints():
return list(map(int, input().strip().split(' ')))
def solve():
x = read_int()
if x < 1200:
return 'ABC'
return 'ARC'
if __name__ == '__main__':
print(solve())
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9e2010ab225e7382d1bcaaae37d358d2bdd39500 | 042962d67c8742d01f66f254375b1ceb9136d182 | /sensibleServer/__init__.py | b4047c4be8d5508123a5789445b9f26a212307ed | [] | no_license | Sensibility/sensibleServer | d8b0afefd846e31d454912f579067fc90526d046 | a4125fa36e9a47e3ea05287ab6b54ca22110eb0d | refs/heads/master | 2021-05-26T07:46:00.499527 | 2019-11-07T17:00:31 | 2019-11-07T17:00:31 | 127,950,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | """
This package provides a simple http(s) server that serves content with optional cgi scripting available.
Usage: sensibleServer DOCUMENT_ROOT [ -c --enable-cgi ]
"""
__author__ = "ocket8888"
__version__ = "0.0.1"
import argparse
ROOT, CGI = None, None
def main() -> int:
"""
Runs the program.
"""
global ROOT... | [
"ocket8888@gmail.com"
] | ocket8888@gmail.com |
3bdc87a55f1a198db75b03987f4bf990b86d2541 | 363245bca6658463411aba57e89f96bc6cb9434e | /tests/test_gamesession.py | 3733e371c58ac5a2dadaa0606f0521c2b6e4e054 | [
"MIT"
] | permissive | daleecoding/HQ-Trivia-Homework | 75b5de2e955e08eb51b82c64cd9b56e9dbe85c79 | c41e014458539bf9b3a0cc9fb360ececb8a029a3 | refs/heads/master | 2022-12-22T05:49:15.754811 | 2020-08-04T12:49:32 | 2020-08-04T12:49:32 | 302,655,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,432 | py | import asyncio
import unittest
from unittest.mock import AsyncMock
from unittest.mock import MagicMock
from unittest.mock import call
from unittest.mock import patch
from websockets.exceptions import ConnectionClosed
import hqtrivia.config as config
from hqtrivia.gamesession import GameSession
from hqtrivia.messages i... | [
"68974415+dongkyutoronto@users.noreply.github.com"
] | 68974415+dongkyutoronto@users.noreply.github.com |
0e10cbdfa5b1cd030ad2bdd01ff695d9fdb60938 | d88868b88864e4d10009c58b27323034715b0277 | /projects/barter/deployments/docker/barter/test.py | 1ff68bc01c1f1c3d50a8992e741a015cb27fa14d | [
"Apache-2.0"
] | permissive | shamal112mn/packer-1 | 795ebd9e0fee444f0cbb01897a50e199b73f1307 | be2720e9cb61bf1110a880e94e32a6767a341588 | refs/heads/master | 2023-07-10T09:33:10.516559 | 2021-08-17T02:25:50 | 2021-08-17T02:25:50 | 327,763,823 | 0 | 0 | null | 2021-01-08T01:08:49 | 2021-01-08T01:08:48 | null | UTF-8 | Python | false | false | 388 | py | import requests
import json
url = "https://investors-exchange-iex-trading.p.rapidapi.com/stock/tsla/effective-spread"
headers = {
'x-rapidapi-key': "158cd4f9cdmsh0d92f8b92b1d427p1947b6jsn857aa1252e0b",
'x-rapidapi-host': "investors-exchange-iex-trading.p.rapidapi.com"
}
response = requests.request("GET",... | [
"you@example.com"
] | you@example.com |
46276e90877480976304b67321686d3487c1d5fe | a4fd0e2674264327b50cc913312d959043610ef9 | /My_Social_Project/My_Social_Project/urls.py | 867f51eecae02f6db439256148b143bc629e1ddb | [] | no_license | ztarikul/InstaShohor-Social-Media-Site | 7dedc88ecdffd26501063935ac448482613e3dfd | 08d56d1c185435997930a4a7d8b768442acd4be9 | refs/heads/master | 2023-02-13T12:28:25.359635 | 2021-01-09T23:32:03 | 2021-01-09T23:32:03 | 328,261,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns
from App_Posts import views
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('App_Login.urls')),
path... | [
"ztarikulislam@gmail.com"
] | ztarikulislam@gmail.com |
cbf504b8cd17c0a67f5038d1dce21a3000e0629c | 6366498f7fcaf6c73c34fb0428bbbb899c8a8703 | /Math/ProjectEuler005.py | 1378b169df4cb2a308f4608ae22d4592a5586cc2 | [] | no_license | bibhuty-did-this/MySolutions | 2a3da0369cec5ced00c167d80008b2c11e8edbd5 | 4c6cad6853ac5626ada4302dd4770ec0cbcc99f3 | refs/heads/master | 2023-06-14T08:38:29.220996 | 2023-06-01T04:49:05 | 2023-06-01T04:49:05 | 102,737,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # Algorithm:
# You have to find the lcm of all the numbers combinedly
# Generate a lookup table
from fractions import gcd
lcm=[]
lcm.append(1)
for i in range(1,41):
lcm.append(((lcm[i-1]*i)/gcd(lcm[i-1],i)))
# Display the result
for _ in range(int(raw_input())):
print lcm[int(raw_input())] | [
"emailofpanda@yahoo.com"
] | emailofpanda@yahoo.com |
d0e79b2550921ec82c01575be4ab9c242dc8b522 | 0313d27c61d83f4cc783611d23cd11dd9af20d12 | /flyback.py | 4ec898bebf9c00c54e9346439ae546d11eceda39 | [
"MIT"
] | permissive | di2mot/Flyback_registrator | fe45e3fa5701e8550f21a274276a157e2d38c709 | 1cd887b16bf31b60f0cbb8166fc813dd96c812da | refs/heads/main | 2023-03-01T20:46:15.724438 | 2021-02-08T19:20:32 | 2021-02-08T19:20:32 | 337,182,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,310 | py | from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import NoSuchElementException
import time
'''
СУПЕРТ ТУПАЯ ПРОГА для регистрации на форуме flyback.org.ru
Да, решить просто, но на тот момент я не знал м... | [
"motsar.dm@gmail.com"
] | motsar.dm@gmail.com |
7824b29dc495b887680fcb309cd946bcb8051fb5 | 34229ca69dda0acf53daba3a9696f93ae341d226 | /lab/lab01/lab01.py | 82ec65a20af4baf650c6642bf906bf0d4aaea5b9 | [] | no_license | Unc1eWu/CS61A | 60687f0ac3722997af9d3aef4c1190611942197c | 18a379a30b2d16629f649e091623892dc2c15df7 | refs/heads/master | 2020-04-29T16:59:55.469735 | 2019-09-22T09:08:29 | 2019-09-22T09:08:29 | 176,282,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | """Lab 1: Expressions and Control Structures"""
# Q3
def sum_digits(n):
"""Sum all the digits of n.
>>> sum_digits(10) # 1 + 0 = 1
1
>>> sum_digits(4224) # 4 + 2 + 2 + 4 = 12
12
>>> sum_digits(1234567890)
45
"""
"*** YOUR CODE HERE ***"
sum = 0
while n > 0:
sum += n... | [
"Weijie.Wu17@student.xjtlu.edu.cn"
] | Weijie.Wu17@student.xjtlu.edu.cn |
b9aae4c3e88a7792acd442dd2d9d158dd3d47ae4 | fb8cbebdf034b2f478943752d5443afc82c6eef5 | /tuirer/venv/lib/python3.6/site-packages/IPython/core/inputtransformer.py | 44ec5a1aae19b8708a617982258ffa6ec5f11bd0 | [] | no_license | fariasjr/CitiTuirer | f64e0ec93ef088f8140bb0961d2ad4ed3b59448a | deb3f7a9c2d45b8a7f54639037f097b99abdac11 | refs/heads/master | 2020-03-24T05:10:36.261050 | 2018-08-01T20:24:30 | 2018-08-01T20:24:30 | 142,477,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,242 | py | """Input transformer classes to support IPython special syntax.
This includes the machinery to recognise and transform ``%magic`` commands,
``!system`` commands, ``help?`` querying, prompt stripping, and so forth.
"""
import abc
import functools
import re
from io import StringIO
from IPython.core.splitinput import Li... | [
"jornadaciti@ug4c08.windows.cin.ufpe.br"
] | jornadaciti@ug4c08.windows.cin.ufpe.br |
d1ecf38656a166455efc2f5666bd6b3ebcedb4e8 | c124e35f3d8dbbdb0423b4b7c30d84baaa04a208 | /python/decorators.py | 4d8bcc0067b39bc9310c7754fa2809d787c3332c | [] | no_license | Tettipappus/harvard-cs50 | 29914c929743c27011c5205b6cbaca997f1e6295 | c8fc42c874cc5989fd99ccf3ce59fd60d3c809b8 | refs/heads/main | 2023-06-25T08:54:55.932761 | 2021-07-19T13:58:49 | 2021-07-19T13:58:49 | 376,718,943 | 0 | 0 | null | 2021-06-14T09:20:41 | 2021-06-14T06:02:01 | HTML | UTF-8 | Python | false | false | 209 | py | def announce(f):
def wrapper():
print("About to run a funtion...")
f()
print("Done with the function.")
return wrapper
@announce
def hello():
print("Hello, world!")
hello() | [
"sig.d.skjerve@gmail.com"
] | sig.d.skjerve@gmail.com |
75747144a3735564364a1962ef1c25bd322f6760 | ed2234df3d7e1eecd1b198df66f4fd7263145d18 | /MergeSort.py | 5e0ed44e686d16540544f188564254a64609b9b5 | [] | no_license | Manohar-Gunturu/AlgoPython | bb887f1508c24798c5ae4b1d55fc75d41d674254 | 5800336886b1cde4deb577f4dc671ce993a0e7f4 | refs/heads/master | 2021-07-06T10:31:44.984945 | 2020-07-18T15:45:03 | 2020-07-18T15:45:27 | 132,955,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | arr = [0, 3, 1, 5, 2, 4, 6, 1, 3, 0]
# arr = [5, 2, 4, 6, 1, 3]
def merge(array, begin, mid, end):
# size of first array [begin, mid]
n1 = mid - begin + 1 # +1 as index starts at 0
# size of first array [mid+1, end]
n2 = end - mid
# temp array to hold left and right
leftarr = [0] * n1
rig... | [
"gunturumanohar2@gmail.com"
] | gunturumanohar2@gmail.com |
c8611799a1e24a658b75c368489cc107c804783e | d8ac9944ff402ec9f0bea82213a8418982c16f39 | /python/Tushare_API_Scripts/DataFrame写入PG数据库.py | 97b330f3c46b13c7ee8b6c6d9117eb63e282fef7 | [] | no_license | zzgbird/PyAndShell_Learning | cdc50d23ac0d05dcb9293171bb3a9946485766d3 | 9f0f7b3a39d2ad8a6a5211dd612d805dac5de64c | refs/heads/master | 2023-03-27T11:30:35.245342 | 2021-03-21T07:02:59 | 2021-03-21T07:02:59 | 300,139,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | # DataFrame写入PG数据库
# 提前创建df数据集并安装psycopg2模块
pip install psycopg2
# 1. 使用pandas的to_sql导入
import pandas as pd
from sqlalchemy import create_engine
engine = create_engine('postgresql://postgres:ican00@127.0.0.1:5432/stockam')
start = datetime.datetime.now()
pd.io.sql.to_sql(df, 'stock_basic', engine,index= False, ... | [
"zzg_30th@outlook.com"
] | zzg_30th@outlook.com |
bd0f712c9aea151cb5ebee92c726e449ed9bc413 | 5cefde592dcc5c40b73734d9488199f084622912 | /MNIST/attacks_base.py | 63dba65da2e82fb07601154582ce167dbff86b16 | [] | no_license | RemiBERNHARD/Membership_Inference_Attacks | d41f2e1f1966c76cc94f0f6f65f858c30ecb7f5a | a4b68a5bd1d0993ca60a2bacb2d5e445b51cdb10 | refs/heads/main | 2023-03-01T13:14:04.257446 | 2021-02-12T13:00:39 | 2021-02-12T13:00:39 | 338,311,636 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | import numpy as np
from keras.utils import np_utils
from keras.models import Model
from keras.layers import Dense, Input
from keras.optimizers import Adam
#########################
def attack_label(model, X_vec, y_vec):
y_pred = np.argmax(model.predict(X_vec), axis=1)
memb_pred = np.equal(y_pred, y_vec)
... | [
"noreply@github.com"
] | RemiBERNHARD.noreply@github.com |
a6f5732bacf0acd92492666f0a0fa0795679cf6c | e19ddbc01a0a8f6295a106ff969da9f4a9ffd408 | /MIT_OCW/Textbook Finger Exercises/2-4-2_Largeset_Odd_Out_of_10.py | cfb1449cf4720b493d02eb99650255d70ff9f6f2 | [] | no_license | Nmeece/MIT_OpenCourseware_Python | 8860049c48090646fc9e98e469047cc5a0b171f1 | 69aecd3e9b448bc5ce2b98e46d72d65b35e212b5 | refs/heads/master | 2023-04-24T07:48:31.216771 | 2021-05-02T17:38:10 | 2021-05-02T17:38:10 | 318,314,220 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 13 11:44:55 2020
Second Finger Exercise of section 2.4 of the Introduction to Computation and Programming Using Python textbook.
Prompt:
Write a program that asks the user to input 10 integers, and then prints the largest odd number that was entered.
... | [
"nygelmeece8@gmail.com"
] | nygelmeece8@gmail.com |
75f74b2bca9e9f3323f53b9941cda59e24b9064e | 7f7898939786f7dae5693d66d35149b177b06a34 | /mgw7510/forms.py | 4390a9bff113b0c16f4699d6b0a82354e60ef680 | [
"Apache-2.0"
] | permissive | gter1216/mgw7510-web | f8a6ef2cd3793fdafadf28ba6ec4d4493db69a7c | 758e9053b1071655b5e23f714a82f8698cb562e6 | refs/heads/master | 2021-01-12T07:45:40.679559 | 2017-02-03T13:45:04 | 2017-02-03T13:45:04 | 77,008,390 | 2 | 5 | null | 2017-03-01T04:55:55 | 2016-12-21T02:25:14 | HTML | UTF-8 | Python | false | false | 2,143 | py | from django.forms import ModelForm
from mgw7510.models import WebUser
from django import forms
# inherit from class ModelForm
class WebUserForm(ModelForm):
# username = forms.EmailField(error_messages="user name should not be empty")
# password = forms.CharField(error_messages="password should not be ... | [
"xuxiao1216@126.com"
] | xuxiao1216@126.com |
4438a410880898850073b4bc83f77e73ca792121 | eadd15064aa74811e7a3718b617636627ef4fd47 | /web/migrations/0020_rename_index_indexpage.py | 8efb4605a936d00a29a46a2c95ef6c4263e63c65 | [] | no_license | topsai/plasrefine_backstage | 262f7bb032daa4d018aac1519e1139cb060c3f91 | 1eb34dd0b13ebdc2a42dd6ed1aaa2d08c18ab5fb | refs/heads/master | 2023-04-12T13:24:22.710108 | 2021-05-08T14:16:41 | 2021-05-08T14:16:41 | 361,993,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.2 on 2021-05-02 08:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('web', '0019_auto_20210502_1558'),
]
operations = [
migrations.RenameModel(
old_name='Index',
new_name='IndexPage',
),
... | [
"hurte@foxmail.com"
] | hurte@foxmail.com |
64764f6b4a24d45418ef96845068613a38b12ef6 | 921e479e9fe4f72c0621207b262f7464b6812d9b | /ants.py | c2ba7b96cbf5bdf1c537ec32ec1f333bdb5b6ce0 | [] | no_license | ajai-sharma-backup/ants | af60fc671ffe7c9eede2002189906e6095defc96 | 9df7ebc8907132415d088302e9a9fe2f0bca2116 | refs/heads/master | 2021-06-13T17:52:18.431694 | 2015-06-02T21:17:37 | 2015-06-02T21:17:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,763 | py | """The ants module implements game logic for Ants Vs. SomeBees."""
# Name: Ajai Sharma
# Email: ajai.sharma@gmail.com
import random
import sys
from ucb import main, interact, trace
from collections import OrderedDict
################
# Core Classes #
################
class Place:
"""A Place holds insects and ... | [
"ajai.sharma@gmail.com"
] | ajai.sharma@gmail.com |
6f5a178c8d1ba0fb6bb65c7f38002457ca8ef23a | e3565e1ce607f60745f2a045aae8026661a6b99b | /resources/Onyx-1.0.511/py/onyx/util/rocutils.py | 48dd8b474c58afe853ee45475fc9479842d375ed | [
"Apache-2.0"
] | permissive | eternity668/speechAD | 4c08d953b2ed06b3357b1c39d8709dd088a2471c | f270a1be86372b7044615e4fd82032029e123bc1 | refs/heads/master | 2021-01-12T22:10:33.358500 | 2014-02-03T16:03:28 | 2014-02-03T16:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,676 | py | ###########################################################################
#
# File: rocutils.py (directory: ./py/onyx/util)
# Date: Mon 10 Mar 2008 18:34
# Author: Ken Basye
# Description: Utility code for generating ROC and DET curves
#
# This file is part of Onyx http://onyxtools.sourceforg... | [
"nassos@n12mavra.cs.ntua.gr"
] | nassos@n12mavra.cs.ntua.gr |
e1136957d862e88999704359ee05863d30e39f15 | 4c99cd9846d6c9f196c7cbfa06f0576fb221a104 | /virtuellenv ihkb/lib/python2.7/site-packages/whoosh/fields.py | 0c6789cffdaa2519cb35c068b74592287435b576 | [] | no_license | Gitlena/ichhabkeinblog | 4622637773d5c4f3647455659058aab90d5bd050 | 1cfd7a030f9d41279a120724d29e1f48aa511562 | refs/heads/master | 2016-09-08T01:56:39.943817 | 2014-03-22T19:52:57 | 2014-03-22T19:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,659 | py | # Copyright 2007 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | [
"ubunicorn@googlemail.com"
] | ubunicorn@googlemail.com |
ff1fd7cc8123d0a5423c973f1719f3e816799522 | 2fe08f181c53b7d94c5e97f08016b86705488594 | /app.py | c2170f933f0edeab3758e05f01956f0539cd387b | [] | no_license | KidoThunder/ExportXiamiList | 521871639e67bd2cc235de46ce4078610bb44e65 | b769740e4613f58ff29381f1e8865adbf6368ac2 | refs/heads/master | 2021-06-16T20:00:49.713299 | 2017-04-24T06:40:18 | 2017-04-24T06:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,606 | py | # python3
# author: fyl00
# source: https://github.com/fyl00/ExportXiamiList
import logging
import re
import sys
from PyQt5.QtCore import QObject, QThread, pyqtSignal
from PyQt5.QtGui import QTextCursor, QIcon
from PyQt5.QtWidgets import QMainWindow, QApplication, QMessageBox, QFileDialog
from lxml import etree
from... | [
"fyl00lee@gmail.com"
] | fyl00lee@gmail.com |
2cdcc3f42550aff81547194ab8337407a6b72240 | 0d6c0df740fad947cd489bcd81c067c2a50e6508 | /projects/hog/tests/05.py | 29eebe503fa8fa044c6c7cefc608ea2cdc7710da | [
"MIT"
] | permissive | louieyan/CS61A | 39f317db01c25219ef813dd8b0af788441ba700f | efa7e7d1becbea776ccfa545197a50c20b85d4fb | refs/heads/master | 2022-03-08T03:41:57.052682 | 2022-02-28T02:03:30 | 2022-02-28T02:03:30 | 148,614,155 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,687 | py | test = {
'name': 'Question 5',
'points': 2,
'suites': [
{
'cases': [
{
'answer': 'While score0 and score1 are both less than goal',
'choices': [
'While score0 and score1 are both less than goal',
'While at least one of score0 or score1 is les... | [
"noreply@github.com"
] | louieyan.noreply@github.com |
df79b390cc42bfa1f4ab91ea70a0d961c8fa1131 | c4f0e34324d5a44895212c9c24c6ed57e62cf9f9 | /MinorProject/settings.py | 5d5b9498599232e03e6175b4075b4e1f0e074a09 | [] | no_license | Shinde-Hmn/MINDSHUFFLER | 7fce564d567200dea01319cebce15f3f9d405bbc | 0bf22df015d9e62e9a5622cea40f6915edf1b500 | refs/heads/master | 2022-04-26T20:10:31.581050 | 2020-04-30T16:57:09 | 2020-04-30T16:57:09 | 260,267,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,900 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.4.
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
# ... | [
"himanshushinde1997812@gmail.com"
] | himanshushinde1997812@gmail.com |
061a39f3108aeed656ad2dd3e0779406a17ee0f6 | 414daef846cbb984cb97c1183e7ea557ce466575 | /alpha_sigma-master/record_node_backup/new_MCTS.py | 45046ddcd18f5acf49821148d967979c791aa016 | [] | no_license | yyh1999070901/GoAI | c0e0cf0d471bb65a56f83796707f9c58219554c5 | d0551c8faa4c9a37a7a50d140a45727354a54fd2 | refs/heads/master | 2023-02-03T00:30:38.628257 | 2020-12-22T11:17:30 | 2020-12-22T11:17:30 | 323,603,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,440 | py | import numpy as np
import random
import sys
import utils
from five_stone_game import main_process as five_stone_game
import time
num2char = {0: "a", 1: "b", 2: "c", 3: "d", 4: "e", 5: "f", 6: "g", 7: "h", 8: "i", 9: "j", 10: "k", 11: "l", 12: "m",
13: "n", 14: "o", 15: "p", 16: "q", 17: "r", 18: "s", 19: ... | [
"18710113218@163.com"
] | 18710113218@163.com |
f8fdac6b1a2846a9f74f7db1f038fed9022ab0a4 | 5dd03f9bd8886f02315c254eb2569e4b6d368849 | /3rdparty/python/GitPython-0.3.1-py2.6.egg/git/__init__.py | 500d053f7729d7172f300870e30b00ae7a523f09 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | adamsxu/commons | 9e1bff8be131f5b802d3aadc9916d5f3a760166c | 9fd5a4ab142295692994b012a2a2ef3935d35c0b | refs/heads/master | 2021-01-17T23:13:51.478337 | 2012-03-11T17:30:24 | 2012-03-11T17:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # __init__.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import os
import sys
import inspect
__version__ = '0.3.1'
#{ Initialization
def _init_externals(... | [
"jsirois@twitter.com"
] | jsirois@twitter.com |
241ac7b70c2142fba7ff196677ed61d5e0910d2f | 587290dbd33c5fb60a154eacd2155e681a3f9ecf | /js/gatsby/index.cgi | db257841537410c023fb93f34bb0b3e0a10dcd00 | [] | no_license | jaredly/prog | b6408db52c16e9d3c322933f0624c23663d33ce0 | e8fe82ccd1abe42371adbb3f317576facac546ca | refs/heads/master | 2021-01-20T09:12:48.931999 | 2013-08-29T04:24:36 | 2013-08-29T04:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | cgi | #!/usr/bin/python
print 'Content-type:text/html\n'
import cgi,cgitb,os,sys,re
cgitb.enable()
def load_chapter(chap):
return open('chapter%s.txt'%chap).read()
def load_chapters():
d=[]
for i in range(1,10):
d.append([i,load_chapter(i)])
return d
def print_entry(at,chap,pageat,item):
if at... | [
"jared@jaredforsyth.com"
] | jared@jaredforsyth.com |
c67e75c1252e6c67b7433b5b12e21fc96a3a4abf | 59a4a1409fabdd29c6db85775a549c00b5a7b3b7 | /小型FTP/服务端/server.py | 9d417fab71d1189dbf72fcb676df0e9a7689d76d | [] | no_license | laijin/mini_FTP | 5be28ebe457dac57eef05d48c88e81c01fd0d1da | 01c5777135a019efacddce0566dca1df757b9568 | refs/heads/master | 2020-04-01T17:08:10.404816 | 2018-10-17T07:37:31 | 2018-10-17T07:37:31 | 153,414,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | import socket
import os
import subprocess
import struct
import json
share_dir=r'D:\python3.7\chengxu\luffy\ch-5\小型FTP\客户端\share'
def get(cmds,conn):
filename = cmds[1]
# 以读的方式打开文件,读取文件内容,发送给客户端
header_dic = {
'filename': filename,
'md5': 'graga',
'file_size': os.pat... | [
"noreply@github.com"
] | laijin.noreply@github.com |
d69078e714be2c5e36cd35abb4d251b6fb236980 | 16582b82a7cb119f218b6d4db025c338263852fc | /download.py | 6246ed7d49a2d7362dc394241198fcef86f9194f | [] | no_license | a1004123217/music | 849921ffbeea264e258ea53d9b4c773b21a68a9d | 9ef35653c0872c70463c9802ea6fe318f726cfcf | refs/heads/master | 2022-12-12T11:50:49.233881 | 2020-09-14T10:42:29 | 2020-09-14T10:42:29 | 292,523,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from urllib.request import urlretrieve
import os
# 解决
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
'''
通过txt网址文件,现在图片到本地
'''
def download():
categories = ['music']
for category in categories:
# 新建存储ladder文件夹存储图片
os.makedirs('/Users/wzy/PycharmProjects/pythonPro... | [
"wzy@wangzhenyudeMacBook-Pro.local"
] | wzy@wangzhenyudeMacBook-Pro.local |
9443edd0436310cbd47d8b6a75e21c106482fb9c | 1eee09ce02d848a8e2653f199b7171f74cb7d1c9 | /service/api.py | 6496e828b7afe578a9d14aa5a0c97a8185b15a63 | [
"MIT"
] | permissive | etalab/csv_detective_api | 7416cde112fcd4ed70e703231569bce5901c2161 | 7c96f497374d842226a95a26cb6627ac22cd799b | refs/heads/master | 2023-01-12T09:41:37.519013 | 2020-06-15T14:09:34 | 2020-06-15T14:09:34 | 193,232,263 | 3 | 3 | MIT | 2023-01-04T08:20:45 | 2019-06-22T12:35:26 | Jupyter Notebook | UTF-8 | Python | false | false | 7,487 | py | #!flask/bin/python
import os
import sys
from collections import defaultdict
sys.path.append("./csv_detective_ml") # horrible hack to load my features class to load my ML pipeline :/
from flask import Flask
from flask import request
from flask import jsonify
from flask_restplus import Api, Resource, fields
from flask_... | [
"pavel.soriano@data.gouv.fr"
] | pavel.soriano@data.gouv.fr |
9e2fd5f4161aa84c62285366896ec09d1372f331 | 522e5c63bd53dccf824c17e882f564e8423331ea | /gbce_trading_unittests.py | 497ea315ef6066e57c1da334e7e5a3c796870a50 | [] | no_license | pankaj-purohit/Assignment | df20a65bb2460cbb28e19b6156003a2611a36f82 | 9ce95b020673ef621e3696b16997c7ff2f989daa | refs/heads/master | 2020-05-31T16:23:37.125624 | 2019-06-05T11:17:14 | 2019-06-05T11:17:14 | 190,380,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,925 | py | import datetime
import unittest
import gbce_trading_config
from gbce_trading import GBCETrading, Stock, Trade
class GBCEUnitTests(unittest.TestCase):
def test_getDividendYield(self):
stockComm = {'POP': {'Type': 'Common', 'Last Dividend': 8, 'Fixed Dividend': None, 'Par Value': 100, 'Trades': []}}
... | [
"noreply@github.com"
] | pankaj-purohit.noreply@github.com |
633d089ce731df7f5e583fa5d1a666bf329b9e9a | 446d500d0c7ca5b46c21c70db820d1b2dac11a38 | /comp11 - intro/proj1/helper.py | 0859f8f24e5f4e69c0e1b3f1565de9c0b3ee4771 | [] | no_license | vladhugec/Course-Work | 3397d52bb4a649196e336c48d0cab340126b2d8b | 27356f32d33aae497ede109fa9e66a19516f79fb | refs/heads/master | 2020-12-18T12:59:25.542999 | 2020-01-21T21:58:34 | 2020-01-21T21:58:34 | 235,391,035 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # helper.py
# Written by: Kalina Allen, kallen07
# 02/23/2018
#
# Purpose: provide a helpful function for comp11 project 1
from string import ascii_letters
# arguments:
# mystr: string to clean
# returns: s but with all non-alphabet characters removed
def clean_word(mystr):
return (''.join(char for char in ... | [
"vladhugec@me.com"
] | vladhugec@me.com |
e81f2da8791b183158fe5fb31295415705244e0d | 15fbec197e9e8508bce3189b0d6d6f0b2fc317ee | /core/migrations/0001_initial.py | 74785cf38e45b6aa551bf1a24a0c5aecd7f27a42 | [] | no_license | douglasbastos/minhatabela | d698071b23ecd2c880af790bd1d85be3a04c7a46 | df8499e46b00d45b9cf7ffaf236b1635fa6e2b85 | refs/heads/master | 2021-01-09T20:29:02.844595 | 2016-07-04T04:30:45 | 2016-07-04T04:30:45 | 62,531,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-04 04:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | [
"douglashsb@gmail.com"
] | douglashsb@gmail.com |
ea69fdc5fcb293b108694f4a74dd68b98284def9 | c744b461256a699d2f039edee0d09344523e86ae | /src/bloch_plot_state.py | a772c653ab022806f6e410d7ee7455d904acab47 | [] | no_license | rajeshn76/Blochsphere_Demo | 672e348991d8918d858464ac2ee7c2827e38b837 | 46371dca1b390a639da25d60bce2fce4174c8874 | refs/heads/master | 2020-04-01T15:54:21.442509 | 2018-10-26T14:59:45 | 2018-10-26T14:59:45 | 153,356,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import numpy as np
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister, execute, Aer
from qiskit.tools.visualization import plot_state, plot_histogram
q = QuantumRegister(1)
c = ClassicalRegister(1)
qc = QuantumCircuit(q, c)
qc.s(q).inverse()
qc.h(q)
qc.rz(np.pi/4, q)
qc.rx(-np.pi/4, q)
qc.barrier(... | [
"rajeshn76@gmail.com"
] | rajeshn76@gmail.com |
7d471f712e0a1b1cc63bcd73298eac954a746430 | 2a3bd5db7f3db99b6b098ba569655a591b673aac | /10_Sony_Select_Service/Documents/02_Design/05_Module_Specification_Design/V5.6/05_BackupRestore/03_BackupRestoreAppListManager/source/conf.py | 8fbb8ae9311a6706e70f7a0820eeb30175fbcbdd | [] | no_license | imace/service-dev | 3c6ce201b51bbc481484ee83aa338ee2af31e67f | a2ee6b8bf844cde34b7f4b5915e2465d84e6258f | refs/heads/master | 2021-01-17T06:01:05.093541 | 2014-12-08T06:37:22 | 2014-12-08T06:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,323 | py | # -*- coding: utf-8 -*-
#
# Pro_Name documentation build configuration file, created by
# sphinx-quickstart on Wed Apr 18 22:33:41 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"devin.wei@sonymobile.com"
] | devin.wei@sonymobile.com |
e3ea3a268a625b1c2669d93b5c29caa0a984cda4 | f63e53c9d7a23c03ecbf488e9ea156c5c98f3f33 | /bookstore_oop.py | a6eeea598ec9a34570aa17f2e95f7d001407c3bb | [] | no_license | matramir/bookstore | 957841664becc9bf00113e51eaed97373d8c8920 | c0a19c767a784d9c1c2fafb6267dbdfaf3ff9b03 | refs/heads/master | 2020-03-27T16:19:10.401750 | 2018-08-30T17:44:12 | 2018-08-30T17:44:12 | 146,773,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | from tkinter import *
from backend_oop import Database
"""
Program that stores Title, Author, Year, ISBN
User can View, Search, Add, Update, Delete, close
"""
database = Database("books.db")
def get_selected_row(event):
try:
global selected_tuple
index=list1.curselection()[0]
selected_tup... | [
"matias.ramirez.parisi@gmail.com"
] | matias.ramirez.parisi@gmail.com |
21bc2d0fbd981fbefdd919c846357da41182c5ac | e48eac671ea8335f696ec5fd0511b12800b0fca0 | /accounts/models.py | 6625a130b79945d6d4613bcc9a0b047c32339541 | [] | no_license | linusidom/django-basic-reservation-system | 8fba10708cebd42d5ad308c0ef838a0fe1ac8778 | 5dd5db4832fe83e862424af18aae3aad6cf3f1ed | refs/heads/master | 2020-03-26T08:37:15.052362 | 2018-08-14T11:34:19 | 2018-08-14T11:34:19 | 144,711,607 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.db import models
# Create your models here.
from django.contrib.auth.models import AbstractUser
from django.shortcuts import reverse
class Profile(AbstractUser):
ideal_weight = models.IntegerField(default=185)
def __str__(self):
return self.email
def get_absolute_url(self):
return reverse('accoun... | [
"linusidom@gmail.com"
] | linusidom@gmail.com |
39ecdda194fb35100d42e0cdad25360099fde4b9 | 665089f28faa90d31a3ba4d62246c8323e4de9f1 | /communityid/algo.py | 366748f6056a748a8ccb618adde26f5c7098b04f | [
"BSD-2-Clause"
] | permissive | corelight/pycommunityid | 64b7385609bdd5b329d95b99a1389ddb5257033a | 64a6fa18ed2dc9ea1f6fed04e670660a9854a632 | refs/heads/master | 2022-04-29T07:09:53.287643 | 2022-03-05T00:45:39 | 2022-03-05T00:45:53 | 196,440,073 | 22 | 5 | BSD-3-Clause | 2022-03-05T00:43:57 | 2019-07-11T17:40:14 | Python | UTF-8 | Python | false | false | 17,482 | py | """
This module implements Community ID network flow hashing.
"""
import abc
import base64
import collections
import hashlib
import logging
import socket
import string
import struct
from communityid import error
from communityid import compat
from communityid import icmp
from communityid import icmp6
from . import LO... | [
"christian@corelight.com"
] | christian@corelight.com |
996aac45cc3fff5b7b5a9eb0567f864fdb8f7981 | 8c4af05e0257661195c95b0b9e0873eeb6391dab | /packages/python-packages/apiview-gpt/src/_models.py | 85d435a1aa1dd9ca713a5cccc403df55f16ebc0d | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/azure-sdk-tools | 6d171054800807fcbe7b8b878c5903a202d31faa | 2dce521dedc3f5169007d4c481ae8ec077be4450 | refs/heads/main | 2023-09-01T00:00:32.662190 | 2023-08-31T22:21:44 | 2023-08-31T22:21:44 | 170,592,186 | 113 | 174 | MIT | 2023-09-14T21:53:41 | 2019-02-13T22:55:46 | C# | UTF-8 | Python | false | false | 744 | py | from pydantic import BaseModel, Field
from typing import List, Optional
class Violation(BaseModel):
rule_ids: List[str] = Field(description="unique rule ID or IDs that were violated.")
line_no: Optional[int] = Field(description="the line number of the violation.")
bad_code: str = Field(description="the ori... | [
"noreply@github.com"
] | Azure.noreply@github.com |
433233f2557ef53958b800aa05a1f64706518639 | 7170b86508060488b07b07738ee6742ac9a3bc3c | /zeusci/zeus/tests/test_api_builds.py | 6b2e3ea7484adedd9b2c399a3b2cfaf30bcd9cf7 | [] | no_license | lukaszb/zeusci | 3bb98ca8c35633613c40dc8ea1af010487b8e155 | 8a0d2e99ef4f2d12c9d90a9d3aad82cd4ade7d8c | refs/heads/master | 2020-05-18T16:36:19.349260 | 2013-10-20T08:29:29 | 2013-10-20T08:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | from .test_api_base import BaseApiTestCase
from django.core.urlresolvers import reverse
from django.core.cache import cache
from zeus.models import Build
from zeus.models import Buildset
from zeus.models import Command
from zeus.models import Output
from zeus.models import Project
from zeus.models import Status
import ... | [
"lukaszbalcerzak@gmail.com"
] | lukaszbalcerzak@gmail.com |
def4e0c9060cbb6946a984f723129a8064a91715 | 16679038c7a0b75097ffdd2d5b6be28ae8dae68f | /test/utilities/test_catch_exceptions.py | 74b112680efb4b09be050e92f0ab2d6cc4bcdc2b | [
"MIT"
] | permissive | elifesciences/profiles | d98e5c2391630f9877e0585e07143d7904f1e777 | 9cd2e523f9dfa864891511e6525381f191951b24 | refs/heads/develop | 2023-08-31T03:09:08.723797 | 2023-08-25T06:54:55 | 2023-08-25T06:54:55 | 94,993,646 | 2 | 0 | MIT | 2023-06-21T01:15:37 | 2017-06-21T10:43:52 | Python | UTF-8 | Python | false | false | 959 | py | import logging
from logging import Handler, Logger, Manager
from logging.handlers import BufferingHandler
from pytest import fixture
from profiles.utilities import catch_exceptions
@fixture
def logger(handler: Handler) -> Logger:
logger = Logger('logger', logging.DEBUG)
logger.addHandler(handler)
logger... | [
"noreply@github.com"
] | elifesciences.noreply@github.com |
d193d711f2be24fe4204a34d2b1a3b14eda09afd | d40ab8694389d1a0d80013a2b0ecd8c426e6e8f8 | /graphs/scc.py | 5847ec8cbff74c175a28bd22a6d879601af33ceb | [] | no_license | lukebiggerstaff/Stanford-Algorithms-MOOC | b5b34c8d8ff7725461fd03bb3aac505c87a1012e | 382a30f27dff6ca9d30c071a4d3418ff6333f4c3 | refs/heads/master | 2021-01-01T17:02:26.883373 | 2017-11-14T19:06:14 | 2017-11-14T19:06:14 | 97,980,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | import sys
import re
import resource
from collections import defaultdict
sys.setrecursionlimit(10 ** 6)
resource.setrlimit(resource.RLIMIT_STACK, (2 ** 29, 2 ** 30))
def dfsfirstpass(graph):
visited = set()
stack = list()
for i in graph.keys():
start = str(i)
if start in graph:
... | [
"luke.biggerstaff@gmail.com"
] | luke.biggerstaff@gmail.com |
05e6de66f7d42a5e5cc0ec5d44e586790873c9b5 | 46cbc45de7cd3ad8c565603918dcec8f52eeab82 | /11.12 Selenium单元测试.py | fdbf1a76c6ecbf251ecacdab7aa61d0b2dc057ea | [] | no_license | Patrickctyyx/WebScrapers | 8bb946a2b60e21426e1b3048bb4752d71c79b401 | 02ebd9bef8242223b1e73ade0a4290235bebf668 | refs/heads/master | 2020-05-29T08:52:18.017387 | 2016-11-16T14:05:52 | 2016-11-16T14:05:52 | 69,369,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from selenium import webdriver
# 如果通过了就没提示
# 没通过就报错
driver = webdriver.PhantomJS(executable_path='/home/patrick/phantomjs-2.1.1-linux-x86_64/bin/phantomjs')
driver.get('http://en.wikipedia.org/wiki/Kevin_Durant')
# 这不就是系统自带的断言么...
assert 'Kevin Durant' in driver.title
driver.close()
| [
"873948000@qq.com"
] | 873948000@qq.com |
6278c357cec08deee02c0d6bb03990e43931a5d9 | 1f5ff597e967a63de3e005b876b644e25cd08dfc | /stage3.py | 873501d6cef32b2731fb6e2a05ffb818309dec3e | [] | no_license | codefloww/BBA | 713f7e1a96c8f291d917d5a44f8ae7f5e2d5e09e | 2b0c4c1a408dd41960f736a2f20336db71995b82 | refs/heads/main | 2023-08-24T23:08:16.814240 | 2021-10-31T13:35:45 | 2021-10-31T13:35:45 | 422,621,197 | 0 | 0 | null | 2021-10-31T13:35:46 | 2021-10-29T15:14:34 | Python | UTF-8 | Python | false | false | 1,753 | py | import main
import os
import pygame
import physics
pygame.mixer.init()
def stage():
stage3 = main.Window(1920, 1080, "Enter.mp3", "background3.jpg")
stage3.play_audio("start")
running = True
objects = []
moveable = [] # Each moveable object, basically mobs and player
player = main.Wolf(100, ... | [
"kryvpaul@gmail.com"
] | kryvpaul@gmail.com |
ad74fb1924b3b8c48c2d09b0bbc03cd105920500 | af97a81a69d100e684b8e9f02bc1b117069b9895 | /Testcases_Copilot/CWE-730/codeql_2.py | 1c59968d10ace977410229a13e67c6c9188734a4 | [] | no_license | s2e-lab/SecurityEval | 8de3e2f78fffa7058d79cce84fbcd8ff29c8468d | f637f67b8e8d52d641ab15903e46a41ead7e30a5 | refs/heads/main | 2023-06-17T22:55:08.047769 | 2023-06-16T16:54:54 | 2023-06-16T16:54:54 | 509,664,226 | 28 | 7 | null | 2023-05-27T04:55:05 | 2022-07-02T05:10:17 | Python | UTF-8 | Python | false | false | 294 | py | from flask import request
import re
@app.route("/direct")
def direct():
'''
get the regular expression pattern from the get request, comipile it and then use it for search
'''
pattern = request.args.get('pattern')
regex = re.compile(pattern)
return regex.search(text)
| [
"lsiddiqsunny@gmail.com"
] | lsiddiqsunny@gmail.com |
e47bd5ee0609619cf412769fd1666431740a27f0 | 4929b707e07efedcff122241f33ff05e25004d10 | /orders/migrations/0007_auto_20160411_1257.py | 2f2327ec6d0a1e617b5cd122315c69e90c712d4f | [
"MIT"
] | permissive | loafbaker/django_ecommerce2 | be06f00ae637dc9228ba3b5830f8ecef043922d0 | 7f1e95cf4082960861c3090ed47480eefb9593b9 | refs/heads/master | 2021-01-21T04:44:46.496191 | 2016-07-29T05:40:53 | 2016-07-29T05:41:44 | 53,693,350 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-11 12:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0006_usercheckout_braintree_id'),
]
operations = [
migrations.AddF... | [
"loafbaker@hotmail.com"
] | loafbaker@hotmail.com |
5a6ea935188b2c941b1c2a18e79fce894cd1916c | ab77b9ee5bed093016ec44ab2b47e055f7f1e0d1 | /Python/mysql/full_friends/bin/pip2.7 | d99268cba2cf8698d7f0b6eceef55b75de7ba898 | [] | no_license | minokuchi/coding_dojo | f07737642228ca069e82894496ff2c0aed1f735f | 0f6d8262c093dc9c6f3825667df5e67b3810c80d | refs/heads/master | 2021-09-07T04:59:10.116505 | 2018-02-17T17:41:51 | 2018-02-17T17:41:51 | 109,316,639 | 0 | 0 | null | 2018-02-17T17:41:52 | 2017-11-02T20:41:00 | Python | UTF-8 | Python | false | false | 275 | 7 | #!/Users/marki/Desktop/Coding_Dojo/DojoAssignments/Python/mysql/full_friends/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"minokuchi@gmail.com"
] | minokuchi@gmail.com |
e08c3ff7f96aee19729d67accd05c2b3f7ffbdf7 | 49fb950bafeeac754107a6c962f8ea1a1b5212d2 | /app/database.py | 98872f91a5824945704474bf2c4430fc9e34d0fc | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | VOC-Electronics/WiFiDomo_Manager | 5a50fcaf59e88172dc15b478b06deca3e35feee3 | b7f319fa0d8f5c7328948a40962cbed6abffcf25 | refs/heads/master | 2023-08-10T09:02:17.785967 | 2016-08-30T09:40:30 | 2016-08-30T09:40:30 | 60,178,446 | 0 | 1 | null | 2016-08-30T09:40:30 | 2016-06-01T13:17:25 | Python | UTF-8 | Python | false | false | 7,259 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'Martijn van Leeuwen'
__email__ = 'info@voc-electronics.com'
'''
# =[ DISCLAIMER ]===============================================================
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED T... | [
"info@voc-electronics.com"
] | info@voc-electronics.com |
e0ec0a0e6219b4c6d9bf344fbe2feece9e5e101f | b034c20e2cc4bb480060c2a2a3db78ad8c760818 | /3.7-predicting-house-prices.py | a7d57877dd4f4e3feb808ac138229e876cdf5987 | [] | no_license | practice-more/try-keras | e84c61d396d34f73743cbb40b8a105d1dbb72986 | 4921c0c38e04dada327d994d3a1b531a7d032cd8 | refs/heads/master | 2020-09-05T03:25:14.372434 | 2019-11-15T10:14:34 | 2019-11-15T10:14:34 | 219,967,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | from keras.datasets import boston_housing
from keras import models
from keras import layers
import numpy as np
import matplotlib.pyplot as plt
import os
os.environ["CUDA_VISIBLE_DEVICES"]="-1"
(train_data, train_targets), (test_data, test_targets) = boston_housing.load_data()
print(train_data.shape)
print(train_da... | [
"btan@esri.com"
] | btan@esri.com |
13e0e56617747cebd4d1b90a7eb5a82697e973ae | b32224af384173f41732539dd216d9312ffb521e | /rabbitmq/routing/emit_log_direct.py | 1d732cbd9bff728a0821c952e9d5dfd296bf7fc0 | [] | no_license | 4179e1/demo | 2140e63cdecb0f5df4d5d435f482c3da49d63cfa | 8cc84a64c34e2b822fe4114db1ca6531e647affa | refs/heads/master | 2023-08-17T12:16:06.002630 | 2021-09-18T03:27:27 | 2021-09-18T03:27:27 | 407,744,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #!/usr/bin/env python
import pika
import sys
connection = pika.BlockingConnection(
pika.ConnectionParameters(host='localhost'))
channel = connection.channel()
channel.exchange_declare(exchange='direct_logs', exchange_type='direct')
# If message cannot be routed to a queue, we need confirm_delivery() to get notic... | [
"lyre@poetpalace.org"
] | lyre@poetpalace.org |
a655da1503c403cc2cfe9a6e9f8fb672253bd71f | a7efab7b8555d75349917f9a23368a87e9d98726 | /venv/Scripts/pip-script.py | 1d65201c8efab4a9201514b89c1303150ae235b0 | [] | no_license | text007/python | 0779d43c9e2a235939117a8d86901a1d9878bf0d | 9c39f8876953ad7d2065e06c96ceb28b1bb43085 | refs/heads/master | 2022-11-24T13:32:48.217181 | 2020-07-24T02:45:06 | 2020-07-24T02:45:06 | 265,194,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!F:\python2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
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])
sys.exit(
loa... | [
"604573679@qq.com"
] | 604573679@qq.com |
48a939c169881e193fbae7563fa3afb68881c6e0 | f4c49fb03e1358c675f6d29ad265ac34fe8edee4 | /LeducPoker/LeducPokerGame.py | d0b91936149476f7e540124f8e3e6ad39683a9af | [] | no_license | mzktbyjc2016/nfsp-pytorch | 4b36afd0db8c8634ef71be5cf4b6b97fe814da3f | 125268908919661a508abc7bddc1015a92116f96 | refs/heads/master | 2020-06-25T09:25:20.115407 | 2019-03-03T02:46:49 | 2019-03-03T02:46:49 | 199,271,302 | 2 | 0 | null | 2019-07-28T10:09:19 | 2019-07-28T10:09:19 | null | UTF-8 | Python | false | false | 9,630 | py | from typing import Tuple, Optional, List
import random
import numpy as np
import copy
class PlayerActions:
BET_RAISE = 2
CHECK_CALL = 1
FOLD = 0
ALL_ACTIONS = [FOLD, CHECK_CALL, BET_RAISE]
ACTION_TO_CHAR = {
FOLD: "f",
CHECK_CALL: "c",
BET_RAISE: "r"
}
class LeducNo... | [
"thomas.j.johnson@gmail.com"
] | thomas.j.johnson@gmail.com |
eb78acba4bf3287ebe00fb95622aa68a63eb3407 | 5e5dfefcd80df20efa07bf101d202902921ba40d | /scripts/bam2fna | 0c7af193443d72b98092cab452115f4a0076e792 | [] | no_license | veg/BioExt | ba8539361dffd6a366cf174b938c00e28c6649c7 | 5d0e283553dcc0016567182dae59e4b4994b505f | refs/heads/master | 2023-08-31T11:29:56.342017 | 2023-06-13T20:56:40 | 2023-06-13T20:56:40 | 20,779,973 | 1 | 11 | null | 2023-08-11T21:55:30 | 2014-06-12T19:20:46 | Python | UTF-8 | Python | false | false | 1,120 | #!/usr/bin/env python3
import signal
from Bio import SeqIO
from BioExt.io import BamIO
def main(bam_file, out_handle):
try:
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
except ValueError:
pass
SeqIO.write(BamIO.parse(bam_file), out_handle, 'fasta')
return 0
if __name__ == '__ma... | [
"nlhepler@gmail.com"
] | nlhepler@gmail.com | |
f9881fe5f317247e0325b463ffcc17864d748ccf | 882e97d3392f11692d8cae815439cd2609c3b96b | /StacksAndQueues/Stack.py | 9bf9a1a0179c83472be858b75092b24b8ce7ba3c | [] | no_license | springrolldippedinsoysauce/pythonshit | af0a48ee99838df35da4cdb9d1990ae41ccb07c4 | 340f9d9aab0f75914d3306694f73b821808702e2 | refs/heads/master | 2020-07-18T17:28:42.122560 | 2019-09-04T09:42:24 | 2019-09-04T09:42:24 | 206,284,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from StacksAndQueues import Exceptions as EXP
class Stack:
def __init__(self, capacity):
self._capacity = capacity
self._stack = []
self._count = 0
def get_count(self):
return self._count
def is_empty(self):
empty = (self._count == 0)
return ... | [
"noreply@github.com"
] | springrolldippedinsoysauce.noreply@github.com |
8180cf64858edff78040580e57e99bca34304e13 | bd649f51496a24a55a2327e658f31d6e03e2f602 | /InvTL/lm_py/py/bin/py.which | f2b30cfff3ced4c92ec7655ae03a05a1f0b7818b | [
"MIT"
] | permissive | mickg10/DARLAB | 6507530231f749e8fc1647f3a9bec22a20bebe46 | 0cd8d094fcaf60a48a3b32f15e836fcb48d93e74 | refs/heads/master | 2020-04-15T20:39:23.403215 | 2019-01-10T06:54:50 | 2019-01-10T06:54:50 | 16,510,433 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | which | #!/usr/bin/env python
from _findpy import py
py.cmdline.pywhich() | [
"root@darlab1.mickg.net"
] | root@darlab1.mickg.net |
ff0f2048594d475b598b860002a8ba4d6b8f0047 | e1e59ba5f60886be8b1f587f274d4fe177982e35 | /familiarize_project/apps/users_app/urls.py | c0a27ca2522a0c48a2afd59e929931634f7d45cf | [] | no_license | betalantz/CodingDojo_LearningProjects | 0b2d82a7e32e8e22a07de79d50a46a61bb8fbeca | 4188a0c1df42da3ce5d29f2bdeb92865ea2c6cd1 | refs/heads/master | 2021-01-01T19:26:16.879191 | 2019-04-23T00:48:12 | 2019-04-23T00:48:12 | 98,582,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | """familiarize_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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='hom... | [
"noreply@github.com"
] | betalantz.noreply@github.com |
4d057261b30773fd2e2100f2226e925e29b70202 | 7e48f2d3592dc815e06956bfaba78adbda58626c | /sibu/sample_programs/python/Python/37~48강/alzio07.py | da2f5c72d175385629b371779f69b2799919125c | [] | no_license | joonholee95/Sibu-taikai | bec247a1a1d480f6b659d885b1b7e8dc89cdfd39 | 75ca616daab89f2016b75d340dfe8b49ec3af3c8 | refs/heads/master | 2020-03-22T15:25:34.664224 | 2018-10-01T02:30:15 | 2018-10-01T02:30:15 | 140,251,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py |
# coding: utf-8
# In[1]:
from pandas import Series, DataFrame
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import font_manager, rc
font_name = font_manager.FontProperties(fname="c:/Windows/Fonts/malgun.ttf").get_name()
rc('font', family=font_name)
# # pandas로 데이터 다루기
# #... | [
"joonho.lee@human.ait.kyushu-u.ac.jp"
] | joonho.lee@human.ait.kyushu-u.ac.jp |
ca7db0a3b82cc1c33311d1481cc649686e98ba8e | b8c8af33c8a1a7130c62b42cf22f2eeaf3d81427 | /譌ァ/PUBLIC.py | ea18217cffe68043903b90b91aad46320da0bc0b | [] | no_license | natsukaze4545/nnnn | 57e7a020373569d3ccf26e2e86e210c7aa4d3182 | d0dc58d1fb8981c625aed204aa865992114e0144 | refs/heads/master | 2020-03-22T08:44:38.124591 | 2018-07-05T03:41:02 | 2018-07-05T03:41:02 | 139,787,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,402 | py | #SRSU LINE SELF BOT v7.0.3
# -*- coding: utf-8 -*-
import LAG
from LAG.lib.Gen.ttypes import *
from datetime import datetime
from LAG.lib.Gen.ttypes import *
from datetime import datetime
from LAPI.main import qr
from threading import Thread
import time,random,sys,re,os,json,subprocess,codecs,threading,glob,requests,st... | [
"114514kusai@usako.net"
] | 114514kusai@usako.net |
c63f6c71799ea453d1f3eec67be2aff4089d9177 | bc41457e2550489ebb3795f58b243da74a1c27ae | /fabfile.py | 36e45dab0037e8a64b682e70626dadcb3e9d14de | [] | no_license | SEL-Columbia/ss_sql_views | 28a901d95fe779b278d2a51aec84d6bf51245c02 | d146fd96849a4d165f3dc3f197aadda804a2f60a | refs/heads/master | 2021-01-01T19:35:18.999147 | 2012-05-10T18:43:36 | 2012-05-10T18:43:36 | 3,020,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 1,649 | py | '''
fabfile for offline gateway tasks
'''
import datetime as dt
from fabric.api import local, lcd, run, env
env.hosts = ['gateway.sharedsolar.org']
env.user = 'root'
def sync_db():
time = dt.datetime.now().strftime('%y%m%d')
file = 'gateway.' + time + '.sql.zip'
url = 'root@gateway.sharedsolar.org'
p... | [
"danielrsoto@gmail.com"
] | danielrsoto@gmail.com |
9cf3d784947858edaf604e6c180fff1007ff9612 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/request/AlipayExscUserFirstsignGetRequest.py | e639edfe18817ae9d75d814b5ee4329e27910ec7 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 3,664 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayExscUserFirstsignGetRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._alipay_id = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
91c8298a8f35841bf72996c47795505cf4afd03a | 65c001b5f572a6b0ca09dd9821016d628b745009 | /frappe-bench/env/lib/python2.7/site-packages/watchdog/observers/polling.py | 3039ceb3678ce611aeccc6d88d0586c3f632a5e2 | [
"MIT"
] | permissive | ibrahmm22/library-management | 666dffebdef1333db122c2a4a99286e7c174c518 | b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506 | refs/heads/master | 2022-10-30T17:53:01.238240 | 2020-06-11T18:36:41 | 2020-06-11T18:36:41 | 271,620,992 | 0 | 1 | MIT | 2022-10-23T05:04:57 | 2020-06-11T18:36:21 | CSS | UTF-8 | Python | false | false | 4,687 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google, 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
#
# ... | [
"iabouelftouh@trudoc24x7.com"
] | iabouelftouh@trudoc24x7.com |
afbea8d9ea26a5aca621937e13f4651df94afc0f | 51e61e09fc0440acc56e94446873a686e5f19a9b | /sentiment_analysis.py | 580864d55f9c0138a144fed68b75040afa71a50c | [] | no_license | Yunhan0816/band-lyrics-analysis | f6d3c1981e0718dc53a1cd2908f4f19d28a93371 | e4e0b5cca125dfa70ea1b1f699d595956e2c7b97 | refs/heads/master | 2020-06-23T09:46:56.817147 | 2019-08-15T09:02:15 | 2019-08-15T09:02:15 | 198,588,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import nltk
nltk.download('vader_lexicon')
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import config
import matplotlib.pyplot as plt
import pandas as pd
artists = config.artists
df = pd.DataFrame(columns = ('artist', 'positive', 'neautral', 'negative'))
s = SentimentIntensityAnalyzer()
i=0
for artist in... | [
"yunhanh@bu.edu"
] | yunhanh@bu.edu |
4d797ba65df470752fb7054a0f9213d8436220cc | ccfd41c1f6f90608f4c2596963a28303ab0bdee3 | /test_standalone/test_rpc_client.py | ca8e4062e9ba10e622c152fed40fb4932da79473 | [] | no_license | jsmoyam/zserver | 4e8ffb4543f663a70ca96f1988958dba66b79d49 | d838937cf92262176faec6a6a833a602dbcd868e | refs/heads/master | 2022-12-23T01:21:29.200727 | 2019-04-30T11:05:53 | 2019-04-30T11:05:53 | 184,247,118 | 0 | 0 | null | 2022-12-12T10:22:38 | 2019-04-30T11:05:41 | Python | UTF-8 | Python | false | false | 165 | py | import Pyro4
# obj = Pyro4.Proxy("PYRONAME:test_module")
# obj.example_method()
# obj.initialize()
obj = Pyro4.Proxy("PYRONAME:mytestserver")
print(obj.m1('hola')) | [
"jsmoya@one-esecurity.com"
] | jsmoya@one-esecurity.com |
aeff8452dda485b474d6f78dec9db2f3f258e6ff | 80d1f1f50b9f7f6be17302df7695154f54aa7a76 | /pdp8/core.py | 3691cb7deeb3ab2b53a7ab5d3ba6877bf6d1f838 | [
"MIT"
] | permissive | romilly/pdp8 | af7f7df0136b31df03a4f53b709869a59f25ca2c | 68e1025c5e4c6b6fa92a62cc81117d841c214137 | refs/heads/master | 2020-03-13T15:24:12.955602 | 2019-06-19T05:58:50 | 2019-06-19T05:58:50 | 131,176,107 | 4 | 1 | null | 2018-05-16T07:13:14 | 2018-04-26T15:31:01 | HTML | UTF-8 | Python | false | false | 7,983 | py | from io import StringIO
from pdp8.tracing import NullTracer
def octal(string):
return int(string, 8)
OPR_GROUP1 = octal('0400')
OPR_GROUP2 = octal('0001')
CLA1 = octal('0200')
CLL = octal('0100')
CMA = octal('0040')
CML = octal('0020')
RAR = octal('0010')
RAL = octal('0004')
RTR = octal('0012')
RTL = octal('000... | [
"romilly.cocking@gmail.com"
] | romilly.cocking@gmail.com |
0593e05afd2470b385d6c0f363d7d4ef5f18a772 | b770761d348794b86ac0d87b16750625eadc176d | /est_imp_from_file.py | 84100f6ca75cc3a32dc41421fcdfe72d6e81bb47 | [
"MIT"
] | permissive | fujiyuer-fujiyu/imp_tsp | 51855f722cea1864ca32adf66dbec42c3d4bcc8e | 4d19a28fc0dea4d81c38dcfb0ddd2800513257cb | refs/heads/master | 2020-06-20T19:40:05.935343 | 2018-03-02T03:12:41 | 2018-03-02T03:12:41 | 74,744,644 | 0 | 0 | null | 2016-11-25T09:34:19 | 2016-11-25T09:34:18 | null | UTF-8 | Python | false | false | 1,413 | py | from scipy.io import wavfile
from scipy import signal as sig
import numpy as np
import matplotlib.pyplot as plt
#input file (observed signal)
(rate,data)=wavfile.read("tsp_out.16.wav")
#(rate,data)=wavfile.read("./20180228/ref/ec_tsp.wav")
i_length=data.shape[0]
print "lenght of Observed signal and number of channels... | [
"yuyfujit@mbp-15uas-012.yjoffice.local"
] | yuyfujit@mbp-15uas-012.yjoffice.local |
64bef1b8d66e25515d68a737b143f8d15d5675ce | 7790e3a3f2de068fef343585ec856983591997a2 | /bank/migrations/0021_followlawtype.py | 67c1e5c0f8ed434aeb042dbf4b3e27f516602279 | [] | no_license | mehdi1361/tadbir | ce702a9a02672826f0bf06e8d5cf0644efe31949 | c0a67710099f713cf96930e25df708625de89a6f | refs/heads/master | 2021-06-04T07:35:37.624372 | 2018-07-23T05:25:04 | 2018-07-23T05:25:04 | 148,870,028 | 0 | 0 | null | 2019-10-22T21:40:28 | 2018-09-15T04:40:26 | HTML | UTF-8 | Python | false | false | 1,147 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-11 16:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bank', '0020_auto_20180510_1351'),
]
operations = [
migrations.CreateModel(
... | [
"mhd.mosavi@gmail.com"
] | mhd.mosavi@gmail.com |
aeb4299c83b8a609952126db23c62ac404ef1759 | b422f6330d969887db3e6f7cafa52b681bd181de | /bank_system/decorators/client_decorator.py | ee7bd500164ccc60d932da471a15587876bf2d0e | [] | no_license | weslleymberg/eispatterns-examples | 0346f78cdfcb0729fae72465662d9b797a0aa4b9 | ae1a1759886fb1e05067ea26589e0e229fc646f0 | refs/heads/master | 2021-01-17T16:49:34.464541 | 2011-12-06T17:21:10 | 2011-12-06T17:21:10 | 1,979,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from should_dsl import should
from domain.base.decorator import Decorator
from domain.node.person import Person
from domain.resource.operation import operation
from domain.supportive.rule import rule
from domain.supportive.association_error import AssociationError
class ... | [
"weslleym.lisboa@gmail.com"
] | weslleym.lisboa@gmail.com |
c33d59f6b5de8274dc27c8aaca734bc82148e904 | 6a6ca78209adc4e342529d9d3d748f664b2fb511 | /run.py | a7a9504931696e6ad18b1b4a377b020d113d6ccd | [] | no_license | feibl/geometa_search | 88b641a38699bf9ab3af4ef1153c2ee57356ef79 | a4afca92e6639617bcb905ebe3351f0fc3fb440f | refs/heads/master | 2021-01-02T08:57:26.283601 | 2015-01-30T10:58:29 | 2015-01-30T10:58:29 | 26,922,245 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from geometa_search.factory import create_app as create_frontend
from search_rex.factory import create_app as create_backend
from search_rex.recommendations import create_recommender_system
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.serving import run_simple
backend = create_backend('config.Developm... | [
"fabian.senn@gmail.com"
] | fabian.senn@gmail.com |
65522eea8575a938acfbe8a6f92ea0e0fbd28d33 | d36ea3f3a03299d0572914dd31c63a74c9da2c45 | /listapar.py | 217a2e0645c11b0ef1054b356536875010eb7a4c | [] | no_license | BrauCamacho/Mis_Trabajos_python | a05b3954751e37e5b2cbede0d8746faa774a7e1d | e6e0168b33e87c9b8924cf36441d0b585c3aee76 | refs/heads/master | 2022-11-30T11:42:43.520350 | 2020-08-15T04:52:05 | 2020-08-15T04:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | lista = []
for i in range(2,21,2):
lista.append(i)
print(lista)
#lo mismo pero comprimido
lista2= [val for val in range(2,21,2)]
print(lista2)
valor = 0
#if ternario
valor = 10
Edad = 10 if valor < 20 else 0
print (Edad)
#strings
nombre = " Juan "
print(nombre[0:2])
print(nombre[:3])
print(nombre[-1... | [
"noreply@github.com"
] | BrauCamacho.noreply@github.com |
be4bda3f34c623e89442a9c1b39b272bef2b621d | 65b3d3230cd6b828eeb664429997468cd39db92c | /GUI/venv/bin/pip3.6 | e8ca7da5cd04e5723cc80121403f3f1dbfb27657 | [] | no_license | shaniphankar/IR-Assignments | 6bbd0c5e9d52704e67a8c49ee2551d2f693f6578 | db9120861c8dca83d11340c57240e3dc53f660b1 | refs/heads/master | 2021-06-05T09:49:16.734160 | 2020-02-04T15:30:24 | 2020-02-04T15:30:24 | 147,077,391 | 1 | 3 | null | 2018-10-23T13:35:59 | 2018-09-02T11:01:01 | Python | UTF-8 | Python | false | false | 222 | 6 | #!/home/cross/GUI/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vishalcross36@gmail.com"
] | vishalcross36@gmail.com |
c67befeec81e23a656e21cce799a95202898726a | 51d602577affebc8d91ffe234f926469d389dc75 | /lis/specimen/lab_result_item/migrations/0001_initial.py | 69d94bf24a380776b43692bb1088907fc36bac4f | [] | no_license | botswana-harvard/lis | 5ac491373f74eaf3855f173580b000539d7f4740 | 48dc601ae05e420e8f3ebb5ea398f44f02b2e5e7 | refs/heads/master | 2020-12-29T01:31:07.821681 | 2018-06-24T06:06:57 | 2018-06-24T06:06:57 | 35,820,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,300 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'ResultItemAudit'
db.create_table('bhp_lab_core_resultitem_audit', (
('created'... | [
"ckgathi@gmail.com"
] | ckgathi@gmail.com |
bd6a9831ec6c286db6ed408f8d0f498356771f0c | 24c8065f5508126675029cdb41cfa22ec1d70539 | /venv/lib/python3.6/site-packages/haystackbrowser/models.py | 5e8d9bf2e45c5c418883af394de4584f3d9d0dd1 | [] | no_license | Shawnmhy/BEProject | 3b2eaff1737a8bc08af87e6d1e078912449531dd | 06bff81c5b8942c3b713263b0d417c4d19f1d7b3 | refs/heads/master | 2020-03-10T03:18:53.341055 | 2018-05-23T21:51:16 | 2018-05-23T21:51:16 | 129,161,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,794 | py | # -*- coding: utf-8 -*-
import logging
from copy import deepcopy
try:
from urllib import quote_plus
except ImportError: # > Python 3
from django.utils.six.moves.urllib import parse
quote_plus = parse.quote_plus
from operator import itemgetter
from itertools import groupby
from collections import namedtuple... | [
"shawnmhy@gmail.com"
] | shawnmhy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.