blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a92346d06c6d1e8ea8bb79fb93940843a809259a | 312487674db6ed02749236f192bbd14178a023ce | /.~c9_invoke_jsEp6f.py | 1b2d1fc62dfbb29ff595700284db2a674c7d9da0 | [] | no_license | charbelmarche33/WeatherWebApp | 013723f77bf2e0e79579c62d8090a57d3db5ef86 | 53eb2e741f6786fd2498f41d41f66080d36535fc | refs/heads/master | 2022-06-23T13:11:34.090932 | 2020-11-24T20:35:24 | 2020-11-24T20:35:24 | 123,991,076 | 1 | 0 | null | 2022-06-21T21:17:25 | 2018-03-05T23:13:47 | Python | UTF-8 | Python | false | false | 40,904 | py | import os, time, os.path, psycopg2, psycopg2.extras, requests
from flask import Flask, render_template, request, session, redirect, url_for
#Need this for calendar widget
import datetime
#Need these lines so drop down by location will work
import sys
#Need for json.loads
import json, ast
#Need for getting rid of spec... | [
"dylon.garrett@gmail.com"
] | dylon.garrett@gmail.com |
fa95f623b2599c90f42e459fce3ea3a9f073244c | 7019318d9922aded6a8a70d0e53ee5abc0475952 | /dataloader/test_alternate_sampling.py | 6985212ff4e5b473f4d57b03470d4143714f39e0 | [] | no_license | rajatmodi62/multi-purpose-networks | 68979977ff884a603cbfecf55caeda6a6e1d31f0 | 2c456247b2c3a2f4f5c9bcc0fdba250176a07851 | refs/heads/master | 2022-12-28T17:46:05.278048 | 2020-10-15T16:29:08 | 2020-10-15T16:29:08 | 286,252,077 | 0 | 0 | null | 2020-10-15T16:29:09 | 2020-08-09T14:22:14 | Python | UTF-8 | Python | false | false | 1,259 | py | import torch
from torch.utils.data.dataset import ConcatDataset
from dataloader.cifar10 import CIFAR10
from dataloader.fashion_mnist import FashionMNIST
from dataloader.multi_task_batch_scheduler import BatchSchedulerSampler
import matplotlib.pyplot as plt
cifar = CIFAR10(data_root="dataset/cifar10",
t... | [
"rajatmodi62@gmail.com"
] | rajatmodi62@gmail.com |
12cc7867264992bda01279ee9bf6b8158ec5707c | caaede923b3e9f7d591887f1332242f3afe356ea | /venv/Scripts/easy_install-3.6-script.py | 7766e52de6542fe2f6215609ef36fc0a749996a6 | [] | no_license | 1433993695/alien_invasion | 8b4a6b18c6e7979eb80be9950daf7be862afced8 | 3ec82c647b697865fa4375b3af5d73fc0963c832 | refs/heads/master | 2021-09-19T19:30:19.165874 | 2018-07-31T09:25:46 | 2018-07-31T09:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #!C:\Users\zc-cris\PycharmProjects\alien_invasion\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"17623887386@163.com"
] | 17623887386@163.com |
f21e0e01331ba46a179178aa5615df5f6987f89c | 127f22e03511ec2f4c31d07a12d95084d967ecfe | /fitangle.py | ff8f07502ac13181c52359f8c17cbb64ebe1e0b7 | [] | no_license | wang101/coherentac | 9dd16e166b135f11ea6c36ceb663fb853de4a2ca | 82fcca638a910acbce30020ad8d9dc74d3d56c29 | refs/heads/master | 2020-09-07T11:42:59.096521 | 2017-06-15T10:26:55 | 2017-06-15T10:26:55 | 94,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 22 10:54:38 2016
@author: wang
"""
# -*- coding: utf-8 -*-
"""
Created on Sun May 8 10:33:33 2016
@author: wang
"""
import numpy as np
import matplotlib.pyplot as plt
import string
import os
import h5py
import re
import pickle as pkl
ptask = open("task.input","r")
j... | [
"hxwang1992@gmail.com"
] | hxwang1992@gmail.com |
68c11e7899d80a15888e4252296049bf2b4e8843 | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/dropbox/client/watchdog.py | 6983e510c3bd0826ea5395ce93826e40f4907e9b | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,772 | py | #Embedded file name: dropbox/client/watchdog.py
import hashlib
import os
import socket
import struct
import threading
import time
from Crypto.Random import random
from trace_report import make_report
from dropbox.build_common import get_build_number
from dropbox.callbacks import Handler
from dropbox.fileutils import sa... | [
"bizonix@me.com"
] | bizonix@me.com |
1a932c0e0b4f85b37b433d204a237c7f7a544837 | 688b5380775d8084977706e17a95ed984a8a1cbe | /Array/intersection_two_arr.py | cea510e18d0dc4b2a0737a05c5f9a951b4a1c1c2 | [] | no_license | priyanka-punjabi/Leetcode | 29c270346d101446e83320993002b0bba033e99b | e9fa95d66ada6d541826005a306623dbf90d24a8 | refs/heads/master | 2020-08-12T06:11:15.554678 | 2020-05-12T17:48:55 | 2020-05-12T17:48:55 | 214,704,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | class Solution:
def intersection(self, nums1, nums2):
res = []
for ele in range(len(nums1)):
if nums1[ele] in nums2 and nums1[ele] not in res:
res.append(nums1[ele])
return res | [
"pp4762@rit.edu"
] | pp4762@rit.edu |
7cdf3b2369d577abb7bf0d5e39f8acb376997c86 | c4265723cf2c5532687edca784a03001c8b48e56 | /examples/tweet_notify.py | e511a7622a0364b62251d2475d5a7a2ffdb278cc | [
"MIT"
] | permissive | jsikorsky/blynk-library-python | f3c5da8d17665c5d4cb01d541eb171412453d10a | e40208fc9cbb3dc3784046753ce27e0d20884b07 | refs/heads/master | 2020-04-29T02:34:29.540831 | 2019-03-15T21:14:32 | 2019-03-15T21:14:32 | 175,774,359 | 1 | 0 | MIT | 2019-03-15T07:56:02 | 2019-03-15T07:56:00 | Python | UTF-8 | Python | false | false | 1,213 | py | """
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://examples.blyn... | [
"vshymanskyi@gmail.com"
] | vshymanskyi@gmail.com |
3231911515adfd0365eae0b7ab08f656f1a18ce5 | 134c429df7d5c4d067d9761cb1435992b048adaf | /notes/0431/0431.py | 11bc6ce8611f6db618e1efae727ca798d3c25e41 | [] | no_license | PaulGuo5/Leetcode-notes | 65c6ebb61201d6f16386062e4627291afdf2342d | 431b763bf3019bac7c08619d7ffef37e638940e8 | refs/heads/master | 2021-06-23T09:02:58.143862 | 2021-02-26T01:35:15 | 2021-02-26T01:35:15 | 177,007,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | """
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
"""
class Co... | [
"zhg26@pitt.edu"
] | zhg26@pitt.edu |
ffac4098afe441fcc5e4eb1ea93af766a908a7e1 | b8be7e196833a95b693465f173b75a36be407358 | /numpy_any.app.py | 58ebd5051830725ff97b133e906e2db36d16ac25 | [] | no_license | bogonets/answer-lambda-numpy | 08f7764a4ad9805c05d9a5fc4f85515c6929cf6e | 8a048c5d6d929067ef706c5d0521a45a5ff3b795 | refs/heads/master | 2022-12-08T21:02:40.087663 | 2020-08-27T01:36:06 | 2020-08-27T01:36:06 | 265,148,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# https://numpy.org/doc/stable/reference/generated/numpy.any.html
import numpy as np
def on_run(condition, data):
if np.any(condition):
return {'result': data}
else:
return {}
if __name__ == '__main__':
pass
| [
"osom8979@gmail.com"
] | osom8979@gmail.com |
637b713ff0a8fbc625aef4b16bbcaf8611510cef | 71f4bf9d92c548b442dc2667bca520c746b01481 | /ex5/assignment5.py | 85cf474fc659023ec4ea628229cb8ae2ec0377a2 | [] | no_license | vhellem/TDT4136 | 2eb3b1c7b55866a6732f160d01291a920f7cc37a | 071e00ae8bfa7f33b5454db809204ed3dd49efc3 | refs/heads/master | 2021-05-02T13:39:29.163862 | 2016-11-02T13:51:33 | 2016-11-02T13:51:33 | 72,644,520 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,760 | py | #!/usr/bin/python
import copy
import itertools
from glob import glob
class CSP:
def __init__(self):
# self.variables is a list of the variable names in the CSP
self.variables = []
# self.domains[i] is a list of legal values for variable i
self.domains = {}
# self.constrain... | [
"vhellem@gmail.com"
] | vhellem@gmail.com |
6ca88a0dbb97f37b2015940e3978efcb9c8a9f0b | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/132160/kaggle-ndsb-master/configurations/bagging_27_convroll5_preinit_drop@420.py | 15acaee9e4b2e5862cb947b90c641219ff778759 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,904 | py | import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
import data
import load
import nn_plankton
import dihedral
import tmp_dnn
import tta
pre_init_path = "CONVROLL4_MODEL_FILE"
validation_split_path = "splits/bagging_split_27.pkl"
patch_size = (95, 95)
augmentation_par... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
6a66f2962c4fd9197005b16fd3cd880738f7107b | dde885ca28d045f3fb015a2c04abac00d99ff871 | /tweets.py | 6f62778d7f2e207e61023530c974383e462136bb | [] | no_license | FrankPfirmann/MdB_SPN | e4d28c8534b2f3de7f7b362ff923637945ec4f97 | 06f1d750a47b70ddc8b5127c286a551f20ac62c4 | refs/heads/master | 2023-03-27T22:27:15.975148 | 2021-04-01T07:16:04 | 2021-04-01T07:16:04 | 353,059,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | import pickle
import tweepy as tw
class BTTweet(object):
def __init__(self, text, id, retweets, favorites, created_at):
self.text = text
self.id = id
self.retweets = retweets
self.favorites = favorites
self.created_at = created_at
def load_tweet_list(filename):
with op... | [
"pfirmannf@web.de"
] | pfirmannf@web.de |
6ceb9d1a80663a73976e941ebaa5c6143e75a5ce | c7e9ec5ce6627f6f68bab1b86a27a4516595154d | /consentrecords/migrations/0089_auto_20180123_2226.py | 738533784e45a55c62c2542c2229561d9a774b5b | [] | no_license | michaelcrubenstein/consentrecords | 7b79e82c9ad4b5efcfbb44a50ff1d4cadf7180e2 | 992fe78c68d1d5c083f9e2cc0e3e9aa24363b93d | refs/heads/master | 2021-01-23T19:28:13.807809 | 2018-07-03T16:10:34 | 2018-07-03T16:10:34 | 41,223,029 | 1 | 1 | null | 2018-07-03T16:10:35 | 2015-08-22T20:21:26 | JavaScript | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-01-23 22:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('consentrecords', '0088_auto_20171227_2107'),
]
operations = [
migrations.Re... | [
"michaelcrubenstein@gmail.com"
] | michaelcrubenstein@gmail.com |
0fe411a821c9c8d033e284c43fba39a10774bbb9 | 4a1273f72e7d8a07a3fa67ac9f2709b64ec6bc18 | /retiresmartz/advice_responses.py | 73223c61a7c14be764d3ae4c699eb9fc19d26e8d | [] | no_license | WealthCity/django-project | 6668b92806d8c61ef9e20bd42daec99993cd25b2 | fa31fa82505c3d0fbc54bd8436cfc0e49c896f3e | refs/heads/dev | 2021-01-19T14:10:52.115301 | 2017-04-12T11:23:32 | 2017-04-12T11:23:32 | 88,132,284 | 0 | 1 | null | 2017-04-13T06:26:30 | 2017-04-13T06:26:29 | null | UTF-8 | Python | false | false | 12,283 | py | # -*- coding: utf-8 -*-
from main import constants
from datetime import datetime
import logging
logger = logging.getLogger('api.v1.retiresmartz.advice_responses')
# Retiresmartz Advice feed Logic Calls
# On Track / Off Track
def get_on_track(advice):
return 'If you would like to change any of your retirement deta... | [
"peterroth0612@gmail.com"
] | peterroth0612@gmail.com |
1010a87e378223fd5275560d3cf5ea3eb1d65f07 | 017f02454cbb5616a9aa23e3ce76f84832378ec2 | /inferencia/task/pose_estimation/pose_estimation_2d/visualization/pose_estimation_2d_visualizer_factory.py | 451d1b7a92d7c0e6f4d200bafdc3e7bc2a2a02e1 | [
"Apache-2.0"
] | permissive | hampen2929/inferencia | a6e0f0b25abe95c3690ddfc7a225d4a4bdc2cb10 | c83563ff31d47cd441bb8ac3072df32a7fded0ee | refs/heads/main | 2023-08-18T13:53:32.882725 | 2021-09-18T12:15:52 | 2021-09-18T12:15:52 | 379,299,225 | 0 | 2 | Apache-2.0 | 2021-09-18T12:15:53 | 2021-06-22T14:30:36 | Jupyter Notebook | UTF-8 | Python | false | false | 813 | py | from .pose_estimation_2d_visualizer_name import PoseEstimation2DVisualizerName
from ..label.pose_estimation_2d_label_factory import PoseEstimation2DLabelFactory
class PoseEstimation2DVisualizerFactory():
def create(visualizer_name="PoseVisualizer",
label_name="COCOKeyPointLabel"):
if visual... | [
"mochi.no.kimochi.2929@gmail.com"
] | mochi.no.kimochi.2929@gmail.com |
d3ee02507c3e1f4e4e559d2b4bc620f04d542247 | d21be3f7b8680a4395a0b39762f26d3fa9b98eb1 | /lab9_problem4.py | 79dc742d4c7bd8ab899635e1c117c64cad7e157a | [] | no_license | Indra-Ratna/LAB9-1114 | e8dc3cd518fea84464ae8e4a4b3bb04c0ccdf980 | b730735a83edb5bf4802fa5c158d7a8c4162ca98 | refs/heads/master | 2020-04-14T16:07:20.961360 | 2019-01-03T08:23:28 | 2019-01-03T08:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | #Indra Ratna
#CS-UY 1114
#2 Nov 2018
#Lab 9
#Problem 4
def mycount(lst,n):
count=0
for element in lst:
if(element == n):
count+=1
return count
print(mycount([7,2,1,3,7,9],7))
| [
"noreply@github.com"
] | Indra-Ratna.noreply@github.com |
fc20d1f4d186620b7c2e5048f92e41e08ee9a0c9 | b85f8be457512c6ad137a56f332bd65a64f314c4 | /crawl_sinmungo.py | 7c000baaebb5939570db6c30c6a9a62b5a36c125 | [] | no_license | dev-Lesser/sinmungo-crawl-ray | 87d1f2c7cbd11dc6f01b0ea58d53646cd26f61b7 | 142e298a596afcf262f16fc4f82b8a7b2d56ccd5 | refs/heads/master | 2023-05-29T01:28:38.444226 | 2021-06-18T00:14:11 | 2021-06-18T00:14:11 | 375,435,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,531 | py | import ray # 분산처리
import requests
import re
from lxml import html
import pandas as pd
@ray.remote
def start_crawl_sinmungo(i=0,page=20, cookie='JSESSIONID=b0yitmMBpWWbf2jX9VX83+9d.euser22'):
url = 'https://www.epeople.go.kr/nep/pttn/gnrlPttn/pttnSmlrCaseList.npaid' # 건의 리스트 url
detail_url = 'https://www.... | [
"dev.jongmoon@gmail.com"
] | dev.jongmoon@gmail.com |
2b06b12ac66fa7762e6d0e14a7937b36c20c2674 | 15c8b2cf8e08068c47b3925ee13650bdb9fe98ed | /Estamp Creation/estamp/verify.py | 353e59615e4a590331286638712aba4ad697ba18 | [] | no_license | sky-sarthak/E-Stamp-Creation-and-Verification | 39a0de8f0fa348f14e07e8c91e66a7ba7c203611 | bc5fe6311fbbaf22762ebdc49de386eda1b951db | refs/heads/master | 2020-04-19T23:15:40.875726 | 2019-01-31T08:55:10 | 2019-01-31T08:55:10 | 168,490,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import base64
import cryptography.exceptions
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives.serialization import load_pem_public_key
# Load the public key.
with ... | [
"noreply@github.com"
] | sky-sarthak.noreply@github.com |
f9fade661402627c5a7c12936bed53fbd8d25454 | 50e90ce3870a66395aa2f4abd6a03c7e7de811e6 | /mishamovie/pipeline_steps/combine_frames.py | f92b81a9ca8a11193857ab424569e84310ab838d | [] | no_license | jgc128/mishamovie | c8dd960756d1cef7504d6060d1d7ceca89869c91 | ce8864fb311bff4c0936046a7efe121b5e5f8a3b | refs/heads/main | 2023-06-08T21:28:30.605756 | 2021-07-04T20:59:32 | 2021-07-04T20:59:32 | 361,487,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | """
This script trains a simple model Cats and Dogs dataset and saves it in the SavedModel format
"""
import argparse
import subprocess
def parse_args():
parser = argparse.ArgumentParser(description='Split video into frames')
parser.add_argument('--input_dir', help='Input dir', required=True)
parser.add_... | [
"jgc128@outlook.com"
] | jgc128@outlook.com |
a195e2f96103faee8ee4c2d44d96c7ff269bbb2f | 31fb20acd57af064190f69a1d33ee9ac1ed6ab4e | /wxagent/qq2any.py | cbf852b1c37d5ceea350dcad73433731ec0775e0 | [] | no_license | kakliu/wxagent | 2ba27b531d4a07b4e059a37f4de03a663173ae1b | b7c5ea47d6616556b4d43eb81c61cf7ac3031c18 | refs/heads/master | 2020-05-27T02:29:27.621687 | 2016-11-13T13:19:04 | 2016-11-13T13:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,187 | py | # web qq protocol
import os, sys
import json, re
import enum
import time
from PyQt5.QtCore import *
from PyQt5.QtNetwork import *
from PyQt5.QtDBus import *
from .imrelayfactory import IMRelayFactory
from .qqcom import *
from .qqsession import *
from .unimessage import *
from .filestore import QiniuFileStore, VnFile... | [
"drswinghead@163.com"
] | drswinghead@163.com |
9fcf17827dd72f3f73d72719ceb73bb8a9a41fd1 | 873f4bc537db2162de5cc9c4009d773d589c95f9 | /flask/app.py | 3cab1c1142510a33fdeeff004c2ece4b18b93634 | [] | no_license | jeong-jinuk/kisti_finalproject | 51e44f2f6ad42258f20b7ce9319f88b8a257b9ae | 8e0241e5d354e78ca977c9c0a1b50d7e9bd942ab | refs/heads/master | 2022-12-15T19:16:43.891721 | 2020-03-29T07:26:41 | 2020-03-29T07:26:41 | 241,000,825 | 0 | 0 | null | 2022-12-05T16:48:59 | 2020-02-17T02:07:35 | Jupyter Notebook | UTF-8 | Python | false | false | 2,020 | py | from flask import Flask, render_template, request
# modules 폴더 안의 speech_to_text.py와 text_analysis.py를 import해서 사용하겠다!
from modules import speech_to_text, text_analysis, Wave_analysis
import os
app = Flask(__name__)
# Main Page
@app.route('/')
def index() :
return render_template('index.html')
# Upload Page
#@ap... | [
"56141866+jeong-jinuk@users.noreply.github.com"
] | 56141866+jeong-jinuk@users.noreply.github.com |
1c91a2fc3a6916161290add69f89e3106525c0b4 | 0495e5b46c5674f4e8faece4a18e699279166dd2 | /contextext/__init__.py | 7193d2f0630b97b920609aeacb6d893c36c5570c | [
"MIT"
] | permissive | luketurner/contextext.py | d334ae04175a9975eb91c03fda178675071bc9a2 | fbed054d4c3ea43a78ec117e08ebb997efe45224 | refs/heads/master | 2021-01-10T21:10:09.111058 | 2015-07-08T18:23:43 | 2015-07-08T18:23:43 | 29,504,279 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from .api import *
from .models import ContextEntry
__version__ = "0.1.0a2"
__author__ = "Luke Turner"
__license__ = "MIT"
__copyright__ = "Copyright 2015 Luke Turner"
| [
"github@luketurner.org"
] | github@luketurner.org |
9112a8d3de06671acf5e9fded056dc27c0c8b4a3 | 55726b4940cec0e9df9ba90ab69b27b81c283740 | /DjangoBlog/admin_site.py | d90ec5e4ee94b395af46df4d557eb97ac712a51a | [
"MIT"
] | permissive | zlaiyyf/DjangoBlog | fe655c62f74e929cd874d095cc2f8bf48739bd0d | ccb67c9f08a9b6b8ca65828fece34cda89135187 | refs/heads/master | 2022-12-27T05:06:27.578712 | 2020-10-11T07:47:46 | 2020-10-11T07:47:46 | 264,558,604 | 1 | 0 | MIT | 2020-05-17T01:09:08 | 2020-05-17T01:09:07 | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: ??
@author: liangliangyy
@license: MIT Licence
@contact: liangliangyy@gmail.com
@site: https://www.lylinux.net/
@software: PyCharm
@file: admin_site.py
@time: 2018/1/7 上午2:21
"""
from django.contrib.admin import AdminSite
from DjangoBlog.utils import get_current_s... | [
"liangliangyy@gmail.com"
] | liangliangyy@gmail.com |
3ecb1f5f3ec4c2e5ce2a71a98e9fe46cea17d818 | 9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0 | /venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/keywrap.py | 8ca935cafd0f6662b8152910cd075ef54b4b9ba2 | [] | no_license | baruwaa12/Projects | 6ca92561fb440c63eb48c9d1114b3fc8fa43f593 | 0d9a7b833f24729095308332b28c1cde63e9414d | refs/heads/main | 2022-10-21T14:13:47.551218 | 2022-10-09T11:03:49 | 2022-10-09T11:03:49 | 160,078,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/2f/84/6a/ccb5454b00837ef6351bc65055c9fc4ab3ccb02f3c73ed14ffceb09910 | [
"45532744+baruwaa12@users.noreply.github.com"
] | 45532744+baruwaa12@users.noreply.github.com |
496115c65865fd718f1fe7b20f050e3d0b91253c | 9b766bdfb9142f1bd2a83462a0f7ffe09c14de04 | /bddtests/peer/query_pb2.py | 45478e2a195bd60e16e941644e4e5c45e5107420 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | a20351766/mchain | e850adddc1efb8c7c0d21d6a6906f570c39e6fc1 | 159b9aebb53257d98528070c2863897e2e610643 | refs/heads/master | 2020-03-21T17:52:47.193325 | 2018-06-27T09:35:20 | 2018-06-27T09:35:20 | 137,871,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 8,250 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: peer/query.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _re... | [
"zhangtao@m-chain.com"
] | zhangtao@m-chain.com |
dfa2bc0f3ef0554c7d6e9d0b691233ce1bededf1 | bbadc0354f5a6c1fd6174ccc92c237a573e80948 | /Python scripts/Rookie/Pig-latin.py | 627818c7a9dff4313ea557c20608867cfa277744 | [
"MIT"
] | permissive | shartrooper/My-python-scripts | fcc6e7d8d0d3da4aebc0bffc63b462d802545ba7 | 5c3a8db4ed9a75bd9ab4b29153a788d9e6c5d28c | refs/heads/main | 2023-04-03T22:12:16.872554 | 2021-04-10T14:54:40 | 2021-04-10T14:54:40 | 302,179,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | # English to Pig Latin
print('Enter the English message to translate into Pig Latin:')
message = input()
VOWELS = ('a', 'e', 'i', 'o', 'u', 'y')
pigLatin = [] # A list of the words in Pig Latin.
for word in message.split():
# Separate the non-letters at the start of this word:
prefixNonLetters = ''
... | [
"noreply@github.com"
] | shartrooper.noreply@github.com |
86b80df09d09f685086e3d92c9de57efd8433e2a | 61654b43a37b4ac48e6b67779258a95068b47741 | /cadenas_ejemplos.py | 51d7576f825a1895498762163e4e9d114ca2bffb | [] | no_license | katiavega/CS1100_S06 | cbd991fd744d330e5e6d855e3577d8d4764147d0 | ec518f648265b4bbe49227e692c7dbc7b184e626 | refs/heads/master | 2021-01-20T00:11:09.473646 | 2017-04-22T18:41:05 | 2017-04-22T18:41:05 | 89,091,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | s = 'Monty Python'
print (s[2]) ## n
print (s[-2] )## o
print (s[:6] + s[6:8] + s[8:]) ## Monty Python
##operador%
print ("%d tigres comen %.1f porción de %s en un %s" % (3, 0.5, 'trigo', 'trigal'))
##Unicode
ustring = u'Hola en chino \u4F60 \u597D ' # ñ \xf1'
## (ustring from above contains a unicode string)... | [
"katia.canepa@gmail.com"
] | katia.canepa@gmail.com |
01edfba8e488262d2f811bdd70a88655bbc29857 | 3144e3f159ddf9f5e0c923ce5addedc9144dbb8c | /app.py | 0aaf101303b0939c321c190a014a4569a89bb841 | [] | no_license | davidrhodus/nft-checker-tool | 75ce38b82fd80c19913cc38e90121d47732d449c | 55531d98f4a56cddbace63e35ed845ad407a1550 | refs/heads/main | 2023-08-30T21:19:03.949476 | 2021-10-11T13:25:43 | 2021-10-11T13:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from flask import Flask, request, render_template, redirect, url_for
from owning_check import nft_checker
import json
app = Flask(__name__)
@app.route('/', methods = ['GET'])
def search_api():
query = request.args.get('address')
return nft_checker(query, 'collection-scraper.json')
if __name__ == '__main__':... | [
"noreply@github.com"
] | davidrhodus.noreply@github.com |
5356a4e10bbb075353b889376259dbe1807e0ccf | 9059c79a4dc289bc00a7315d746907911a59b7f6 | /project/signed_networks/structural_balance/plots/main-negatives-vs-positives.py | cdd88132dcfd9f09f0506480a4da8f7c9f379497 | [] | no_license | abinesh/world-trade-flow-analytics | 1b942b2f2e5a0f38ea1a8c3ef8f92bcfbc996bb3 | dbe53c7d22e540bf4d0b9f1bcabc454b596d5de9 | refs/heads/master | 2021-01-16T00:28:47.781035 | 2013-06-03T08:27:52 | 2013-06-03T08:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | import json
from project import countries
from project.config import WORLD_TRADE_FLOW_DATA_FILE_ORIGINAL
from project.export_data.exportdata import ExportData
from project.signed_networks.definitions import NEGATIVE_LINK, POSITIVE_LINK, args_for_definition_C, definition_C3
from project.signed_networks.structural_balanc... | [
"td.abinesh@gmail.com"
] | td.abinesh@gmail.com |
3fef40d4618b4b77b18d01040efc212adcf8cc64 | 51f5534892933829494afef6eed6829dfb169d43 | /main.py | 15c393d7a88c404a2b10224856f82084b42d9843 | [
"MIT"
] | permissive | Prime-Networks/PNServer | 2b54c734d00462e4c06403ec532fa223fc4e8387 | 4a6095dd3bea3efb04b4d511de5f309b20547ac5 | refs/heads/master | 2022-12-10T18:40:33.236602 | 2020-09-05T06:30:12 | 2020-09-05T06:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,025 | py | from flask import Flask, render_template, request, session, escape, redirect, flash, url_for
from os import path,walk
# from scripts.get_ip import get_ip
from get_ip import get_ip
from scan import load_services, check_local_services, check_network_machines
from flask_sqlalchemy import sqlalchemy,SQLAlchemy
from werkzeu... | [
"javiale2000@gmail.com"
] | javiale2000@gmail.com |
d6ae857b950288a40f300ca27e242e60df1df9a0 | 4f807eb45da63a633f32425908a4acf19462d96f | /python/src/yatzy/YatzyTest.py | 0b2bf06d8f872a60d16e9e5cdc496e24a2794c6a | [] | no_license | mebusw/Test-Driven-Development | 580c3f31ee0f406afa8d7761bf82acd67cfcd166 | 7a49f2615a78a1cedbb909e60e0232e5e1467287 | refs/heads/master | 2021-01-22T06:32:07.448971 | 2017-02-02T04:56:40 | 2017-02-02T04:56:40 | 5,836,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | """
The game of yatzy is a simple dice game. Each player
rolls five six-sided dice. The player places the roll in
a category, such as ones, twos, fives, pair, two pairs
etc (see below).
If the roll is compatible with the category, the player
gets a score for the roll according to the rules. If the
roll is not compatibl... | [
"mebusw@163.com"
] | mebusw@163.com |
10c2d3b327dc40f33c3ce744411f740e17521caa | 928114757a9d6f36cd5ae14d3ba0173e7d068496 | /test/functional/bumpfee.py | 9107f5ec20986fc7328eb1d2f1e8beb6e57cb6bf | [
"MIT"
] | permissive | ilafaf/kori | 65969ff2f9947f581f25f988a1180c731558312c | f77aeb4d19b66a3617d3a029c5c6ba2896ecf7b4 | refs/heads/master | 2021-05-06T13:32:59.180598 | 2017-12-05T20:48:28 | 2017-12-05T20:48:28 | 113,225,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,437 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Kori Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the bumpfee RPC.
Verifies that the bumpfee RPC creates replacement transactions successfully when
its pre... | [
"patrick.agbokou@globaleagle.com"
] | patrick.agbokou@globaleagle.com |
83f17e862e437fd1c095d9085de2535ea88bd8bb | ff4641cc193b461564e416deb6dfa29167335b69 | /2/solution/Section2/hello/hello/settings.py | f59064b84da3225df30e5a77ad0a55e3d82997ee | [
"MIT"
] | permissive | cristina-sirbu/CSCI33A-Section | a18c18db3c845e0c5104a2b59cfb17356b6501b6 | c7733eebe9de1a966179fc6734f3eb030571d69a | refs/heads/master | 2022-12-09T11:40:14.016387 | 2020-09-17T12:55:14 | 2020-09-17T12:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | """
Django settings for hello project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"23kilpatrick23@gmail.com"
] | 23kilpatrick23@gmail.com |
55abf4ab5e4dc9aeb45fffba3cc0b5771cfe3040 | 666cc5c9e7def28b8f0cd9b7d391d7e47503af42 | /Task14_part2.py | ad44f91a20c19a838d9999b5dc584a15659e1a01 | [] | no_license | Hejmat/AdventOfCode | bae04ee75e5cae294c256c71055e0d9b0a43f104 | 57238ecee14c448f408483ec4d63b8145da7ec4b | refs/heads/main | 2023-02-10T13:39:37.756797 | 2021-01-13T18:53:14 | 2021-01-13T18:53:14 | 317,991,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | ## https://adventofcode.com/2020/day/14
import itertools
import re
file = 'No14_input.txt'
with open(file,'r') as f:
lines = f.read()
inp = ['mask' + e.strip() for e in lines.split('mask') if e]
f.close()
tar = [] #Create target list for filling with the memory and address values
def replacenth(string, subst... | [
"noreply@github.com"
] | Hejmat.noreply@github.com |
8627096d1ad2cd95f12f93a46b943c323583a65c | a691d144c127a2e12b13f0eefe661787af06d382 | /backend/Trigonometry.py | 4d9945990977efa66f851b3b6901ef679fd3f3e5 | [] | no_license | alireza561/Calculator | 3e77b3ee387655a2189e9de60e341b72c6de5d21 | 051aecd95cdf843fcab68bf3d82d5e3417b390a1 | refs/heads/master | 2023-06-13T01:32:19.998721 | 2021-07-01T08:40:38 | 2021-07-01T08:40:38 | 381,967,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | from tkinter import *
import math
class Trigonometry:
def trigonometry(self, method):
try:
my_number = self.entry_box.get()
if method == 'cos':
my_method = math.cos(float(my_number))
if method == 'cosh':
my_method = math.cosh(float(my_numb... | [
"aazizi508@gmail.com"
] | aazizi508@gmail.com |
0887c9ddd19bfcac0842bcd6561700fa17136996 | 66c65f78c90c3776b591d1cece5641ff43c33950 | /methods.py | 2d5e4cf77576669b91ced4551b723954b29eff23 | [] | no_license | RaviC19/Dictionaries_Python | e2a6628467978cd18a70903478a5d4245048a870 | 424e8282c74e4a26fbd2e85940d1e6e83af3384b | refs/heads/main | 2023-04-01T03:56:23.149452 | 2021-04-09T06:06:34 | 2021-04-09T06:06:34 | 356,061,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | # clear
user = {
"name": "Ravi",
"location": "UK",
"age": 30
}
user.clear()
print(user) # returns {}
# copy
numbers = dict(a=1, b=2, c=3)
dupe = numbers.copy()
print(dupe) # {'a': 1, 'b': 2, 'c': 3}
dupe == numbers # True
dupe is numbers # returns False because they are unique objects in memory and not... | [
"ravic1919@gmail.com"
] | ravic1919@gmail.com |
4d023d32739979e54949f9bde02fbf2db38002e9 | 1c0509a06cec726735048f00f63d2529f5e43ce6 | /code_gasoline_france/functions/panel_regressions/grouputils.py | 23cc67c916d6a1f2fc0095b882ea3baf83e92eb4 | [] | no_license | etiennecha/master_code | e99c62e93aa052a66d4cdd3f3e3aa25a3aec4880 | 48821f6c854a1c6aa05cf81b653b3b757212b6f8 | refs/heads/master | 2021-01-23T14:35:45.904595 | 2018-03-11T18:57:38 | 2018-03-11T18:57:38 | 16,312,906 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,072 | py | # -*- coding: utf-8 -*-
"""Tools for working with groups
This provides several functions to work with groups and a Group class that
keeps track of the different representations and has methods to work more
easily with groups.
Author: Josef Perktold,
Author: Nathaniel Smith, recipe for sparse_dummies on scipy user ma... | [
"echamayou@PC619BND75J.ensae.fr"
] | echamayou@PC619BND75J.ensae.fr |
9828ec4f425f84b9c315512f6de7c6edd7be72a2 | 964017448ad3856bcf2edc4192366cdd29d4840d | /dash-test.py | 3a547875f64df91a4eb14328187191d8a9b6f06a | [] | no_license | haohangxu/morning-dash | 1d25af9f0ca2a677c3d044574a296d4aee8d7de6 | 2f2b4f03a480c09a4e51964859052cbba294e1dd | refs/heads/master | 2021-01-20T20:10:58.628319 | 2018-12-02T22:13:02 | 2018-12-02T22:13:02 | 60,052,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #!/usr/bin/env python
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Name: Haohang Xu
# File: dash-tests.py
#
# Listens for Amazon dash button on network.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
###########################################
### ... | [
"haohang@fb.com"
] | haohang@fb.com |
c1e56baf1648ada2efc3a1536a48b3c997341901 | a83f6a9358c77360ca49edfee476f8fd890a9a35 | /services/waste_stats_processor.py | b7c3a56334b1e94f155540f44e05c5c02ee70724 | [] | no_license | peterkabz/statsApp | d49cacfdb059542bd813398df758a38a516c6339 | 0138a8f6d974ab135cbaeb5c3838c7cbb9e9522d | refs/heads/master | 2023-07-02T18:21:04.883173 | 2021-08-08T08:43:28 | 2021-08-08T08:43:28 | 391,462,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | """
This method will fetch data from the
"""
from classes.file_column_processor import get_waste_type_labels
from classes.waste_type import WasteType
from common import file_names
from common import values
import services.energy_saved_processor as energy_processor
import pandas as pd
def get_energy_saved():
df ... | [
"50104012+peterkabz@users.noreply.github.com"
] | 50104012+peterkabz@users.noreply.github.com |
8daee683ea662078236cd56c7a9a3836f80635dc | 0b718ad7011b735f88d69cc6ce588952f7e0f72c | /main_app/admin.py | 719851e2268dfbc371e29ae40641ef1db57ca9fa | [] | no_license | Priyanshi-Srivastava1611/Health-App | 9b82e80f92aa2d9c5039823003db458549fd527e | 15004d1ca4761e3308712f2fee6aff4be7c92957 | refs/heads/main | 2023-02-12T16:50:39.435996 | 2021-01-15T14:07:09 | 2021-01-15T14:07:09 | 329,922,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from django.contrib import admin
from .models import patient , doctor , diseaseinfo , consultation,rating_review
# Register your models here.
admin.site.register(patient)
admin.site.register(doctor)
admin.site.register(diseaseinfo)
admin.site.register(consultation)
admin.site.register(rating_review)
| [
"noreply@github.com"
] | Priyanshi-Srivastava1611.noreply@github.com |
1f97745f69658ae0f150ad5b83e13d3102374a6d | 85a48b5b46d6cd5a6daa66c31bef9839b1159738 | /disciplinaWebScrapingAv1/spiders/PegarCotacaoDolarUol.py | c12c4947188bfa0701d92d354a75296df0c0decd | [] | no_license | JeanLobo/disciplinaWebScrapingAv1 | 752fcf18005af1a208df7604764879a5055e4294 | e1dcf0a2db7c6267e0a91fb910271620a596b8e5 | refs/heads/master | 2020-12-03T11:30:50.803324 | 2020-01-16T12:04:21 | 2020-01-16T12:04:21 | 231,298,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # Avaliação 1 Questão 1
# Implemente um programa que entre no site do UOL e imprima apenas a seguinte
# mensagem: A cotação atual do dólar é: <cotação>, onde <cotação> vai ser o valor
# capturado do site no momento. Procure uma forma de omitir as mensagens de log na
# execução do seu programa para aparecer apenas essa... | [
"jeanlobocd@gmail.com"
] | jeanlobocd@gmail.com |
f587962e952b6c5baa41ba213adf385ce62dca0a | 6758529a47e1f379789ddbc487f463e99632afb3 | /provider-node-manager/test-server.py | 32da111eabe8debc9e789494b4d7b6ebecb089c1 | [] | no_license | borisgk98/kubedom | 9a4df4c73fb80d7fd150c73308981bf6b543be31 | 5e6a2e2dd358f108b19c2778355395b9f612ad52 | refs/heads/master | 2023-06-02T20:08:09.926201 | 2021-06-16T10:14:49 | 2021-06-16T10:14:49 | 375,998,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | import argparse
from http.server import HTTPServer, BaseHTTPRequestHandler
class S(BaseHTTPRequestHandler):
def _set_headers(self):
self.send_response(200)
self.send_header("Content-type", "text/text")
self.end_headers()
def _text(self, message):
"""This just generates an HTML... | [
"borisgk98@ya.ru"
] | borisgk98@ya.ru |
98c5ddde89fd231b4f4ad6f4a543e56c8259c2e6 | be5c8b6ed5c0be2bcf5b741095b2bac655bebdac | /api/urls.py | 1bc86182df57051f111a7c101e4a925030022387 | [] | no_license | pavel-piatetskii/game_portal | e28241fd5b997f32ddae315e52c6bbd8f353892a | 20ac41cd95f7381645acc262e8b76b1cfb7d8f58 | refs/heads/master | 2023-06-23T05:32:55.079233 | 2021-07-20T20:40:33 | 2021-07-20T20:40:33 | 380,122,040 | 0 | 0 | null | 2021-07-20T20:04:40 | 2021-06-25T04:18:10 | Python | UTF-8 | Python | false | false | 135 | py | from django.conf.urls import url
from .views import UserView
urlpatterns = [
url('user', UserView.as_view()),
#url('', main)
] | [
"pavel.piatetskii@gmail.com"
] | pavel.piatetskii@gmail.com |
4c5e15fd9822cbc0c71851e74db43be6f4bfc722 | 1626e16760c9c5b5dc9bd7c345871c716d5ffd99 | /Problems/2400_2499/2475_Number_of_Unequal_Triplets_in_Array/Project_Python3/Number_of_Unequal_Triplets_in_Array.py | 4242af6250379a0c5a304c43d89f7b0342a51492 | [] | no_license | NobuyukiInoue/LeetCode | 94ddb19e63cb8d0775cdc13f311fe90c87a1d718 | 3f0ffd519404165fd1a735441b212c801fd1ad1e | refs/heads/master | 2023-09-01T07:38:50.939942 | 2023-08-23T09:51:17 | 2023-08-23T09:51:17 | 158,100,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | # coding: utf-8
import collections
import os
import sys
import time
from typing import List, Dict, Tuple
class Solution:
def unequalTriplets(self, nums: List[int]) -> int:
# 35ms - 71ms
trips = pairs = 0
cnts = collections.Counter()
for i, num in enumerate(nums):
trips ... | [
"spring555@gmail.com"
] | spring555@gmail.com |
7ef87f2840aac39b20362954bbcc1bfdaf8f6e62 | 4fbd0d7c0c42166d9c3c2c7f822b2f0bf57f68d1 | /Python A-level/SH1/Worksheet 2/Set 2/14.prime.py | f31ec109a43cb414175c80084940c905b99815dc | [] | no_license | japnitahuja/Programming-Practice | bf96a800dfc348084cb55efb7968cc68b5626324 | c05de81a84b7df1453e00a774c4a1836ebcecaeb | refs/heads/master | 2022-02-19T07:08:30.300158 | 2019-09-12T06:21:14 | 2019-09-12T06:21:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | n = int(input("Enter the number: "))
def prime_iter(n):
for i in range(2,int(pow(n,.5))+1):
if n%i == 0:
return False
return True
def prime_recur(n,k=3):
if n==2:
return True
elif n%k == 0 or n%2==0:
return False
elif k >= int(pow(n,.5)):
return True
... | [
"japnit.ahuja@gmail.com"
] | japnit.ahuja@gmail.com |
0fd0f2a43c0418b7a5f78ce2185ab12cc49b5b31 | 62a2e25e04d28192117c6c4d5d6cabb10096f55b | /100Liked/Easy/SaleStock.py | 7464cd9af2334aef35bbf9b943fe3387346a6736 | [] | no_license | liujiahuan94/LeetCode | 381b6c4fc28917f6d039fcd5020fd26034024e09 | 8ece3d9495cb08e0cd1aa0276e9c84d53f9e39a9 | refs/heads/main | 2023-08-04T05:53:51.983737 | 2021-09-13T14:16:50 | 2021-09-13T14:16:50 | 343,422,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | def maxProfit(sprices: List[int]) -> int:
if len(prices) < 2:
return 0
min_price = prices[0]
max_profit = 0
for i in prices:
min_price = min(i, min_price)
max_profit = max(max_profit, i - min_price)
return max_profit | [
"740988959@qq.com"
] | 740988959@qq.com |
142d7634bc571164ed28dbfa46f1b970ed2a6839 | d6bbd5f30a11aad10adac188cb45bf08fc529834 | /Fibonacci.py | 1ad4c07dfd9867d1e481ca1c6294709521c5db18 | [] | no_license | jeyaprakash1/python_programs | aecd0c9dfeb14d4c0d94066a5b813846bab14d1a | 18378bd71a14b158d789ef377179cfa90da22f4b | refs/heads/master | 2023-03-27T11:52:35.027165 | 2021-03-30T12:18:04 | 2021-03-30T12:18:04 | 352,088,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # fibbonaci series
f,s=0,1
i=0
print(f,s,end=" ")
while i<5:
t=f+s
print(t ,end=" ")
f=s
s=t
i+=1
| [
"jpofficial1232@gmail.com"
] | jpofficial1232@gmail.com |
d2ffb8597a0d04e3ae245321f7dce967753eb0a2 | 35580ddab92d76862240649bbb91b8e45f330fb0 | /src/srctools/vpk.py | 84789b56fd842cb84326bbf8ea05220628e469d0 | [
"MIT"
] | permissive | TeamSpen210/srctools | 954328566e3ea25e1b88e73c55c93036b133cd76 | 3969e869673e3c76b4bc663d1f73c56a3585f228 | refs/heads/master | 2023-08-28T23:04:28.849165 | 2023-08-26T06:48:44 | 2023-08-26T06:48:44 | 60,130,807 | 44 | 18 | NOASSERTION | 2023-06-18T22:28:05 | 2016-05-31T23:36:26 | Python | UTF-8 | Python | false | false | 25,735 | py | """Classes for reading and writing Valve's VPK format, version 1."""
from typing import IO, Dict, Final, Iterable, Iterator, List, Optional, Tuple, Type, Union
from enum import Enum
from types import TracebackType
import operator
import os
import struct
import attrs
from srctools.binformat import EMPTY_CHECKSUM, chec... | [
"spencerb21@live.com"
] | spencerb21@live.com |
7a051dc777292d44f2d667785fbaf2ffb27928b2 | 4bda6944230003e3976f3ba2c92fe302ea167293 | /src/day22/solution.py | 874756da68b96e2d4e5430c66a0f899226593a7c | [
"MIT"
] | permissive | justinhsg/AoC2020 | 3ba67458cd4d65b8bbc07aaf1bf90f8f16505c90 | 31ede3397eb62c26c2dc78b010f5ee9f0cd919a7 | refs/heads/master | 2023-02-06T01:49:37.519680 | 2020-12-26T17:33:12 | 2020-12-26T17:33:12 | 317,487,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | import sys
import os
import re
from collections import deque
day_number = sys.path[0].split('\\')[-1]
if len(sys.argv)==1:
path_to_source = os.path.join("\\".join(sys.path[0].split("\\")[:-2]), f"input\\{day_number}")
else:
path_to_source = os.path.join("\\".join(sys.path[0].split("\\")[:-2]), f"sample\\{day_nu... | [
"justinhsg@gmail.com"
] | justinhsg@gmail.com |
1e3cbeeaf63e86a69afa809dea93d51e0f8637d7 | 1ecacf92ff7ed5476dc5d88ce2a96f8bc34c642a | /py4e-Ch3Part2.py | 6ada8d030776ec71fbfe9ef0809a9d40cca5a476 | [] | no_license | singclare/py-py4e | 8d4057606b8728951ad46bd901681fabb02d9024 | 43dcf23b4b0ec781429df1a7ac93eba5bfa1ec1a | refs/heads/master | 2020-05-30T22:23:23.408580 | 2019-06-04T07:15:04 | 2019-06-04T07:15:04 | 189,992,826 | 0 | 0 | null | 2019-06-04T07:15:05 | 2019-06-03T11:32:33 | Python | UTF-8 | Python | false | false | 1,102 | py | #Conditionals#
##Multi-way
#elif: 'if' condtion is false >> elif do condtion
if x < 2 :
print('small')
elif x < 10 :
print('Medium')
else :
print('LARGE')
print('All done')
# if x=5, it print 'Medium' / if x=0, it print 'small'
# 'else' activate when all condition is false.
# When you use 'elif', you attend... | [
"grochi1995@gmail.com"
] | grochi1995@gmail.com |
a0734bf095a97365a24c7c0c3a07de02f71561a0 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/automanage/azure-mgmt-automanage/azure/mgmt/automanage/models/_models.py | 4a02132654d4953ef71138b04fa109e55841e150 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 26,908 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
3db28ba37177dbee4bae562371122d8bb4f73e72 | 7027a90b73d774394c309fd7518599dc9364bb10 | /test/functional/proxy_test.py | 6410a5b80b20c525a8d2811a6455a7fd5d615e60 | [
"MIT"
] | permissive | IDC-Group/VHKD | a5a5b1b9b275a9fadbf8b9c714c8358ee8f7c46a | 0256ddf1477439ebc84e97132d3673aa61c39b73 | refs/heads/master | 2020-03-21T09:12:22.738342 | 2018-06-23T09:46:17 | 2018-06-23T09:46:17 | 138,387,759 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The vhkdCoin Core vhkd
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test vhkdd with different proxy configuration.
Test plan:
- Start vhkdd's with different proxy configuratio... | [
"support@idcm.io"
] | support@idcm.io |
57cd23f4c8d93d7d59dec9d1b011cedeae27892e | 6989d1f413cab583279f61f6799f2c05dab21840 | /DR/dr/tests.py | 7e9b8e195bbb6cd688ec2abdff49a7abb0844610 | [] | no_license | Qiamxing/gitprogram | f797a67059d5a188bb81576e72de8e5f34239a0d | 03f26f0dd5b72187d78f4283e07742aeacd326da | refs/heads/master | 2020-04-12T14:11:10.854943 | 2019-01-20T13:54:52 | 2019-01-20T13:54:52 | 162,545,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | import random
import json
from django.test import TestCase
import os
import dr.models
def a():
with open('static/json/goodlist.json','r') as f :
jsondict = json.load(f)
for i in jsondict :
for j in i :
goods = dr.models.Goodslist()
goods.name = j['title'... | [
"lh936151172@163.com"
] | lh936151172@163.com |
97f3a20470ff981d68f6ff1cb4a0dca3f29ef69a | 9d106a8001141cfdc00feb0ba01b34eb0cd86726 | /django_blog/blog/migrations/0002_post_image.py | d59bee53bd3806ac240718eddaf444b7a950cff4 | [] | no_license | dingxiao88/Django_Blog | 46cc29f034a17ab5676017f8f9c5125bac6715d4 | 536a0ad282ce0d80b0f7fbbdda87a3c344daf971 | refs/heads/master | 2020-03-22T08:59:30.881495 | 2018-08-15T11:05:17 | 2018-08-15T11:05:17 | 139,806,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.0.6 on 2018-07-06 04:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='image',
field=mod... | [
"dingxiao88@163.com"
] | dingxiao88@163.com |
9660d16db01a5b2632d6cd135e3fd10c0413d051 | 9ce437f1d890d08949dbfe8a97fe50837664ce3b | /tests/test_doc.py | fd7cac03d4dc78de124cd107a8e93d6499ec6502 | [
"MIT"
] | permissive | MIBlue119/julius | 9f5ea27d57a735f12f0ae9f31d0d6571c0cf0d27 | 2a43ba41b1f5f2914e4dc6ba6d94da63657e701a | refs/heads/main | 2023-08-31T05:39:38.909260 | 2021-10-20T08:28:45 | 2021-10-20T08:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | from doctest import testmod
import unittest
from julius import resample, fftconv, lowpass, bands, utils
class DocStringTest(unittest.TestCase):
def test_resample(self):
self.assertEqual(testmod(resample).failed, 0)
def test_fftconv(self):
self.assertEqual(testmod(fftconv).failed, 0)
def... | [
"alexandre.defossez@gmail.com"
] | alexandre.defossez@gmail.com |
9dbee2fa63070dea1541e33e7b76b442a847314e | 06ad1ab54b4889736960b942bc363de3dbea9b39 | /KCRWscraper_3.py | 61195d912f36d4234ee1beb407a902ba45de0f2c | [] | no_license | authalic/podcaster | b6f6b9516f2782a6db28ce54befac4ea6cf15c50 | db17b6495e6770d83126e0f34d6c42483ae5803c | refs/heads/master | 2022-12-09T06:33:12.514487 | 2019-11-04T23:32:00 | 2019-11-04T23:32:00 | 37,360,232 | 0 | 0 | null | 2022-12-08T01:41:52 | 2015-06-13T06:08:00 | Python | UTF-8 | Python | false | false | 3,063 | py | '''
KCRW program information scraper
Author: Justin Johnson
updated: May 18, 2018
This module extracts a daily program information from KCRW.com
The main method of this module is called at the end of each day's rip.
The host name and playlist are written into the XML file for that day's podcast episode.
'''
import r... | [
"authalic@gmail.com"
] | authalic@gmail.com |
e1019cfe92520808aa41d1a7f42aef3ba26f34c1 | 320b7d4199c602800e3faaf747f148b1477bf49c | /Tkinter GUI Program/Label_frame.py | d091573a555cf50405a38ce4d34780983825a571 | [] | no_license | hashmand/Python_Programs | 208fb73d415532eb15f05e89dd5871ea3480fdb3 | b80c5bac6ab29b20982e5371e729c3eeb389f9de | refs/heads/main | 2023-08-28T14:00:44.483931 | 2021-10-20T17:48:48 | 2021-10-20T17:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import tkinter as tk
win = tk.Tk()
win.geometry("500x300")
labelframe1 = tk.LabelFrame(win, text="Frame 1")
labelframe1.pack() #fill="both", expand="yes" this is the properties of pack
toplabel = tk.Label(labelframe1, text="First frame")
toplabel.pack()
b1 = tk.Button(labelframe1,text="Click me")
b... | [
"ramghumaliya10@gmail.com"
] | ramghumaliya10@gmail.com |
a3a1e64f5807e16bd4520e2cc4130a665ca2d582 | 9c991307e29bdbd573c9d98ecd5c89e2ccaac414 | /bin/vhost_gen.py | ceee30e8546da44219849c8cbb2ea3085806c48c | [
"MIT"
] | permissive | murzindima/vhost-gen | b675e06b31909ca1e2cdbe0a16af33f83d1044f6 | 1835496d0e8694a0eceb1ef0f09d69e264e295f3 | refs/heads/master | 2022-08-28T10:24:47.849638 | 2018-08-04T23:47:24 | 2018-08-04T23:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,756 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2017 cytopia <cytopia@everythingcli.org>
"""
vHost creator for Apache 2.2, Apache 2.4 and Nginx.
"""
############################################################
# Imports
########################################################... | [
"cytopia@everythingcli.org"
] | cytopia@everythingcli.org |
38dfd261fde0e0b06f1e7a60f69038ef1a14b995 | 02b1b7fa67959b298812b6316b9ccc8a1a8a9c20 | /assignment1/cs231n/classifiers/softmax.py | 5a0e7525d89988fe71a3ec0781aaebe2baba1c92 | [
"MIT"
] | permissive | gnoparus/cs231n | cf43c15d1df3558b052d31ef57b22c7ea1d1355d | 2deb3863376abd49fc3d6f339c91994791313a6c | refs/heads/master | 2020-03-23T17:50:29.222619 | 2018-08-15T09:31:33 | 2018-08-15T09:31:33 | 141,878,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | import numpy as np
from random import shuffle
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of shape (D, C) containing weights.
- X:... | [
"surapong@gmail.com"
] | surapong@gmail.com |
2313ffe1da046e14b348548dc0e7af8c3c5573a5 | cd1e2d7c95460c176e60b6a6b9b5e6da385f335f | /time_display/times/views.py | 3044ed3869df1956c77e2f6a91d3c177c478804a | [] | no_license | LaunaKay/my_first_blog | 1c5bc37d41c779eccb9d7f4d08aaa8af56ba725f | 8f4d585f10e495ff71d0cb85895828020318868d | refs/heads/master | 2021-01-10T20:11:05.892107 | 2015-07-17T04:36:57 | 2015-07-17T04:36:57 | 39,098,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.shortcuts import render
from datetime import datetime
def index(request):
return render(request, 'times/index.html', {'now': datetime.now()})
| [
"launabodde@hotmail.com"
] | launabodde@hotmail.com |
c6e7daecf09922fd61497563bd7bcede1fa5c438 | 1ef5aef9654372647dea2e6727fc8b5b2c41e0d5 | /LECTURES/06_8_11_ukoly.py | 8ee3aea2fbe56f9da0663df97830934813c6c0da | [] | no_license | stefkalad/B3B33ALP | fc48753a69c6c21a8b2c3924be23bf539169f711 | 9ac0828b57882b22c8b8feb087c9a9fe6663e64e | refs/heads/master | 2023-03-18T08:29:52.065777 | 2017-07-28T07:47:44 | 2017-07-28T07:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py |
"""Pokud pole o délce N, obsahuje všechna čísla od 0..N-1 právě jednou, pak toto pole kóduje permutaci tak, že první prvek se zobrazí na místo, kde se v poli nachází 0, druhý prvek na místo, kde se v poli nachází 1,
Pole [0, 1, 2, 3], kóduje identickou tzv. jednotkovou permutaci o čtyřech prvcích, pole [3, 2, 1, 0] kó... | [
"stefka885@gmail.com"
] | stefka885@gmail.com |
24a7e0e511a2d8d8023e5a267a26f01231db6504 | bc6492a9a30ac7228caad91643d58653b49ab9e3 | /sympy/parsing/autolev/test-examples/pydy-example-repo/chaos_pendulum.py | 37a8673cd2de946f7185811aa561c209c9982994 | [] | no_license | cosmosZhou/sagemath | 2c54ea04868882340c7ef981b7f499fb205095c9 | 0608b946174e86182c6d35d126cd89d819d1d0b8 | refs/heads/master | 2023-01-06T07:31:37.546716 | 2020-11-12T06:39:22 | 2020-11-12T06:39:22 | 311,177,322 | 1 | 0 | null | 2020-11-12T06:09:11 | 2020-11-08T23:42:40 | Python | UTF-8 | Python | false | false | 2,288 | py | import sympy.physics.mechanics as me
import sympy as sm
import math as m
import numpy as np
g, lb, w, h = sm.symbols('g lb w h', real=True)
theta, phi, omega, alpha = me.dynamicsymbols('theta phi omega alpha')
thetad, phid, omegad, alphad = me.dynamicsymbols('theta phi omega alpha', 1)
thetad2, phid2 = me.dyna... | [
"74498494@qq.com"
] | 74498494@qq.com |
6d423d6258f05fc1ba8421679354daaa2a7c5ec5 | 778d01630c7f14fbb625f69282bb54f1b3c5b2d2 | /CommandService/Commands/CommandContainer.py | fc4f368dcb015583b2b54f6ba956e6837ef07db1 | [
"MIT"
] | permissive | CommName/WildeLifeWatcher | 9155014ce18d97746d3f141c0fafa038ae1d7cc8 | 3ce3b564d0e6cc81ebc2b607a712580d3c388db6 | refs/heads/master | 2023-01-08T17:11:56.982509 | 2020-10-31T20:24:59 | 2020-10-31T20:24:59 | 264,182,386 | 0 | 0 | MIT | 2020-10-31T20:25:00 | 2020-05-15T12:00:50 | Python | UTF-8 | Python | false | false | 2,117 | py | from Commands import Command
import cherrypy
@cherrypy.expose
class CommandContainer:
activeCommands = { }
def updateCommands(self, commandName, listOfParametars, typeOfParametars, addressOfActuator, listOfParametarsOfActuator):
if commandName in self.activeCommands:
self.activeCommands[co... | [
"17132081+CommName@users.noreply.github.com"
] | 17132081+CommName@users.noreply.github.com |
1ac4a60f81639fed47a70fc4cdb083acb2b113d3 | 84546b96812b1dabac230d1e3a14f43313617ce3 | /Wetting Transition/Problem 10.py | f227688d063e27e0fb2e98f84e8db46baf6b4eca | [] | no_license | NikitaPoljakov/Nikita-Poljakov | 6a98b23e9bf5fa07c3bb408f8cd622152f559122 | f3d61a1fe8659013e272f9c919f460eb74748d91 | refs/heads/master | 2020-12-27T07:04:44.370531 | 2020-11-21T10:18:43 | 2020-11-21T10:18:43 | 237,806,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | import scipy as sp
import matplotlib
import matplotlib.pyplot as py
import math
import numpy as np
#Some global settings for matplotlib plots
matplotlib.rcParams['font.size'] = 12
matplotlib.rcParams['font.weight'] = 'bold'
# [Starter code for Problem 8]
# ------------------------------------------------... | [
"noreply@github.com"
] | NikitaPoljakov.noreply@github.com |
7fd2d5ad64fa43f8ec7d8a279323a084331cf8ba | e024f354b91474438457cb1067bed48e07cfab45 | /gpii/node_modules/packagekit/nodepackagekit/binding.gyp | 981609d9e75f37c3d7a3331957b79840e0984fc8 | [
"BSD-3-Clause"
] | permissive | avtar/linux | 5a889985250ddbd49427756a78f1a97594bc01e8 | e9d3fdbc3d3cc71b9984532d35de64b98d5d6d38 | refs/heads/master | 2020-11-30T01:43:27.392813 | 2016-02-13T02:51:01 | 2016-02-13T02:51:01 | 40,628,691 | 0 | 1 | null | 2015-10-02T18:23:25 | 2015-08-12T23:13:19 | JavaScript | UTF-8 | Python | false | false | 368 | gyp | {
"targets": [
{
"target_name": "nodepackagekit",
"sources": ["nodepackagekit.cc"],
"libraries": ["<!@(pkg-config --libs gio-2.0 packagekit-glib2 json-glib-1.0)"],
"cflags": ["<!@(pkg-config --cflags gio-2.0 packagekit-glib2 json-glib-1.0)"],
"ldflags": ["<!@(pkg-config --libs gio-2.... | [
"jhernandez@emergya.com"
] | jhernandez@emergya.com |
7066f6324d677c473d56f32926737143bc9f2c62 | 3c936c644748309614dce52ed7aa1abfc4d15ed2 | /code/03_parse_price_reports.py | 2e5878ece3a72a258d3cbe08e869b4ae9926c558 | [] | no_license | drewdiprinzio/usda-esmis-parsing | c6a0a55958e6ba6bbfd85178cb442a9ed1a90bfb | e69f89d075453ffbc925cd8d204240e9fb3cf675 | refs/heads/master | 2022-06-12T20:44:23.507876 | 2020-05-06T02:07:56 | 2020-05-06T02:07:56 | 255,337,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,980 | py | # -*- coding: utf-8 -*-
"""
Last edited April 2020
@author: Drew DiPrinzio
"""
import urllib
import pandas as pd
from datetime import datetime
import re
import pickle
import os
"""
Create directories for saving analysis
"""
def create_dir(path):
try:
# Create target Directory
os.mkdir(path)
... | [
"drewdiprinzio@gmail.com"
] | drewdiprinzio@gmail.com |
0e37440791d78c9663e093eafeeae77a3c40d5d9 | 56799d321030b5e2ddda6138c171e185c1443154 | /training/emmental/modules/masked_nn.py | 5db001d0aa43d93723bd880586322f827e04d6cf | [
"MIT"
] | permissive | yaozhewei/MLPruning | def36abbd089111a326549541479661f5d389028 | 54839126218b53d08ef41a3767cc15e71933023f | refs/heads/main | 2023-06-12T10:13:33.882045 | 2021-06-29T05:58:09 | 2021-06-29T05:58:09 | 366,893,028 | 19 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,015 | py | # This code is modified from https://github.com/huggingface/transformers/tree/master/examples/research_projects/movement-pruning
# Licensed under the Apache License, Version 2.0 (the "License");
# We add more functionalities as well as remove unnecessary functionalities
import math
import torch
from torch import nn
fr... | [
"zheweiy@berkeley.edu"
] | zheweiy@berkeley.edu |
8341914461ecb9234ab7a445508b8100836b4b20 | d7d0f11e9eb74ad2a1b487082e61ce41b6cd6ae5 | /SingleNumber.py | fc8f444cd4d4897465d4665f1f7199e20d311563 | [] | no_license | liuiuge/LeetCodeSummary | 7b1a7670d8e579f4abca16a461f692a1273fb5b1 | 0fd06566bb12b19d8088507ec4824995e869d01f | refs/heads/master | 2021-11-24T07:34:37.472304 | 2021-11-23T08:26:07 | 2021-11-23T08:26:07 | 100,717,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
# coding=utf-8
class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
cnt = 0
for num in (nums):
cnt^=num
return cnt
| [
"1220595883@qq.com"
] | 1220595883@qq.com |
bacdf2f00350a68110f0280482dc9a5a66f42ca1 | d6adf44edd07fc3a5b656369a90d772e0f5b67d9 | /books/scipy-lectures-scipy-lectures.github.com-465c16a/plot_directive/pyplots/numpy_intro_1.py | 193fbb394da73c3b870a1f444452134aa7c75ec1 | [
"CC-BY-4.0"
] | permissive | N4A/papers | d82d410d1261eacf3077cd04cd50696e805e2d1d | d7cd63eb8bb3dcaff495e67a75f453e01cc5ac50 | refs/heads/master | 2021-01-22T23:43:44.157677 | 2019-02-25T16:13:19 | 2019-02-25T16:13:19 | 85,660,885 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 3, 20)
y = np.linspace(0, 9, 20)
plt.plot(x, y) # line plot
plt.plot(x, y, 'o') # dot plot
plt.show() # <-- shows the plot (not needed with Ipython)
| [
"1813877406@qq.com"
] | 1813877406@qq.com |
b36f06c9652e2fbae6172bcb85bd4a8c0f31b2a2 | 35a87eeced2d2ed6f93ec9fa823c2c85ccc3c947 | /tests/opengl/test_color_opengl.py | 0a53f60c539eaec2ee6eb79e223edf4b57e75237 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | torannn/manim | 384004ef41108b9699ece500f1a1a9446f5b51d9 | 88836df8ab1ea153ed57848a74a694c517962163 | refs/heads/main | 2023-09-01T11:51:09.600670 | 2023-08-09T17:44:17 | 2023-08-09T17:44:17 | 386,832,604 | 2 | 0 | MIT | 2021-07-17T04:09:12 | 2021-07-17T04:09:11 | null | UTF-8 | Python | false | false | 6,013 | py | from __future__ import annotations
import numpy as np
from manim import BLACK, BLUE, GREEN, PURE_BLUE, PURE_GREEN, PURE_RED, Scene
from manim.mobject.opengl.opengl_mobject import OpenGLMobject
from manim.mobject.opengl.opengl_vectorized_mobject import OpenGLVMobject
def test_import_color(using_opengl_renderer):
... | [
"noreply@github.com"
] | torannn.noreply@github.com |
4aff6a1ff0913c30d0c6e961e1a3eb15b811179d | 9dbc57b8cfb23c1df0521e6f0c43830d0849ff6b | /pyrkup/core.py | 1aef18f9c49f46407d1114f7e7fbb4256e283d84 | [
"BSD-3-Clause"
] | permissive | kosqx/pyrkup | c722b752eb7fa9d02d58a57c5644ce3d0c7e13a2 | 2fe39809d987be04156c3667bd0595e74e8a1e1f | refs/heads/master | 2021-01-20T13:48:30.193502 | 2013-11-20T23:57:33 | 2013-11-20T23:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import with_statement, division, absolute_import, print_function
from pyrkup import five
class Node(object):
def __init__(self, kind, attr=None, data=None):
self.kind = kind
self.attr = attr
self.data = data
def __repr__(... | [
"krzysztof.kosyl@gmail.com"
] | krzysztof.kosyl@gmail.com |
50decef1a503b122a6f867eb1ff8092320ad0380 | fe67390f6cfcf26c75f821f40df5670dbb648ebf | /C++/gen_txt_file.py | 6ab7e9a94e320e20cf8131f7db668fcbdb56125c | [] | no_license | Sprinterzzj/model_deployment | a133dc5cbc35a016f7adf6d3e6399c5b271a090f | 4ca4e270787e6dccac37e53f18c67aa50c4946a0 | refs/heads/master | 2022-12-25T02:20:43.392058 | 2020-09-27T10:36:28 | 2020-09-27T10:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import numpy as np
f = np.load('../model/data/mnist.npz')
x_test, y_test = f['x_test'], f['y_test']
x_test = np.reshape(x_test, [-1, 784])
np.savetxt('test_file.txt',x_test[1:100],delimiter=',')
| [
"gdyshi@126.com"
] | gdyshi@126.com |
9ed5a2425042d0e129ebe8034ec9ba2124835648 | 8d2e57635806485140a5c64caadf257ef560d7a5 | /nmeta/policy.py | 316d4c12cccc7e9304263734263d1e1546143b61 | [
"Apache-2.0"
] | permissive | awesome-nfv/nmeta | 098a60376cf081e4dea65e12a4409f3757733ddb | 55cc27e81defc42775ff563bfbef31800e089b14 | refs/heads/master | 2020-04-04T14:31:53.735071 | 2017-10-28T21:46:24 | 2017-10-28T21:46:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,856 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | [
"matthew_john_hayes@hotmail.com"
] | matthew_john_hayes@hotmail.com |
7aea7ba30cf485a4760e2c849d353c42f8bdddbd | 2985ebf7d5deee28b55059bcc11c1e2c99039585 | /MovieHtmlParser.py | 96d8ded493f136a0c9fc5d4ccefe2436178e0ae8 | [] | no_license | laixintao/Tree | fdfa1b4faedc00cbc947cea29aa7ffdb376620dd | 068240a69e7f5b0f7475f73bc6b4064d1c81d97c | refs/heads/master | 2021-01-10T08:03:28.781373 | 2015-10-23T10:56:00 | 2015-10-23T10:56:00 | 44,246,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,396 | py | #!/user/bin/env python
#_*_ coding: utf-8 _*_
__author__="laixintao"
import urllib2
import re
import time
from moviedb import Movie,DBSession
from HTMLParser import HTMLParser
from log import log
from config import PINTURE_PATH
# set the system encoding
import sys
default_encoding = 'utf-8'
if sys.getdefaultencoding... | [
"laixintao1995@163.com"
] | laixintao1995@163.com |
3d84e500c8726db6e95fbb74d398b3624ef0cee4 | 4683079af4abcf271ad2b2f15a1f5052b22b3576 | /music_site/asgi.py | 84a4f8eb48ed8681e5a61961969c1bc5cbe6285d | [] | no_license | AbdullahNoori/music_site | 21fb3a9d547d026393798b8af8d3be4a9fefa416 | 6f16f9c9bb40aabdfdae6e433f918002864210b4 | refs/heads/master | 2022-07-15T15:53:13.178544 | 2020-05-13T07:53:54 | 2020-05-13T07:53:54 | 257,746,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
ASGI config for Music_Site project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"nooriabdullah86@gmail.com"
] | nooriabdullah86@gmail.com |
5eef6e496f145d55f9cb241cc893414fbc9dbca8 | d99d372f4c80748319c72f662eae9b8fda991142 | /KivyDemos-master/box_layout_demo.py | 064750fda0cb01321f8229e263681a1361eab491 | [] | no_license | MaxDunsmore/Prac06 | 7037dbad0d10fd3132ca5b7dbf130907da75ca2e | 1964c791f8aab06610a4329967c45d2238b6f627 | refs/heads/master | 2021-01-19T08:59:11.048360 | 2017-04-09T11:48:51 | 2017-04-09T11:48:51 | 87,704,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from kivy.app import App
from kivy.lang import Builder
class BoxLayoutDemo(App):
def build(self):
self.title = "Box Layout Demo"
self.root = Builder.load_file('box_layout.kv')
return self.root
def handle_greet(self):
print("greet")
self.root.ids.output_label.text = "He... | [
"max.dunsmore@my.jcu.edu.au"
] | max.dunsmore@my.jcu.edu.au |
17ad669a0e46d848942f3120af2a64aa5b935caf | 0a799ff8dbdb7791b41bca079ec09d8b42c65d59 | /api_basic/serializers.py | ce375618e2206997becb58e265a57357e9a3a427 | [] | no_license | moshowsJournal/royalty_django_api | b1cffb3c619c586b48b0385f1bd8ea9ee1ad35f2 | 99530f1739260c66b8d01fee908678f46f26f551 | refs/heads/master | 2022-06-21T03:50:55.515663 | 2020-05-12T07:41:23 | 2020-05-12T07:41:23 | 263,267,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from rest_framework import serializers
from .models import Article
class ArticleSerializer(serializers.ModelSerializer):
class Meta:
model = User
#fields = ['id','title','author','email']
fields = '__all__'
# title = serializers.CharField(max_length=100)
# author = serializers.Cha... | [
"withyouamalive@gmail.com"
] | withyouamalive@gmail.com |
e8903d4f4699625df2cda18ac35f4222d2fd4b28 | 59f8bf58860d021216449b135f486f9b7145f6be | /application/utils/helper.py | b0f149aafc09f1948981c1ab3c93845eb97d3ddc | [] | no_license | JFluo2011/fisher | f5b58e2e151022b2173490b504dda7c704862b19 | d899e2a3dc296cf9d1c2802067d995dde1c3d32e | refs/heads/master | 2022-12-10T12:42:36.376854 | 2018-12-27T07:57:00 | 2018-12-27T07:57:00 | 158,154,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | def keyword_is_isbn(keyword):
tmp = keyword.strip().replace('-', '')
return (len(tmp) in [10, 13]) and tmp.isdigit()
| [
"luojianfeng2011@163.com"
] | luojianfeng2011@163.com |
04d67e88f991f93432f88d8af074b1294411c372 | 8b49b9ef894b9513aa0c10af60a69c0fc5c30d5a | /evaluate_kb/evaluate.py | fcf217157d89a6facb387aca56c925768e9bf41f | [] | no_license | DulanjanaYasara/Internship-Project | d2742c488480962c3654bc2747102b52715e5e9f | ce03935017e08b33595fb9af668022f0cbf2a2a8 | refs/heads/master | 2021-08-23T23:50:20.368692 | 2017-12-07T04:33:40 | 2017-12-07T04:33:40 | 113,403,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,466 | py | import re
from locale import str
from pprint import pprint
from time import sleep
import requests
from spreadsheet import SpreadsheetConnector
from stackoverflow import extract
path_kb = 'http://203.94.95.153/content'
path_client_json = './path/to/client.json'
spreadsheet_name = "Stackoverflow"
# Threshold value for... | [
"dulanjanayasara1@gmail.com"
] | dulanjanayasara1@gmail.com |
7aaa18f3d770e6cfc0a9ff020df2ebf34bb6a471 | 4cd2c9803766f250b7ef9313ffdbf85959d7b295 | /manage.py | 90f9cb894699cb2c9e8cf3c10822ec3a66812dd9 | [] | no_license | lubeda/PixelIt-AddOn | 5d80b8b91ec590ad11dbcd7dbe0fc98cf3a4c9f0 | f973d78a2f67e21d7156ae238aa801e2f242f0fd | refs/heads/master | 2020-12-14T23:51:16.348980 | 2020-01-25T16:49:31 | 2020-01-25T16:49:31 | 234,916,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PixOn.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportEr... | [
"lb@sell-e.de"
] | lb@sell-e.de |
58c58c2aa06311710749227f4e0405344d093517 | 663d429e1f552ef958d37cfe4a0707354b544a9a | /rimi_linux_mysql/tcp_ip_socket/my_async/asyncsocket_chat/client1.py | 4a9a11ecfbb9b7904ff495bf8814706de43aa992 | [] | no_license | nie000/mylinuxlearn | 72a33024648fc4393442511c85d7c439e169a960 | 813ed75a0018446cd661001e8803f50880d09fff | refs/heads/main | 2023-06-20T07:46:11.842538 | 2021-07-15T13:46:43 | 2021-07-15T13:46:43 | 307,377,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import socket
ss_address = ("0.0.0.0",19528)
ss = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
print('123')
ss.connect(ss_address)
print('456')
while True:
data = input('请输入消息:')
if not data:
break
try:
ss.send(data.encode('utf8'))
print(ss.recv(1024).decode('utf8'))
excep... | [
"1073438012@qq.com"
] | 1073438012@qq.com |
97fe7ee81d9840e8c7664b609d833a3fa2b31645 | 26c25a7e45390a93a5e97d4d7d1b70ba8bab68ef | /Week 02 Leet Code/Delete Node in a Linked List.py | 2d92995592425e2f461bfd2605b605e3106e4690 | [] | no_license | akashcodepal/Summer-Internship-Plan-SIP | aa89c3f630e7485b576b1f3bc42dfa639109eafd | c1af7096986ce62be2e1c03b5fb1f0e5c5d5be7c | refs/heads/main | 2023-06-25T16:58:50.826957 | 2021-07-12T04:03:36 | 2021-07-12T04:03:36 | 380,293,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteNode(self, node):
# we need 2 pointers to delete 1 node , but for this case we don't have prev
# so we will delete next node inplce of this... | [
"noreply@github.com"
] | akashcodepal.noreply@github.com |
c7fee91cb539c4e1e261ffa6c3de60b555291813 | 05bf7de1337bc938578accba64416863cec1ed63 | /docs/historical/MSD/MSDTutorial/Post_Processing/common/post_processing_class.py | 493bc56ae42de7f8b5544648a723bab83e78ce4c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/openmeta-mms | d0dccae88e7532594f02c5eff8daa74c6c0e4010 | 2644cb7273916e36c3725785fc9a44948d64c343 | refs/heads/master | 2023-04-06T11:09:36.316306 | 2023-03-28T18:17:55 | 2023-03-28T18:17:55 | 70,078,378 | 21 | 8 | NOASSERTION | 2023-01-14T09:31:14 | 2016-10-05T16:29:54 | Python | UTF-8 | Python | false | false | 24,179 | py | import os
import json
import sys
import re
import numpy as np
from py_modelica.mat_file_functions.mat_file_to_dict import MatFile2Dict
# Rescue if the limit-checking should get stuck in an infinite while-loop.
# Which should be impossible to start with, but if I am wrong...
MAX_ITERATIONS = 100000
class PostProcess:... | [
"tthomas@metamorphsoftware.com"
] | tthomas@metamorphsoftware.com |
a75e5ccc9f7e433c6bdd2b00d6fa814ee47428ba | 52dd82ac3eef74bbaede3ea2938ee3fdd7cea1a7 | /Sources/pyvisa_test.py | cefab94321e5d43afc3f47654994a21f2f3a9700 | [] | no_license | Virgile-Colrat/YFA-Project_python_interface | 4a935895c976c0367864c38380caae63967eca3e | 261d7dba595761726ea272c277a804e62f78bdca | refs/heads/master | 2022-12-25T15:17:31.484500 | 2020-09-15T15:22:15 | 2020-09-15T15:22:15 | 265,026,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | #import pyvisa
#import time
#rm = pyvisa.ResourceManager()
#print(rm.list_resources())
#inst = rm.open_resource('GPIB0::16::INSTR')
#print(inst.query("*IDN?"))
import pyvisa
import time #import python time functionality
rm = pyvisa.ResourceManager()
A = rm.open_resource("... | [
"virgile.colrat@utah.edu"
] | virgile.colrat@utah.edu |
0f12dd67a52fa677727c9bb9f8811134440c07c0 | bf4a42534abb260dfb57392f22f4fb9d04072eda | /dependencies.py | 0054ba3df81396b144754d40bca211062b31c2ab | [] | no_license | armagheaddon/virtual-router | 9ce12ac8a8ee2b904f43d8900e550f801481450c | 766640b973e2d746febb0c04c0159a23461b70d3 | refs/heads/master | 2020-08-11T23:24:07.645317 | 2019-11-04T20:05:49 | 2019-11-04T20:05:49 | 214,647,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | import subprocess
import sys
def install(package):
print 'installing', package
subprocess.call([sys.executable, "-m", "pip", "install", package])
def install_wmi():
install('wmi')
install('pywin32')
def install_pydivert():
install('pydivert')
| [
"dooda174@gmail.com"
] | dooda174@gmail.com |
b25d14bcf3d884d480b51ebd9c1190f821a66ace | 1b858fb089b8588ebaf821a1d33dae4595dc0af1 | /assignment2/cs231n/classifiers/cnn.py | fa01df2c7bfd6ef581a8970f936700d25469f6c0 | [] | no_license | runnphoenix/cs231nAssignments | 20626c91790d9a34bc520026b2a32504926ed728 | fb441a4714a5a1ba5cf97153cecb325fe2feedf8 | refs/heads/master | 2021-09-09T23:59:52.995560 | 2018-03-20T09:30:39 | 2018-03-20T09:30:39 | 109,482,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,927 | py | import numpy as np
from cs231n.layers import *
from cs231n.fast_layers import *
from cs231n.layer_utils import *
class ThreeLayerConvNet(object):
"""
A three-layer convolutional network with the following architecture:
conv - relu - 2x2 max pool - affine - relu - affine - softmax
The network operates on mi... | [
"runnphoenix@gmail.com"
] | runnphoenix@gmail.com |
37bd9345c527cc1ef1581f65d4b3d0dc7bd16f23 | 461d2a2faf825175c107381b176ab5a05af8c1de | /ch7/callable_fn.py | 2c145762aaa3bd49959fcbd781874ec41c156f98 | [] | no_license | thatguysilver/py3oop | 29e2455c4fd7f3b2c6ef0d160646a9fbcc0d87b0 | dfc65b813f371c2a4c24ee521121e1558635d1b4 | refs/heads/master | 2021-01-15T22:01:42.399603 | 2017-08-31T06:36:26 | 2017-08-31T06:36:26 | 99,881,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # does not work as demonstrated in the text.
class A:
def print(self):
print('my class is A')
def fake_print():
print('my clas is not A')
a = A()
a.print()
a.print = fake_print
a.print()
| [
"adampaulsilver@gmail.com"
] | adampaulsilver@gmail.com |
686d84246b45e52dd12f18ac11155e8b756bddd4 | 7c5c5382751e34ce2377d64786c341f5992e8941 | /espnet/nets/pytorch_backend/transducer/vgg2l.py | 134116c1a031777b9f0525d86439e7a6005e3755 | [
"Apache-2.0"
] | permissive | ZeyuChen/espnet | a6ed0dc6fba992b38db8816e8385f5556a487fdc | 01eaefef7698453d3c6497c17ba679c98e9f5f85 | refs/heads/master | 2022-12-28T16:05:23.975355 | 2020-09-24T18:18:24 | 2020-09-24T18:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | """VGG2L module definition for transformer encoder."""
import torch
class VGG2L(torch.nn.Module):
"""VGG2L module for transformer encoder.
Args:
idim (int): dimension of inputs
odim (int): dimension of outputs
"""
def __init__(self, idim, odim):
"""Construct a VGG2L object.... | [
"florian.boyer@labri.fr"
] | florian.boyer@labri.fr |
c5c84ece0298586ded8abcbd83eeaed543a4d70a | 7c7e9f68ecc973b8779b2c8b96f6396d0d54f5bb | /selection_sort/SelectionSort.py | 02130702e9ac0fc232a64f5f2c72735e5a11ff3c | [] | no_license | Ab4rdo/Python_Algorithms | b08def3f6150695639f4824526d2d56f78a58073 | 1c0dfe3010d08946423e45af96ddae213c5626f2 | refs/heads/master | 2021-08-22T09:28:48.899514 | 2017-11-29T21:29:06 | 2017-11-29T21:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py |
def sort(seq):
"""
Implementation of selection sort algortihm
:param seq: a integer list
:return: new ascending sorted array
"""
if not seq:
raise ValueError('List is empty')
i = 0
length = len(seq)
while i < length:
mini = index_of_min(seq, i)
temp = seq[i... | [
"fryderyk97@protonmail.com"
] | fryderyk97@protonmail.com |
a1d0935887279858f210d20a3d36d3b9b197070e | 3babb8eb818665e7ba07ca19321066d3e7463bb9 | /leetcode/9-palindrome.py | 901312cdd379e43288d7a7ac91fcbfd69675a2c1 | [] | no_license | MLL1228/mycode | 44b5ca662f9465f4e17c7422a8f5dc1d56fcbc12 | 187d809371390d08313ca02f94e299d5484431ba | refs/heads/master | 2020-04-22T08:16:14.689394 | 2019-03-01T06:07:02 | 2019-03-01T06:07:02 | 170,239,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if x < 0:
return False
else:
mystr = str(x)
reverse_str = mystr[::-1]
# print(reverse_str)
if int(reverse_str) == x:
... | [
"menglili@menglilideMacBook-Pro.local"
] | menglili@menglilideMacBook-Pro.local |
a6c573e0f691bc552fe6e058fb7f7e4db8f2b091 | 01d26dafe380aff75767ddaf4943f17e09a7d55e | /main.py | 44f1f5d0a9ea14310b540773c7dedcdb66892bd1 | [] | no_license | Eyads99/UltimateTicTacToeML | 6f3a0d04b6272f5ccd511382f26512ce1bb7a507 | ea5d8c9e8958a11e19e8b6e6de3f6f2d9ce5719d | refs/heads/main | 2023-01-24T17:49:25.704764 | 2020-12-07T21:27:07 | 2020-12-07T21:27:07 | 315,648,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,151 | py | import numpy as np
import math
from numpy import random
# x==
turn = 'x'
# board =np.zeros((9,9))
board=np.full((9,9), ['e'],dtype=str)
inputMB=-1
inputPosition=-1
miniboardOutcome=np.full((9), ['e'],dtype=str)
print(miniboardOutcome)
def StateOfGame():
global miniboardOutcome
for i in range(3):
if (mi... | [
"eyadshaban99@gmail.com"
] | eyadshaban99@gmail.com |
5925c4fef5a3c394c43a7fefeee95cbf444d7cf9 | 13faca2aa7c8cd378274e79a4c974adb03320920 | /data_wrangling.py | e008a81b5b0ef33cafe7506d756c8f4bcb56c3be | [
"MIT"
] | permissive | ovravindra/SentimentAnalysis | 16361aa148cb085733debb428fe445ac26b4b921 | 2e5dea9806d86fc12ab30fff125a24208ae9e003 | refs/heads/master | 2022-12-14T14:02:05.925597 | 2020-09-14T08:12:52 | 2020-09-14T08:12:52 | 295,315,278 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | # AIM : to construct a modular code blocks to perform standard text wrangling operations and also to
# produce handy plots and other functionality.
# we can borrow the word vectors generated using the CountVectoriser and TfidfVectoriser to
# train the binary classification Logistic Regression model and check the accu... | [
"ravindra.oguri@gmail.com"
] | ravindra.oguri@gmail.com |
7046501e30ccbee9cab11a5ecea1858f0d31b987 | bee6c97cdac6f8d7c9888209930ece354cd8b009 | /AtCoder/ABC/162/C.py | b3d9513b243909a4e41ea083228cda7ffd2212e2 | [] | no_license | U-MA-dev/contest | 40bc225a27d85f819b15419b9797550bcc67b401 | 5d677371a271f87098f7b8680640990f7e646e23 | refs/heads/master | 2022-04-27T12:39:20.226049 | 2020-04-28T06:58:07 | 2020-04-28T06:58:07 | 255,538,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from collections import defaultdict
K = int(input())
def calcGcd(a, b):
large = max(a, b)
small = min(a, b)
while (True):
num = large % small
large = small
small = num
if small == 0:
return large
ans = 0
dd = defaultdict(int)
for i in range(1, K + 1):
for... | [
"kawabata@iotbase.co.jp"
] | kawabata@iotbase.co.jp |
757740985f08fab8c8e151f77801737e140d2722 | d8fabc8d17cce9cfbc02a7c293f13a6fd3ed3c0e | /backend/backend/settings.py | 16eab2d3a6a814c60ecbf05b9b2308fb89f550c3 | [] | no_license | lashleykeith/djangoReactShop | 2213dfb0d52c4ef2f42148a4932fc3f6284182bc | c48c085457360e7c0d481633594d475fb7c56672 | refs/heads/main | 2023-08-27T20:02:31.357355 | 2021-10-30T10:47:04 | 2021-10-30T10:47:04 | 422,797,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,686 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"noreply@github.com"
] | lashleykeith.noreply@github.com |
a22e4b641fd599215f054548a58f5cd1ff662611 | a524901d55a4c0a74a91301d60486aec5aec3cfa | /mi_buy.py | 202964957df6c264e4ddf7c644e47a584af822f9 | [] | no_license | tenlee2012/PlayCollections | 4d32516ce05dc1b72fa43816f7044004d7abd49a | a8b5cf835c54605ccabfb14b2c2926a147c99c60 | refs/heads/master | 2021-09-10T15:14:24.339577 | 2018-03-28T09:51:40 | 2018-03-28T09:51:40 | 104,848,122 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,079 | py | # coding=utf-8
import requests
import logging
import time
logging.basicConfig(
# filename='mi_buy.log',
level=logging.INFO,
format='%(levelname)s:%(asctime)s:%(message)s'
)
class MiBuyError(IOError):
pass
class MiBuy(object):
ADD_CART_URL = 'https://m.mi.com/v1/cart/add'
SEL_CART_URL = 'h... | [
"jiahao.li@petkit.com"
] | jiahao.li@petkit.com |
01cabaa83df787a973353fd6f3c195237768f961 | c4a2c5d2ee3bb946333bec267c337858c2eaa87c | /bhiveapi/hivenoderpc.py | 58ce7500c87b948f6e6633ae663e981fa3749a04 | [
"MIT"
] | permissive | TheCrazyGM/bhive | 93b237140def25a8cb4de0160678db116b45d4e0 | 1494e90a99123ecfc5efbd927258f9ba59443e2e | refs/heads/master | 2021-04-10T20:15:59.966431 | 2020-03-22T23:50:52 | 2020-03-22T23:50:52 | 248,962,200 | 3 | 1 | NOASSERTION | 2020-10-27T22:24:53 | 2020-03-21T11:29:02 | Python | UTF-8 | Python | false | false | 9,554 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import bytes, int, str
import re
import sys
from .graphenerpc import GrapheneRPC
from . import exceptions
import logging
log = logging.getLogger(__name__)
... | [
"thecrazygm@gmail.com"
] | thecrazygm@gmail.com |
14b44cfeeb857c270650b4444f4ec2d27f241160 | f3c8ec9ee5c2a70d847207ca39a9c9bf6d728de9 | /FaceDetect/detector.py | e81b50801088b9e8de7be99ca5a9d8aff0728f9c | [] | no_license | paparazzi/pprz-jevois | efdaafefdc8dd1235c0b0addfb9dd8bd68761fe7 | 4a35c0927efe6bf790ce5ca25740d78f0e22ecaf | refs/heads/master | 2020-04-19T04:52:29.455841 | 2019-12-26T18:06:13 | 2019-12-26T18:06:13 | 167,973,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #!/usr/bin/python
import sys
import cv2
class Detector:
def __init__(self, cascade_path=""):
#os.path.dirname(os.path.realpath(__file__))
if not cascade_path:
print("Detector: no cascade path, trying default location for face cascade")
cascade_path = '/jevois/share/facedetec... | [
"gautier.hattenberger@enac.fr"
] | gautier.hattenberger@enac.fr |
b446ebedf760f662c77f28e0640ccbc1645ef18b | 92b22755e0db57f16fc0620ca64a2bc750eb4df3 | /labs/Lab 11/filters.py | f227d08c57e481422900c682375fe2c9ab294b7f | [] | no_license | wall-daniel/SYSC_1005 | 2a4bf1367e3940e8be4f44bda9cbb7371656939f | f54ad4637f125055195d063b93f9f50ded839190 | refs/heads/master | 2020-03-29T00:29:23.410337 | 2018-12-04T15:59:55 | 2018-12-04T15:59:55 | 149,341,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,566 | py | """
SYSC 1005 Fall 2018
Filters for Lab 7. All of these filters were presented during lectures.
"""
from Cimpl import *
import random
def grayscale(image):
""" (Cimpl.Image) -> Cimpl.Image
Return a grayscale copy of image.
>>> image = load_image(choose_file())
>>> gray_image =... | [
"dwall@dhcp-153-111.cu-wireless-students.carleton.ca"
] | dwall@dhcp-153-111.cu-wireless-students.carleton.ca |
014f5ef95b24f912eba396f00c732da8db3287e4 | c3f923f3bba6d60357bee87c716bcf66d3916149 | /TestPy3Tools/winPC/cmdFlushDns.py | 7f6baf7553ed8ca150c7e7f17a2f6519384998f4 | [] | no_license | yuchunhaiGit/pyProject | 514d52db7a0ba2cff8ec516186994236356e0d6a | a982939fdb1679a4d60149fc84eab563fb083b03 | refs/heads/master | 2021-08-28T13:48:06.607143 | 2017-12-12T10:49:15 | 2017-12-12T10:49:15 | 113,149,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # coding=utf-8
# @作者:yuchunhai
#@Time:2017/11/29-10:24
#@文件名称:pyProject-cmdFlushDns
import os
os.system(r'ipconfig /flushdns') | [
"18905255025@qq.com"
] | 18905255025@qq.com |
0779310c4d038fb9d6ba8e6af98bd44b0a8adc33 | 6ce155f14c3e758ef21417a6145535c3976309e6 | /exercise_1/main2.py | d81b1ec6a3ed031e51281526b95b94e5b7f7d7c2 | [] | no_license | brendan-martin/CompMod-excercise_1 | c628d71a6c8c2ed1daa57b74173975c5a74d1d3e | 254f79b1f6bfef3a8d04cbce5f29a6079981f758 | refs/heads/master | 2020-04-01T08:14:02.416962 | 2018-10-30T12:18:22 | 2018-10-30T12:18:22 | 153,022,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from vector_class import Vectors
import math as m
def main():
#ask user for components of the first vector
component_1=input("The first component of the vector is:")
component_2=input("The second component of the vector is:")
component_3=input("The third component of the vector is:")
vector_1=[co... | [
"noreply@github.com"
] | brendan-martin.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.