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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52a608c85aa5b18e530c6cb0cae1d8d2f58b7ec4 | 14d8418ca5990217be67aee89fdaa310db03fbba | /test_stats_d_graph_display.py | fffe014750a15f323e8f39408530e03c6133cae4 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
7bc0cb59175906afc9c0c195273cb6c3843800f3 | f213d968b6d43ca27c52d8d61311c054be0e204c | /tutorial2.py | 84a2831dee2e41157438f719de429b18aaf113bf | [] | no_license | datasqr/OpenCV | f9a8c161735fd3b31f6a65b73b41e5ed7fda783c | 3fe8d52e1ea133f3c402ae7fd2606d1f716e0215 | refs/heads/master | 2021-01-25T04:57:50.930615 | 2015-01-07T19:25:34 | 2015-01-07T19:25:34 | 28,535,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # http://docs.opencv.org/trunk/doc/py_tutorials/py_gui/py_drawing_functions/py_drawing_functions.html
#Drawing Functions
import numpy as np
import cv2
# Create a black image
img = np.zeros((250,250,3), np.uint8)
print img
# Draw a diagonal blue line with thickness of 5 px
#cv2.line(img,(0,0),(511,511),(255,0,0),5)
... | [
"mateusz.zbikowski@gmail.com"
] | mateusz.zbikowski@gmail.com |
0649ed61513fbe6a09949d36e72df66a81bef44a | ec1eb0dd3ceeff03ab1e20c80259c5868a1a5004 | /project2/rl_federated_nas/glace_search_svhn.py | 556cb4600ca063cf21cae147f2417b3d5384845e | [] | no_license | dixiyao/CS385 | 601a7aebaa9a7644be472fbdaa002c7ca76a5816 | 405a5632dde1fef96ccb301c0994d783776c7108 | refs/heads/main | 2023-06-02T01:10:12.892223 | 2021-06-20T09:30:17 | 2021-06-20T09:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,604 | py | import os
import sys
import time
import glob
import numpy as np
import torch
import utils
import logging
import argparse
import torch.nn as nn
import torch.utils
import torch.nn.functional as F
import torchvision.datasets as dset
import torch.backends.cudnn as cudnn
import random
import copy
from torch.autograd import... | [
"noreply@github.com"
] | dixiyao.noreply@github.com |
a9cc0883b47e3569797ac2468dfcffe5081ffe26 | 7787db9eaf80ac4a366648902ee945112bca127a | /Leetcode300/14. Longest Common Prefix.py | 692f5ec20f2b5de8345b7f4b768d6f26010650f4 | [] | no_license | LYXalex/Leetcode-PythonSolution | 0de7af69373171affe15f2074bacc74955d09a2c | 2ae3529366227efb5f2ad81a8b039ad71e8d1ed5 | refs/heads/main | 2023-06-22T18:49:32.492547 | 2021-07-14T02:12:05 | 2021-07-14T02:12:05 | 325,213,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | class Solution:
def longestCommonPrefix(self, strs):
if not strs: return ""
shortest = min(strs,key=len)
for i,char in enumerate(shortest):
for each in strs:
if each[i] != char:
return shortest[:i]
return shortest | [
"yul801@ucsd.edu"
] | yul801@ucsd.edu |
d5816bf17fecd71e306ba321ee4fd6bda1913e63 | 2c4f00e65671467ed14b33f4f6b574bd9944eaea | /test.py | eceeb7bd27460d1c67779648392af96cb4ff1456 | [
"MIT"
] | permissive | ashafer01/chain | 20a459a7a4f0bc43668cfe71f58d568689c61f23 | e7ea9b3fb2b92459c581dfc0ebc424300cd333c0 | refs/heads/master | 2020-07-06T14:18:42.242072 | 2019-08-18T20:37:19 | 2019-08-18T20:37:19 | 203,046,524 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | import unittest
from chain import chain, args
class TestChain(unittest.TestCase):
def test_chain(self):
def _test_x(x):
return x + 'x'
def _test_y(x):
return x + 'y'
def _test_z(x):
return x + 'z'
def _test_2(a,b):
return a+b
... | [
"ashafer@pm.me"
] | ashafer@pm.me |
9e954532ac48853decc0acb672da57bb9369029b | 94aa3e2f78a8cc9a5b32af6a78197e79e876af3d | /Ex09_4_uses_only.py | e2e7285eefc034e3f5338572a40ccb07a565c9ac | [] | no_license | ishwarjindal/Think-Python | 7c41e190a86280d99b6e5bd1d2dcdcf84394bb92 | 9e997f87189357ad12b9893e2da3960843b0b853 | refs/heads/master | 2020-05-19T13:31:14.417642 | 2019-10-06T03:44:27 | 2019-10-06T03:44:27 | 185,041,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | #Author : Ishwar Jindal
#Created On : 26-May-2019 05:19 PM IST
#Purpose : Find words that uses only the specificed letters
def has_no_char(word, char_to_be_missing):
for char in word:
if char == char_to_be_missing:
return False
return True
def uses_only(word, letters_to_use):
for lette... | [
"ishwarjindal@MacBook-Pro-4.local"
] | ishwarjindal@MacBook-Pro-4.local |
00556680676e49944ba71fefdd6fed4756bfb9a5 | 17f75be58052605ddf4da0af2dd3abba69dc3bc4 | /api/migrations/0001_initial.py | bd6e5a842c3771f5a8eb56800966d4f2ba674a6b | [] | no_license | assasin-lv/my-first-blog | 9f8547a84091ebba2d91d73a7554f2279d463a21 | f068517e7df5d6f3ed026213a3afc6528dd944dc | refs/heads/master | 2021-02-19T05:03:52.086526 | 2020-03-10T02:56:37 | 2020-03-10T02:56:37 | 245,278,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # Generated by Django 2.0.6 on 2019-06-04 19:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Terminal',
fields=[
('id_terminal', models.... | [
"noob.assasin.lv@gmail.com"
] | noob.assasin.lv@gmail.com |
2804da30f453e1a5fd2133a3e59538c1b210397e | 8b37b0378f1b423629633c7cc8e22becca640641 | /runs/deep_forest_ranger_outpost.py | dbfba7bec08ca23410551657f4d2fcd1b330c2b2 | [] | no_license | destor/zombii | 11b7617a1205b04da10f351b834151651d1e150b | f9e658c128e6fc8c4551237143d2c1c1a5ccea9f | refs/heads/master | 2021-09-23T08:56:06.863946 | 2018-09-21T04:39:30 | 2018-09-21T04:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # vim: syn=python
from align import *
FILE = [
{
'announce': '9w',
},
{
'path': '6 w;sw;7 w;sw;5 w;4 sw;6 w;sw;w;sw;enter',
'name': '__announce__',
'announce': 'Deep Forest Ranger Outpost: Grizmogh',
'summary': True,
'skip': 4,
},
{
'target': 'commander',
'alignment': SLIGHTL... | [
"alexander@schrepfer.us"
] | alexander@schrepfer.us |
fc9eada358e8a8bab6e2d5cabb8ef8dc7c58307a | 7ff9410466d608d5fc1df2a0d3c6f4ddfc3b713c | /xml_to_csv.py | 8eea90b9897b514f6a7356f7affd001615bc52a9 | [] | no_license | wilson-boca/identify-objects | 03d0b539d9ad1358cf3e95922e3003bd874b7127 | 07626727c31b1ae65e40ff99ff5c68ae8ed54d1b | refs/heads/master | 2023-04-05T05:43:53.356305 | 2020-03-30T14:59:22 | 2020-03-30T14:59:22 | 250,657,993 | 0 | 0 | null | 2023-03-24T22:34:29 | 2020-03-27T22:02:32 | Python | UTF-8 | Python | false | false | 1,189 | py | import os
import glob
import pandas as pd
import xml.etree.ElementTree as ET
def xml_to_csv(path):
xml_list = []
for xml_file in glob.glob(path + '/*.xml'):
tree = ET.parse(xml_file)
root = tree.getroot()
for member in root.findall('object'):
value = (root.find('filename').... | [
"wilson.boca@gmail.com"
] | wilson.boca@gmail.com |
2b8b167f852914d1fd4dbd941c92ebeffbc7c63a | de033d5aba647555fa4fd4844df9b563cfc1e2f4 | /py/elfs/debuginfo.py | b699b2d0abeab20dad29e6c8fe6e2f91ed3f87f3 | [
"Apache-2.0"
] | permissive | eth-sri/debin | 16fc0499901149bdc9818f268178569469f197df | 715771c1e1468eaafbb599d8bf81a19b5b2e22d2 | refs/heads/master | 2022-08-14T12:31:13.648564 | 2022-05-20T15:12:01 | 2022-05-20T15:12:01 | 160,524,006 | 392 | 64 | Apache-2.0 | 2022-06-22T05:14:48 | 2018-12-05T13:40:37 | Python | UTF-8 | Python | false | false | 33,661 | py | import traceback
import sys
import ctypes
from common import utils
from elfs.framebase import FrameBase
from elftools.dwarf.callframe import ZERO
from elftools.dwarf.locationlists import LocationEntry
from elftools.elf.elffile import ELFFile
from elements.regs import GivReg
from common.constants import UNKNOWN_LAB... | [
"he4444mingtian@gmail.com"
] | he4444mingtian@gmail.com |
667615d24df3f447ef773eb76c4de08b7f9c84c4 | aa5db0b160300c61c6a243c10a9ae4f24e61acbe | /main.py | 38d11176559c61a5e2a98abcb2dfe3406902bd6e | [] | no_license | ShlomiRex/Twitter-Slack-Bot-Interview-Home-Assignment | 68e7a36baae49653b8e151c128e822db4cd057f9 | c2c8d9421046f792acf35e4cdf1d62bc85a7dfc3 | refs/heads/main | 2023-08-29T21:41:23.942498 | 2021-11-15T17:46:13 | 2021-11-15T17:46:13 | 427,901,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,811 | py | import configparser
import datetime
import os.path
import pickle
import threading
import time
from dotenv import load_dotenv
from flask import Flask, Response, request
import logging
import slack_worker
import twitter_worker
# Environment
from twitter_worker.twitter_worker import Tweet
load_dotenv()
# Configuration... | [
"vgtvgy1@gmail.com"
] | vgtvgy1@gmail.com |
904f11ece1f3a1f0e9f815aa7965f064e2510a83 | dbe770c12a3186e439ffe7bd1f3853a1b3ec6e4f | /test1.py | dab87f2a97cd837ab8954612da96924a871cd88a | [] | no_license | ankurmishra727/JenkinsWithJenkinsFile2 | d5d2f659b514c334e22736a1809946b6165dbc4e | 80632d059612583a9d8e1991415ecd603657146b | refs/heads/master | 2020-03-19T06:07:45.947120 | 2018-06-04T10:54:06 | 2018-06-04T10:54:06 | 135,992,780 | 0 | 0 | null | 2018-06-04T09:51:34 | 2018-06-04T08:15:14 | Python | UTF-8 | Python | false | false | 44 | py | print("merging into master from branch 1")
| [
"ankurgargmishra@gmail.com"
] | ankurgargmishra@gmail.com |
75b4c345054f9757d6e642ce84b0d8c16a1c82c6 | eb00755d9d0f2630ffdb21e3ab6685b2fbcb0d9e | /tests/bench/bench_scripts/bench_sampleData.py | 729fcf79af5383d0af68875e3179d971fe99aff2 | [
"BSD-3-Clause"
] | permissive | mlangill/biom-format | aca45518c71b807cf30b0f548ad726880802a2b5 | 4cebfbdba8b6b64ff0d503df33634e3d52de1de0 | refs/heads/master | 2021-01-16T21:59:51.218830 | 2013-12-04T16:41:50 | 2013-12-04T16:41:50 | 9,486,201 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | #!/usr/bin/env python
from sys import argv
from gzip import open as gzip_open
from biom.parse import parse_biom_table
from random import choice
if __name__ == '__main__':
table = parse_biom_table(gzip_open(argv[1]))
foo = table.sampleData(choice(table.SampleIds))
| [
"mcdonadt@colorado.edu"
] | mcdonadt@colorado.edu |
78299487affb1d72f08ac00fb8585935f8fa1a0c | 5af19625143ee8732b09541f4f84169cfa58bf0f | /10-23-19/forloop_nested.py | 9f8e2f8f234fd89328da8fdfcc958c2cd7038a75 | [] | no_license | markymauro13/CSIT104_05FA19 | 1ffef1643d0e5908128b75783ffbd7dc735cd060 | f65f5205730fc7890edb5fa7e174a4ab897f9f7f | refs/heads/master | 2020-07-28T07:05:55.293496 | 2019-12-11T15:37:19 | 2019-12-11T15:37:19 | 209,346,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | for i in range(1,5):
j = 0
while j < i:
print(j, end = '')
j += 1
| [
"noreply@github.com"
] | markymauro13.noreply@github.com |
f64ca4a352ebd20fb444b43b39e98c4f44f8f5c4 | c146bce0f8585307877b53448088000ad5b6e690 | /setupStimuliandWalks.py | bd13ee914a88eb0faa08e328c78e5016ec583777 | [] | no_license | utooley/netlearn_task_v1 | 07b4dbbc5a8856a45118901709903607c0582d15 | 914411c34fc9551e704c1e8f67519308e35cdc0a | refs/heads/master | 2021-01-16T08:24:39.363760 | 2020-02-25T16:06:18 | 2020-02-25T16:06:18 | 243,041,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,508 | py | #Internet says that to run scripts from Terminal on new Macs, modules need to be imported in this order
from pandas import DataFrame, read_csv
from psychopy import core, gui
from psychopy import data, event, logging, visual
# Import modules
import os
import random
import re
import urllib
import csv
import numpy as np
... | [
"utooley@gmail.com"
] | utooley@gmail.com |
b9299ec6d17a4f7f9476a364ca7ba6aac57cba1c | 39debb4a11094caffa06e0c026cc40fe3e298c6c | /staff/staff_login_interface.py | 4685702e395e0bc6a05bc55bee0c32a393a151bd | [] | no_license | sumanbashyal007/Clinic_management_system | 66204c5628a4dd8085a73c76adfb743ee7f3635d | 0a318697ad04fc61bfe289be7490d01e393a9a7a | refs/heads/master | 2022-12-04T22:22:31.640301 | 2020-08-27T08:21:39 | 2020-08-27T08:21:39 | 290,690,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,260 | py | # ====================================== Importing Necessary photos ========================================#
from tkinter import *
from tkinter import messagebox
from PIL import Image, ImageTk
from admin.connection import MyDatabase
from staff.staff_registration import Staffregistrationwindow
from staff.staff_interfac... | [
"suman.bashyal007@gmail.com"
] | suman.bashyal007@gmail.com |
85f5b6db2f09ac1feae49616d3363ce62a7724e1 | bab70d19d523e616ebaa1f74c114e88fd5d2ad83 | /CAhw2/RunMeForTest.py | af2bd375ebc9796f9d89d82792c8c2ae4b9716d8 | [] | no_license | FuHsinyu/Cellular-Automata-model | 4ef3351735aee8a4d268f67d3d04b36809bb33d2 | 2a0bdf505fd0b793caee5b1b708fb9d591532ebb | refs/heads/master | 2021-05-06T19:49:16.148410 | 2018-06-13T01:55:14 | 2018-06-13T01:55:14 | 112,194,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | from pycx_gui import GUI
from myModel import CAmodel
import matplotlib.pyplot as plt
import numpy as np
import random
#change digit in line 18 and run to get a FAST TESTING RESULT
initRow = [0] * 100
for i in range(100):
initRow[i] = random.randrange(2)
r = 1 #range
systemSize = r * 2 + 1
k = 2 #base
rule = 0 #d... | [
"247047.niuitmo.ru"
] | 247047.niuitmo.ru |
7019b6b2ccb716f997d7907943ca21567284877d | 091eb8602b0de816222b3c2dabbdb84cc4c63298 | /game_8_puzzle.py | 573945d64189f0df47ca0ed7ec53352372908d3c | [] | no_license | 888yzbt888/game_8_puzzle | 5b32f1aaf8aca4a09aafa333a0c06a83292b8d30 | 1b9bdc2cb6d707e11455d49245a8501b7e69b587 | refs/heads/master | 2021-06-30T19:44:09.575701 | 2017-09-18T02:10:31 | 2017-09-18T02:10:31 | 103,508,934 | 0 | 0 | null | 2017-09-22T14:00:54 | 2017-09-14T08:45:40 | Python | UTF-8 | Python | false | false | 6,697 | py | import sys
import pygame
import random
import time
import numpy as np
import algorithm_8_puzzle
REPLAY_SPEED=0.4
XOFFSET = 30
YOFFSET = 15
WINDOW_HEIGHT=440
WINDOW_WIDTH=400
FINAL_STATE=[[1,2,3],[4,5,6],[7,8,0]]
def initgame():
img = []
for i in range(0, 9):
img.append(pygame.image.load(s... | [
"1002789177@qq.com"
] | 1002789177@qq.com |
17e16a08041f1fc5702bff45cbade47ad9622093 | eceeef628f926a51797f6bbe1bfd409c566d3d3b | /Res18_T2_transfer.py | cb27dac94ca41ab0b66f921c24551c18adcb1558 | [] | no_license | wangshuai-bit/T2_classification | 2ca33cb6b52be4f12846e245ca2bbd6a87d3ec7f | 94488e168d618abe8228c75f07f58209c1cbccbc | refs/heads/main | 2023-02-18T20:14:50.913843 | 2021-01-22T01:30:44 | 2021-01-22T01:30:44 | 331,675,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,511 | py | # try to print the error image 20190520
import tensorflow as tf
import pickle
import time
from tflearn.layers.conv import global_avg_pool
from tensorflow.contrib.layers import batch_norm, flatten
from tensorflow.contrib.layers import xavier_initializer
from tensorflow.contrib.framework import arg_scope
from PIL import ... | [
"noreply@github.com"
] | wangshuai-bit.noreply@github.com |
c345b0531b13c7d148425261eb95e192498d8921 | 21488828191cbd9aa42791d1ab557b826f9bdb29 | /node_modules/uws/build/config.gypi | a50453f820eb5557210f87a54b3f018fca8b7f1d | [
"Zlib",
"MIT"
] | permissive | EricSong8612/menu | 26aa97234a5f6a282e487a8c2ead708134f646a8 | 8bce0babcd007ef424fef33fc59fc44c163a19ce | refs/heads/master | 2021-01-16T07:13:14.811401 | 2017-08-11T15:29:10 | 2017-08-11T15:29:10 | 99,977,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,882 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"js8612@nyu.edu"
] | js8612@nyu.edu |
e8271a5bf72bda3ddf07e62fa50173e847af9541 | abf857dfc50a3a0a109d00cc24ce88cf0df79a97 | /daphnia/main.py | 5d294e41baa6b73f3125a64a03dd4ef62f8720e1 | [] | no_license | awedwards/daphnia-bergland | 7a4542e5f48dbf2bb442632738626cbf602dd31f | 9d29edb7a1df84062e0368d3f918a1cace09815b | refs/heads/master | 2021-09-13T09:27:50.329160 | 2018-04-27T19:56:16 | 2018-04-27T19:56:16 | 95,588,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,195 | py | from __future__ import division
import utils
import pandas as pd
from clone import Clone
import os
import cv2
DATADIR = "/mnt/spicy_4/daphnia/data"
ANALYSISDIR = "/mnt/spicy_4/daphnia/analysis/"
INDUCTIONMETADATADIR = "/mnt/spicy_4/daphnia/analysis/MetadataFiles/induction"
PONDSEASONFILEPATH = "/mnt/spicy_4/daphnia/an... | [
"edwardsa@janelia.hhmi.org"
] | edwardsa@janelia.hhmi.org |
9663d2aacfb226c81bf9757446cc9fe4df27d7ce | a732353686f6b22561edc6905e0243c2a2038667 | /szamlazz/models.py | 2ccb14534612b5d25db06aac0c8d415cc442cf5f | [
"MIT"
] | permissive | freemanPy/szamlazz.py | 34fac9bf94df6f628119d27908e43a834e4c1371 | 2822d1c6ea19178131fc38c283d68ef350dcfde9 | refs/heads/master | 2023-08-12T04:07:37.381429 | 2021-09-12T21:18:18 | 2021-09-12T21:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,854 | py | import base64
import logging
from pathlib import Path
from requests.models import Response
from typing import NamedTuple, Tuple
from urllib.parse import unquote
# noinspection PyPep8Naming
import xml.etree.ElementTree as ET
__all__ = ["Header", "Merchant", "Buyer", "Item", "Disbursement", "SzamlazzResponse", "PdfData... | [
"kristof.daja@semcon.com"
] | kristof.daja@semcon.com |
0dac53703ab198d385005c1bd7a5a57d670af88e | caee06b143be5117a667e0f14ed6cf54958e85c1 | /page/showreview.py | 0b3dcc9721d9eed2b09256eae20318e2959a16f8 | [
"Apache-2.0",
"MIT"
] | permissive | ctesting/critic | 720b68331aac81443e53ccd0c4c6cb4c3b75b5ec | 8ba956d124279d0fca9d4522fb0ee6970e863588 | refs/heads/master | 2021-01-17T13:43:41.205293 | 2013-03-15T20:34:47 | 2013-03-15T20:34:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,272 | py | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2012 Jens Lindström, Opera Software ASA
#
# 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... | [
"jl@opera.com"
] | jl@opera.com |
73b01d6e83f15e3b8998e48fde1d8e9a8e9c8657 | 5b7a0d2c364e40581eeff6c592067c954b96aa5b | /test_circle_ellipse.py | d03fd6ea80484a28a8acc42dbf20a692f6fa80ae | [] | no_license | skconan/dice_detection | a0f5afbfd1d5e38cf6f5d72872103280690e5ffc | da5b065398c0976b90833a10e6dfcde162ce1540 | refs/heads/master | 2020-03-18T16:42:32.272709 | 2018-07-05T04:26:47 | 2018-07-05T04:28:03 | 134,981,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | import cv2 as cv
from lib import *
import numpy as np
from dice_detection import *
if __name__=='__main__':
cap = cv.VideoCapture(CONST.VDO_PATH + 'dice_01.mp4')
while True:
ret, image = cap.read()
if image is None:
continue
# image = cv.resize(image,(0,0),fx=0.5,fy=0.5)
... | [
"supakit.kr@gmail.com"
] | supakit.kr@gmail.com |
0c2fddd11b78d0ae7d34b0e19aadb724ad55b1a1 | 9d652cc94bf07c149cd6c7c6060b0f97875a78d4 | /apps/my_app/views.py | 7b94dacae39a7d56bf02bd6f0ab841340dae1466 | [] | no_license | herimiguel/cdExam | 2c84a46f526518b691de0f6bfe215d2713664f76 | a119b9b6f336b035ad7f003ac4e44a9ce4d67ee1 | refs/heads/master | 2020-03-19T08:25:56.222809 | 2018-06-05T19:13:29 | 2018-06-05T19:13:29 | 136,203,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,136 | py | from __future__ import unicode_literals
from django.shortcuts import render, redirect
from django.contrib import messages
from models import *
from django.db import IntegrityError
from django.core.exceptions import ObjectDoesNotExist
# Create your views here.
def index(request):
return render(request, 'my_app/ind... | [
"herimiguel84@hotmail.com"
] | herimiguel84@hotmail.com |
75a1c7bfd7129ce55f5eba80d259be9cc3f58c32 | d4cd2476f8fa8a7d94e183a68bd0678971310c5b | /checkio/05_Alice_in_Wonderland/01_Alice_05_DigitDoublets.py | 93be0ef309f0753e3758c5c296e1049c4e7b3414 | [] | no_license | gwqw/LessonsSolution | b495579f6d5b483c30d290bfa8ef0a2e29515985 | 0b841b1ae8867890fe06a5f0dcee63db9a3319a3 | refs/heads/master | 2020-07-05T19:15:53.758725 | 2019-10-01T11:34:44 | 2019-10-01T11:34:44 | 202,744,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # check if nums differs only by one digit
def isOneDiff(n1, n2):
n1 = str(n1)
n2 = str(n2)
diffcount = 0
for i in range(len(n1)):
if n1[i] != n2[i]: diffcount += 1
if diffcount > 1: return False
return (diffcount == 1)
# find next nums in list
def findnext(numbers):
first_nu... | [
"="
] | = |
bd0209b90473b52098a42dc9de3dc5869fe1ef18 | 7f57a990b390ddc05a9033a9414459a1a353e751 | /crawling/migrations/0007_auto_20201009_1313.py | 5c428fffacebee86c150832fe038eb4b29dd8c4c | [] | no_license | acardiav/telegram_chatbot | 18f360b3e3ccef44f2290e16fd0bab866d67f304 | 1f3e64381a0ac2803060b85ac41f9bb22bda3ca5 | refs/heads/master | 2023-01-01T20:56:55.640272 | 2020-10-22T01:35:32 | 2020-10-22T01:35:32 | 305,295,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.0.10 on 2020-10-09 04:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crawling', '0006_merge_20201009_1259'),
]
operations = [
migrations.AlterModelTable(
name='post',
table='test',
),
... | [
"acardiav@gmail.com"
] | acardiav@gmail.com |
1acc3b8f6a2e1c850b698629893c7c179aceb189 | c23e10f2a67ac37d2aa39d193b518251a2a2e03a | /boardproject/boardapp/migrations/0003_auto_20210524_0642.py | 0fe47a03f9ace8075fb09f409ac0262cd54d386e | [] | no_license | pecop/udemy-django-3apps | cd2bf976ae3db28bcae0b8a1b23f4bd55881cabd | fc214bcc04ca439873d55265e4d2aade4b5701c0 | refs/heads/master | 2023-05-02T01:31:50.951907 | 2021-05-24T08:06:04 | 2021-05-24T08:06:04 | 370,271,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Generated by Django 3.2.3 on 2021-05-24 06:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('boardapp', '0002_rename_auther_boardmodel_author'),
]
operations = [
migrations.AlterField(
model_name='boardmodel',
... | [
"back.to.the.future52@gmail.com"
] | back.to.the.future52@gmail.com |
2a1a2b5c39644226f3151bea35c55800e3d74fde | eafd177a43d08eb4b09c94af5b8073916598013b | /Conjugate Gradient.py | e83170f7ca716f7b9c4475acb4213d0632f4f345 | [] | no_license | lechuandafo/Simple-optimization-problem | acb16772a3e0f9c0036ada1a13288a6159ca6f9a | c93906a5c792a75880f80f6f44cbab81af30d0a6 | refs/heads/master | 2020-06-13T22:36:03.605662 | 2019-07-02T07:22:30 | 2019-07-02T07:22:30 | 194,810,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 17 13:39:12 2018
@author: YLC
"""
import numpy as np
x = np.array([0,0,0,0]).T #.T表示转置,下同
H = np.array([[158,20,90,101],[20,36,46,61],[90,46,306,156],[101,61,156,245]])
g = np.array([8,-5,1,6]).T
def grad(H,x,g): #梯度计算公式,由原方程求导得到
return np.dot(H,x)-g
eta =... | [
"noreply@github.com"
] | lechuandafo.noreply@github.com |
3179b52f9eae9dc675a92b6b50fc961d0a7fb9f0 | 3881c6471d5017589f5203016b886549c2cdacc5 | /datasets/superb/superb.py | abbb7bf765b7ba3e3dd43245c66fd9a5174b6137 | [
"Apache-2.0"
] | permissive | SebastinSanty/datasets | 73f0dc9981d2ce68ce233ba732d48d6637d0d6ae | 99403fc639665497219ad1b74b7a93ff97e3f5aa | refs/heads/master | 2023-08-30T01:11:43.355033 | 2021-11-15T14:45:22 | 2021-11-15T14:45:22 | 428,611,292 | 0 | 0 | Apache-2.0 | 2021-11-16T10:31:07 | 2021-11-16T10:31:05 | null | UTF-8 | Python | false | false | 30,236 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | [
"noreply@github.com"
] | SebastinSanty.noreply@github.com |
99a04e93d0efdf9a383874eee21eb74616cb8109 | 30232fb6d21e037d73181bf89b1b938bd1bde8f5 | /BIKOD_01/line.py | 860676e8e6c383b8425ed75122c63d644dc24b86 | [] | no_license | flashgeomatics/Software_project | 3d1b58ce71fd3395a558eb593484cae51a683f5d | 7d8844845e8198d2b83452dd64dcc1ecd1f3c6bd | refs/heads/master | 2020-05-06T12:12:49.118441 | 2019-06-14T12:40:32 | 2019-06-14T12:40:32 | 180,108,923 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | #Importing the required packages
import geopandas as gpd
import pandas as pd
from bokeh.models import ColumnDataSource, LabelSet, Select
from bokeh.plotting import figure, show, output_file
from bokeh.tile_providers import get_provider, Vendors #bokeh version 1.1
#from bokeh.tile_providers import CARTODBPOSITRON ... | [
"noreply@github.com"
] | flashgeomatics.noreply@github.com |
6f463313a068c75251f01e1d44480afd5b84827e | aa2533eb375d06f6b73aaff0fac6bacbdcaab458 | /src/conf.py | e3adda167afe1c0f3ab5359391d8db9b05b89d2b | [] | no_license | Rain0193/automonkey | 1f08afd6b353ec4307ed34909fd45de3debc6819 | 32168429cf771964dbcaae735611893c134a5a95 | refs/heads/master | 2021-08-11T08:38:59.214392 | 2017-11-13T12:26:19 | 2017-11-13T12:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | #!/usr/bin/evn python
# -*- coding:utf-8 -*-
# @author: zhangzhao_lenovo@126.com
# @date: 20161005
# @version: 1.0.0.1009
import yaml
import os,platform
def dictinsertdict(dicta,dictb):
for k, v in dicta.items():
x = dictb.get(k)
if not x:
dictb[k] = v
else:
if isin... | [
"zhangzhao_lenovo@126.com"
] | zhangzhao_lenovo@126.com |
d7df6a4d66ed2fa92ca477942ec9176c1f23591a | f5f771cd8600c2aeb7fc9b192d9084ec5fdf3616 | /lux/extensions/odm/mapper.py | ef04cc0a9b43586b1fb4efb156df2f1e77bd748a | [
"BSD-3-Clause"
] | permissive | SirZazu/lux | 75fe9fde4ddaee1c9c17e55c6e6d07a289ea2f5b | d647c34d11d1172d40e16b6afaba4ee67950fb5a | refs/heads/master | 2021-01-21T19:40:46.536485 | 2015-06-02T16:30:18 | 2015-06-02T16:30:18 | 36,931,033 | 0 | 3 | null | 2015-10-09T14:08:26 | 2015-06-05T12:15:21 | Python | UTF-8 | Python | false | false | 11,508 | py | import re
import os
import logging
from copy import copy
from contextlib import contextmanager
from inspect import ismodule
from importlib import import_module
from itertools import chain
from sqlalchemy import MetaData, Table, inspect, event, exc
from sqlalchemy.engine import create_engine
from sqlalchemy.ext.declara... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
9742c90e0453936c31dfa9a52658cbe850b93beb | 0e1eec1b43b0eea7af05dec1c377046a91ab7616 | /setup.py | df4613e535249989b8f0d81ffc2637861b9fd499 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zgababa/puke | b54ebcafd0f7c9f13f3e22dacb6eab2b0ef374e8 | 9428f08332035dac61fefe4866e8d50421c04bfd | refs/heads/master | 2021-01-17T21:29:21.926824 | 2013-05-21T00:11:51 | 2013-05-21T00:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
from setuptools import setup, find_packages
import sys, os
import pkg_resources
major, minor = sys.version_info[:2]
if major < 2 and minor < 6:
raise Exception("Puke requires Python 2.6")
import logging
setup(
name = "puke",
version = "1.5.20",
packages... | [
"e.tabard@gmail.com"
] | e.tabard@gmail.com |
0c97b72236200ab4983b904865a9cc78a9c4a3bd | 295b94e0e1be3ddf1d17d5c7c8fc899bf8385d63 | /Generator/models.py | 33ea404ba75168144ff5db7eabcdfd3dc6f8377f | [] | no_license | NavenAllen/Question-Banks-Generator | 4e4b235cd451798a4401e2010d14d95939f81961 | 97841c39a1fc5ecd4e8e573eb2b9cbd909ce5a5f | refs/heads/master | 2020-03-08T03:17:41.830076 | 2018-04-11T20:38:49 | 2018-04-11T20:38:49 | 127,886,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.db import models
from django.forms import ModelForm
class Upload(models.Model):
pic = models.FileField(upload_to="images/")
upload_date=models.DateTimeField(auto_now_add =True)
# FileUpload form class.
class UploadForm(ModelForm):
class Meta:
model = Upload
fields = ('pic',... | [
"naven1999@gmail.com"
] | naven1999@gmail.com |
0a5e3662691892d6bd7a535f5db74ef43571e670 | e9a9f795ae460dca5837facd73a854945d85e2e2 | /src/lib/count.py | edf2ec217dcabf55fab918cfae097b5204af18d0 | [
"Apache-2.0"
] | permissive | spongeb0b724/superl-url | c0dcc42857b3e82129c93987defe8cc92c591c05 | 42934e941f05eab3c7c31514157b94d70b437c8c | refs/heads/master | 2020-03-12T20:36:18.729683 | 2018-04-03T09:20:56 | 2018-04-03T09:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # -*- coding: utf-8 -*-
# Project = https://github.com/super-l/search-url.git
# Author = superl
# Blog = www.superl.org QQ:86717375
# Team = Code Security Team(C.S.T) | 铭剑创鼎
class SupCount():
all_totals = 0
all_checked_totals = 0
all_filter_totals = 0
all_delete_totals = 0
| [
"superl@0xcode.org"
] | superl@0xcode.org |
04c328687a8499e092c28512e12f5cd8237575e3 | 4a971163f1b3ed376913825a8e85bfd7122a16e2 | /forum/migrations/0019_auto_20210416_1137.py | 97d6cf54e0941d53aa7a417a0dbb1944349210a5 | [] | no_license | kifahnaim/djangoAimarena | a314b77e95b86290274721f95af8a036025447d3 | 0961afa7f8df1a15a9af22b04f908dbde4f880c3 | refs/heads/main | 2023-04-28T04:52:33.144912 | 2021-05-15T06:48:11 | 2021-05-15T06:48:11 | 367,449,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | # Generated by Django 3.0.5 on 2021-04-16 11:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forum', '0018_auto_20210416_1136'),
]
operations = [
migrations.RemoveField(
model_name='topic',
name='accepted_visi... | [
"naimkifah@gmail.com"
] | naimkifah@gmail.com |
7c7042124f67b3df6bb20cbc607c2758baf785d8 | 35db584864327388aa40a2ad0c7333ae34233446 | /esp32/micropython/uftpd.py | 289cc82c80234f486e16ff51545eab3f84ed2312 | [] | no_license | emard/ulx3s-bin | 7b7d3b61961bcf919671fa3eb7674a9410cd3f1d | 2a40f50e0142f2b2856bf0a7471a8741881ec427 | refs/heads/master | 2022-05-31T01:50:50.577033 | 2022-04-19T16:07:00 | 2022-04-19T16:07:00 | 124,758,000 | 24 | 8 | null | 2022-04-12T17:45:54 | 2018-03-11T13:14:35 | Python | UTF-8 | Python | false | false | 18,999 | py | #
# Small ftp server for ESP8266 Micropython
# Based on the work of chrisgp - Christopher Popp and pfalcon - Paul Sokolovsky
#
# The server accepts passive mode only. It runs in background.
# Start the server with:
#
# import uftpd
# uftpd.start([port = 21][, verbose = level])
#
# port is the port number (default 21)
#... | [
"vordah@gmail.com"
] | vordah@gmail.com |
93dc5c3a9db14864da78ac12366778f18d0c1263 | b289a5076e06a24064526569086644f6383587c4 | /projetofinanceiro/appfinanceiro/apps.py | 1fec721d51e98309f6b4f627541b2729ccc1f5a5 | [] | no_license | Rubensrvsc/Programacao-WEB | d2eb36d7364736fdb93981b549e139d79e048310 | e38f3a809a0aa244f32f053ed9aa45c7e8586b5e | refs/heads/master | 2020-03-29T12:59:25.098325 | 2019-01-02T19:49:42 | 2019-01-02T19:49:42 | 149,933,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class AppfinanceiroConfig(AppConfig):
name = 'appfinanceiro'
| [
"Rubensspfc100@gmail.com"
] | Rubensspfc100@gmail.com |
b3e461cea550883ae63c8977bc70ae4e86235418 | 68f04ff1df8dc61636db7a015b752e313ca21dfa | /PythonBootCamp/selectionsort.py | 00ed457b6e9b914bf79412dade261b4d646b1fe8 | [] | no_license | himanshusoni30/PythonProjects | 5497352055aaf53b5ebda2c98651a6a5763ef496 | 239130a97d74596e3a4ca4c3566ee2b0156f7418 | refs/heads/master | 2022-12-20T00:13:17.585447 | 2020-09-18T19:11:38 | 2020-09-18T19:11:38 | 296,708,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | '''Selection Sort in arrays (list)'''
def sortAscending(arr):
for i in range(0,len(arr)-1):
for j in range(i,len(arr)):
if arr[i] > arr[j]:
arr[i] = arr[i] + arr[j]
arr[j] = arr[i] - arr[j]
arr[i] = arr[i] - arr[j]
# return arr
def sortDescending(arr):
for i in range(0,len(arr)-1):
for j in rang... | [
"eng.sonihimanshu@gmail.com"
] | eng.sonihimanshu@gmail.com |
bb86bd392aeaae885574fab7e2cc24a1371fecd2 | b7dc9efcbc9a2bbec3020effb9236d66282d020c | /roboticarm/__init__.py | 188134e55956717996d540ae2e459a8150ff8ff3 | [] | no_license | skarkalas/roboticarm | 3abd157f36409a24311616ce92f70fbbe9203f4f | ce8884bf25541a005f582cf19da81c0494eb85ac | refs/heads/master | 2021-01-16T20:07:03.282072 | 2017-08-19T11:58:58 | 2017-08-19T11:58:58 | 100,196,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from roboarm import RoboArm
from wiimote import Wiimote
| [
"sokratis.karkalas@gmail.com"
] | sokratis.karkalas@gmail.com |
62cca5b8ca0a33c7f2733ab7f0ba980c10fd57d2 | 236d6f9896d6e39ee72015d957204cc7de0f2e44 | /weather.py | 8b1463709547a5fb98ef113396a87468a6387d01 | [] | no_license | codeasylums-bootcamp/bazinga_ML_winter19 | c3b26a3e544631c42eff5eec9c3462520209680d | 6134aed1b84306292bf5239c683ac0778b6a9917 | refs/heads/master | 2020-11-24T09:32:30.133380 | 2020-01-12T04:33:29 | 2020-01-12T04:33:29 | 228,081,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #!/bin/python3
import subprocess
import sys
place=input("What place?\n")
place="wttr.in/"+place
subprocess.call(["curl",str(place)])
| [
"mdtngr@gmail.com"
] | mdtngr@gmail.com |
8768faa5431569743e0a31b1002db656d70a142c | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /shared-data/python/tests/errors/__init__.py | 8b858a24b392381b87b32f4c5db9f32be4fbee49 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 43 | py | """Tests for shared-data global errors."""
| [
"noreply@github.com"
] | Opentrons.noreply@github.com |
bf7d221c249a3241ed1caec79c3c80e33dfe5221 | 35fb414cc9f5c408dc5d2c8316a5b6e4de3ccf22 | /test/templates/analyze_2l_2tau_cfg.py | 569b94fbe3d5ab083963e3c54bb48fe7dbaef4c9 | [] | no_license | kartikmaurya/tth-htt | abf1abafc9335da9687938f8588550a86631f751 | 8486aa6f33085a7b2d665e9215b828970f6ee8a7 | refs/heads/master | 2020-05-05T02:09:31.876729 | 2019-04-05T06:54:50 | 2019-04-05T06:54:50 | 177,517,377 | 0 | 0 | null | 2019-03-25T05:01:21 | 2019-03-25T05:01:21 | null | UTF-8 | Python | false | false | 4,412 | py | import FWCore.ParameterSet.Config as cms
import os
from tthAnalysis.HiggsToTauTau.configs.recommendedMEtFilters_cfi import *
from tthAnalysis.HiggsToTauTau.configs.EvtYieldHistManager_cfi import *
process = cms.PSet()
process.fwliteInput = cms.PSet(
fileNames = cms.vstring(),
maxEvents = cms.int32(-1),
o... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
84819ead29e0e12b987c520793c6c80fa0b7672d | c3ac9ba8f24be1bf067a77c5bc940702e7b330b6 | /Tutorials/search/biniry_search.py | 2547db5abc528666c3ac503296ac8e476cd00b19 | [] | no_license | Cwinka/tutorials | 6a195d18ca46dd85ca7370fdf56c9670e5bf07f5 | f170d9e708b55ae4d439f208ed8d32ae0889c11b | refs/heads/main | 2023-06-01T23:58:56.975015 | 2021-06-20T15:26:24 | 2021-06-20T15:26:24 | 378,677,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | import time
def biniry_search(lys, target):
if len(lys) < 1:
return -1
mid_idx = (len(lys)-1)//2
mid_val = lys[mid_idx]
if target == mid_val:
return mid_idx
elif target < mid_val:
return biniry_search(lys[:mid_idx], target)
else:
right = biniry_search(lys[mid_idx... | [
"nikita00zorinnn@mail.ru"
] | nikita00zorinnn@mail.ru |
64105f427369003eb4056a2e87bd1dab94884668 | 8fea1939599995000b87f3c192244b8a00b168c9 | /python/shangwubu/shangwubu/spiders/shangwubu_news.py | 5b3fb351dddb29e25b5794097b87a4893b8f96b6 | [] | no_license | syd359/nlpwidg | 3d177dbfd61b71cb897af7d9c3e3686c64885672 | d7e8647d35b800003c10c74ab72114613baaebd0 | refs/heads/master | 2020-03-17T14:32:08.492487 | 2018-05-19T10:37:24 | 2018-05-19T10:37:24 | 133,675,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | import scrapy
import re
from shangwubu.items import ShangwubuItem
from robobrowser import RoboBrowser
import jieba
class ShangwubuSpider(scrapy.Spider):
name = "shangwubu_news"
start_urls = [
'http://www.mofcom.gov.cn/article/ae/ai/?'
]
allowed_domains = [
'mofcom.gov.cn'
... | [
"siyudong359@gmail.com"
] | siyudong359@gmail.com |
700521073b1e9083df2d03d4121f4e79d1fc9e92 | 81d19801555ff279b42902ed61b32bf42151f5b9 | /tuio/__init__.py | 4c6f3fde078b58235be17c1c3167d8458e38a301 | [] | no_license | midorinashi/CS402-Final-Project | ed507a70c79326cbbe5e66163bd27f6621ef54db | a3961ee5325edd6518f2508eb0c084ccc1c9b3e4 | refs/heads/master | 2021-04-28T01:25:52.892988 | 2018-06-08T22:56:52 | 2018-06-08T22:56:52 | 122,277,421 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | py | # -*- coding: utf-8 -*-
"""A Python library that understands the TUIO protocol"""
__author__ = "Jannis Leidel"
__version__ = "0.1"
__copyright__ = "Copyright (c) 2007-2008 Jannis Leidel"
__license__ = "MIT"
__url__ = "http://code.google.com/p/pytuio/"
import os
import sys
import math
import socket
import... | [
"traceylin@dn51vc9b.sunet"
] | traceylin@dn51vc9b.sunet |
3bbab7120ebc507559f7d36009c79eedecf43fed | b4b796d863bcf5b9e8617dc2566bd5418c0a7737 | /py/50.Pow(x,n).py | 6f3c09f7df1574c285f5df2047963340b2c29871 | [] | no_license | NidhoggZe/LeetCode | a02e323ffdbc660f43a148fd7219ecf8dc2bff95 | 0ae2e9fac6692f76b71f929154ba72c31d2c2bfd | refs/heads/master | 2023-01-13T04:55:47.911464 | 2020-11-11T12:16:06 | 2020-11-11T12:16:06 | 311,876,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | class Solution:
def myPow(self, x: float, n: int) -> float:
ans = 1.0
if n < 0:
x = 1/x
n = -n
while n != 0:
if n & 1:
ans *= x
n //= 2
x *= x
return ans | [
"397257341@qq.com"
] | 397257341@qq.com |
c47123eb1d1b70624bb34e5b9652c9cf7a8dd2ec | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/vse-naloge-brez-testov/DN10-M-123.py | 0c1eae41abe8c8c3d571897a3c84d3a0b0442dcb | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | otroci = {
"Adam": ["Matjaž", "Cilka", "Daniel"],
"Aleksander": [],
"Alenka": [],
"Barbara": [],
"Cilka": [],
"Daniel": ["Elizabeta", "Hans"],
"Erik": [],
"Elizabeta": ["Ludvik", "Jurij", "Barbara"],
"Franc": [],
"Herman": ["Margareta"],
"Hans": ["Herman", "Erik"],... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
6c7157b662729c66c8f8593e3a2c69535e9dae21 | c8ccd397675e038bdd2c28025b6f2c53ed0b296a | /web/apps/main/models/__init__.py | afa9e3c4b2cf34c204f4c33b941de848152d0886 | [] | no_license | gharghi/amnava | dd7dcffc589a493471daf95809d7b6b892c11b39 | df9a2cd8cdb11f6b06edb3ada5c2dfff8738af77 | refs/heads/master | 2020-06-23T01:39:56.122388 | 2019-07-23T15:54:31 | 2019-07-23T15:54:31 | 198,462,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from .asn import Asn
from .prefix import Prefix
from .route_object import RouteObject
from .dump import Dump
from .neighbors import Neighbors
from .origins import Origins
from .notifications import Notifications
from .notification_rule import NotificationRule | [
"shahin@asiatech.ir"
] | shahin@asiatech.ir |
b697db6e2804c02c3b53e43792ba5bb8a54a21a6 | a031b08f2477dd1696ffa955ac99b869c56ad623 | /ex7/ex7.py | 11ad52d99efadfd558106c02c0d6ed009af64eba | [] | no_license | jkw224/PythonExercises | bf356f1a0ad3a0ccc2059943e4d45879d2e8b876 | 9d953b14ab6d93f81411fde41cdac6c2c0c6f84d | refs/heads/master | 2021-01-25T06:05:58.041690 | 2015-01-21T23:18:33 | 2015-01-21T23:18:33 | 28,823,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | city_temp = {
"Boston": "0 C",
"Boise": "48 F",
"Phoenix": "85 F",
"Miami": "40 C",
"Riverside": "30 C",
"Baltimore": "32 F"
}
for key, value in city_temp.items():
val = int(value[:-2])
if value[-1] == ("F" or "f"):
print("In %s it is %s degrees Fahrenheit\n\twhich is equivalent... | [
"jonathankimballwood@gmail.com"
] | jonathankimballwood@gmail.com |
11c43d634df186462fbdd367e52b5f01578ff910 | b3f7b53a6c0f9abb4b5947f490abc962855eedd8 | /member/migrations/0001_initial.py | 359549a906d1ec930c565b02715f9b4bff3a8519 | [] | no_license | 17611165193/shiqing | e43dfd9640451e83fa4fc0d0c056a04746720766 | e4f8949f9c8b8578d21106da647524d091827484 | refs/heads/master | 2022-12-12T18:12:26.312807 | 2018-09-18T06:44:20 | 2018-09-18T06:44:20 | 149,234,968 | 0 | 0 | null | 2022-12-08T02:48:14 | 2018-09-18T05:44:13 | Python | UTF-8 | Python | false | false | 933 | py | # Generated by Django 2.1 on 2018-09-07 06:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Member',
fields=[
('id', models.AutoField(aut... | [
"liuwei19990123@163.com"
] | liuwei19990123@163.com |
f69994566964aeb6a5c7f505a52d19451b40b25f | fdcf47f556e2c520ee60d05ff0acffd4826b30e0 | /mydatabase.py | 0714019eb99d3713dca7aec50cade3c9a1427f12 | [] | no_license | Carlos20040301/Cine | a1e13bf361fab62338cd11693a9dac5d33bf4aa9 | acbcb5e8cf2abbaa541d2175d4afc5fcbbd9efd6 | refs/heads/master | 2023-04-22T04:36:34.774482 | 2021-05-05T22:15:32 | 2021-05-05T22:15:32 | 364,600,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import mysql.connector
class RedSocialDb:
def open_conecction():
connection=mysql.connector.connect(host="localhost",
user="root",
password="",
database="db_red_social")
... | [
"carlosecastro04@gmail.com"
] | carlosecastro04@gmail.com |
51fe943b78b5a69eb3896de554aac6b22b32623a | 2e6b15509a4487241f5734346e8ac9173c958c99 | /apps/bibliocratie/views.py | cde73421a81a77498301244443cd413a3edf799f | [] | no_license | Bibliocratie/Bibliocratie | 9dd47ab105eb7e0dfb2566b307ad8bfd66b1aad5 | b66347ced05dc7821e721fd3d05d619791e4d543 | refs/heads/master | 2020-06-05T08:07:19.298421 | 2015-07-27T16:03:34 | 2015-07-27T16:03:34 | 39,377,060 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,820 | py | # -*- coding: utf-8 -*-
import json
from django.utils.translation import ugettext_lazy as _
from django.utils.datastructures import MultiValueDictKeyError
from django.http import Http404
from django.contrib.auth import login as auth_login, logout as auth_logout
from django.contrib.auth.views import redirect_to_login
fr... | [
"B@MacBook-Air-de-B.local"
] | B@MacBook-Air-de-B.local |
e712ac004c472f06084a23769197fbe9c9c1722a | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/DeleteConnectionRequest.py | 9a4d962fc099ab8a8094f136d5551e069631099c | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,474 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
a430b405c518f5492c4bfcf40ae484ae3432d216 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02618/s417415114.py | ddebb487f588173570c9610c70cadb46a063199e | [] | 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 | 1,303 | py | from sys import exit
import copy
#import numpy as np
#from collections import deque
d, = map(int, input().split())
c= list(map(int, input().split()))
s=[list(map(int, input().split())) for _ in range(d)]
# t=[int(input()) for _ in range(d)]
sche=[0 for _ in range(d)]
s_tmp=float("inf")*(-1)
for off in range(0,13):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
daf0dae020d433fa831bceb033eab239d48c9455 | c7a849ccc87cd3922c930df74b3e2c693cff9eb0 | /chemvae/train_vae.py | b74184c4f9d1859f147fe174a457d15aa7c4cab7 | [
"Apache-2.0"
] | permissive | dung98pt/chemical_vae-branch | f82990df25d25bc25f35d60be248b5cabcb39a69 | a1d64ad9177902eff8903bf74f6c2cc1251ef333 | refs/heads/master | 2023-04-03T00:17:27.368193 | 2019-11-08T12:23:12 | 2019-11-08T12:23:12 | 219,891,713 | 0 | 0 | Apache-2.0 | 2023-03-24T21:55:11 | 2019-11-06T02:08:15 | Python | UTF-8 | Python | false | false | 12,431 | py | """
This version of autoencoder is able to save weights and load weights for the
encoder and decoder portions of the network
"""
# from gpu_utils import pick_gpu_lowest_memory
# gpu_free_number = str(pick_gpu_lowest_memory())
#
# import os
# os.environ['CUDA_VISIBLE_DEVICES'] = '{}'.format(gpu_free_number)
import a... | [
"dung98pt@gmail.com"
] | dung98pt@gmail.com |
1822d5fc228ac04a9323438fa13bf038e43faa55 | e1ae9b76b2eb79952d822753cdd17081a64a2986 | /codefights/Arcade/Intro/commonCharacterCount.py | c5e83f5e2dded915fcf764dd694ae6a657095dbd | [] | no_license | raffyenriquez/CodingPractice | f477abf33236f6df2f1374c553aa5bb21cdc97ee | bb74987aa763e8eaf4cd32f5f988c615c03b816a | refs/heads/master | 2021-05-05T10:43:51.352249 | 2018-02-15T08:01:37 | 2018-02-15T08:01:37 | 118,079,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def commonCharacterCount(s1, s2):
"""returns number of common characters between two strings"""
return sum(min(s1.count(x),s2.count(x)) for x in set(s1))
| [
"noreply@github.com"
] | raffyenriquez.noreply@github.com |
0a445d67b18dc157da950a170a893bcfb3bb2412 | 9896b6b629642fbc8c441c9a81bc24809e2686ef | /DjangoProject/settings.py | b70569b83f3ef26f58fe95507430f0935e943380 | [] | no_license | mamthal/Peg-a-Page | dfdf9bbf516ca86e7d11db1714f585073ef71f10 | 27983da85d49a5b1ba788d61944ebd816cbaa373 | refs/heads/master | 2020-12-03T05:32:38.541497 | 2013-11-14T23:52:50 | 2013-11-14T23:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,600 | py | # Django settings for DjangoProject project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'... | [
"pallavikhandekar212@gmail.com"
] | pallavikhandekar212@gmail.com |
54d67ca0b0275a672a8ac8402fe331de48c258e1 | f827fd7699ffa5b59ec8c472a63ee317d78ec9a5 | /gui/Panduit_GUI/Tab_Verify.py | ebcd3b368acfe9be5dd3e7dffce0005d2327e26b | [] | no_license | cissuppandi/alruba | a2e8106329ff29d220d8431ba84f88191266d28c | 2410d5e8f2328cf86d7f3c91304046b9a17ee12d | refs/heads/master | 2020-04-01T09:33:53.085099 | 2018-10-23T10:29:21 | 2018-10-23T10:29:21 | 153,080,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | import Login
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
import time
import sys
import datetime
import os
import getpass
import File_Creation
def tab_verification(ip):
#######GETTING THE TAB FROM HOME ICON######
... | [
"44084946+cissuppandi@users.noreply.github.com"
] | 44084946+cissuppandi@users.noreply.github.com |
3c576dc8b9848f179717809fc14cf28926a954cf | 68ab3ac9edc686dfdbd57132c97f5d832984c803 | /faceinsight/io/pubdataloader.py | d2db19f12508f6edb8e49b462ad97d9346c8ffa1 | [] | no_license | sealhuang/FaceInsight | a838b361fce5da2707642af0b2a25f9cdbd6f1c7 | 62db5e521550c56707dcb6813cbd68481bd6a96b | refs/heads/master | 2023-08-02T12:48:20.917956 | 2021-10-09T06:41:39 | 2021-10-09T06:41:39 | 181,633,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # vi: set ft=python sts=4 ts=4 sw=4 et:
"""Dataset utils for loading public dataset."""
from __future__ import absolute_import
from __future__ import print_function
import os
import numpy as np
from PIL import Image
def get_lfw_val_pair(pair_file, img_dir):
"""Get LFW data for validation."""
pair_info = ope... | [
"huanglijie@outlook.com"
] | huanglijie@outlook.com |
369ca60c846b387a15196df4ced3a3e9b73e48bb | 683b6d8539721cc09da159226cc8d656b6655467 | /botshop/wsgi.py | 2fcf9970a21445676a4a74fad9fbeba125351ae3 | [
"MIT"
] | permissive | hiletroy/BotShop | 9afcce1b51b53fc8bc9327afb711b67f8fefb501 | 9bbc8cd2d6789a04b38984ac92e3d9d1877f430f | refs/heads/master | 2022-12-09T12:56:06.218398 | 2020-01-17T05:07:08 | 2020-01-17T05:07:08 | 86,826,281 | 0 | 0 | null | 2022-01-06T22:24:20 | 2017-03-31T14:11:12 | Python | UTF-8 | Python | false | false | 483 | py | """
WSGI config for botshop 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Djang... | [
"alexey.bavykin@gmail.com"
] | alexey.bavykin@gmail.com |
361c70e5469002886a8f75d036416aa07b316719 | 4e187da441d9788cab323add85d7ab8253dd3438 | /python2.7/chapter_6/test_server/addressesapp/migrations/0001_initial.py | d41244950c24e05e1950bc8b861a2bb412e7fdb9 | [] | no_license | ai2010/machine_learning_for_the_web | 7b506efcd8abb2e0a727e6d02b583ee741433042 | dcca7c3028b6b6af57cffdce9c4f916114c06f94 | refs/heads/master | 2023-07-25T12:56:47.132336 | 2022-03-31T13:42:45 | 2022-03-31T13:42:45 | 57,253,576 | 75 | 82 | null | 2023-07-06T21:40:19 | 2016-04-27T22:41:48 | Python | UTF-8 | Python | false | false | 738 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(verbo... | [
"ciccibolli@gmail.com"
] | ciccibolli@gmail.com |
a8e411a0029259b2ad6f383769c868249ccc8975 | bc4a22787f5c0ab51512eee550776bb71c32eb81 | /forloop.py | 6669e5356706f9c4588f28c7942e80759fa6087f | [] | no_license | passarovertical/python | 874d6928adf0db32bde49e9892085228770a4d50 | 3b3750a02b67abe60b6c8396489ec87d33c5bbdd | refs/heads/master | 2021-09-29T00:55:34.534659 | 2018-11-22T01:15:55 | 2018-11-22T01:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | nomes = ['Jim', 'Karen', 'Kevin']
len(nomes)
for name in range(len(nomes)):
print(name)
# Pode-se usar for loops para continuar um loop sobre todo
# coleção, como str, array, por exemplo. | [
"lucas.bsilva1@gmail.com"
] | lucas.bsilva1@gmail.com |
907f0883fb7e553f80b705bb6e6439ed7eea2d00 | 729a6ad8e10d70ae9c291304e6bcb291ff5ba93e | /toytree/utils.py | 4a18e59bcd86169a0ab3d6496797d913e0b698e1 | [
"BSD-3-Clause"
] | permissive | PhilippineDubertrand/toytree | 3774e2cfdd96f3bd8e6be328232fc61f2d711a98 | cdb57fae164f0035dc5f451e08289780deae927a | refs/heads/master | 2022-11-20T01:41:45.088289 | 2020-06-29T16:21:47 | 2020-06-29T16:21:47 | 274,166,890 | 0 | 0 | BSD-3-Clause | 2020-06-22T14:56:25 | 2020-06-22T14:56:25 | null | UTF-8 | Python | false | false | 10,195 | py | #!/usr/bin/env python
from __future__ import print_function, division, absolute_import
import re
from copy import deepcopy
import numpy as np
#######################################################
# Exception Classes
#######################################################
class ToytreeError(Exception):
def __... | [
"de2356@columbia.edu"
] | de2356@columbia.edu |
2aac061975d168ee79510acb3399664ff62f5e16 | ebd00c8cb67a3597e6caedb690dfac3e5599796d | /translations/italiano/0.4.3/vegastrike-data.spec | d8b29228d682bf738a707e0393f3c1bd34da595a | [] | no_license | DMJC/vsengine | aef694057df00e925cd5d54a1bd4d9e0026f31c5 | d7314c38bcf9d164b49477beffb86217dd654d34 | refs/heads/master | 2020-06-25T11:46:16.708539 | 2018-07-01T18:12:30 | 2018-07-01T18:12:30 | 74,533,112 | 2 | 0 | null | null | null | null | MacCentralEurope | Python | false | false | 2,939 | spec | Nome: vegastrike-data
Contenuto: Vegastrike - un simulatore spaziale 3d opensource(data files)
Versione: 0.4.1D
Release: 1
Copyright: GPL
Categoria: Amusements/Games
Sorgenti: vegastrike-data.tar.gz
URL: http://vegastrike.sourceforge.net
Creatore pacchetto: Krister Kjelltröm aka Starchild <k00_kjr@k.kth.se>
C... | [
"james@James-Work"
] | james@James-Work |
fbfa67e13f4e3b582c3f527ca04a052856265881 | 2ebdf9ba60785636a130151ba89dba2b140c5c34 | /demo.py | 3b55281a87e7e56c16e4f786aa4ed1470fb6c565 | [] | no_license | xq222/yuanfeng | f62c0451c6142e09af68a20bbc280a7fb4dfb95e | 6714987e26f07f221d345c767307fc5e6d47631c | refs/heads/master | 2020-09-18T11:24:51.626775 | 2019-12-18T10:47:06 | 2019-12-18T10:47:06 | 217,978,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("http://yf.a99.live/")
driver.maximize_window()
driver.find_element_by_id("username").send_keys("18055779893")
driver.find_element_by_id("pwd").send_keys("123456789")
driver.find_element_by_xpath("/html/body/div/form/input[3]").click()
... | [
"995583710@qq.com"
] | 995583710@qq.com |
14865293bb7ae0c559d8e3fd11d8c8fec9889319 | 40a3b9f93cb52d478845596610861a95ed12ef36 | /db.py | 1ed97d53760ae8765c1fe4f919bb7e33a4de8026 | [] | no_license | aoifebyrne/grader | 4653d8130c607f526c5ae61327272dc7dc935484 | 005d5d8a6c1c14a3ca0a93e5fc210ffbe9157f66 | refs/heads/master | 2021-01-11T18:03:10.947848 | 2017-01-24T15:49:43 | 2017-01-24T15:49:43 | 79,478,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,469 | py | # -*- coding: utf-8 -*-
db.define_table('course_person',
Field('course_id', requires=IS_IN_SET(['A1', 'A2', 'B1', 'B2', 'B3', 'M1', 'M2', 'M3', 'M4', 'H1', 'G1', 'C1','CS1', 'R1']), unique=True),
Field('person', 'reference auth_user'),
)
db.define_table('subject',
... | [
"noreply@github.com"
] | aoifebyrne.noreply@github.com |
4aa6b906dd40411d628bb4b7b011f06c7e98e353 | 4fda3bb30e5612ba006abb31924084e4290de136 | /Conditional_DCGANs/conditional_gans.py | 0b6dda451f4fa2a6492114ba3f16ec92e2cc2f1b | [] | no_license | dbasso98/GANs | ed3901aace99a3fddbf78fe9e97ae69eb2af3d78 | 40dcafd00d2fb5510573de7d3a866dfdd0062da7 | refs/heads/main | 2023-07-30T05:33:55.876663 | 2021-10-05T08:54:06 | 2021-10-05T08:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,003 | py | import argparse
import os
import numpy as np
import math
import torchvision
import torchvision.transforms as transforms
from torchvision.utils import save_image
from torch.utils.data import DataLoader
from torchvision import datasets
import torch
import torch.nn as nn
from torch.backends import cudnn
from torch import ... | [
"noreply@github.com"
] | dbasso98.noreply@github.com |
5224ea480b5920a91b6d02c5fb96e32077e150ff | 0342e079cfd055b1ca26ca2a9963d6daa5260720 | /dev/egocentriccoord.py | 8b75f5a19464c7640d3c78cf2eccbf06100ccef6 | [] | no_license | rltonoli/MScTonoli | 9de864f32831c96146a2f388044b9b4d25beebe9 | eab52c01c45025daa1b2ef11861a2b66ab205638 | refs/heads/master | 2023-04-19T07:33:07.025597 | 2021-05-03T20:15:33 | 2021-05-03T20:15:33 | 228,877,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95,011 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 21 21:44:27 2019
@author: Rodolfo L. Tonoli
"""
import numpy as np
import mathutils
import time
import skeletonmap
class EgocentricCoordinate:
"""
Objects of this class holds the egocentric coordinates of a joint. It contains the joint, its name,
and a list ... | [
"rltonoli@gmail.com"
] | rltonoli@gmail.com |
f1a84740d0a5c3bf1ba1441ba380dc64176cbe97 | d7ad696cd1b550bb41d20f87b83c984ec7f19aa7 | /practice/design_pattern/03_abstract_factory/abstract_factory.py | 5fa712b16a1b0fb0cd9de79237fa18d370861894 | [] | no_license | mida-hub/hobby | 2947d10da7964d945e63d57b549c1dcb90ef7305 | 6e6f381e59fc2b0429fab36474d867aa3855af77 | refs/heads/master | 2022-12-21T23:33:14.857931 | 2022-12-19T16:30:34 | 2022-12-19T16:30:34 | 147,890,434 | 0 | 0 | null | 2021-03-20T04:31:58 | 2018-09-08T01:31:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,129 | py | # Abstract Factory
# abstract_factory.py
from abc import ABC, abstractmethod
class AbcItem(ABC):
def __init__(self, caption):
self.caption = caption
@abstractmethod
def make_html(self):
pass
class PageItem(AbcItem):
def __init__(self, title, author):
self.title = title
... | [
"rusuden0106@gmail.com"
] | rusuden0106@gmail.com |
47d989387223d5588151d939827027b00f77b308 | 42683813d6fcb6df11d24e851d411633ab200a67 | /regression/__init__.py | 27bcac306ec8a347d6571a77521ca9c03efc5f76 | [
"MIT"
] | permissive | sahitpj/machine-learning | aa1ac76ee31615872e0a9ae1c9c41e0be59a5423 | 2ce5a337ec432daff64a216df6847ef834bcb8d7 | refs/heads/master | 2020-04-16T10:30:42.873896 | 2019-04-22T14:47:54 | 2019-04-22T14:47:54 | 165,506,786 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from .linear_np import normalEquationRegression, gradientDescentRegression, gradientDescentAutogradRegression
from .linear_torch import TorchNormalEquationRegression, TorchGradientDescentRegression, TorchGradientDescentAutogradRegression
from .cordinate import coordinateDescent
from .lasso import coordinateDescentLASSO... | [
"jayakrishna.sahit@iitgn.ac.in"
] | jayakrishna.sahit@iitgn.ac.in |
272f213f76b5bb604a5b11e9b98f8b174098e41b | 4112399d77c8cd8d699d5053017a55e27250268c | /food_picker/migrations/0001_initial.py | b87e4e3413359cbd115fd7771be5cc74ba09cec2 | [] | no_license | Bencabe/food_picker | 8d76be7b32cdbe09b69e3de5cfb63d7d998d389c | 923d5c0bbcc4df791cf06dab7fe9ea0a3366a204 | refs/heads/main | 2023-03-31T01:53:28.711706 | 2021-03-31T14:49:11 | 2021-03-31T14:49:11 | 339,167,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # Generated by Django 3.1.1 on 2021-02-15 18:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Ingredient',
fields=[
('id', models.AutoFie... | [
"bencabe93@gmail.com"
] | bencabe93@gmail.com |
0ee4ccbc23fc537b520fdb1b1ba7646da31fa8af | aa534dd11a258dca3b0ab6c0e49355891b046d90 | /.idea/Control_Statements/if.py | 1d9d4d76a2255cf8ff7c83e4f13d0c13c5674f60 | [] | no_license | Mrpool96/Python-2020 | b0650171b6d28b1ba7769158d8875dfe9a543d12 | 122b2fc12c1fcd862d53f94f9e30e541640fdc7d | refs/heads/master | 2023-01-03T21:30:35.306675 | 2020-11-01T09:26:16 | 2020-11-01T09:26:16 | 288,363,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | num=int(input("Enter the Number:-"))
if num<200:
print(num) | [
"53513296+Mrpool96@users.noreply.github.com"
] | 53513296+Mrpool96@users.noreply.github.com |
a71863966023b79206fa8aa368d5716c6ab02aae | 60cc8185187b584b78377d526cde7c1bee325db3 | /backend/generate.py | 1cfd4e20ca9a68c76b07279c47782ac09aa9020f | [] | no_license | sc1f/student-elections-explorer | da5d61d4c15b9cbd71f5dbc918aeec70d00b9a57 | 39b1ac42358dbbd50f29e123e45a6f84281ef165 | refs/heads/master | 2021-01-18T03:11:01.672984 | 2015-03-13T00:27:48 | 2015-03-13T00:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from flask_frozen import Freezer
import copytext
from application import app
import settings
def generate():
app.config['FREEZER_DESTINATION'] = settings.web_app_location
app.config['FREEZER_BASE_URL'] = settings.external_url
freezer = Freezer(app)
copy = copytext.Copy(settings.copy_sheet_location)
@freezer.re... | [
"mileshutson@utexas.edu"
] | mileshutson@utexas.edu |
3aad9a6ae36c97d0c6944d6c0ef7981fcbd7a0ee | 5a9cad0e55708a25aa77296fba867cd06bf80a20 | /day7/handy_haversacks_part2.py | d84c36a405f6852e4c124859b3013e317d073435 | [] | no_license | PlaybackSwede/advent-of-code-2020 | d10420eff54fe390e88fdaa72764b555c36d7d4b | 3c805715e0f3677ca55424ef709d82f8139a6f09 | refs/heads/master | 2023-02-13T17:06:50.951304 | 2020-12-19T22:51:39 | 2020-12-19T22:51:39 | 320,923,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import functools
#Define global index
bag_tree_index = {}
def recursive_bags_in_bag(bag_key):
bag_nbr_pairs = bag_tree_index[bag_key].items()
if len(bag_nbr_pairs) == 0:
return 1
nbr_bags = 0
for key, nbr in bag_nbr_pairs:
if len(bag_tree_index[key]) == 0:
nbr_bags += ... | [
"pontus.ovhagen@tidal.com"
] | pontus.ovhagen@tidal.com |
91cd296fa5741cfcebc94e7927b78d1ff38eebc5 | 030aadc06eba914dbc9f7e774d54cafd5acc0ae6 | /docker/wsgi_docker.py | 4f4d5ae871cf9698ce31dd779b010d807bd24fde | [] | no_license | torchbox/wagtail-template | 985047e917031cf033f61c0c2480870da430aa15 | 4c0cb34d28ccbc03a96ca9f1ff0499a3554ba5e6 | refs/heads/develop | 2016-09-06T14:55:28.078233 | 2015-08-11T12:03:08 | 2015-08-11T12:03:08 | 21,358,329 | 9 | 5 | null | 2015-05-06T09:29:53 | 2014-06-30T16:42:33 | Python | UTF-8 | Python | false | false | 124 | py | from whitenoise.django import DjangoWhiteNoise
from .wsgi import application
application = DjangoWhiteNoise(application)
| [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
a4430652ef1ea303385485cb2b86a2b526ff541a | d4e05a65f18865b47573359ea6865fe840e09c58 | /1225133-95.py | e8dd64d29edfc278f4a1df433e7c116b1debe534 | [] | no_license | ZlatanTheGreat/HelloZlatan | c5ed4bb60f1b521f73085982d948d51e538a7123 | f139a1365cfd6d18be70a75b93678ba74cbb4a34 | refs/heads/master | 2021-05-11T17:22:06.903054 | 2018-12-19T18:04:30 | 2018-12-19T18:04:30 | 117,795,044 | 0 | 0 | null | 2018-10-07T20:46:11 | 2018-01-17T06:33:43 | null | UTF-8 | Python | false | false | 427 | py | import math
class Circle:
def __init__(self, radius):
Circle.radius = radius
@classmethod
def circumference(cls, radius):
circumference = (2*radius) * math.pi
print(f"Circumference = {round(circumference)}")
@classmethod
def area(cls, radius):
area = m... | [
"noreply@github.com"
] | ZlatanTheGreat.noreply@github.com |
f062f548ac52051b7be211f4aa05d7693fe355a0 | 7b0e2d6061e267fd2d9d8bec0bc76b9571684265 | /programmers_kdt_II_1-week5-/programmers_kdt_II_1-week5-/Monthly_proj/Monthly_Proj1/show/show/settings.py | 05b7384c8bcace74523c6cc6d25738ee2e86d90e | [] | no_license | wkdclrms123/KDT | c214d04ee7fd49635f36c2c45923f00aba2d2a97 | 00ca956a36c13b6a0d69a7966714d8100ced305b | refs/heads/main | 2023-05-07T03:05:09.365192 | 2021-05-31T06:40:17 | 2021-05-31T06:40:17 | 372,407,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | py | """
Django settings for show project.
Generated by 'django-admin startproject' using Django 3.2.3.
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/
"""
import os
from ... | [
"wkdclrms123@naver.com"
] | wkdclrms123@naver.com |
37761b569d22615d0f0e51e0a0b27f66188a80ce | aff732682d12192e163e18e57c4dbc832c81ffe7 | /week0/TwentyFortyEight_test.py | 5b758d3572a59a96ddadad5c8f85dad90eb1405d | [] | no_license | EarlMatthews/principlescomputing | 4ad0d0736bb1fe4468d60a56adfa4b5ec58f1d39 | 9ebf70815b512e79fa1ef8f7aafbbfee82632196 | refs/heads/master | 2021-01-22T01:10:24.816886 | 2014-07-19T15:30:03 | 2014-07-19T15:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | '''
A simple test for twentyfortyeight
'''
import poc_simpletest
from TwentyFortyEight import TwentyFortyEight
from TwentyFortyEight import DOWN, LEFT, RIGHT, UP
def merge_test(suite):
'''
Test method merge
'''
from TwentyFortyEight import merge
suite.run_test(str(merge([2, 0, 2, 4])), str(... | [
"honestmanxin@gmail.com"
] | honestmanxin@gmail.com |
bb48285834ee29beb7a898493b7d407dafdf7dd6 | 8c7a187ebfe858ff3f840602585d166b29fce576 | /appstore/regulate_underscores.py | db0232fa39df3b96f78c3dc29fa2e15e90914bc1 | [] | no_license | ohannes/pythonScripts | b756faa2e6d5314cb04c7afc0ca07f69027f59b2 | 5249b2735d8b2a9a2c6ad8a1ae625cb47f50d0b5 | refs/heads/master | 2020-04-06T04:20:29.565042 | 2015-07-19T17:40:39 | 2015-07-19T17:40:39 | 34,119,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import sys
sys.path.append(os.environ["ohannes"])
from ohannes import *
input_file = getStrArg(1, 1)
output_file = input_file + ".regulated"
lines = getFileLines(input_file)
ftw = open(output_file, write_mode)
for line in lines:
sharp_found = False
equal_found = False
line_regulated = False
if not "=>" in line ... | [
"yasinyildiza@gmail.com"
] | yasinyildiza@gmail.com |
f3b7f0280900dbb82a53d5f1149b6cf9d643ef65 | 0951918d92e64464bf56a059f743d4986a2977fb | /dusk/ssm.py | fb3273c0b967d09c9c674bb315962afc1f1e65dc | [] | no_license | raids/dusk | 5150d2c5c536b1b1262fdef81200f63410cf66ff | f6ab0a17b16906a68a8021ba1b9825ff487b5095 | refs/heads/master | 2021-01-19T23:39:52.539923 | 2017-04-23T15:52:10 | 2017-04-23T15:52:10 | 89,001,389 | 1 | 0 | null | 2017-04-23T15:50:16 | 2017-04-21T16:04:18 | Python | UTF-8 | Python | false | false | 250 | py | # -*- coding: utf-8 -*-
"""
ssm run the EC2 Systems Manager on the target instance.
"""
import contextlib
def run(instance_id):
# Run SSM
pass
@contextlib.contextmanager
def ssm_doc():
# Create then delete the SSM document
pass
| [
"jroutley@gmail.com"
] | jroutley@gmail.com |
5287b4ef9ff7aa1f39aee1ce5d077e70afdb737e | cd0d86966c57e6883e7c2e000802a67122d0192a | /src/agents/random_agent.py | 3e25f4118e3d27d785903b0cf2265a916dd801e6 | [
"MIT"
] | permissive | Mithrandir2k18/seminar-paper-learning-via-competition | ff365677846680b249270bb6e70c99fb0db54d70 | e081f6ba89b8c3c50da218060dcd1ec0107e2dc0 | refs/heads/master | 2023-04-05T14:47:09.859776 | 2021-03-31T04:47:52 | 2021-03-31T04:47:52 | 353,218,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from typing import List
from environments.environment_abc import Action, State
from agents.agent_abc import Agent
import random
class RandomAgent(Agent):
def __init__(self,
player_id: int = -1,
agent_name: str = "RandomAgent"):
self.agent_name = agent_name
self.pl... | [
"alexander.zincke@gmail.com"
] | alexander.zincke@gmail.com |
fdf34b26ad998c9cef7cdd3a4ce2b6e71b2497c1 | 8e466a28c04cbc682a3b5ab24918beeb09a8ee7f | /deeplearn/migrations/0002_auto_20190926_1159.py | a33d7a32ddecffe6c74fa8f026b914499b42bbd1 | [] | no_license | vaibhav1202/VehicleClassification | eefe95d939b68ba4f80cec40860f73d47a88b409 | db966edfd5ab5a5b6d3d9117aa286af375b6d2e5 | refs/heads/master | 2020-08-02T05:11:18.438230 | 2019-09-27T06:00:43 | 2019-09-27T06:00:43 | 211,244,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Generated by Django 2.2.4 on 2019-09-26 11:59
import deeplearn.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deeplearn', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='deep',
name... | [
"agrawalvaibhav12@gmail.com"
] | agrawalvaibhav12@gmail.com |
9b937c35f42ccd5bb2c64e7139a9e0d690ea887e | 232494ea6abe85c8751681ab19a6482b09baeb47 | /Scripts/dramarama/admin.py | 192408d2819fc93a2e1c6720372841b37fb6cb2f | [] | no_license | mjkcool/DramaRama-dev | 4cd9cda5767a724c7727021bbf4c641aa05b4ac9 | b9392c3401042c321b42e6865d66884992833af2 | refs/heads/master | 2023-03-24T08:24:34.374970 | 2021-03-25T00:58:17 | 2021-03-25T00:58:17 | 320,464,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.contrib import admin
from .models import Drama, Survey, R_Survey
admin.site.register(Drama)
admin.site.register(Survey)
admin.site.register(R_Survey) | [
"mjkimdelta@gmail.com"
] | mjkimdelta@gmail.com |
6b9b0d35589596bc43d6d9a17bcfb43d86e17886 | 117e2fab53a39e14d4aa1c8c60d146c942118ac6 | /dev_support/settings.py | c12140cea7a5914d4b2237f490fb55bfbd730d6d | [] | no_license | j1210030/case-portal | 6e46ae3adf9c7d0905de27c78a4aba830d8eccb3 | 257ca1bdc7760db60a4c9102e59920574ec3975d | refs/heads/master | 2020-03-27T15:14:25.504719 | 2018-08-30T06:53:10 | 2018-08-30T06:53:10 | 146,705,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,762 | py | """
Django settings for dev_support project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
... | [
"noreply@github.com"
] | j1210030.noreply@github.com |
e0406bccdd58cced9e2cf9f4510da9f8da2321cb | 1cde75aa1ae01e54484fd8df596ee1975b0a7a2d | /abstract_service/models.py | 0202fd04fd2b02f2095d2ce4cedf3aeff2117d7f | [] | no_license | dkeye/qr_service | 3ede8ff98d05c0decdf77d2e37483f7e6f86b93c | b9e994a8923b262d97508bed3d1b48de7722ae0f | refs/heads/master | 2023-08-04T19:29:05.664502 | 2021-09-21T18:46:26 | 2021-09-21T18:46:26 | 400,872,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from sqlalchemy import Boolean, Column, Integer, String
from .database import Base
class Codes(Base):
__tablename__ = "codes"
id = Column(Integer, primary_key=True, index=True)
code = Column(String, unique=True, index=True)
is_activated = Column(Boolean, default=False)
| [
"ldifmo@gmail.com"
] | ldifmo@gmail.com |
90197241a1030e09b3e3a1801be2cd12244e42d1 | 8158e8633883139f8de93d5fdbf7a85acc6b91f3 | /Original Code/fat32Test.py | b759cb6fdc924b466dadcbf0075690ebb2b207bc | [] | no_license | kyungsook/Forensics_Visualization | cf9c647a0b7622fb76eba35e693ab4876583f9e2 | cb2d1155a70824e1ba1453819c3e2eb0b5bde23c | refs/heads/master | 2021-02-15T22:19:22.127896 | 2020-10-08T09:01:02 | 2020-10-08T09:01:02 | 244,938,004 | 1 | 0 | null | 2020-06-06T09:37:42 | 2020-03-04T15:39:11 | HTML | UTF-8 | Python | false | false | 7,183 | py | import sys
import struct
class FAT32:
END_CLUSTER = 0x0fffffff
dir_list=[]
file_list=[]
reg_list=[]
def __init__(self, filename):
self.filename = filename
self.fd = open(filename, "rb")
self.read_vbr()
def read_vbr(self): # vbr 1섹터 읽기
self.fd.seek(0)
vb... | [
"lovablekks@naver.com"
] | lovablekks@naver.com |
592b00cfa6ac75662cbf56700da1692c4c8168b9 | 844e548c362184da0def9a0fe736c8c68b5d4893 | /venv/bin/wheel | ddbcc54161b3adc60b5a780ea889c92d702041a8 | [] | no_license | atallini/admin_facilito | 23604e0d758d6847134cb81b549234122b266ac9 | 88a1342ed4e969dc42e8e82517b8291f1280d848 | refs/heads/master | 2021-09-03T11:22:01.737512 | 2018-01-01T18:38:39 | 2018-01-01T18:38:39 | 115,933,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/home/anibal/admin_facilito/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anibal.tallini@gmail.com"
] | anibal.tallini@gmail.com | |
303766a3257634ef8790974fe507abbdabd88b1b | 2853e675fe8e83925e6318310e5239da0bbb3f73 | /runMES/MQTT/mq_qry_lot_record_srv.py | 997d576c5db27f3059bee1c1ea8700d1f9fd7960 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | runMES/runMES_1908.2 | 60f6272ad543609fd67411f760e4712b628fd19d | acae4bb86acf62206d6e26b82144c68677a893f9 | refs/heads/master | 2020-07-26T23:56:09.393975 | 2019-10-01T09:09:16 | 2019-10-01T09:09:16 | 208,802,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import paho.mqtt.client as mqtt
import logging
import ast
import time
from runMES import trans
import threading
from MQTT import log_EAP_IF
mylog=logging.getLogger('EAP')
subscribe_topic="runMES/qry_lot_record_srv"
srv_name='mq_qry_lot_record_srv'
def synchronized(func):
func.__lock__=threading.Lock()
def synced... | [
"joshua.chin@steptech.io"
] | joshua.chin@steptech.io |
7098f4dd04eee66744539b132a94f353fab0fbdd | 3373b2bbe6303dcee3ae7f7f3e715ce674878a7b | /packages/hyperk/wcsim_dev.py | 7187f72a10ce70577639daba6aa414e563e94670 | [
"MIT"
] | permissive | pgjones/nusoft | f3515a6e2fc90622638cde0b8712ba6fcea2aa8e | 442c7bca2f921892ecf9eb3ff6821e2a9da7b156 | refs/heads/master | 2020-09-12T21:44:54.453633 | 2014-10-03T20:22:09 | 2014-10-03T20:22:09 | 17,223,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | #!/usr/bin/env python
#
# WCSimDev
#
# The HyperK WCSim development version
#
# Author P G Jones - 2014-06-20 <p.g.jones@qmul.ac.uk> : New file.
####################################################################################################
import nusoft.package.local as local_package
import os
import nusoft.envfi... | [
"p.g.jones@qmul.ac.uk"
] | p.g.jones@qmul.ac.uk |
1e9a39eb7181f21d6cbbf89028fda4374c0c2886 | 75f13a7149741707cd827ed419a10a74aec355a7 | /CS 2043 - Unix Tools & Scripting/Project 4/ereader.py | d0658b58a06b10425b01d0751bd0b663aef5989a | [] | no_license | ava9/Class-Projects | 0a7a1d4c6f4c19bc4c7112b1120124a2bfe31781 | 9be7e6d9054e0d6d2eef21794222255617db1536 | refs/heads/master | 2020-12-24T15:31:27.747939 | 2015-04-01T03:46:14 | 2015-04-01T03:46:14 | 31,793,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,067 | py | #! /usr/bin/python
#display use case for user
print('Example case : python ereader.py [-n #someNumber] (n: next page, p: previous page, q: quit)')
print('User controls n: next page, p: previous page, q: quit (case sensative)')
import sys
import os
import hashlib
import re
import termios
import contextlib
#starting d... | [
"spyguy101@gmail.com"
] | spyguy101@gmail.com |
17ea9fd1916009532f486f0223fe33c3a6f09caa | aabed3688686d034dff01b7153b7ec8a6af42d4c | /python_fundamentals-master/01_python_fundamentals/01_01_run_it.py | 1f671f1f74435f1ac45b9cb2368a4050b85caffb | [] | no_license | jorien-witjas/python-labs | da83a69d0103e6ac7f7605173fd46b54b23cb91a | c79ff093a7ae61ad50760adae30de972a7470e47 | refs/heads/master | 2023-06-16T20:55:03.896614 | 2021-07-06T14:47:37 | 2021-07-06T14:47:37 | 363,151,987 | 0 | 0 | null | 2021-07-06T14:47:38 | 2021-04-30T13:37:33 | Python | UTF-8 | Python | false | false | 613 | py | '''
1 - Write and execute a script that prints "hello world" to the console.
2 - Using the interpreter, print "hello world!" to the console.
3 - Explore the interpreter.
- Execute lines with syntax error and see what the response is.
* What happens if you leave out a quotation or parentheses?
* How h... | [
"jorienwitjas@MacBook-Pro-van-JH.local"
] | jorienwitjas@MacBook-Pro-van-JH.local |
7bc3b3a1834c1f657039fcff98ce912abb2f8078 | 301d74cbe63ecff72a942e04ff77c1165dd02f9f | /tests/test_crawler_process.py | 5c793a1c282985813ab0e760de8a5f64cfdaf4b0 | [
"BSD-3-Clause"
] | permissive | wusir2001/galaxy | dd10864e48c4c303fa3562b7f590d4bd45b3b52e | cb66633132a8c1affd8f103c466589d392409361 | refs/heads/master | 2020-05-24T20:04:25.090846 | 2018-06-12T13:37:59 | 2018-06-12T13:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | # -*- coding: utf-8 -*-
from mock import MagicMock
from scrapy import signals
from twisted.internet.defer import Deferred
from twisted.trial import unittest
from rest.core import CrawlManager, GalaxyCrawlerProcess
from .spiders import MetaSpider
from .utils import get_settings
class CralwerProcessTestCase(unittest.... | [
"markhuyong@gmail.com"
] | markhuyong@gmail.com |
9e1bb9384cfbb09cb003f26a31ea6e708b58fbf8 | 8f860a338ccd64d40f2e64e921fedb1951b4468f | /file_utils.py | eece77b453ed337237db6c48c7ce0849b67d170b | [] | no_license | alexyang06/zp.buildout | 1d544963d857c98123823a02db3db43d51eb7886 | e81abe5bf1c38a40445831e993bedafb2adeb125 | refs/heads/master | 2021-06-18T13:23:46.136928 | 2016-12-23T05:06:26 | 2016-12-23T05:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import os
def get_all_files(path):
#return all files' name in certain folder.
result = []
for name in os.listdir(path):
if os.path.isfile(os.path.join(path, name)):
result.append(name)
return result
| [
"noreply@github.com"
] | alexyang06.noreply@github.com |
fe53f6f0a9858f39c58fbbdfc21e6f2f9aa5bc41 | 546d0ce70b8f5b479a493e799846082bbe686bb5 | /symmetric-ciphers/substitution-cipher.py | a1b45f491c9f65e75d5813b729c4bd66212e4426 | [
"MIT"
] | permissive | ninobaldo/cryptographyI | f19ba27971bdd2258d65b5847cb87c7ce3c1d8e8 | 9828cab1b4c69d8ed2a42dc0867f11f4ff3bc8d6 | refs/heads/master | 2021-01-19T16:57:38.379041 | 2014-09-11T19:39:33 | 2014-09-11T19:39:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | def encrypt(plaintext, key):
CIPHER = list(key)
ALPHABETIC = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
ciphertext = ''
for i, l in enumerate(plaintext):
index = ALPHABETIC.index(l);
ciphertext += CIPHER[index];
print plaintext, ' ---> ', ciphertext
def decrypt(ciphertext, key):
CIPHE... | [
"ninobaldo@gmail.com"
] | ninobaldo@gmail.com |
2e77842e863422f2ffdaefdc8d6d8126892ba1d3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03347/s144374882.py | 8ce3352dfe431d952e676130950485ebdc55dc2e | [] | 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 | 751 | py | import sys,queue,math,copy,itertools,bisect,collections,heapq
def main():
sys.setrecursionlimit(10**7)
INF = 10**18
MOD = 10**9 + 7
LI = lambda : [int(x) for x in sys.stdin.readline().split()]
NI = lambda : int(sys.stdin.readline())
SI = lambda : sys.stdin.readline().rstrip()
N = NI()
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1df816ad8cfee83dae7e3cb566b5599ecf231cfc | c663559b30712907ccf7dd8acb078718e8579bbc | /week5/listsum.py | 480fb72e1c4b7735bbfa46187bc18fd7e30672c6 | [] | no_license | Mly-T/MOOC_Data_structure_and_algorithm | 33aaf66dc6ccf4a2c6c6578e8b5f6453f2edd2d3 | cdca8340190136f577d02fc7237e70ffd3249517 | refs/heads/master | 2021-05-23T15:51:42.779577 | 2020-04-17T03:22:16 | 2020-04-17T03:22:16 | 253,366,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | def listsum(numList):
if len(numList) == 1:
return numList[0]
else:
return numList[0] + listsum(numList[1:])
print(listsum([1,2,3])) | [
"lin_he_01@163.com"
] | lin_he_01@163.com |
d23b135a21dfd7c7b0427aa7f631fddf890451ee | 191b068186efaaee07358d0721d3027e81eef914 | /util.py | 6fd3e6cd3100930b0bcae9f47b2c7403d5cff7a7 | [] | no_license | kujing/git_cilog | 60eabbe2c56452b0e1045393b31995c5f41d5933 | acb864ef47d2d7bf9c2a55c900ea1a74f5c19c72 | refs/heads/master | 2021-01-10T21:39:14.533018 | 2018-10-24T11:30:47 | 2018-10-24T11:30:47 | 34,507,302 | 0 | 1 | null | 2015-06-27T07:09:02 | 2015-04-24T08:31:37 | Python | UTF-8 | Python | false | false | 2,615 | py | #!/usr/bin/env python3
#coding: utf-8
import os
import platform
import subprocess
import sys
import time
import re
ON_LINUX = (platform.system() == 'Linux')
conf = {
'max_domains': 10,
'max_ext_length': 10,
'style': 'gitstats.css',
'max_authors': 20,
'authors_top': 5,
'... | [
"jingliangliang@foxmail.com"
] | jingliangliang@foxmail.com |
138d7251e99fd5b8de87425401cfefea55cd6357 | 84065ee4fb4ebeb8cb2cf1d3f6f385d2c56d787e | /page/__init__.py | 359e38e1661042b3715145fd8b364217bb2881c4 | [] | no_license | bian-py/app_kefu_code | 59ed0bcf247e5dd7b06e0f91cdd9563faa49ce60 | 2f84a152bdc2c226f2bcb6aabc34f0a5313c094e | refs/heads/master | 2023-01-28T11:17:40.984458 | 2020-12-08T11:07:50 | 2020-12-08T11:07:50 | 319,289,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,863 | py | from selenium.webdriver.common.by import By
# 以下是服务器页面配置信息
fwq_new = By.XPATH, '//*[contains(@content-desc,"添加新的服务器")]'
fwq_hand_input = By.XPATH, '//*[contains(@content-desc,"手工输入")]'
fwq_scan_code = By.XPATH, '//*[contains(@content-desc,"扫码二维码")]'
fwq_input_name = By.XPATH, """//android.view.View[@content-desc="{{ '... | [
"334783747@qq.com"
] | 334783747@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.