blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a692e7b769b24cfce5a084380f26dc5007b96fab | ff7019f5d49bd6e816a001f3c9d6c80f69633894 | /cbrscraper/__init__.py | 18e7b380e56e9cccd6215bf3a7d042087eff8f71 | [
"MIT"
] | permissive | Syeerus/cbrscraper | b524c2569c20b5a5c7778a5c8457208123998d3e | 8fbbb23e0838eea9a1a4e604359280d47cf0c657 | refs/heads/master | 2020-09-21T22:34:43.005001 | 2019-12-01T14:11:08 | 2019-12-01T14:11:08 | 224,537,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | # File: __init__.py
# Author: Syeerus
# License: MIT
| [
"syeerus@gmail.com"
] | syeerus@gmail.com |
dc485dbfc313a7bfe2160c6e46b5ba984e0ad580 | fbb7253e03b465bc386fc0a64155f263cc6aedc5 | /bin/train.py | fd1ea27357fa4aca723b8f4fc17f35b2c9b537b2 | [] | no_license | MarkWuCL/pytorch-transformer-lm | 75e42b642dd7ab2dfecb86a1d556c5a83c32f7ac | 6e12949db7efe2273384f5979a87cedc3f2bb1c7 | refs/heads/master | 2020-06-26T05:10:40.536805 | 2019-06-28T03:56:09 | 2019-06-28T03:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,096 | py | import torch
import torch.optim as optim
import torch.nn as nn
import numpy as np
from functools import reduce
from src.modules.data import wikitext103
# from src.modules.data import wikitext2
from src.models.encoder import TransformerEncoder
from src.modules.embedding import TransformerEmbedding, DropEmbedding
from ... | [
"akurniawan@traveloka.com"
] | akurniawan@traveloka.com |
d99a029c03dcdfe98683393cb23dc737e077714b | 83316dd8a01070711fe8c42cd38d245da9a4711e | /testmethodology/trafficcenter/stakunittest/test_ReservePortsCommand.py | 7a598086724fe16870f4f35fbce33f81dbe7a643 | [] | no_license | CmWork/STAKCommands | fa46d561d0a85ac49c14f1b1fc6c014d2e0955bc | 8b3fb68912116f7973fa9b3677d4e3d43c92f194 | refs/heads/master | 2020-05-02T00:57:20.940300 | 2015-07-10T04:32:37 | 2015-07-10T04:32:37 | 38,860,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,946 | py | import copy
import json
import pytest
from mock import MagicMock, patch
from StcIntPythonPL import CStcSystem, CScriptableCreator, RelationType, CHandleRegistry
from spirent.methodology.trafficcenter.ReservePortsCommand import *
import spirent.methodology.trafficcenter.ReservePortsCommand
partial_topology_config = [
... | [
"c@m.com"
] | c@m.com |
d27b2e54cd0f86cdeda88bac73f2565296fc9a4c | b5dec64d906e2bb6f0351b7bef2cfc777ff23b38 | /accounts/urls.py | 5e3e3bbf34f83bbd96ce0633e26ec9874b3ab403 | [] | no_license | mohamedelnadry/django_accounts | b8b8aa1e05946fb085dbde54c8d803e19524f9bc | 6e0210a51bc9335f514745c9292db33f18ab61f2 | refs/heads/main | 2023-08-25T09:33:05.480235 | 2021-10-15T00:49:51 | 2021-10-15T00:49:51 | 417,325,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from django.urls import path
from .views import profile_edit,profile,signUP
app_name = 'accounts'
urlpatterns = [
path('signUP',signUP,name='signUP'),
path('profileEdit',profile_edit,name='profileEdit'),
path('profile',profile,name = 'myprofile')
] | [
"mostafaelsaigh1@gmail.com"
] | mostafaelsaigh1@gmail.com |
f067176b2ba83174d968f78dbe899a646aac896d | e2df45a8594c5eb61aeda00cef07bb07b3bbec77 | /neural_net/mnist.py | 82b0712b3bbeff6a9e5b3ae9c6bd02b05906c78b | [] | no_license | rathodx/Machine-Learning-from-Scratch | 8ccd67eb62320f5e235ba51e5d3e2c37e7465733 | 1f92d18fe7d73e8c95a3322dddbb5c6782ea1cf6 | refs/heads/master | 2021-01-01T14:21:41.452199 | 2019-05-21T06:44:07 | 2019-05-21T06:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | import os
import struct
import numpy as np
"""
Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py
which is GPL licensed.
"""
def read(dataset = "training", path = "."):
"""
Python function for importing the MNIST data set. It returns an iterator
of 2-tuples with the first element bein... | [
"noreply@github.com"
] | noreply@github.com |
522f4a16349a140d13c7182bd9d8df733dbdaae9 | d341dc3b005b548a5fab35c98641634041c5673b | /24-ProyectoDjango/ProjectD/blog/apps.py | a16cd519b923b9f27b44921071723694e8def3e7 | [] | no_license | Jason171096/Udemy_Python | 60e83e78a57ae88a2976caf599fb4ba94ef5f944 | 5cc0b8aac9cd479130d44d3db6c859b76639206b | refs/heads/master | 2023-04-10T21:20:55.587784 | 2021-04-19T21:27:45 | 2021-04-19T21:27:45 | 287,430,656 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
name = 'blog'
verbose_name='Gestion del Blog'
| [
"bboyace10@gmail.com"
] | bboyace10@gmail.com |
5c7d31d76b96a35fba7d04c40d32836a34cc366a | 94bda583a3da8ac17bb7a01523ea940663f01055 | /src/test/test_core/test_internal_repr/test_action.py | 4ac033ad3256d6544c2204ace398a3e5771cdddf | [] | no_license | Simon0xzx/ml_tampy | b21bb8a95c91ae4ddc2535a0d4d7797b31f7df26 | 14c5e0ea33b861450fddb6b03327a49b57c9ce2b | refs/heads/master | 2020-12-30T11:40:09.471682 | 2017-05-18T23:55:57 | 2017-05-18T23:55:57 | 91,517,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,487 | py | import unittest
from core.internal_repr import action
from core.util_classes import namo_predicates
from core.util_classes import circle
from core.util_classes.matrix import Vector2d
from core.internal_repr import parameter
import numpy as np
class TestAction(unittest.TestCase):
def setup(self):
attrs = {... | [
"simon0xzx@gmail.com"
] | simon0xzx@gmail.com |
f54fee6f0846367f6f95b954fc77d16bed89f5dc | fc472faba3a83087350a98bf670b6ef107e30b06 | /full_project/settings.py | 45dcdf7263769f7acbeb73ccf41e9afa27ffd162 | [] | no_license | nostradouglass/djangoBasic | e0a17cb772fd20b5813bffdec3e6da8821e21434 | 8f3d7c7f9108b2d9e8ca7ad313fb6f269f69b27a | refs/heads/master | 2021-03-27T13:25:21.743908 | 2018-02-21T02:38:16 | 2018-02-21T02:38:16 | 122,284,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | """
Django settings for full_project project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os... | [
"kdouglass@gmail.com"
] | kdouglass@gmail.com |
1ba4121127309db3aeac7de7bb4ec7a7476c6c5d | 3c2cabb77313de697eb8200e60845c5ba2b263be | /code2.py | 98c8baa8536b261cfc39c0039448956650fe1643 | [] | no_license | SHREYASS7/tkinter_frontend | f2e43944afb569910b1cfc1b99d1c823d3e0fe44 | 6b5918ce6548f9f7a6cc6e9534e79f415498fd24 | refs/heads/master | 2022-11-19T03:51:48.245182 | 2020-07-25T20:11:37 | 2020-07-25T20:11:37 | 265,928,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,578 | py | import tkinter as tk
from tkinter import font as tkfont
from PIL import Image, ImageTk
import os
from tkinter import filedialog
from tkinter import ttk
class SampleApp(tk.Tk):
def __init__(self, *args, **kwargs):
tk.Tk.__init__(self, *args, **kwargs)
self.title_font = tkfont.Font(family='Helveti... | [
"noreply@github.com"
] | noreply@github.com |
ff8b5a11dabb5af8f08fb7ec9fb44aa0c4813b3c | bf2b9b1a27caeb4dbe69bbc5e546a8cc7f7dfce9 | /Digit Recognizier/DigitRC1.py | cf523ac2e5477385991b0602ce86452ff964fbd6 | [] | no_license | zbwby819/Kaggle | 84cfcca4c5eb24bc7e5ee93b21193169cb9661da | 15faf28203abaabd392c464f18511606f5fa9135 | refs/heads/master | 2021-01-24T04:09:35.602258 | 2018-05-10T07:09:05 | 2018-05-10T07:09:05 | 122,924,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 6 09:29:05 2017
@author: Administrator
"""
import numpy as np
import pandas as pd
#import matplotlib.pyplot as plt
import keras.optimizers
from keras.utils import np_utils
from keras.layers import Dense, Flatten, Convolution2D, MaxPooling2D, Dropout, Activation
fro... | [
"noreply@github.com"
] | noreply@github.com |
8b69d74df6292f8dcb5507e9cc7a9e0f40e85ec3 | b2844f4885b3238900e00f8d5a97896da2f0b854 | /testing/reviewfeed.py | de89283b4946e76b8f4962eae80a2bc8e8bf127f | [] | no_license | kewangcmu/ReviewChain | 125f256a9914cacec2208d1829c8b7eece038313 | f53c151da3dd5078e5c25d90128b33c5db707363 | refs/heads/master | 2022-12-10T09:09:39.563607 | 2018-03-16T01:27:11 | 2018-03-16T01:27:11 | 125,446,846 | 5 | 1 | null | 2022-12-08T00:58:02 | 2018-03-16T01:26:32 | Python | UTF-8 | Python | false | false | 2,926 | py | # add one review through a python program
# input: privateKey_file (in bytes format), epc, rating, content
import json
import web3
import sys, csv
import time
from web3 import Web3, HTTPProvider
from solc import compile_source
from web3.contract import ConciseContract
from reviewContractN import contract_source_code... | [
"kewang1@andrew.cmu.edu"
] | kewang1@andrew.cmu.edu |
0d8e3a84fa22ef2ec7aeb1c5146df56fd496fb29 | 2eee2da886d2574f030b22771e707e32f56cbaed | /chaospy/example.py | 894ccc52bccbe2583a36b45f6af3f71fdb29c2ec | [
"MIT"
] | permissive | lblonk/chaospy | 1759f050229d1365802320d9b13f6195ec55a72c | 1759a4307c6134b74ce63ff44973195f1e185f94 | refs/heads/master | 2022-11-12T19:50:15.108219 | 2020-07-03T11:13:42 | 2020-07-03T11:13:42 | 276,879,282 | 0 | 0 | MIT | 2020-07-03T11:03:14 | 2020-07-03T11:03:13 | null | UTF-8 | Python | false | false | 2,170 | py | """Example code used in the tutorials."""
import numpy
import chaospy
coordinates = numpy.linspace(0, 10, 1000)
distribution_init = chaospy.Normal(1.5, 0.2)
distribution_rate = chaospy.Uniform(0.1, 0.2)
distribution = chaospy.J(distribution_init, distribution_rate)
_t = coordinates[1:]
true_mean = numpy.hstack([1.5,... | [
"jonathf@users.noreply.github.com"
] | jonathf@users.noreply.github.com |
dee36ee8faae3dd9d3d8ab0ad8cf41a5cfeca3c0 | 78be3ab65711fde9b7d47839bb87f8fc1c65e8dd | /scripts/grpc.py | 7ab1519252ee237bc2ea9d72d178e10025995693 | [] | no_license | nonstorio/ns-discord | 8ef3e1d650a98392fadf9a43b418a1f04f7328c0 | de722cafd0db4f5ba4321862d338ca7db7c4cde8 | refs/heads/master | 2022-12-17T09:28:49.136241 | 2020-09-09T16:37:03 | 2020-09-09T16:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import glob
import re
from distutils.cmd import Command
class GrpcCommand(Command):
description = 'Generate gRPC classes from Protobuf definitions'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from grpc_tools import... | [
"vintprox@gmail.com"
] | vintprox@gmail.com |
29e615c50c75001d3ac0be014c47c1573e864058 | 32f309fa54680f5c0e019bd58828e68dcf0c44c3 | /roc_L_plot.py | 3fd8720d8e8b31cbb7da4ad130332023169b48ac | [] | no_license | gputnam/SBNOsc_plot | 0f69f708a3d418154c44c875ddfb8d06637149e8 | ee533929d765f3af0f77d73c162e73c872a5d453 | refs/heads/master | 2020-03-27T18:40:20.368861 | 2018-10-10T14:29:12 | 2018-10-10T14:29:12 | 146,936,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | import ROOT
import os
import sys
from array import array
import argparse
import math
Ls = range(0,300,10)
Lnames = ["L" + str(x) for x in Ls]
file_suffixes = ["_" + x + ".root" for x in ["NoL"] + Lnames]
def main(args):
# get input file -- should be output from sbn -m SBNOsc_NuMuSelection
input_fnames = [args... | [
"gputnam@sbndgpvm01.fnal.gov"
] | gputnam@sbndgpvm01.fnal.gov |
70b061e799152084ad6f729509a14852526468f9 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /PHY_604_Computational_Methods_in_Physics_and_Astrophysics_II_Zingale/code1/monte_carlo/uniform_random/random_test.py | f5d708344cd250ad2e460372c9cb612844584e80 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 919 | py | # Do a simple random number generator based on the linear congruential
# generator
import matplotlib.pyplot as plt
class Rand(object):
def __init__(self, seed):
self.seed = seed
self.a = 16807 # 7**5
self.c = 0
self.M = 2147483647 # 2**31 -1
def ran(self):
xn... | [
"me@yomama.com"
] | me@yomama.com |
f5316c97b47c37037e7f7584f2ad11d62837711b | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Minecraft/pip/tests/test_help.py | b5a5f8aaba7742dfff1f6d49f2ba7a46eab76da7 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8a2ef4075a758034598401082ccea67056274e743bd8d3b71c91deb8be2b8201
size 1835
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
919e34952e6dacda5634e718bef262c512d72020 | 4110dbcc925709f0b74eba5e71aed0db4b621cd6 | /list_match.py | 97c304f6ba2c2eeeb6b4d922670dcc6665a65654 | [] | no_license | nagaraju291990/list-match | e24b9ea39bd45a538c0b244dd5b7b96f04d6350e | 545e5e93efacf83a315e3f89198750ce1fa2777e | refs/heads/master | 2022-04-28T03:42:33.903109 | 2022-03-18T17:15:53 | 2022-03-18T17:15:53 | 232,479,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | #find and replace words from a tab seperated list into the input file
#how to run:? python3 list_match.py inputfile.txt list.txt(tab seperated)
import sys
import re
#open file using open file mode
fp1 = open(sys.argv[1]) # Open file on read mode -- input file
lines = fp1.read().split("\n") # Create a list containing a... | [
"vpp.nagaraju1234@gmail.com"
] | vpp.nagaraju1234@gmail.com |
e5a3cd15785d9021fc931085d5f2b301b54380a1 | e4a900dbc13dd55ea5aa79e1af95adb63fa83c33 | /navigation.py | 96d42fcc34a0a4d623466ad8efc7ee3dfa94d1fd | [] | no_license | mcginnisoj/Escape-Analysis | 96d1f6cd4daf48562bf23caf1371ceaf2e015cda | 086cebac7af08c923428df07eeb0d61d6607b0f1 | refs/heads/master | 2020-04-02T10:49:17.794872 | 2019-02-22T06:22:18 | 2019-02-22T06:22:18 | 154,356,770 | 0 | 0 | null | 2019-02-22T06:22:29 | 2018-10-23T15:55:57 | Python | UTF-8 | Python | false | false | 13,621 | py | import csv
import os
import numpy as np
import math
from matplotlib import pyplot as pl
from matplotlib.cm import ScalarMappable
from matplotlib.collections import LineCollection
from matplotlib.colors import ListedColormap, BoundaryNorm
from matplotlib.image import AxesImage
from matplotlib.colors import Colormap
impo... | [
"andrewdbolton@fas.harvard.edu"
] | andrewdbolton@fas.harvard.edu |
163d879cce2fa6be3f3d3b826742fd7b5d51535d | ce105dfbcb2acb78ba19f3410d87249a75eecbd9 | /diskAnalysis/code/dataProcess.py | 7ffc0ecdb1a89c8b0b058acef92d0db9da475170 | [
"MIT"
] | permissive | CEfanmin/DataMiningProjects | 8209670f65332681d0de39ba6e702077a7ab4602 | b6375f542c68c0001ae2971dd7e8046a0b4afc7a | refs/heads/master | 2021-04-06T02:05:52.868605 | 2020-02-29T03:41:33 | 2020-02-29T03:41:33 | 124,988,979 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | import pandas as pd
import numpy as np
discfile = '../data/discdata.xls'
transformeddata = '../data/data_processed.csv'
data = pd.read_excel(discfile)
data = data[data['TARGET_ID'] == 184].copy()
data_group = data.groupby('COLLECTTIME') # group by time
def attr_trans(x):
result = pd.Series(index = ['name','us... | [
"fanminUESTC2015@163.com"
] | fanminUESTC2015@163.com |
1c6e722d64c3b47788779bd4a161402b059675a7 | 54f517faa85b42c3aa66fd84803d9d9c2dd5dcc9 | /main_test.py | d75f1dd940332433218877a60348addb0ed3626e | [] | no_license | dbw0707/League-Realtime-Stats | 0213d14dd7e64c6b3c6d5b0093507bc7cce886b9 | 6c81368a8f83f6be1510814a4024b3e2cdb7f680 | refs/heads/master | 2021-01-16T19:49:16.491974 | 2016-11-05T11:14:02 | 2016-11-05T11:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,684 | py | answers = [[0,0,0,0,0,0],
[0,0,0,0,0,0],
None, #[0,0,0,0,0,0],
[0,0,0,0,0,0],
None, #[0,0,0,0,0,0],
None, #[0,0,0,0,0,0],
[0,0,0,0,0,6],
[0,0,0,0,0,25],
None, #[0,0,0,0,0,29],
[1,0,1,0,0,38],
[3,0,2,0,0,43],
[3,1,2,0,0,73],
None,
[5,3,4,1,0,95],
None, #[5,3,4,1,0,... | [
"channelcat@gmail.com"
] | channelcat@gmail.com |
85c59467d4ea7407d703fe8e6730765c9bcd21ae | e9cff333ef447fcee1e05a9bfdb7a5f237a6fff4 | /contacts/contacts_register/models.py | 0a49036e944c14031ff4a4a3fbef49e7aff74a9c | [] | no_license | williansVarela/Coding4Hope | 76c7310680920cd28e379c5af23d6da382a94aa3 | 94afde1690b4c236a7f1c7c84537f2ba1b46f1ca | refs/heads/master | 2023-01-07T18:43:01.277067 | 2020-02-09T19:27:44 | 2020-02-09T19:27:44 | 185,406,045 | 0 | 0 | null | 2022-12-27T15:35:29 | 2019-05-07T13:18:28 | JavaScript | UTF-8 | Python | false | false | 3,473 | py | # -*- encoding:utf-8 -*-
from django.db import models
from core.helpers.states import STATE_CHOICES
from django.db.models.fields import CharField
from contacts.contacts_register import validators
from django.utils.translation import gettext_lazy as _
class StateField(CharField):
"""A model field for states of Bra... | [
"willians.varela@gmail.com"
] | willians.varela@gmail.com |
030a38dc6d98d999d4eca98b791dc37ac4de3c1a | 23ca0a8a80f8c33062eb1111d80a4c5079be584d | /NNEvol/get_best_nn.py | e8fbc569564867e34e1942aa193d13486328427f | [
"MIT"
] | permissive | cvazquezlos/NNEvol-python | 7a46cd335f069407b8ab4992d9efa0cc6b4635ea | 80448e09510c92580bae03ad8b528aa878b14092 | refs/heads/master | 2020-07-04T21:00:42.685301 | 2019-08-16T18:42:11 | 2019-08-16T18:42:11 | 202,415,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py |
def get_best_nn():
return(None) | [
"c.vazquezlosada@gmail.com"
] | c.vazquezlosada@gmail.com |
1ae79732267f641f96f93f94b01d586fa1104bb1 | 64931dd310d19144683d59cd81e978e5443e1b77 | /hw1/targetDirectory/bin/wheel | 5d07f6b250801ba3d1ca61afe54197de36d05dbe | [] | no_license | aviclu/nlp-hw | ecf8c2b1a45128f853ed6754fd223c395b4bd429 | d498af8bf5a99b4a631dc6a8296a6ac411175bcd | refs/heads/master | 2021-06-18T05:09:36.828879 | 2017-06-10T11:02:05 | 2017-06-10T11:02:05 | 86,624,138 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/avi/PycharmProjects/nlp/hw1/targetDirectory/bin/python
# -*- 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())
| [
"avi.c33@gmail.com"
] | avi.c33@gmail.com | |
b2a8de733acb54a5ce4f9a5e8e418f73e8cf730f | 73935ee1cade901b096f917f525401dcd2377382 | /ex088.py | 03d371dc1aab1a1e057842c052ac74c4f74e0bdc | [] | no_license | Miguel-Bit-Debug/Curso-em-Video-Python | 799d4fe522597c6034ffb8b25881d9452507235a | 2f3724d6ba92632fdffc62b59ac5a651b9a7af24 | refs/heads/master | 2022-09-22T03:58:56.651476 | 2020-06-03T17:17:22 | 2020-06-03T17:17:22 | 269,121,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | '''from random import randint
lista= list()
jogos = list()
print('-'*30)
print(' JOGA NA MEGA SENA ')
print('-'*30)
quant = int(input('Quantos jogos você quer que eu sorteie? '))
tot = 1
while tot <= quant:
cont = 0
while True:
num = randint(1, 60)
if num not in lista:
lista.ap... | [
"migueldossantos011@gmail.com"
] | migueldossantos011@gmail.com |
0fd37f5fb8fc727399b6e77b188479c7e0407599 | 05b6dd8b46d5dbafbe2ac641223498efa4e7dd5e | /chamar_telas.py | c4ee2823def497225dffad9b2b14b4e2638d8c40 | [
"MIT"
] | permissive | Natanack/sistema_hotel | 5a3237ed77529a627ebbf0fed860a023fbf90627 | 581818c593b520017a00220e1df515c51732bb73 | refs/heads/main | 2023-03-31T21:47:57.789672 | 2021-04-09T08:15:39 | 2021-04-09T08:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from frm_cadastro import *
from frm_menu import *
from efeito_menu import *
class Chamar_telas(TelaCadfuncionario,
TelaMenu,
Efeitos_menu):
def telacadastrofuncionario(self,event):
self.Wcadfuncionario()
def telamenu(self,event):
self.Wmenu()
def tela_vi... | [
"nicolassilvabispo@gmail.com"
] | nicolassilvabispo@gmail.com |
f038abaec86c975b455f314fe8312b6fb4f3a83f | 37930870719caede967fdf6905c032e22d086e8b | /scripts/imaging/simulators/instruments/vro.py | 0990c9c9733733002ed6eb4a3accc03e6b77e72d | [] | no_license | Cywtim/autolens_workspace | cbede944c0f85ee95cd7362fee957ef77e701280 | da40cafee8dc26e5d8b1041888fb280598e74a5e | refs/heads/master | 2023-04-05T14:22:06.091992 | 2021-04-15T20:29:28 | 2021-04-15T20:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py | """
Simulator: VRO
==============
This script simulates `Imaging` of a strong lens where:
- The resolution, PSF and S/N are representative of the Vera Rubin Observatory imaging.
"""
# %matplotlib inline
# from pyprojroot import here
# workspace_path = str(here())
# %cd $workspace_path
# print(f"Working D... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
a92d28836676c2ebdd4e48ad6ba6b45f2ddd5ddd | fd0eecb6d4f12eb326030c2f64892c6845668c4f | /docs/files/ros-service-call-logger.py | 69929603c94693f175fcbc0234197cc7350d0cb4 | [
"MIT"
] | permissive | gramaziokohler/roslibpy | 599eff049caa72ca0f23dbc8e4058e051e66556b | 55e8f396f9e7b5d5669f6a31c2ed8d9bc33c3400 | refs/heads/main | 2023-08-31T22:57:32.502924 | 2023-03-29T14:52:31 | 2023-03-29T14:52:31 | 119,359,521 | 245 | 58 | MIT | 2023-08-29T14:22:35 | 2018-01-29T09:13:24 | Python | UTF-8 | Python | false | false | 333 | py | import roslibpy
client = roslibpy.Ros(host='localhost', port=9090)
client.run()
service = roslibpy.Service(client, '/rosout/get_loggers', 'roscpp/GetLoggers')
request = roslibpy.ServiceRequest()
print('Calling service...')
result = service.call(request)
print('Service response: {}'.format(result['loggers']))
client... | [
"casas@arch.ethz.ch"
] | casas@arch.ethz.ch |
79762f42c7ff156c13cedc1a644c835fa3a4d198 | 02c3bb4feb5b6b1d015c0aada5d8eacad24b625d | /testQuChong.py | 2d907442354a98f9a3e4b7f5175ec4c0fad24f15 | [] | no_license | kongcheng123/testPy | 38fbded0ef9f4e7591d9b86df92c311a46a63f0a | ec101868d3c0ee865a9d0e87397d39be6ea7b75a | refs/heads/master | 2021-01-21T20:47:30.080423 | 2017-05-27T02:04:10 | 2017-05-27T02:04:10 | 92,282,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | f = open('result1.txt', 'w')
a=f.read()
f.close()
b=a.split(',')
print(len(b))
s=set()
for i in b:
s.add(i)
print(len(s)) | [
"1175642794@qq.com"
] | 1175642794@qq.com |
f938579b102c3430a04285ef527e77d9ecd6223d | 860386754e55259f06f90a0bd32f92af4a52357d | /app/wsgi.py | b3871770f8a5744c5a142feb20ecbaa04b0e4f68 | [] | no_license | DanielDiaz36/university | 7fdf1f625410feddfef1f0eb4552cd639a215dec | a312b440d5f96ad43ee08447bdd42fe9182b8e42 | refs/heads/main | 2023-07-26T04:37:34.907164 | 2021-08-26T01:20:47 | 2021-08-26T01:20:47 | 399,302,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for university project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"daniel@outboss.io"
] | daniel@outboss.io |
a2f3d7326ac2f4376afad7202c9b77260066c46e | 58b2ff55c16cfc1e69623548d128633a1cc31b2f | /app/forms.py | a476d732df8ffd8b1bad74fa6c83ff8fad8e04ff | [] | no_license | tonitiffy/info3180-lab3 | 65621ccd12fed837c3d74e2ae9b0bb31a7feb19d | bd075942a4a00d0266412a1a141a4b332e9104cf | refs/heads/master | 2021-01-10T02:42:31.718404 | 2016-02-20T18:48:05 | 2016-02-20T18:48:05 | 51,307,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | from flask.ext.wtf import Form
from wtforms.fields import TextField, TextAreaField
# other fields include PasswordField
from wtforms.validators import Required, Email
class ContactForm(Form):
name = TextField('Name')
email = TextField('E-Mail', validators=[Required(), Email()])
subject = TextField('Subject... | [
"toniannfitzgerald@gmail.com"
] | toniannfitzgerald@gmail.com |
c1259e4bc4ee652ec12d99537d6629ad831d102e | 186a43e179b4a151fe4fd56e64a09f489de0a397 | /kuaiip/df.py | c3306e4574465db8888b058fe085047b831a2511 | [] | no_license | yanpelcc/crawl_learning | 7aaa5b8bb2d91f6c5f0a38922785e0d527ccadd0 | d2c2ac03b32a5a52fe07c1a46e615b610269535b | refs/heads/master | 2020-05-20T21:15:37.254444 | 2019-05-14T06:56:53 | 2019-05-14T06:56:53 | 185,749,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | import pandas
import json
import sqlalchemy
with open('ip.json', 'r') as f:
data = json.load(f)
df = pandas.DataFrame(columns=['ip', 'port', 'ty', 'location', 'speed'])
for i in range(len(data)):
ndf = pandas.DataFrame(data[i])
df = df.append(ndf, ignore_index=True)
print(df)
mysqlInfo = {
"host": ... | [
"yanpelcc@users.noreply.github.com"
] | yanpelcc@users.noreply.github.com |
418193c25c1f63474e04879cad7ba0b523d4f840 | e640b7e13f21208e9b7ba0d3fb2241d7e23e605a | /pcmt/college/admin.py | f1dbc614a371cb632f187718c6e3f31412123f80 | [] | no_license | krishna201718/pcmt_version2 | d926c067f66f6eeccd8ce0abf96781aef8a2ffec | 0cc069ab1d1f502ea97cdf6ef81dc8255f4e8529 | refs/heads/master | 2023-03-14T07:54:31.974544 | 2021-03-08T17:16:28 | 2021-03-08T17:16:28 | 345,737,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from django.contrib import admin
from .models import Account,Subject,Admission, Student
# Register your models here.
class adminAccount(admin.ModelAdmin):
fields = (('first_name','last_name'),('email','password'),('phone','image'),
('department','recovery_email'),'is_superuser','is_admin','is_staff'... | [
"krishna201710@gmail.com"
] | krishna201710@gmail.com |
096bb71ad5680d33fc3f29b62529b27950b34a76 | 0a4e1d318f8433ff4c41f552f9d06caf9130e3b8 | /tyres/mongodb_config.py | 9e00b53dfe05b566c0420c8272b1cd2268a7c998 | [] | no_license | radoslawkrolikowski/tyres-web-scraping | 62b8068d4fe4e7d4f7aa9855880d172e091e6495 | b66bf5524e9a920bdfc8ef94838b50431b84afd2 | refs/heads/main | 2023-08-30T06:56:12.711018 | 2021-11-12T14:25:40 | 2021-11-12T14:25:40 | 427,379,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | # Configuration for the MongoDB
mongodb_uri = "mongodb://localhost:27017/"
username = "root"
password = "example"
| [
"radoslawkrolikowski4@gmail.com"
] | radoslawkrolikowski4@gmail.com |
0ae848ce6021338ca76b41642c06d05701fa3852 | eeaf6044e32f08f0a2be642eec42c02eefb408b5 | /test/tests_1_control_plane/test_101_control_plane.py | daa086226ae9ea234d6993a9e896e85bafccee24 | [
"Apache-2.0"
] | permissive | exoscale/exoscale-cloud-controller-manager | badd98974b2e1dd3142388897b9c5cdb34091b9a | 6c4848c1f30e89ce243491337415e18b7c4f8d8a | refs/heads/master | 2023-08-28T23:12:09.555716 | 2023-08-25T07:58:56 | 2023-08-25T07:58:56 | 259,358,825 | 13 | 4 | Apache-2.0 | 2023-08-30T06:48:41 | 2020-04-27T14:48:25 | Go | UTF-8 | Python | false | false | 1,510 | py | from helpers import reUUID, reIPv4
import pytest
@pytest.mark.control_plane
def test_control_plane_outputs(test, tf_control_plane):
# Test
assert "test_id" in tf_control_plane
assert "test_name" in tf_control_plane
# Exoscale
assert "exoscale_zone" in tf_control_plane
assert "exoscale_enviro... | [
"noreply@github.com"
] | noreply@github.com |
6f860965d73f9b4af089c53955b369cb48ef20d2 | 98b19e5110476c508602e4758074a3edbc76fcdc | /venv/code/my_web/wsgipython/ctime.py | 9eb46439c97c26eca6bdf2bd6b87365f92b550c6 | [] | no_license | shazhongcheng/python_study | 69e8390a2f0886ba04e3072886bc7b8bd540dfae | 569e0b570b30fc029342d12f4cb04166bfc09378 | refs/heads/master | 2020-04-18T01:31:53.683151 | 2019-02-01T14:05:19 | 2019-02-01T14:05:19 | 167,121,741 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import time
def application(env,start_response):
status = "200 OK"
headers=[
("Content-Type","text/plain")
]
start_response(status,headers)
return time.ctime() | [
"3066078467@qq.com"
] | 3066078467@qq.com |
ae13b663e3acdf342754042864b2d69cddffa895 | 2f96857fc008e2006511bd957a2992bbf09b29c0 | /User/admin.py | a45dbd3e3f255ffa8e60b27272c98327949744b3 | [] | no_license | LucasSoftware12/TarjetasApp | f994b1faf3287faa64553994b85b518742cccfa4 | c4635d6875a3dbb6bd18ee29d0486fbe6a0419b0 | refs/heads/master | 2022-12-13T09:42:36.842498 | 2020-09-14T14:43:37 | 2020-09-14T14:43:37 | 290,086,007 | 1 | 7 | null | 2020-08-26T02:15:50 | 2020-08-25T01:56:57 | null | UTF-8 | Python | false | false | 454 | py | from django.contrib import admin
from User.models import *
# Register your models here.
class usuarioAdmin(admin.ModelAdmin):
list_display = ("nombre", "email")
search_fields = ("nombre", "email")
class notaAdmin(admin.ModelAdmin):
list_display = ("titulo", "fecha")
list_filter = (
"fecha",... | [
"lezcano65@hotmail.com"
] | lezcano65@hotmail.com |
76c69c71e2615a87f13d8098ced49b2265c3c1e8 | 3490103f9c3773a717b37c3e6bedc88b9cd83cd2 | /setup.py | dd45809284ae6bf607d2dff2a2b681e1afbcbacd | [] | no_license | vuchau/django-project-template | 66cd4bf08c4b61be53d8aaed5e34d48b54901682 | 2510e82d50a705429cda96d7912d5056313c29b9 | refs/heads/master | 2021-01-18T08:05:53.465031 | 2015-01-24T22:12:12 | 2015-01-24T22:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from setuptools import setup
from distutils.core import Command
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from django.conf import settings
settings.configure(
DATABASES... | [
"ben.welsh@gmail.com"
] | ben.welsh@gmail.com |
33d4f76931221189b511c5a544f66593d45d4a9e | 0b6036b56a170f476e6dc0aaa5785fb042988ad6 | /registration/views.py | 94b5d1b85dcf5f9524bed909aeea8d4723689b80 | [] | no_license | aaroths/GR | fa526d78e4f4c18f5d06bbba9758f419d53614c2 | fc0f71004b991b75daa66039f6a45917181738df | refs/heads/master | 2021-01-25T12:30:23.324356 | 2018-04-15T17:58:14 | 2018-04-15T17:58:14 | 123,473,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | from django.shortcuts import render
from .forms import SignUpForm
from . import views
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import login, authenticate
from django.shortcuts import render, redirect
def signup(request):
if request.method == 'POST':
... | [
"aaroths@gmail.com"
] | aaroths@gmail.com |
6c440f2e0b35c70b892bf9b058d977aa4fb95de1 | d494d243c8ed2acf85dfc9bc8d1285ddb52be681 | /Cukes/californicusQueryFunc.old.py | de4b552c6cedf73087e979727d20098d656a49da | [] | no_license | WayneHajas/AnalysisPrograms | 9bf38bea06f15a435ee7029cd949d88fd130fa71 | c63fa709cc0a1d9f74ef12ec38b5da7c115c236b | refs/heads/master | 2021-01-21T22:05:41.926538 | 2019-08-01T19:03:20 | 2019-08-01T19:03:20 | 95,162,216 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | #Functions to make queries specific to californicus (commercially harvested species of sea cucumber). There are corresponding units for other animals.
from numpy import log,exp
from numpy.random import normal
def QnumDepthCount(key):
result= 'SELECT Densities.QuadratNum as QuadNum, '
result+='iif (Densities.C... | [
"wayne.hajas@dfo-mpo.gc.ca"
] | wayne.hajas@dfo-mpo.gc.ca |
de75f61ece9ff3c35b56aa35f82831f0e7362484 | 329c2e756602cb825eb3beb6727ccfd3795fc7dc | /Algori/day8_stack/괄호검사.py | 3dba6ce904055e51271b34741039c166df5bdb56 | [] | no_license | kshm2483/ssafy_TIL | 9d13bf808c350565293f881de7bace366771ab16 | b579710180af1cd435771a64015aebb8fdeecd0b | refs/heads/master | 2020-04-11T21:13:37.976944 | 2019-05-09T09:02:41 | 2019-05-09T09:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import sys
sys.stdin = open('괄호검사_input.txt', 'r')
T = int(input())
def stack(text):
s = []
for i in text:
if i == '(' or i == '{':
s.append(i)
elif i == ')':
if len(s) == 0:
return 0
elif s[-1] != '(':
return 0
el... | [
"kimsuhan2483@gmail.com"
] | kimsuhan2483@gmail.com |
d4587f5e0c35d9fd2982fbc843242917cc1074ab | 2e713d54dcbb93bee85859d9bb61460f1373b2a4 | /lms/settings.py | 3edbe8b8cb1ee82d47d3c355f185bd9b4e98dff8 | [] | no_license | soumya0208/LMS | 76c1c9de60bdac31594dd92c9da771144b1947f9 | 65a4bf758f7dd53cbcac94537944e31cf4fa264f | refs/heads/main | 2023-05-22T16:59:51.635182 | 2021-06-09T05:10:14 | 2021-06-09T05:10:14 | 375,230,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | """
Django settings for lms project.
Generated by 'django-admin startproject' using Django 3.1.2.
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... | [
"noreply@github.com"
] | noreply@github.com |
62bf667c247a7a3c3591ecfb1b0a4910ea325912 | 27e21b20dc8ec5ee5316e07e27bb8495bb8cce7e | /main/views.py | b427eae6622196b835c4b49926be794fde4e2eab | [] | no_license | Wofo24-2020-Backend-ML/sentimentsanalysis | 1008120e9bb567f93645661f73e1f38495ecb710 | 36f69940e52c067be7bb83da0196e2055e9b324c | refs/heads/main | 2023-06-19T21:00:56.097869 | 2021-07-18T13:46:30 | 2021-07-18T13:46:30 | 387,183,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | from django.shortcuts import render
from .apps import AisentimentanalyzerConfig
from django.http import JsonResponse
from rest_framework.views import APIView
from .serializer import MessageSerializer
from rest_framework.response import Response
from rest_framework import viewsets
from django.shortcuts import render, re... | [
"glamupwofo@gmail.com"
] | glamupwofo@gmail.com |
39b3bd4eb9d4133e631e178168810629a520cc70 | 7c37ddc23013c49e6870a2bbd135a223a60107f8 | /manara.py | d940d673e2f1de7de3bd1960f65f0bf3ef180cad | [] | no_license | onigumagawaranomaru/manara | f29f922e7a5ba64a1223d99b186c7485d38d471f | 9322653a1fbaabd0df63071d6cf2c4ff211cd968 | refs/heads/master | 2021-01-10T21:36:52.814872 | 2014-05-10T18:23:42 | 2014-05-10T18:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | print manara!
| [
"onigumagawaranomaru.gonza@gmail.com"
] | onigumagawaranomaru.gonza@gmail.com |
5054722f77cbf5ae922e6c3031aedf0c560e0d48 | 40eb76a37031d84f6941909e97e4550faa4741ed | /multiple_linear_regression.py | 796c3f288257120232ee0a1b972010d763a5e519 | [] | no_license | CyborgAaron/Python-Dataset | 04e4890d7d182734022066061f0c08d2a9db3dca | 98a16da523f47cebef403870b5f1f0fc9358c89b | refs/heads/master | 2020-03-28T09:47:56.413286 | 2019-10-10T21:28:27 | 2019-10-10T21:28:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | # Multiple Linear Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('50_Startups.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 4].values
# Encoding categorical data
from sklearn.preprocessing import La... | [
"noreply@github.com"
] | noreply@github.com |
a1e6e1348803e6d405076ffca4ed431681dfba1a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02781/s238378799.py | 717eeb5e77e1996b57354ee94c94ba90683c2808 | [] | 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,263 | py | #!/usr/bin/env python3
#%% for atcoder uniittest use
import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))
#%%code
def resolve():
N=input()
K,=pin()
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7379e31f731d61e7652061f01f04ed5402b2e2a5 | b2e6cf196ad751ac47c1d5aa6b5cef15b03399c8 | /marco/portal/pages/migrations/0001_initial.py | 7732f862453f06b35c4f1f78c371179e8e51461f | [
"ISC"
] | permissive | MidAtlanticPortal/marco-portal2 | 02189d1be173cc478bc7d20e01385fe0fc3581a3 | b47e7bfa171e98a6cf499b2d411fc743caae91c2 | refs/heads/prototype | 2020-12-28T23:36:38.429460 | 2020-03-10T21:48:44 | 2020-03-10T21:48:44 | 44,760,325 | 4 | 1 | null | 2015-10-22T17:04:06 | 2015-10-22T17:04:05 | null | UTF-8 | Python | false | false | 738 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0008_populate_latest_revision_created_at'),
]
operations = [
migrations.Cre... | [
"eric@pointnineseven.com"
] | eric@pointnineseven.com |
e117f4ebaad212623fc1ca4c75b0ce427a5091d7 | 501d029b5db8132feb1877f5e0898af7a301c910 | /ex3_1.py | 360851c26a0bb82dc626470c97dff2bdb4d8a0da | [] | no_license | Everfighting/Learn-Python-the-Hard-Way | 092b050d53bfca0f5bbc91e41ba1aacce2880cc1 | 51723bfc22472284b3902161627331882f0dbc6f | refs/heads/master | 2020-04-05T22:55:02.550343 | 2017-08-22T06:13:36 | 2017-08-22T06:13:36 | 61,793,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # coding=utf-8
import math
# 利用math模块中的乘方进行计算。
print math.pow(5,2)
# 利用内置算术运算符乘方
print 5**2
# 地板除,如果是整数相除,结果只是整数,小数部分去除。
# 在python3.0以上版本/结果含有小数,//才是地板除。
print 5/3 | [
"cbb903601682@163.com"
] | cbb903601682@163.com |
dfd704aed47f4ac27405634cdf02cbe9549a7b25 | ac07b318d80334852e7cfc0ceb3f1c5fbb9abecd | /judge-engine-python-support/algohub/binary_tree_node.py | 047e16a25a7a6b4aca013ffbfc573495f55dd409 | [
"Apache-2.0"
] | permissive | algohub/judge-engine-languages-support | 31077cf1807e489b0ee01da79ca90982e4133788 | 2c2adf8b5b362c0998f049a077264f6e65086350 | refs/heads/master | 2021-01-18T04:09:10.766940 | 2017-03-26T00:46:38 | 2017-03-26T00:46:38 | 85,761,695 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,797 | py | from collections import deque
class BinaryTreeNode:
def __init__(self, value, left=None, right=None, left_is_null=False,
right_is_null=False):
self.value = value
self.left = left # type: BinaryTreeNode
self.right = right # type: BinaryTreeNode
self.left_is_null =... | [
"soulmachine@gmail.com"
] | soulmachine@gmail.com |
ad8452aa80df9bf192b29494939440d87bd2230d | 9a2b9a3873984e9f99cdc92be7d98af279fae36b | /app/users/locusts.py | c3021a34c5118e8f3272dba542cf12d9d34e453e | [] | no_license | jeonyh0924/celery-test | 4bf3832ef5e4175c7615051ccaefa131b65a01af | aad15232141d1f2ad69c5438030e9fcd707b6efa | refs/heads/master | 2022-11-26T05:21:48.885913 | 2020-08-06T11:05:49 | 2020-08-06T11:05:49 | 284,411,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import random
from locust import HttpUser, task, between
class QuickstartUser(HttpUser):
wait_time = between(5, 9)
@task
def index_page(self):
self.client.get("/health")
def on_start(self):
pass
| [
"hungyb0924@gmail.com"
] | hungyb0924@gmail.com |
5ff224c5a83b48d8965777c204c778e754233a50 | ccb20aae3d6905022423af2e3852e153597c5298 | /treasure_hunt/game/migrations/0011_auto_20161016_1842.py | 60adf743a777037bc2bda8e9f9f7dc3af8a1328c | [] | no_license | RISHIOMKAR/Treasure-Hunt | 382f5a46e6ac418d746aade39a6d80521e6cc6a4 | 9f5d356991d5da1adb091d4d6415a16f4a011d4f | refs/heads/master | 2022-11-28T15:30:11.753568 | 2020-08-10T14:05:32 | 2020-08-10T14:05:32 | 286,455,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-16 18:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0010_userinfo_current_level_opened_questions'),
]
operations = [
migra... | [
"53428556+RISHIOMKAR@users.noreply.github.com"
] | 53428556+RISHIOMKAR@users.noreply.github.com |
9c7448a6d0fadc8648909022cb6e4098d253aaae | 0967a811128945fd7fa731e4c986c4a832168519 | /backend_flask/bin/pyrsa-decrypt | dec9745c3178967e89f8f141d95efc6700c2bc34 | [] | no_license | Nag729/itunes-visualize-app | e40baa125b57b271c4c912a2fe6d38c4e13df23e | 17b243dc418212a34424a645aec8a278fb1da4c2 | refs/heads/master | 2021-08-16T17:13:56.028166 | 2020-09-22T05:40:32 | 2020-09-22T05:40:32 | 223,587,022 | 0 | 0 | null | 2019-11-23T12:59:01 | 2019-11-23T12:44:47 | null | UTF-8 | Python | false | false | 269 | #!/Users/shungo/Desktop/Apps/itunes-visualize-app/backend_flask/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
| [
"nagamaaaaachi@gmail.com"
] | nagamaaaaachi@gmail.com | |
8490b6b2ead555d8a8e7c6d0de4e24eab36b2e40 | 1361a6348f0bfdefc7863917730523311f4cf07a | /setZeroes.py | bf95f94ff527ada11d6c87625876da03294276ce | [] | no_license | valuntiny/leetcode_string_ii | 6bcfe22cc01d561a72fab8d341508cf1cf667d6a | 182f7d96ad91f0e3ab0bfba1a8c5306df7d512a6 | refs/heads/master | 2020-04-07T04:24:50.620204 | 2019-06-24T18:07:35 | 2019-06-24T18:07:35 | 158,054,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | '''
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place.
'''
class Solution(object):
def setZeroes(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
flag_row = [... | [
"459201296@qq.com"
] | 459201296@qq.com |
b797535219742d7c8b142f1d14633ac6f9165b4d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/1275.py | c8fd42dd2af78c90831cb28164d298f384b5d870 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import os, sys
import itertools
lines = [line.strip() for line in open("%s" % sys.argv[1]).readlines()]
lines.reverse()
cases = lines.pop()
for case in range(int(cases)):
lines.pop()
lowers, highers = [], []
N = sorted(map(float,lines.pop().split(' ')))
K = sorted(map(float,lines.pop().split(' ')))
for i, n in enu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5e7bfbedc16acf4ca6372e3a2381661d385fbfa6 | 092894284a5c5f29ff7d9323b854eb6781c64fab | /Res/Prefabs/GameObjects/player/ball.py | d9a59ff63f5dc80128a7526049375b631cd7da2a | [] | no_license | sourenaKhanzadeh/breakoutgame | 4660809ceae23b7b1bf587cc1bd6f94141f3c16f | 87ee5933c6dde22f74ee22e5f40d016a4a4b22e9 | refs/heads/master | 2020-05-22T07:17:27.345601 | 2019-05-29T21:25:21 | 2019-05-29T21:25:21 | 186,262,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | from Prefabs.GameObjects.shapes.shapes import *
from Prefabs.GameObjects.bricks.bricks import Brick
from setting import *
class Ball(Circle):
def __init__(self, x=WIDTH // 2, y=WIDTH // 2, color=CC.RED, width=0, rad=10):
super().__init__(x, y, color, width, rad)
def move(self):
# go east if... | [
"soure@DESKTOP-6PVNFEF.(none)"
] | soure@DESKTOP-6PVNFEF.(none) |
92addd01fb60c32929e5a515f5a438f96f32715b | 560c5d8226d74969c3fb467efd1d26178562e15c | /blog_api/users/signals.py | dcc3fa9d8133adbb65fc08daa0e17af6aee7ccfc | [
"MIT"
] | permissive | beasyx0/blog_api | 17f47fb1537d4b7e53822bbff507740363d909cc | 8d984ee3f9b2b7ea35a847013743f236a1a67fdb | refs/heads/main | 2023-06-30T02:08:40.190270 | 2021-08-04T02:09:53 | 2021-08-04T02:09:53 | 358,662,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | from django.contrib.auth.signals import user_logged_in # user_logged_out, user_login_failed
from django.db.models import signals
from django.dispatch import Signal
from django.db import transaction
from django.dispatch import receiver
from django.shortcuts import get_object_or_404
from django.utils import timezone
from... | [
"b_easyx@protonmail.com"
] | b_easyx@protonmail.com |
eff753209513dfc927dc91a5466b6ddf7519166d | 98364abec1f798ed6352a1c0eda080371aacb28d | /Medium/729/729.py | fa51d5f4b2ef64dd9ed676a463da821bf4475276 | [] | no_license | GuoYunZheSE/Leetcode | 3d1b11d142734922acecf7ba5efbaf0f2ab26d81 | 45cabf05251711c6421c8c2ddbcc3fec9222f70a | refs/heads/master | 2022-05-01T05:03:20.694729 | 2022-04-27T04:10:33 | 2022-04-27T04:10:33 | 161,486,806 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | import bisect
class MyCalendar:
# def __init__(self):
# self.left=None
# self.right=None
# self.available=[]
# def book(self, start: int, end: int) -> bool:
# if (start and end) or (start==0 and end) :
# if start<=end:
# # First Book
# ... | [
"guoyunzhe.se@gmail.com"
] | guoyunzhe.se@gmail.com |
5fea536d49290dfdf967fc47ccb6aa04cf2376aa | ead99d7232d17724a928aa540340bc704497f5dd | /venv/Scripts/django-admin.py | e11992481ed11d17815674986e1512febcdbac3e | [] | no_license | st75033562/PyWeb | d8083bdebda7e6e49f858966aaa5a5009d5ffbb8 | ee1ab5255f170cc45a803ee72a3108c8e7a42ee5 | refs/heads/master | 2020-11-25T16:06:56.475540 | 2019-12-18T09:45:14 | 2019-12-18T09:45:14 | 228,748,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #!D:\workspaces\PyWeb\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"xxh@g3games.cn"
] | xxh@g3games.cn |
eaea8a930d85014a9bc9052075b4acb93f36c066 | 0defb5966a1af12c8dd8f927a65431b4d60349fc | /Python自动化运维/Chapter One/DNS/dns_test.py | 0ce21e403671b713a8889a397a5cb35d982ff325 | [] | no_license | qq412607705/Python_test | c47d9acdea8483e3eb38408bf12932129765a70d | c77e518f8faaa832fda83f86d2ed594667bebe47 | refs/heads/master | 2020-04-18T06:38:15.065963 | 2019-01-28T02:40:34 | 2019-01-28T02:40:34 | 167,329,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# author:Mr.Chen
import http.client
import os
import dns.resolver
iplist = [] # 定义域名IP列表变量
appdomain = "www.google.cn" # 定义业务域名
def get_iplist(domain=""): # 域名解析函数,解析成功IP将被追加到iplist
try:
A = dns.resolver.query(appdomain, 'A') # 解析A记录类型
except Exceptio... | [
"412607705@qq.com"
] | 412607705@qq.com |
60aeb587cbe237dabd0caa7bc970f949ed692157 | 6f98c76b122636ac3c369000b60070690bfc320d | /demo.py | 785e225a56c74a294d66e1719aaa9629ea6f5d88 | [] | no_license | moliqingwa/chineseocr_lite | c659acfe8e553cdffeabf2571da2d971e8cf11e1 | ba6fdfd3c0e9ca0b095a27725a1c43d5b050fbf2 | refs/heads/master | 2021-04-04T16:32:15.560319 | 2020-04-01T06:21:16 | 2020-04-01T06:21:16 | 248,471,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,358 | py | # -*- coding: utf-8 -*-
import os
import glob
import re
from PIL import Image
import cv2
import numpy as np
import xlsxwriter
from model import text_predict, crnn_handle
headers = ["phone_model", "platform", "browser",
"AudioContext", "webkitAudioContext", "mediaDevices", "mediaDevices.getUserMedia",
... | [
"715609905@qq.com"
] | 715609905@qq.com |
f6941b91993da142f1cadb172bef29c1c24d2b69 | b7ceaae031b082dafb5044bea70fb2b7a3b85016 | /arp_spoofer.py | 5b8fc1b91b160cd2ca32a1cbd1cfc2267ea06c8b | [] | no_license | d4redevil/kz-net-hack | f743e99ffa41eac66c66f1fc7be9bfc6c1f66be0 | 168ace53aac97065861040fbce117621ac62b0cb | refs/heads/main | 2023-04-20T07:11:22.945902 | 2021-05-03T17:23:28 | 2021-05-03T17:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,432 | py | import New_Nscanner as scanner
import scapy.all as scapy
import time
import os
import subprocess
import re
victim_ip=None
victim_mac=None
router_ip=None
attacker_ip=None
router_mac=None
def intel_gathering():
# it is a system command to get information
call_output = subprocess.check_output(
["ip",... | [
"noreply@github.com"
] | noreply@github.com |
7c573466c7626d57389f1b8b68c257affd3f7dbc | f0bd86b187fef18409d4c55e5760b17ee549ce13 | /model/seq2seq_transformer.py | 92934239576698eb48edc982811a459c38532e5a | [
"MIT"
] | permissive | wyu-du/MultiTurnDialogZoo | da095953f4cbc3c907bbf2600734d426f4651da8 | ac6a5d4fee31aef9db86ffef599d70f099d93897 | refs/heads/master | 2022-11-17T07:13:38.403151 | 2020-07-19T21:00:20 | 2020-07-19T21:00:20 | 273,569,164 | 0 | 0 | MIT | 2020-06-19T19:14:24 | 2020-06-19T19:14:24 | null | UTF-8 | Python | false | false | 27,364 | py | #!/usr/bin/python3
# Author: GMFTBY
# Time: 2020.2.7
'''
Seq2Seq in Transformer, implemented by Pytorch's nn.Transformer
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
import math
import random
import numpy as np
import pickle
import ipdb
import sys
import types
im... | [
"18811371908@163.com"
] | 18811371908@163.com |
f5b80ad74e9f4b8489d21edb746c9938cea79745 | 43f3b7e4a5b7a1210ffa72c5a855d7542d68290d | /Results/Python/Array/134.py | 69581275b8fe467b583b69841182a4af0fcb49ac | [] | no_license | bar2104y/Abramyan_1000_tasks | 38e86e119245db4bac0483583cc16d8793d5689c | e0bf9f5e73d90b8eca3fe5ba7913ed12f18d989a | refs/heads/master | 2021-06-05T18:05:09.788453 | 2020-06-30T19:52:31 | 2020-06-30T19:52:31 | 150,898,700 | 5 | 2 | null | 2018-10-02T17:16:28 | 2018-09-29T20:01:33 | Python | UTF-8 | Python | false | false | 569 | py | import math
from genarr import genRandomArr
x,y = [], []
n = int(input("N: "))
# for i in range(n):
# x.append(int(input("X: ")))
# y.append(int(input("Y: ")))
x,y = genRandomArr(n,-10,10), genRandomArr(n,-10,10)
def distanse(x1,y1,x2,y2):
return(math.sqrt((x2-x1)**2 + (y2-y1)**2))
maxd = 0
for i in ra... | [
"bar2104y@yandex.ru"
] | bar2104y@yandex.ru |
f093d2647344364fb4e02dc8c1bb1f468e735380 | ec9826427f7060d72dfb3f2d8f0bbfb386484d36 | /wealthbot/ria/migrations/0003_auto_20190112_0955.py | fd07175f35a73648cee903e71812c4853e4eb779 | [
"MIT"
] | permissive | eefelix/django-wealthbot | eb6ac71807eafa71130121035457508e6aeaf7f1 | f33a194cd4a953b371abf7f865754b2855e640e0 | refs/heads/master | 2020-04-18T22:08:15.278864 | 2019-03-03T11:49:06 | 2019-03-03T11:49:06 | 167,785,157 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | # Generated by Django 2.1.4 on 2019-01-12 01:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ria', '0002_riskquestion'),
]
operations = [
migrations.CreateModel(
name='RiskAnswer',
... | [
"eefelix@yahoo.com.hk"
] | eefelix@yahoo.com.hk |
fc717f0194925a31c30c22421f8fd0d344685fb7 | 14a6662a1b0a6d113dfb724382e3a7e2735bbbac | /Aula04/src/app.py | a75434ebdf760bdece64d6668611e4858a65f6f3 | [] | no_license | Karagul/streamlit_bootcamp | c118c01d9bec354eaabb504c9fd1d59dc5c63c93 | 48fa703ce7a2d4ac003fe881220cb66d926f17ca | refs/heads/main | 2023-02-08T20:57:31.280465 | 2021-01-05T14:36:35 | 2021-01-05T14:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | import streamlit as st
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
def carrega_dados(caminho):
dados = pd.read_csv(caminho)
return dados
def grafico_comparativo(dados_2019, dados_2020, causa, estado="BRASIL"):
if estado == "BRASIL":
total_2019 = dados_2019.groupby(... | [
"noreply@github.com"
] | noreply@github.com |
56bde166d77c9e8bbc7da94b83ef54d51a9c393f | 7c88f2d6446eefda86c44414368254b3a4ae1a28 | /control_ws2/build/jaco-ros/kinova_moveit/inverse_kinematics_plugins/ikfast/j2s7s300_ikfast/catkin_generated/pkg.installspace.context.pc.py | 68419dbd90c016f90c83ab1e8304f91f79e7e1e4 | [] | no_license | jackietom/jaco_robot_arm_control | d60f693e06ed9c8f38b85e028075fa71c0313dbf | 2debfc6c843141b7ee0ff35ff0554b8f35743ec3 | refs/heads/master | 2020-03-26T23:57:15.569271 | 2018-08-22T19:36:12 | 2018-08-22T19:36:12 | 145,580,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "moveit_core;pluginlib;roscpp;tf_conversions".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NA... | [
"18813009256@163.com"
] | 18813009256@163.com |
a1e485a39c453c99a40f6f2d40cad085fe060fb2 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/nss/nss/RDN.py | 0e53aeab1e6b2f125e445f912c8e9778bbce5a23 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,870 | py | # encoding: utf-8
# module nss.nss
# from /usr/lib64/python2.6/site-packages/nss/nss.so
# by generator 1.136
""" This module implements the NSS functions """
# no imports
from object import object
class RDN(object):
"""
An object representing an X501 Relative Distinguished Name (e.g. RDN).
RDN object... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
1cd1598641d1f28e8306b4ba842cf1ae32f73203 | 1203f09e6ce21db79eefbb7c0226a54a21e2286b | /chap06/ex01.py | e430f38a2b3282c1ca6a34dccf6b6f7fc94c2686 | [] | no_license | dataholicguy/how-to-think-like-a-cs | 1d19f489d5048d3b6a7f2f99b364d54cbadfadfb | 4ce2474a0e23d66c5c4d24cac026393beff82229 | refs/heads/master | 2020-07-01T15:26:06.744654 | 2019-08-19T09:14:52 | 2019-08-19T09:14:52 | 201,210,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import sys
def test(did_pass):
""" Print the result of a test. """
linenum = sys._getframe(1).f_lineno # Get the caller's line number.
if did_pass:
msg = 'Test at line {0} ok.'.format(linenum)
else:
msg = 'Test at line {0} FAILED.'.format(linenum)
print(msg)
def test_suit():
... | [
"dataismgeek@gmail.com"
] | dataismgeek@gmail.com |
09275b427690ef44e7430628700f07f44cb8824f | 627b050148e767be12cfc7dfa81b1c6368cf3104 | /LeetCode/Apr20Challenge/Week4/day28_first_unique_number.py | dbac91abe928bd0387b8a926467a0d6759e87d98 | [] | no_license | imn00133/algorithm | 6ce5d10491bde853eb9e4d6a69bde3124723875c | 40d7bbe6e3cfe932122c32a9f730f951e948ef2d | refs/heads/master | 2022-08-13T20:26:06.200622 | 2022-07-31T08:54:26 | 2022-07-31T08:54:26 | 231,281,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | #
# Solved Date: 20.04.28.
import collections
class FirstUnique:
def __init__(self, nums):
self.unique = None
self.next_unique_queue = collections.deque()
self.manage_unique = collections.defaultdict(int)
for number in nums:
self.manage_unique[number] += 1
... | [
"imn00133@gmail.com"
] | imn00133@gmail.com |
e02183fe9f457f2faa98bb736230642b02438de5 | cbfc52daa3566ae9e0f730854e9a5792801889e4 | /lib/maxfield.py | af61aa1811a665db5a7c72aa2df0471a9adff17f | [] | no_license | stunna/maxfield | d7eb8cb611d9b3e71308565955d5aa323f9560a1 | f9cd849e0948a4a198601213c646f1d6c8af2a05 | refs/heads/master | 2020-04-05T23:40:56.219903 | 2015-05-28T22:05:38 | 2015-05-28T22:05:38 | 37,037,346 | 1 | 0 | null | 2015-06-08T00:07:28 | 2015-06-08T00:07:28 | null | UTF-8 | Python | false | false | 6,310 | py |
import geometry
np = geometry.np
from Triangle import Triangle,Deadend
'''
Some things are chosen randomly:
Each triangle's splitting portal
Each triangle's "final node" (unless determined by parent)
This is the number of times to randomly rebuild each first generation triangle while attempting to get it righ... | [
"jonathanpeterbaker@gmail.com"
] | jonathanpeterbaker@gmail.com |
58fb37d67d8c897e090dfd050dc6b721522c7f64 | 27b32ff2bdc70302e1dd4c74982d23de2e572adc | /all/migrations/0001_initial.py | 4687cd82454dae0224f5d9e793fb81af145c2a07 | [] | no_license | waylight3/gk | 1bc6da9ec06f4ca49d5f2a5cd31a2e4679d0f582 | 3f068f4a6774aa2549e69ac701301defd96b639c | refs/heads/master | 2021-04-25T19:48:41.900258 | 2017-12-07T14:03:42 | 2017-12-07T14:03:42 | 109,076,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,822 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-27 15:46
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"waylight3@naver.com"
] | waylight3@naver.com |
a669bc69cb66d9ef0348342ab4523d913845ef3c | ca3a49676cdf1016b2d729f0432b451d35b7a281 | /human_eval/51b1be3f-d417-418d-9236-bf203e68cd76.py | 68a5863b1201739cd1b33a0edc4579baab2e15f8 | [
"MIT"
] | permissive | SquareandCompass/code-align-evals-data | 3bb71b605316f56bb27466f23706a329f3fb4938 | 97446d992c3785d6605f1500b2c9b95d042e7b9c | refs/heads/main | 2023-06-19T12:47:56.277363 | 2021-07-21T00:22:56 | 2021-07-21T00:22:56 | 640,147,842 | 0 | 1 | null | 2023-05-13T06:22:30 | 2023-05-13T06:22:29 | null | UTF-8 | Python | false | false | 1,269 | py | ENTRY_POINT = 'check_if_last_char_is_a_letter'
#[PROMPT]
def check_if_last_char_is_a_letter(txt):
'''
Create a function that returns True if the last character
of a given string is an alphabetical character and is not
a part of a word, and False otherwise.
Note: "word" is a group of characters sepa... | [
"barnes@openai.com"
] | barnes@openai.com |
a3ff5ae077fa0186beeb670281863f6a2a99a6bf | 52df118e992ac4afcdb9c85e8c4690764d6cfe82 | /env/lib/python2.7/site-packages/asterisk/agi.py | e2da50f4fb4d3779c470a8e9f5e8a3dea50b2e67 | [] | no_license | psilikon/realtimeio_chart | 072c4009c40e7f8c6f8aa53498e36cbff5d00335 | d970aa25461db5ad16845e620b3622d52323dd40 | refs/heads/master | 2020-05-18T19:03:58.433508 | 2019-05-02T14:54:11 | 2019-05-02T14:54:11 | 184,597,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,567 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set et sw=4 fenc=utf-8:
"""
.. module:: agi
:synopsis: This module contains functions and classes to implment AGI scripts in python.
pyvr
{'agi_callerid' : 'mars.putland.int',
'agi_channel' : 'IAX[kputland@kputland]/119',
'agi_context' : 'default',
'a... | [
"shasteen.joel@gmail.com"
] | shasteen.joel@gmail.com |
c89e5d817ed332d23043d2c107f1ff905d3c95e5 | 11ffd9cd201f4441bef214cc962fcdd17a03fb66 | /problems/vendor_problem/vendor.py | 0a98244ca5a8bb32fe6a6bdd9c532c4ea5dac2b1 | [] | no_license | sierxue/bayesian_quadrature_optimization | 0079ef9d38c770330a232d80c5462ac346156934 | b2fbdfa4bd193af66458f9cf31d8f87cc2f07e99 | refs/heads/master | 2020-03-21T04:15:58.207221 | 2018-05-17T18:27:27 | 2018-05-17T18:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,281 | py | from __future__ import absolute_import
from scipy import special
import numpy as np
from scipy.stats import gamma
def simulation(x, runlength, n_customers, n_products, cost, sell_price, mu=1.0, sum_exp=None,
set_sum_exp=None, seed=None):
"""
See http://simopt.org/wiki/images/e/e8/DynamicSubsti... | [
"toscano.saul@gmail.com"
] | toscano.saul@gmail.com |
cb9ad7f3950ff6065752bffa32432288fbc57bc1 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/ti_.py | 41e20b589684d5f3162010636a3b247638095db8 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
67a8e024e53d7041f7109406e394418a30cabb10 | 6bd9d7679011042f46104d97080786423ae58879 | /1690/c/c.py | 05a66b00321f18a9b1c0841c33b880eda782958a | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 471 | py | from sys import stdin
def input(): return stdin.readline().strip()
def read_int():
return int(input())
def read_ints():
return map(int, input().split())
t = read_int()
for case_num in range(t):
n = read_int()
s = list(read_ints())
f = list(read_ints())
d = []
for i in range(n):
... | [
"qqbbnease1004@126.com"
] | qqbbnease1004@126.com |
a0e552e2d66d1e5f4a328c37f436812433ea0af0 | 752b89f9261554f5396f8a4012b854ed8ce555f4 | /OCV face detection in livestream.py | 0aacfa83b5ba62f7b1670d8a93bd4c0d28d8e221 | [] | no_license | Sanjeevkumar-kv29/ML---OPENCV-PROJECTS | 769173ccda84a91133c30c8b74fdbd5410f11b13 | ae40ed45df4d84a12af02edebdcb42e2607d185d | refs/heads/master | 2022-11-16T08:18:43.393404 | 2020-06-28T08:38:52 | 2020-06-28T08:38:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import cv2
facemodel = cv2.CascadeClassifier('frontalface.xml')
cap = cv2.VideoCapture(0)
while cap.isOpened():
re,frame = cap.read()
gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
detectedface = facemodel.detectMultiScale(gray,1.1,5)
for (x,y,w,h) in detectedface:
cv2.rectangle(frame,(x,y),... | [
"sanjeevkumar2904@yahoo.com"
] | sanjeevkumar2904@yahoo.com |
85688086942d562a451e3e4fd072dd6abec60e63 | 5e6e5912fe103189fffaecc4597f372228130f45 | /google/cloud/dataflow/internal/apiclient.py | d484c21edabbd120bf86b61691c9161a67a216a1 | [
"Apache-2.0"
] | permissive | CSberger/DataflowPythonSDK | 9cbeb0ce5cca17b8e1c2f17dc29a614d30934cb3 | b0ba0880c9af7fab482531da4f3faa9acf977aee | refs/heads/master | 2020-12-03T05:21:50.165815 | 2016-03-05T22:09:26 | 2016-03-05T22:09:26 | 53,224,899 | 0 | 0 | null | 2016-03-05T21:45:57 | 2016-03-05T21:45:56 | null | UTF-8 | Python | false | false | 35,031 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"silviuc@google.com"
] | silviuc@google.com |
03c3db34b0272b40a6e3af05e7a3e0b5ba38f7c9 | 9161a5b23893bd1ae888760b10127f6d0e2042b9 | /Bilder_Generator_Skripte/Bilder_vermehren.py | 430f66c379190c565c02f9f91670dad67ecd4666 | [] | no_license | WendaGu/ellipse-generator | ead55a90c82268f11ca161aaaba6ef6f5c506813 | 6a8264a737ec6774e0b283a1ee5a53bc248dced8 | refs/heads/master | 2020-07-27T03:43:42.300521 | 2019-09-17T22:12:08 | 2019-09-17T22:12:08 | 208,855,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,702 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# @Version : 1.2
# @Author : WendaGu
# @Software: Pycharm
# @File : Bilder_vermehren.py
import matplotlib.patches
import os,sys,shutil
import xml.dom.minidom
import skimage
from skimage import img_as_ubyte
import random
from random import choi... | [
"noreply@github.com"
] | noreply@github.com |
652c036d7197b03cf0d968255ce639a23479e8f0 | 457dd98bda3caa2aa96453644ea90394dabbbba1 | /school/class/forms.py | 69c54bf7696a5330eb5f426c1376398a4ec0e613 | [] | no_license | vuday006/school | 15beb21e008ad622a1689e2ffe81fe3c01250b21 | 9b41d98e897ede2f6e483124bc73d04dd5802ef9 | refs/heads/main | 2023-03-31T06:58:05.867606 | 2021-04-04T18:25:52 | 2021-04-04T18:25:52 | 354,616,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from .models import Student,Teacher,User
from django import forms
class Teacher_reg(forms.ModelForm):
class Meta:
model=Teacher
fields='__all__'
class LoginForm(forms.ModelForm):
class Meta:
model = User
fields=('username', 'password')
widgets={
'password':f... | [
"uday006@gmail.com"
] | uday006@gmail.com |
2d7bd97f101ce172b25d7f00c0db6177f28a14d0 | 334e1e9cea9f80a7bb25f9d4e0149fbefe0534b7 | /PythonCode/exerc1.py | cc04f9f816b55bf704da22db43ca5a887c5d530a | [] | no_license | AVogelsanger/Python | e706a5e3b2c18c6542108f3a54628c86f794d95e | b78e27f11d53a773f48bfbe135eb53f628540ab6 | refs/heads/master | 2020-04-15T03:43:45.557951 | 2019-01-14T11:51:23 | 2019-01-14T11:51:23 | 164,358,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 7 13:20:50 2019
@author: 748418
"""
nome = input("Digite seu nome: ")
idade = int(input("Qual a sua idade: "))
ano = (2019 - idade)
print (nome + ", como você tem " + str(idade) + ", então você nasceu em " + str(ano))
| [
"noreply@github.com"
] | noreply@github.com |
b1db52e476e7f1ade39cda5d0191f6c042142711 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/classvs_20200630154634.py | 8a7e8665bf8b3e3c22a42c56688dd4c01f2f0c85 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | class Person:
age = 0
# this is a constructor
def __init__(self,initialAge):
if initialAge > 0:
self.age = initialAge
else:
self.age = 0
print("Age is not valid, setting age to 0.. ")
def yearPasses(self):
self.age = self.age +1
retu... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2ba81ac7e68ccdc51721b133739af4e7135b4d02 | 47c87ade7e15b2cec1038d00329391f03aa89bb0 | /advene/util/website_export.py | dd0a419654d87195d5f12371bab6388c1eb88076 | [] | no_license | oaubert/advene2 | d3d5cf8ec6c5c3167d34cdb2011f3806fd40733f | 9ac68177a0e1ee8a38471d60f983aa234799a6ed | refs/heads/master | 2016-09-06T05:29:37.202461 | 2014-09-28T19:57:17 | 2014-09-28T19:57:17 | 2,771,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,789 | py | #
# Advene: Annotate Digital Videos, Exchange on the NEt
# Copyright (C) 2008 Olivier Aubert <olivier.aubert@liris.cnrs.fr>
#
# Advene is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | [
"oaubert@3fb6f576-06d4-0310-ad11-a4b695aa9f05"
] | oaubert@3fb6f576-06d4-0310-ad11-a4b695aa9f05 |
6cb4df15cc9e1061552a4d8c37ad129a49ec2695 | a1154d2abe33062917b0db6298e4a33f6a0bb2c2 | /chap5.py | 59eac209aacc2424e27b9fbd42ed912b8c712b2d | [] | no_license | jbbe/lang | bac4ef84bd4837f9ace5b2a69612aa8b30f2bff5 | efeb86b768ab68073f5e8c01f52d74d3d0b33558 | refs/heads/master | 2020-06-09T22:40:42.690646 | 2019-11-26T20:07:07 | 2019-11-26T20:07:07 | 193,520,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,138 | py | import nltk
from nltk.corpus import brown
# brown_news_tagged = brown.tagged_words(categories='news', tagset='universal')
# tag_fd = nltk.FreqDist(tag for (word, tag) in brown_news_tagged)
# tag_fd.most_common()
# # tag_fd.plot(cumulative=True)
# nltk.app.concordance()
# word_tag_pairs = nltk.bigrams(brown_news_tagge... | [
"jbbe@umich.edu"
] | jbbe@umich.edu |
ca558fb7c1542d8a31c2201706ddd1b15d043e8c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/series/4b461e5da45242b5971e42844d148b42.py | 99ea386f4fc3f7410b9f7ea347e65477581b406a | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 583 | py | def slices(digits, length_of_series):
is_series_longer_than_digits = length_of_series > len(digits)
is_series_less_than_1 = length_of_series < 1
if is_series_longer_than_digits: raise ValueError
if is_series_less_than_1: raise ValueError
def remove_first_element(L):
L.pop(0)
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
0700970f665ad69a9bc8466387feabd290602b99 | 9aeb6b803977b98cf9f325cb942beb54209224a1 | /migrations/versions/87a932d94f2b_added_field_image_to_user_table.py | 5fd58a0196e028f0d46d3041fd7e5dc064529759 | [] | no_license | DmPolikarpov/book_store | 65ca1097039561fb5d36fefb161491e78e897b2f | cb9dea58a6ba3116575fd19eecd4036591510f1c | refs/heads/master | 2022-12-11T06:52:04.283211 | 2019-05-14T17:18:21 | 2019-05-14T17:18:21 | 176,566,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | """added field image to User table
Revision ID: 87a932d94f2b
Revises: 5768de65b1c4
Create Date: 2019-04-26 19:22:32.185584
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '87a932d94f2b'
down_revision = '5768de65b1c4'
branch_labels = None
depends_on = None
def... | [
"mazaxist2@mail.ru"
] | mazaxist2@mail.ru |
f12654076d1f91eff74e060ecf6c9c3b0487d989 | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/predator/analysis/analysis_testcase.py | 2c001a931cc3aba51f1d550a485ba1f8e897dd97 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 5,668 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import copy
from libs.base_testcase import BaseTestCase
from libs.gitiles.change_log import ChangeLog
from analysis.type_enums import CrashClient
DUMMY_CH... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
eff65775206deff69af120d87fee00af307224cd | c3951a315415ed75e56651d1e8a53b2f8f963476 | /MetabEng-DB-master/get_PTM.py | 2d6bf073cca2789a1e735170788d8f8277df8f80 | [] | no_license | willchenko/ProteinSearchEngine | aee0e6daeb53193fe7aa113bfc4b9d59c2ffd700 | b95b32c118b6482ff3b01d3bd4846e9e616abb73 | refs/heads/main | 2023-04-11T15:38:13.810430 | 2021-04-26T19:08:20 | 2021-04-26T19:08:20 | 360,987,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,493 | py | #get Post Translational Modifications and sequences from unitprot_id
import requests
from bs4 import BeautifulSoup
import re
import numpy as np
def get_modifications(uniprot_id):
base_url = "https://www.uniprot.org/uniprot/"
url = base_url + uniprot_id + ".txt"
response = requests.get(url)
ts... | [
"noreply@github.com"
] | noreply@github.com |
4db681565b71e2d02636d8c2ff90e16398465c69 | 401ea01ffb848f1eabd8aa17690ec1ff5dc8e6bd | /test/test_self_user.py | 6ef6283a00a67b2ebbd837e2bb6a9c8afd01890c | [] | no_license | bbrangeo/python-api-client | 735acda3627d7a0ddd78ecb1e9617bb4082c9001 | c2481e0cd012a41aeceefdce289d48509540b909 | refs/heads/master | 2020-03-14T18:24:20.888631 | 2018-04-30T14:47:47 | 2018-04-30T14:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # coding: utf-8
"""
BIMData API
BIMData API documentation # noqa: E501
OpenAPI spec version: v1
Contact: contact@bimdata.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import bimdata_api_client
from bimdata_api_c... | [
"hugo.duroux@gmail.com"
] | hugo.duroux@gmail.com |
8fbcd0b6ec2056bf60c4aa77ad2e4e27507dec1f | 556a35688986c975b88d5a755c35aee18d600155 | /uniqlo_crawler_graphic_1/clothes_uniqlo_crawler/spiders/uniqlo_shirts.py | fe9e93ff9e4bd41373e666789c41fba40b898351 | [] | no_license | AshMohanty/-iru.co.util | fe0305baed713698ee2519958d4a1e7dcf8612db | fd29cf90c0b497380bcf22017ca35bc69b525b07 | refs/heads/master | 2020-12-03T00:38:46.873470 | 2017-09-01T02:23:06 | 2017-09-01T02:23:06 | 96,055,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | from scrapy import Spider
from scrapy.http import Request
def product_info(response, value):
return response.xpath('//th[text()="' + value + '"]/following-sibling::td/text()').extract_first()
class ShirtsSpider(Spider):
name = 'shirts'
allowed_domains = ['https://www.uniqlo.com/us/en/men/ut-graphic-tees... | [
"noreply@github.com"
] | noreply@github.com |
ed2fdb1bb003f7c36e88a99e59dff4ea2d85a2af | 42ea9b76bfbf4d609f655d897082fb3f46bf4058 | /src/minimalkb/services/simple_rdfs_reasoner.py | f9a108d6c2e04bd7809837b58efbe8129461d309 | [
"BSD-3-Clause"
] | permissive | chili-epfl/minimalkb | a9ffe957caa8fd24645117e7afbc97b7406c3048 | 25d90d90dc9e8dbf41ba18bf522a80eeb6520dbb | refs/heads/master | 2021-05-20T17:37:52.403932 | 2021-02-25T09:30:09 | 2021-02-25T09:30:09 | 13,498,236 | 4 | 1 | BSD-3-Clause | 2021-02-25T02:39:50 | 2013-10-11T12:21:29 | Python | UTF-8 | Python | false | false | 7,032 | py | import logging; logger = logging.getLogger("minimalKB."+__name__);
DEBUG_LEVEL=logging.DEBUG
import time
import datetime
import sqlite3
from minimalkb.backends.sqlite import sqlhash
from minimalkb.kb import DEFAULT_MODEL
REASONER_RATE = 5 #Hz
class OntoClass:
def __init__(self, name):
self.name = name
... | [
"severin.lemaignan@epfl.ch"
] | severin.lemaignan@epfl.ch |
00b00adb112cacac01ce2f451e453cf195a88920 | ca423bdab743194629dbc670238adac82adc1aa9 | /Video/emotionaldan/train.py | 9c1c7ac43ddd5e52f2ef8f34994bef14bef5470e | [] | no_license | Jackli95/Multimodal-Emotion-Recognition | b0a0222cea5016f8a014da98da6954e84bc959c4 | 6bc9b5df2b9964b492896bdf3ad476ad8120de03 | refs/heads/master | 2020-05-09T16:06:24.977069 | 2019-04-12T16:24:23 | 2019-04-12T16:24:23 | 181,258,490 | 1 | 0 | null | 2019-04-14T04:04:24 | 2019-04-14T04:04:23 | null | UTF-8 | Python | false | false | 8,813 | py | """
Trying to make data loading more efficient.
!python3.6 train.py "/home/workspace/itautkute/emoDAN-tensorflow/" --trainSetFile="AffectnetVal_7.npz" 2
!CUDA_VISIBLE_DEVICES=1 python3.6 train.py "/home/itautkute/emotionaldan/data/" 2
"""
import argparse
import numpy as np
import tensorflow as tf
from models impo... | [
"mael.fabien@gmail.com"
] | mael.fabien@gmail.com |
baaf2f9367b44c93bdb2ea25862bb10a4d3d14a2 | 15ce00a910f5404f1ab3d6eb59334c26c5708748 | /functions/keyword_only.py | cbbca0266fc6ae00ec778c065a99907bc58b6732 | [] | no_license | calazans10/algorithms.py | 3307be25920428b33e784229c2aa727ac4225423 | b8b0495fe34645b45aa5366416c1f80d87d18a3b | refs/heads/master | 2020-05-17T13:27:58.481732 | 2013-07-21T13:31:39 | 2013-07-21T13:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
def total(initial=5, *numbers, vegetables):
count = initial
for number in numbers:
count += number
count += vegetables
return count
print(total(10, 1, 2, 3, vegetables=50))
print(total(10, 1, 2, 3, vegetables=10))
| [
"calazans10@gmail.com"
] | calazans10@gmail.com |
71ba8d2abd5721ca98ac56f421a12cfc99048fc2 | a48aff43b3b05fedfa4e9262842be0c485a1addf | /python/django/dj1/dj1/settings.py | 2291e9fda03bcd0a9e7569bd4c29d3386902f3f5 | [] | no_license | Vkeynote/rep3 | 5989d22805efb2c07e038b3027e8eb54adfb6fac | 87789937bd4097cd142c57223e5c656ae2a476f5 | refs/heads/master | 2020-12-30T14:33:37.603440 | 2017-06-22T11:06:07 | 2017-06-22T11:06:07 | 91,320,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | """
Django settings for dj1 project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# Bu... | [
"victor kinoti"
] | victor kinoti |
61e0356e91dd189e6413f55900dd54e1a39f8446 | 906e4a2a0b274d28a8ffd5c614ee3dae86393841 | /twitoff/twitter.py | 58d2ba2aff2bb20f405fe176298cdd4a64a6ff66 | [
"MIT"
] | permissive | qianjing2020/twitoff-app | 0f63b55072a2746ae3ca28bb0edae554b4e340a9 | 8b166bffbe31edb8cc9cff5dc5873a07cb1313c2 | refs/heads/master | 2022-12-14T05:29:03.842964 | 2020-01-30T04:13:30 | 2020-01-30T04:13:30 | 236,584,801 | 0 | 0 | MIT | 2022-12-08T03:32:10 | 2020-01-27T20:15:23 | Python | UTF-8 | Python | false | false | 1,022 | py | """ retrieve tweets, embeddings, and persis in database.
"""
import basilica
import tweepy
from decouple import config
from .models import DB, Tweet, User
TWITTER_AUTH = tweepy.OAuthHandler(config('TWITTER_CONSUMER_KEY'), config('TWITTER_CONSUMER_SECRET'))
TWITTER_AUTH.set_access_token(config('TWITTER_ACCESS_TOKEN'),... | [
"qianjing2020@users.noreply.github.com"
] | qianjing2020@users.noreply.github.com |
7b06911905dd515116322f0cffab02dde6d356fd | 3a6d382503e11753dd81b291145847a2eabb8ec6 | /experimental/dsmith/scrapheap/handcheck-crashes.py | 6bd9c728da3084f4cc4cfb8f5c3850d0b9dcd044 | [] | no_license | QuXing9/phd | 7e6f107c20e0b3b1de2b25eb99e0b640a4a0bfcf | 58ba53b6d78515ed555e40527f6923e28941cc19 | refs/heads/master | 2022-02-27T03:29:05.126378 | 2019-10-22T02:46:57 | 2019-10-22T02:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | #!/usr/bin/env python
import random
import sys
from argparse import ArgumentParser
from dsmith import db
from dsmith.db import *
def yes_no_or_skip(question, default="skip"):
"""Ask a yes/no/skip question via input() and return their answer.
"question" is a string that is presented to the user.
"default" is ... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
366a391f8c2df41752f3272eb3d7db8337b7d0fe | e3840576e475c42160e914487ba91c1defc0b42f | /abc_155_D.py | 8b0cb0d8037837a3e05322550b9f2afb2c20e146 | [] | no_license | Kuroboo100/atcoder | 35f92e1a6001430bd96535799594573add78f5db | 280562ef3f963b24f79b56204ba5a1b35ce84b69 | refs/heads/master | 2022-11-25T13:17:02.280672 | 2020-08-03T13:36:40 | 2020-08-03T13:36:40 | 269,625,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | def mul_minus(m,p,k):
"""
m,p=minus またはplus
順番はminus>>plusの順で与える
出力はl,sの積の組み合わせでk番目に小さい数
"""
p.sort(reverse=True)
m_tmp=0
p_tmp=0
i=0
mul=[m[0]*p[0]]
while i<k:
if p_tmp+1<len(p):
can_1=m[m_tmp]*p[p_tmp+1]
if m_tmp+1<len(m):
can_2=m[m_t... | [
"yuki.kubota.0223@gmail.com"
] | yuki.kubota.0223@gmail.com |
9c6b3561cf0e2f616a6d8e3dffab0204acf8f757 | 5f2c2dcf8c2eb3214fa69e254472a2059cdb9503 | /script/python/Python123课程相关代码/第10章/CalStoryOfStone.py | 99fafbd5be321fb20ea8a5214fbb290ddc5c62fb | [] | no_license | peterpeng1993/learngit | ff1de6ff9d86f15d95dcd1eddd7397a70d9a1bf7 | 9e44b10dde2e95c4f50343380ad96a8e1cfc7426 | refs/heads/master | 2021-06-21T20:57:12.707896 | 2019-04-25T13:41:28 | 2019-04-25T13:41:28 | 153,079,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # CalStoryOfStone.py
import jieba
f = open("红楼梦.txt", "r", encoding="utf-8")
txt = f.read()
f.close()
words = jieba.lcut(txt)
counts = {}
for word in words:
if len(word) == 1: #排除单个字符的分词结果
continue
else:
counts[word] = counts.get(word,0) + 1
items = list(counts.items())
items.sort(key=lambda x... | [
"812004570@qq.com"
] | 812004570@qq.com |
4343ced1b2fe861e50e4083c478fe4228a2199d6 | 06f2a77ea689cc0890d87f241ea76ea6a0250951 | /userinfo/urls.py | 4be8193c0dfffa4c711a9bda9715252795b4c77b | [] | no_license | ashutoshkmr21/timetracker | fa220afc21da09efdd1cb203c59216dd9f5af809 | 99ee7b1de733f4bde5603f1fa36603090ab68449 | refs/heads/master | 2020-03-30T19:05:48.160931 | 2018-10-04T06:29:24 | 2018-10-04T06:29:24 | 151,527,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | from django.conf.urls import patterns, url, include
from django.views.generic import TemplateView
from userinfo import views
urlpatterns = patterns('',
url(r'^login/$', 'django.contrib.auth.views.login',name='login'),
url(r'^main/$', views.DashBoard.as_view(), name="main_... | [
"kumarashutsh21@gmail.com"
] | kumarashutsh21@gmail.com |
80b3c6ea69150ceec864b4047c713e78c712638b | 8c9e97e1d79dffe12683c58262d5e257de7836b7 | /5_2_Continuous_Bag_of_Words_CBOW.py | 0cae2071b4168c55e685c32babc7481380516eba | [] | no_license | RiseingSun/BertWarmUp | d7844a4b94c12b7647e77ec2fdf04474daa10f91 | 4db6cca236c2bacae84aa620e61242d9d8ee3681 | refs/heads/master | 2020-05-17T22:17:21.185762 | 2019-05-25T11:59:32 | 2019-05-25T11:59:32 | 183,996,039 | 1 | 0 | null | 2019-04-29T03:50:05 | 2019-04-29T03:50:05 | null | UTF-8 | Python | false | false | 23,301 | py |
# coding: utf-8
# # Learning Embeddings with Continuous Bag of Words (CBOW)
# ## Imports
# In[1]:
class Vocabulary(object):
"""Class to process text and extract vocabulary for mapping"""
def __init__(self, token_to_idx=None, mask_token="<MASK>", add_unk=True, unk_token="<UNK>"):
"""
Args:... | [
"noreply@github.com"
] | noreply@github.com |
6729ca87ad8b65a551fd5f41d6443586e13baa15 | 4c9580b2e09e2b000e27a1c9021b12cf2747f56a | /chapter06/chapter06/wsgi.py | 3e88f160f773a7fc27dbdb8429834ad511c1267e | [] | no_license | jzplyy/xiaoyue_mall | 69072c0657a6878a4cf799b8c8218cc7d88c8d12 | 4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc | refs/heads/master | 2023-06-26T02:48:03.103635 | 2021-07-22T15:51:07 | 2021-07-22T15:51:07 | 388,514,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for chapter06 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"jzplyy@126.com"
] | jzplyy@126.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.