blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9001d2c6f019fe03b648b70ce2b79b123c5b6a56 | 29456f01a994427149bddfb3c83e054a08860953 | /L8T4-6.py | 8f8222baa2630a4b6253a9ef62bc4a921391d68c | [] | no_license | comradsnarky/PythonBasics | 6a25a79d6b36952f6f00bbc0cd78a7fdd5cd63cc | c0bdd9abf6784c349b98e8af6bc1cd4b12b3e8ad | refs/heads/master | 2022-12-03T14:54:43.860174 | 2020-08-16T18:12:40 | 2020-08-16T18:12:40 | 277,656,866 | 0 | 0 | null | 2020-08-16T18:00:29 | 2020-07-06T21:55:51 | null | UTF-8 | Python | false | false | 3,365 | py | class Stock:
def __init__(self, *args):
self.args = args[0]
def in_stock(self, stock_dict):
self.stock_dict = stock_dict
if self.args[0] in self.stock_dict.keys():
self.stock_dict.get(self.args[0]).append(self.args[1:6])
else:
self.stock_dict.update({self... | [
"nick440.np@gmail.com"
] | nick440.np@gmail.com |
aa787657413838040f7ea45bbca7038066f0600a | 009878462618c2df22bdf97fad9aefdb40873c91 | /Python-basic-programs/Arrays/Basics.py | e74310109cae1309b5f8fe8eb71f09ffeff12a31 | [] | no_license | amolsawant844/SEM-4 | 823330ffc8477b5fc713461ccadc74ef8c9bf14a | 57888e381c07553326a864df23afd16e52a213d5 | refs/heads/master | 2020-09-25T04:52:37.638443 | 2019-12-04T18:00:33 | 2019-12-04T18:00:33 | 225,921,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import array
# creation
a = array.array('i', [4, 6, 2, 9])
print(a)
import array as ar
b=ar.array('i', [4, 6, 2, 9])
print(b)
from array import *
c=array('i',[3,45,67,89])
print(c)
#for character array
d=array('u',['a','b','c','d'])
print("the array elements are:")
for i in d:
print(i)
#single dimension
marks... | [
"noreply@github.com"
] | amolsawant844.noreply@github.com |
aa718d4daf7a3e18af3a89fdaa2347cee9d3e036 | 7ba22c9826a1574777a08fb634ff15c56de6cb98 | /domain_adaptation/domain_separation/dsn_train.py | 2453d204f037ace6938252c8981854f5ef640dac | [] | no_license | dhanya1/full_cyclist | 02b85b8331f8ca9364169484ab97b32920cbbd14 | dd12c8d8a3deaaea15041e54f2e459a5041f11c2 | refs/heads/master | 2022-10-17T13:36:51.886476 | 2018-07-30T15:46:02 | 2018-07-30T15:46:02 | 142,896,293 | 0 | 1 | null | 2022-10-05T10:11:01 | 2018-07-30T15:46:15 | Python | UTF-8 | Python | false | false | 10,701 | py | # 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/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"dhanyasj01@gmail.com"
] | dhanyasj01@gmail.com |
cf59c1c639fbd40a712f18d3084e6714dd548efc | 1f84ec9e3022eaa92f18aab97d1791f225073b2d | /src/transformers/models/mobilevit/image_processing_mobilevit.py | 147050099a6fa7298368f2f9230bd7d8f2c46402 | [
"Apache-2.0"
] | permissive | fwtan/transformers | 1c874b7ee6cf9c92adf82060dd8425a6cb524521 | 55db70c63de2c07b6ffe36f24c0e7df8f967e935 | refs/heads/main | 2023-08-19T10:48:42.792181 | 2023-08-10T20:06:29 | 2023-08-10T20:06:29 | 666,594,807 | 0 | 0 | null | 2023-07-15T00:09:07 | 2023-07-15T00:09:06 | null | UTF-8 | Python | false | false | 14,175 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | [
"noreply@github.com"
] | fwtan.noreply@github.com |
261109ed43010ad33b92caf43d1f8d6b0f968d45 | efb8f7f7ae8cf129104a45607f69b9bccd9b798c | /celery-monitor/backend/analyze_log.py | db6b1758b2a0d78b9161862321bf4697f19b603a | [] | no_license | jiangfeng051/gitskills | 7a7b406a9c33e5519dbda1978cae6443338f591b | 1cb3403cf5f8d37f675f8c7bb322078d2a02666c | refs/heads/master | 2020-03-24T20:37:03.576312 | 2018-07-31T09:00:01 | 2018-07-31T09:00:01 | 142,987,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #date:2018/7/27
from dbutils.connectdb import DbConnect
from backend.sendmail import email
def analyze_log(rule,data_log,date_now):
rule_condtion = rule['rule_condtion']
rule_price= int(rule['rule_price'])
urle_id = rule['rule_id']
rule_name = rule['rule_name']
rule_list = rule['rule_content'].split... | [
"jiangfeng@zentech-inc.com"
] | jiangfeng@zentech-inc.com |
b4a2db0fc6da43c2eb0ad5f2cd65f2c360d65ad7 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /eDQDChGrv6y4fd44j_20.py | 1a24d4d5555b5a19f0f2a0043b0899ec7134f363 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | """
A billboard is an `m * n` list, where each list element consists of either one
letter or a blank space. You are given a phrase and the billboard dimensions.
Create a function that determines whether you can place the complete phrase on
the billboard.
There are two rules:
1. If there is a space between two wo... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a8ebb603e7a36708b8d42f8f11cbdfc4941da201 | a58765023b251b6db02e8dc2fc801329c4f0bd51 | /backend/backend/settings.py | cabe6be1473d1c78e3915a7387cf7edefd2e8e11 | [] | no_license | MickiMouse/billing | 36a67f899f69da41eba56f609741448337da51ac | 8a06e8abc33545526ba95e9ac1c1104b8dc00bcd | refs/heads/master | 2022-12-13T14:54:02.484584 | 2019-11-20T14:31:37 | 2019-11-20T14:31:37 | 222,928,070 | 0 | 0 | null | 2022-05-25T04:30:27 | 2019-11-20T12:02:37 | Python | UTF-8 | Python | false | false | 3,294 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '(971f##xbymbs88^-l)%u4qil1y8i^z#vj4kzl=n+e9pif&7+3'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']
... | [
"495lolkek42@gmail.com"
] | 495lolkek42@gmail.com |
7daa4619bb498aecf21032bf14487ffe751a8ac3 | 7d76c2309c2fcd30cfccb71187761e9db48ae440 | /backend/Admin.py | bf0a0d7632c221dc47702bbf541ddfe1c9a5c96d | [] | no_license | veejayts/ooad-project | 7c833e25564a74f08f4c3c382081d17a8f5d4cd9 | 10d7dc31990c88ab23b08340bb6b59947872a41d | refs/heads/main | 2023-01-23T04:22:15.770420 | 2020-12-11T07:39:10 | 2020-12-11T07:39:10 | 314,194,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,243 | py | from backend.DatabaseHelper import DatabaseHelper
class Admin:
db = DatabaseHelper()
id = 0
password = ''
def enterStudentDetails(self, regno, name, d_o_b, department, sem):
"""
Enters new student details in the database
:returns: True if insertion of student details was su... | [
"vijayts2001@gmail.com"
] | vijayts2001@gmail.com |
f0c76d1fa08e79952459a729a781ae1b1a1a853d | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Fall17/SMS-T2tt_mStop-1200_mLSP-100_TuneCP2_13TeV-madgraphMLM-pythia8_cff.py | c7058877ed083db8890af32476f19744018f6428 | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 3,838 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIIFall17Mini... | [
"Alexx.Perloff@Colorado.edu"
] | Alexx.Perloff@Colorado.edu |
4f4b68ca0c6623d671747618cbe6275ec180ab9f | b22cbe574c6fd43fde3dc82441805917b5996bb2 | /test/util.py | 9a84f69774201372124c9d12aad475c699637b11 | [] | no_license | matthagy/hlab | 7a7b16526ee06f9b6211e387795e09c6438b536c | 1bea77cf6df460f1828f99f3a54251d20e2d0f3d | refs/heads/master | 2021-01-25T03:26:52.311278 | 2012-07-23T16:20:11 | 2012-07-23T16:20:11 | 2,352,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | '''Assorted unit tests utilities
'''
import unittest
from HH2.pathutils import FilePath,DirPath
def basepath():
filebase = FilePath(__file__).abspath().stripext()
backpath = __name__.replace('.','/')
assert filebase.endswith(backpath)
path = DirPath(filebase[:-len(backpath)])
assert path.isdir()
... | [
"hagy@gatech.edu"
] | hagy@gatech.edu |
833f32ab83f0fd9dffb0e1fbd5d9fee7b5e60300 | a2cf0ce6233af9fbb259e4c7b9d7b8a5b758f5ad | /project_manager/client.py | 7440882b30684608451fc7ce4c2c8edf477a135b | [] | no_license | ZhekaHauska/gamma400_tracker | 31b943345a0128ebe233b823ff0d4ca0e43f62f6 | 2833a68429281f541193643eb03019fd9c86fc64 | refs/heads/master | 2020-12-27T03:38:51.884723 | 2020-03-30T16:29:07 | 2020-03-30T16:29:07 | 237,751,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,321 | py | # читаем исходную таблицу
import subprocess as sub
import os
import yaml
from math import cos, sin, pi
from itertools import product
import pandas as pd
import numpy as np
import tables as tb
import tables.exceptions as exceptions
from time import sleep, time
import smtplib
# TODO выводить объём папки database
class... | [
"noreply@github.com"
] | ZhekaHauska.noreply@github.com |
b7ebbd95fa77eea38c9f2222a210df2477884119 | fdc2b246f38f773e4dee8e9016e4fdbb3b1a4cc6 | /Python3/get_data.py | 1cae6d6a996ad9b7d292d24b90e17e2bcf2f6829 | [] | no_license | IrinaVladimirTkachenko/Python_IdeaProjects_Course_EDU | 2c50b16ea0b8cb226bf4a7dfb40f45c84103cfc1 | ba9554b0f4258c7d3f63f41a0ccd0dc00b241b05 | refs/heads/master | 2023-07-08T09:32:49.923155 | 2021-08-05T16:52:00 | 2021-08-05T16:52:00 | 393,114,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | from bs4 import BeautifulSoup
html_string = """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Web Development Page</title>
<style type="text/css">
h1{
color: white;
background: red;
}
li{
color: red;
}
#css-li{
color: blue;
}
.green{
color: green;
... | [
"WildIrish@192.168.20.100"
] | WildIrish@192.168.20.100 |
79c947f1007d87255536a6a0f401e9d449851021 | 40fdb47497f0dafa83381f5f8fac410541c5c622 | /decode-cli | 93fe277cc22b6089cc2ae644e3c5e2f40cc11e56 | [] | no_license | evantey14/cipher | 16a55f96df1aa789b7da9efae1a960dfa3a2e651 | 41eef5f06056a2f5d6b5c5471a5b2bf2ae850283 | refs/heads/master | 2022-10-26T03:18:13.440675 | 2020-06-20T17:47:39 | 2020-06-20T17:47:39 | 262,177,278 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | #!/usr/bin/env python3
"""
This script will be used to evaluate your solution.
To use python2, change the top of this script to say python2.
The evaluator expects this script to:
1. Read in ciphertext as first command line argument.
2. Read in a has_breakpoint flag ("true" or "false") as the second command line
arg... | [
"evantey14@gmail.com"
] | evantey14@gmail.com | |
5371e1adc79386f50355efbbca03f914ea6d8acc | 6e34e838e836d49631af9ba27931996cf86b6564 | /ims/tests/admin_tests.py | 9318fa21b1d92a0ea0e2dd7c7d36736eb593b80c | [] | no_license | yxm0513/flask-ims | 1eaa6eee4242b1d17269d09e23d28dc4da6f697b | 23fe360316211080caab80632fa25ae6c145b3d4 | refs/heads/master | 2016-09-06T11:02:51.738756 | 2012-06-24T14:52:43 | 2012-06-24T14:52:43 | 1,461,977 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | from flaskext.testing import TestCase
class AdminTestCase(TestCase):
pass
| [
"simon.yang.sh@gmail.com"
] | simon.yang.sh@gmail.com |
aff4c221d9cb8a47902c0af65c5dbe60d0218bdb | 5ccae2a03907eb6a59ea571e5a6c68510c41152a | /simple_compact.py | 633f6d0bc2c28601fa83bd2b54714e414f1a6213 | [] | no_license | yurifialho/tsp_compare | 8ce47226b4c9ec35f94df2ef4a7fa020496b0141 | 11f8610c56acfb00e1181d47fcbee2cf77310e3a | refs/heads/master | 2023-01-12T14:57:19.039711 | 2020-11-12T03:25:15 | 2020-11-12T03:25:15 | 310,966,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | """Example that solves the Traveling Salesman Problem using the simple compact
formulation presented in Miller, C.E., Tucker, A.W and Zemlin, R.A. "Integer
Programming Formulation of Traveling Salesman Problems". Journal of the ACM
7(4). 1960."""
from itertools import product
from sys import stdout as out
from mip imp... | [
"yurirfialho@gmail.com"
] | yurirfialho@gmail.com |
e91fb3b0579a68d2e180e42add34ad6919708d82 | 3929d114c1bc6aef86402300a8d5b278849d41ae | /186. Reverse Words in a String II.py | 8cc8dc1f28c024f2e87d00719eb97c60a509c32c | [] | no_license | lxyshuai/leetcode | ee622235266017cf18da9b484f87c1cf9ceb91d0 | 5f98270fbcd2d28d0f2abd344c3348255a12882a | refs/heads/master | 2020-04-05T21:29:37.140525 | 2018-12-16T13:17:15 | 2018-12-16T13:17:15 | 157,222,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | """
Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.
The input string does not contain leading or trailing spaces and the words are always separated by a single space.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Could you do it in-p... | [
"442536013@qq.com"
] | 442536013@qq.com |
1790c864a83cfd173f39c272bb2987599b0d9d0a | 457db8efad2e641bb828d4caf270f891269c5eee | /Tema4/Tema4_1.py | 95b4f0594cc7735e2a9491f10eedca494c0198c3 | [] | no_license | GaaraOfSuna/Tecnicas-Experimentales-Programs | a3a2bb424093da7dd4dc91bee400da6db37d08af | e551ce47a73ec0bf18ad6f0b078748ad49d6183f | refs/heads/master | 2021-01-10T17:20:38.399634 | 2016-03-02T20:20:59 | 2016-03-02T20:20:59 | 52,617,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,071 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 04 23:58:48 2015
@author: GAARA
"""
from numpy import *
from matplotlib import pyplot as plt
from numpy.random import uniform, normal
from scipy.stats.stats import pearsonr
N = 100000.0
mu_1 = 3
mu_2 = 3
sigma_1 = 2
sigma_2 = 0.5
theta = -pi/6
gauss_1 = random.nor... | [
"blaaa"
] | blaaa |
664f40dd60dc8f4a78fa4378fc0e6826c176a2e8 | 05ef172891f1d5d4bd1e9a41e7bd228b7d50cc55 | /tools/prepare_RBM_param.py | 6a339f07b2598fffde89a7d41162099d40d20c1f | [] | no_license | YifanCheng/VIC_RBM | 389f7d146429088a8197ec3cf8f0b91ec04fb915 | 49c5f4f0938a7090c5c6d0beb12b8f8db96665ee | refs/heads/master | 2022-06-22T10:57:54.372594 | 2016-06-01T19:06:56 | 2016-06-01T19:06:56 | 49,667,077 | 1 | 0 | null | 2016-01-14T18:39:32 | 2016-01-14T18:39:32 | null | UTF-8 | Python | false | false | 4,665 | py | #!/usr/local/anaconda/bin/python
# This script generates:
# - A routing station file (for the next step to generate flow and energy file)
# - RBM control file (with running period and flow and energy file missing and to be subsitute)
# Note:
# - For different basin or different Mohseni parameters, this script ne... | [
"ymao@hydro.washington.edu"
] | ymao@hydro.washington.edu |
9dfef73bdb4ca36d08e448d5637ff33d58b50b88 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_02_01/models/managed_cluster_addon_profile_py3.py | 71e05cd14c0e9e64885cfee910165304b5df4421 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 1,290 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
419db0786d502a3cf9c1eae20144f684848c9409 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/gensim/test/test_utils.py | 240900129cf6621eddafef08f2c921360b47d10e | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 6,864 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Automated tests for checking various utils functions.
"""
import logging
import unittest
import numpy as np
from six import iteritems
from gensim import utils
class TestIsCorpus(unittest... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
0f87baff0c56e542582a7e5170dea054a1e969c7 | 2be196d073367f3cf19e8b449ef755d454003864 | /manimlib/once_useful_constructs/arithmetic.py | 76a3fd1222764779551f2a09b750f67afa5382ac | [] | no_license | yxy1996/manim_practise | 61eb4188bed52775f81ae44b63a93a36d11b2376 | f1815166a194a8d98ad9a493db93ff1ed01054cd | refs/heads/master | 2022-11-07T19:34:32.017740 | 2020-06-24T01:41:07 | 2020-06-24T01:41:07 | 274,540,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,635 | py | import numpy as np
from manimlib.animation.animation import Animation
from manimlib.constants import *
from manimlib.mobject.svg.tex_mobject import TexMobject
from manimlib.scene.scene import Scene
class RearrangeEquation(Scene):
def construct(
self,
start_terms,
end_terms,
... | [
"ckbaby1996@163.com"
] | ckbaby1996@163.com |
547f56cae470648424b7485f6231f2167b17b872 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-hbase/aliyunsdkhbase/request/v20190101/CreateInstanceRequest.py | 6dcc7d5ca183ba80569cfe098efcfdd438b27383 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 6,117 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9062cdef499ad5fb2dfca69831fc27f6e76eb076 | bae7013487de0c23eea1781e527e560f24fb5a2b | /Sources/Python/MSCGeneretor/ping_pong/client.py | d1ed5e9196777033c3531517b48b8337ee0cf2ee | [] | no_license | yannisVentura/MSC_Research | 6bcf0e7b9e65b966aae8ded1fa6115d174e3f3cc | 6ce23cecacf57d267df7f7716c535fbe555801ba | refs/heads/master | 2021-03-22T05:14:03.569250 | 2018-03-29T11:44:31 | 2018-03-29T11:44:31 | 121,608,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | from socket import *
import sys
from log import Log
TAILLE_TAMPON = 256
log = Log("client" + format(sys.argv[1]) + ".log")
if len(sys.argv) != 3:
print("Usage: {} <ip> <port>".format(sys.argv[0]), file=sys.stderr)
log.write_critical("Usage: {} <ip> <port>".format(sys.argv[0]))
log.write_critical("Exit 1")... | [
"yventura@RCFNET.rockwellcollins.com"
] | yventura@RCFNET.rockwellcollins.com |
afd5e9a732ae36b23155af1e2cba98c435520645 | dde6faa0857c8c7e46cbe3c48dbe80b1ac9c9bcf | /suspend_resume/scripts/suspend_resume_handler_3.py | 18f59181cb17badae55a3e34d125fbf2cc356724 | [] | no_license | ROSDevoloper/Atlas80EVO-Gazebo | 7119270f4421b1a077e3c4abbb90dcf11281023b | 468d068584e71c3cca2169b365ec43faaac33f47 | refs/heads/master | 2022-10-16T10:02:48.121404 | 2020-06-15T05:08:46 | 2020-06-15T05:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | #!/usr/bin/env python
"""
Author: (1) Arefeen Ridwan
(2) Samuel Chieng Kien Ho
Function: Suspend Resume based on service request
"""
import rospy
from atlas80evo_msgs.msg import FSMState
from atlas80evo_msgs.srv import SetFSMState
from std_srvs.srv import Empty
from geometry_msgs.msg import Twist
from std_m... | [
"kienho91@gmail.com"
] | kienho91@gmail.com |
f64feda20504dccac97a40d5747a0a3c49125432 | d05298a88638fd62f74e8f26c5a1959f821367d1 | /src/words_baseline/reddit_output_att.py | 413266f01e93721f50de7639a7e50fc75bac1c43 | [
"MIT"
] | permissive | rpryzant/causal-text-embeddings | d4b93f5852f1854d52a09e28b81ee784015e296a | 2966493f86a6f808f0dfa71d590e3403a840befc | refs/heads/master | 2022-12-22T09:33:23.654291 | 2020-03-05T19:41:33 | 2020-03-05T19:41:33 | 298,045,006 | 1 | 0 | MIT | 2020-09-23T17:28:18 | 2020-09-23T17:28:18 | null | UTF-8 | Python | false | false | 4,087 | py | from semi_parametric_estimation.att import att_estimates, psi_plugin, psi_q_only
from reddit.data_cleaning.reddit_posts import load_reddit_processed
from .helpers import filter_document_embeddings, make_index_mapping, assign_split
import numpy as np
import pandas as pd
import os
from sklearn.linear_model import Logisti... | [
"victorveitch@gmail.com"
] | victorveitch@gmail.com |
7728830707ecc457434b7c68b75d9de245ba5c7c | fd4a20c0c640b706da8213d9a19c4cbc8ac9def9 | /python/DP/edit_distance.py | 02bdcf13d59b612bcb232061b117437d0a225a42 | [] | no_license | murtzdhulz/algorithms_practice | 448991887a66fa7f7e4c260c13b4bbaafb48bd90 | ae5ea1f69c611f9b91bd28df4ab4742e7afb1aa0 | refs/heads/master | 2020-05-21T19:13:13.474160 | 2019-02-22T20:42:18 | 2019-02-22T20:42:18 | 62,366,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | __author__ = 'Murtaza'
# Given two strings. Find the minimum edit distance between them
def minDistance(word1, word2):
"""
:type word1: str
:type word2: str
:rtype: int
"""
m=len(word1)
n=len(word2)
# Create the lookup table
dp=[[0]*(n... | [
"murtzdhulz@gmail.com"
] | murtzdhulz@gmail.com |
1f29a3f91ed832a3645931407070d9b3577ca4c7 | 21369596ff395de0d56b1032fa4a1e88fcd4bf79 | /joysticktest.py | 727ab40852ba2e9c2c8c0e4c577cbe18ebc3f797 | [] | no_license | josh-r-dick/flappybird | a99410f8f39536decc97cae3bb8b699aeb00e085 | 0a6ba12d3ea4e5ffde9780a0c18b7cacd552132e | refs/heads/master | 2021-05-03T17:01:00.278987 | 2017-05-18T18:40:15 | 2017-05-18T18:40:15 | 72,026,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | import pygame
# Define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
# This is a simple class that will help us print to the screen
# It has nothing to do with the joysticks, just outputting the
# information.
class TextPrint:
def __init__(self):
self.reset()
self.font = pygame.font.Font(... | [
"josh.r.dick@greenimaging.com"
] | josh.r.dick@greenimaging.com |
f8f17817cc26bf8e89af712f747790baf69950e9 | 35fa22b5ff5413d80d0fbab4d2072b2e97186167 | /6file/13.py | 3c95032fd0ce617b76d7178f9f6d1a4f47bc3a79 | [] | no_license | Aleksiysh/OpenUDUPython | 7c60b59e3238eb64898b44fccd5f00f3b204fcc9 | ae33f82c05c0ba5bee452009a01c6c94eba39c19 | refs/heads/master | 2020-08-07T07:46:12.622040 | 2019-10-26T10:44:37 | 2019-10-26T10:44:37 | 213,359,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import openpyxl
vedomost = list()
for i in range(1,1001):
fileName = '../rogaikpyta/'+str(i)+'.xlsx'
wb = openpyxl.load_workbook(fileName)
sheet = wb.active
record = (sheet['B2'].value+' ' +str(sheet['D2'].value))
vedomost.append(record)
#print(i)
vedomost.sort()
fout = open('out13.txt','w',enc... | [
"aleks-sh@mail.ru"
] | aleks-sh@mail.ru |
bf3628287d6912c3ae78c55e67f21dd80313b222 | b95e71dcc1b42ebf3459ee57bd0119c618a79796 | /Array/maximum_subarray.py | 562be03611c865ee216e753a51da805015ca258d | [] | no_license | anton-dovnar/LeetCode | e47eece7de28d76b0c3b997d4dacb4f151a839b5 | 6ed9e1bd4a0b48e343e1dd8adaebac26a3bc2ed7 | refs/heads/master | 2023-06-29T07:21:06.335041 | 2021-07-31T15:08:05 | 2021-07-31T15:08:05 | 361,205,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | class Solution:
def maxSubArray(self, nums: List[int]) -> int:
max_subarr = float('-inf')
curr_sum = 0
for n in nums:
curr_sum = max(n, curr_sum + n)
max_subarr = max(max_subarr, curr_sum)
return max_subarr
| [
"fode4cun@gmail.com"
] | fode4cun@gmail.com |
cd14f97434cea94fade2b7a39e1da3f02ed8223b | 566997eebb7ec228b371f9309b8f0204dfeb3619 | /gan.py | a4858008fc618573dcad057e3ef343e27bd4aebb | [] | no_license | hayago/generative-adversarial-nets-mnist | 889b71d604025f8ff68ed0d467db9ec2f27962cc | ecb1c6c0ebd518c7fe71c333e02a22952bd64f25 | refs/heads/master | 2021-01-22T06:02:05.866307 | 2017-02-12T13:52:55 | 2017-02-12T14:11:37 | 81,729,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
import os
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
class GAN:
"""
Generative Adversarial Networks
"""
IMAGE_SIZE = 784 # 28 x 28 = 784
def __init__(self):
#... | [
"go.hayakawa@gmail.com"
] | go.hayakawa@gmail.com |
4464b2855336752fff3ecd8ebabbeba6eadebcd9 | d3eaf3fa1f16474652efcc806c975eb491234d8d | /Account/models.py | d63970fd9d120bacf98e813d6767960926ecbf20 | [] | no_license | Arash3f/simple_django_portfolio | 28681bcc4bff3a7314c4f0aa7c883b6cbc4462c7 | 95e3586700ac4d936e58a780d866e342eeeec61b | refs/heads/master | 2023-07-15T20:06:46.359651 | 2021-08-26T12:03:08 | 2021-08-26T12:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | from django.db import models
from ckeditor.fields import RichTextField
from django.contrib.auth.models import User
class User(models.Model):
user = models.OneToOneField( User , related_name='user', on_delete=models.CASCADE)
picture = models.ImageField ( 'user_pictures' , upload_to='user_pictures... | [
"arash.alfooneh@gmail.com"
] | arash.alfooneh@gmail.com |
379d3b447bd21211255d268b91155f490c3c172c | e0267836691f84391780c68d3f972fd46ec612d5 | /01-Python-Primer/Exercises/Creativity/C1-15.py | aa75619d3ad9a772cac82400cc3019a8af7be1a3 | [] | no_license | ursu1964/Algorithms-in-Python-1 | 14e5e7e7d05533e22c2d85059dab84f2ac154f18 | 7df5fea064a2391703f7da8f891d9c69d79af1c7 | refs/heads/master | 2023-03-16T18:41:34.379471 | 2017-07-18T17:59:02 | 2017-07-18T17:59:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | def distinct(data):
temp = data
for item in data:
temp.remove(item)
if item in temp:
return False
return True
input_list = [10, 2, -1, 100, 48, 0]
print(distinct(input_list))
test_2 = [100,3, 4 , 5, 2]
print(distinct(test_2))
test_3 = [1, 1, 1, 1, 1]
print(distinct(test_3)) | [
"mayankshah11996@gmail.com"
] | mayankshah11996@gmail.com |
0a73bcc828c1d8a1bbb22e0861d0e9418fb8e765 | a6d33a4f864889bec0ec21b5b8106d99a263141c | /kubernetes/models/v1/SecretKeySelector.py | 5eeb07ef465f363ee936f7942c20707316caff90 | [
"Apache-2.0"
] | permissive | riconnon/kubernetes-py | bffd2a89b2f445706381c01f46c60cce804f49d6 | 42a4537876985ed105ee44b6529763ba5d57c179 | refs/heads/master | 2020-03-28T01:35:43.082333 | 2018-08-21T19:46:24 | 2018-08-21T19:46:24 | 147,515,935 | 0 | 0 | Apache-2.0 | 2018-09-05T12:42:13 | 2018-09-05T12:42:12 | null | UTF-8 | Python | false | false | 1,742 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.md', which is part of this source code package.
#
from kubernetes.utils import is_valid_string
class SecretKeySelector(object):
"""
http://kubernetes.io/docs/api-reference/v1/definit... | [
"francis@manafont.net"
] | francis@manafont.net |
96302dbfad171e64160534464df2b0add5495106 | 59e613d6a0bcb8570c89defa77da398f69b82c77 | /qcengine/tests/test_config.py | 40178a4cfe0e32b0d39d4a31efe3c27904365901 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | ffangliu/QCEngine | 3e081e7f5e236c434016e222f716e6b34b24030b | 835b291986069669e4be0e708ec4846ebfd858d6 | refs/heads/master | 2020-04-22T23:57:35.470503 | 2019-02-14T16:57:30 | 2019-02-14T16:57:30 | 170,760,404 | 0 | 0 | null | 2019-02-14T21:27:14 | 2019-02-14T21:27:14 | null | UTF-8 | Python | false | false | 5,049 | py | """
Tests the DQM compute module configuration
"""
import copy
import os
import pydantic
import pytest
import qcengine
from qcengine.testing import environ_context
def test_node_blank():
node = qcengine.config.NodeDescriptor(name="something", hostname_pattern="*")
def test_node_auto():
desc = {
... | [
"malorian@me.com"
] | malorian@me.com |
3be54fa1efd83322f1fe7a892ea740e5bf3982c2 | 59027e8242ed21037f5de9de2c72e93d9f65d7e0 | /plot/env/bin/easy_install | 6b2e2d075e662c380b9581e724cd106adf21e5a6 | [] | no_license | ErichHoene/time-series-benchmarks | 37e31bc9e238011a46d5d8036ca5740d1cdd8041 | 1b435445d2165927168c01cb9b575b6efa6fe4fe | refs/heads/master | 2020-09-24T10:12:24.659923 | 2019-12-03T23:35:56 | 2019-12-03T23:35:56 | 225,737,280 | 0 | 0 | null | 2019-12-03T23:31:06 | 2019-12-03T23:31:06 | null | UTF-8 | Python | false | false | 289 | #!/mnt/c/Users/Erich/Documents/time-series-benchmarks/plot/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"erich@DESKTOP-GP8H4ER.localdomain"
] | erich@DESKTOP-GP8H4ER.localdomain | |
40da9441cf9ce77b344b374aacaee50aa21add22 | 99832c4632c6084c071e9eb5c2b4902b39d7bc54 | /acc_from_traj_v2/core/space_signal.py | 4b0c31d8687797ef76e20cddd6fa6ad751228366 | [] | no_license | LongStart/pyproj | 0a6b058b8a56824a61dbf37545c380552930e072 | 1f4fb23e01329ba6b50e14a0c90ae55440c1637a | refs/heads/master | 2020-08-17T14:16:53.567233 | 2019-10-16T05:44:18 | 2019-10-16T05:47:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | import numpy as np
class SequenceXd():
def __init__(self, dim, data):
assert np.shape(data) == (dim, len(data[0]))
self._data = data
self._len = len(data[0])
def __call__(self, data=None):
if data is None:
return np.array(self._data)
assert np.shape(self._da... | [
"chen-xx@zju.edu.cn"
] | chen-xx@zju.edu.cn |
a6fdc4dd44a88f40d0d85f5b2d42702db7d6059c | a777a4af5cfc4270aa16db69a2076dd8c536dee6 | /11-28/chunkBrown.py | 5063ada08ab3ae71fc2132500607e73d33f285a7 | [] | no_license | llCUriel/Natural-Language-Processing | 80e31311610c53fc001457390a612ca6c0cad20a | 52b3bcb5627509f6f79bd01cd4b7f0c52b0605eb | refs/heads/master | 2021-03-01T10:44:29.282464 | 2020-03-08T08:36:59 | 2020-03-08T08:36:59 | 245,779,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,191 | py | import re
import os
# import resource
import string
from collections import Counter
import pickle
import nltk
import matplotlib.pyplot as plt
from bs4 import BeautifulSoup
from pprint import pprint
import numpy as np
import networkx
from gensim.summarization.summarizer import summarize
from sklearn.feature_extraction... | [
"48939025+llCUriel@users.noreply.github.com"
] | 48939025+llCUriel@users.noreply.github.com |
465b9336c6c23addd490124cbca063924fdb8f1b | afb50bf0615b7bacb35827106157584449a466e4 | /moldesign/_tests/conftest.py | 108f71148d6dac6c2cf26073731989bec2c3d7d5 | [
"Apache-2.0"
] | permissive | jellyr/molecular-design-toolkit | 4f7a22c5a36318022d0be6d89d889c8169b100fd | 72a81111c9257cdac88562e6ca3cd80614881da6 | refs/heads/master | 2020-12-02T21:24:01.359532 | 2017-07-01T04:39:52 | 2017-07-01T04:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py |
def pytest_itemcollected(item):
if hasattr(item.module, '__PYTEST_MARK__'):
item.add_marker(item.module.__PYTEST_MARK__)
# TODO: nicer output strings for git commit status
# see https://docs.pytest.org/en/latest/example/simple.html#post-process-test-reports-failures
#@pytest.hookimpl(tryfirst=True, hook... | [
"avirshup@gmail.com"
] | avirshup@gmail.com |
25bb1e59fa52a1478f01a27db44ee8ae299b07d2 | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/subprocess/repeater.py | cf01ca41051f6970c677e34642d0326924274e24 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 1,421 | py | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and tha... | [
"350840291@qq.com"
] | 350840291@qq.com |
3f78c466709124429eaedfcbc4849133d80eb1be | 4c4509c34b57350b605af50600eefc0c24a74255 | /ecommerce/urls.py | 0dead703ab3eb8c660305689032883b343a6f140 | [] | no_license | sayanth123/ecomm | cd6dd7e8c3fb13048d35c272379a320c20eb3d24 | 67101ebbb08c82bbd15a7c1dfc22c3da5483e307 | refs/heads/main | 2023-05-05T03:20:16.660301 | 2021-05-27T04:21:44 | 2021-05-27T04:21:44 | 370,259,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | """ecommerce 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... | [
"you@example.com"
] | you@example.com |
588d62e455ac9574347362ab3be396c056a9340d | db23803c56eb7f0f7e0239ba45ef5aa5f1e26fc6 | /scripts/processing_scripts/create_reference_files/rRNA_from_gff3.py | 6ec321246d58122cf8840cb19bd39097232ddb90 | [] | no_license | weibokong27/picrust2_manuscript | ed362146df5f917e3f92aa012ba5a864dc2928fa | dd4e2daa0b7058fa0ef46bc8f02c052f226c34ed | refs/heads/master | 2022-07-02T14:47:02.757223 | 2020-05-16T12:42:29 | 2020-05-16T12:42:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | #!/usr/bin/python3
import argparse
import skbio.sequence
import os
import sys
def read_fasta(filename, cut_header=True):
'''Read in FASTA file and return dictionary with each independent sequence
id as a key and the corresponding sequence string as the value.
'''
# Intitialize empty dict.
seq = ... | [
"gavinmdouglas@gmail.com"
] | gavinmdouglas@gmail.com |
5d7b346a48b908e9726d1c407659bf42416ca287 | f7deb23c08fa89c73e44e7bf865f8c03ef6e20f6 | /政府报告词云.py | 24b95c181ad6a039949093fdbd2f595ff82c56b9 | [] | no_license | qinhew/MY_D_Python | b85a0263376826b1d29a7fd4fc327fc4a72d42f6 | 51bf823c742743291b8720541b498313c4760367 | refs/heads/master | 2022-12-19T03:42:52.181513 | 2020-09-30T02:56:03 | 2020-09-30T02:56:03 | 298,992,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import jieba
import wordcloud
from scipy.misc import imread
mask = imread("Chinamap.jpg")
f = open("新时代中国特色社会主义.txt", "r", encoding="utf-8")
t = f.read()
f.close()
ls = jieba.lcut(t)
txt = " ".join(ls)
w = wordcloud.WordCloud(font_path="msyh.ttc",
mask=mask, width=1000, height=700, background_co... | [
"270240626@qq.com"
] | 270240626@qq.com |
5db87f98445a36fe18384ffb43ce34c037f4e457 | 70f1cd4a860c2936d192a55f796e1f25fb20a083 | /0x0A-python-inheritance/5-base_geometry.py | 2fce442b3d73bda1a9c7b2b9b19ee1c13da2b241 | [] | no_license | JacobBHartman/holbertonschool-higher_level_programming | 5641f8c00249284ab457fd6854d99bfe3320f618 | 2fd7a65d00e8f32d1dc8d46e2d00e3cc72ba3577 | refs/heads/master | 2021-09-24T08:32:00.338508 | 2018-10-05T22:24:22 | 2018-10-05T22:24:22 | 113,101,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/python3
"""this module contains an empty class called BaseGeometry"""
class BaseGeometry:
"""this class is an empty one"""
def __init__(self):
"""this method is magic and initializes an object
of class BaseGeometry"""
pass
| [
"209@holbertonschool.com"
] | 209@holbertonschool.com |
9170b0b21899081c2505bb3e82a8d26b4391d673 | d650da884a0a33dd1acf17d04f56d6d22a2287fd | /test/test_inspect.py | 894d8f97bc3c3456e7baeaaca34461ea1c6b61a8 | [] | no_license | GaelicGrime/rpnpy | debe3a79e9a456e13dcd1421d42f01c0bcbe9084 | 5a095dd024403daad93a3222bd190bbb867a8ae2 | refs/heads/master | 2023-04-03T11:19:16.737278 | 2020-12-03T08:26:40 | 2020-12-03T08:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from unittest import TestCase
from math import log
from rpnpy.inspect import countArgs
class TestCountArgs(TestCase):
"""Test the countArgs function"""
def testZero(self):
"A function that takes zero arguments must be processed correctly"
self.assertEqual(0, countArgs(lambda: 3))
def te... | [
"terry@jon.es"
] | terry@jon.es |
fb2fcf81d59459c7ce1dcbea2ffb9c738b0cc99f | b75e86e44f37d71ba6feaa1646670729cd6fe416 | /randgen_target.py | fa2c3fc4849a27b48886b495b8872c6ca0bc992a | [] | no_license | matthewr6/moral-transfer | fb11f8f498cb7736e65d30d5a8f70da9ff6bf863 | d3ec091d2d7a387f253a2db0181e6dacee30c2c2 | refs/heads/master | 2023-03-24T10:57:53.543164 | 2021-03-19T22:29:18 | 2021-03-19T22:29:18 | 342,505,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import numpy as np
def rand_target_morals(input_vec):
assert len(input_vec) == 10
while True:
output_vec = np.random.randint(0, 2, 10) # randomly generate output moral
# Check similarity. Output should be different from the input
combined_vec = zip(input_vec, output_vec)
dif... | [
"47877154+mustafakhan14@users.noreply.github.com"
] | 47877154+mustafakhan14@users.noreply.github.com |
6dd04baaa2c4b69230aff448cc5124f506c5e06e | 80b6e49aacba02cb1e2ecef7678667e0f82ae561 | /Lesson 3/PermMissingElem.py | a8fab1878c47f1774c6a6dae8ec9fba88050c04f | [] | no_license | juliapedrycz/codility-lessons | b93dc3eefba11ec94430321ccc36557d61189d24 | 3b1619059a3c6e6e5b563391991f37b99c256053 | refs/heads/main | 2023-03-12T16:38:46.844478 | 2021-03-01T19:46:52 | 2021-03-01T19:46:52 | 342,552,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | def solution(A):
sumA = 0
x = 0
for i in range(0,len(A)):
sumA += A[i]
x += i+1
return len(A) + 1 - (sumA-x)
def main():
A = [3,4,5,1]
print("A: ", A," \tmissing element: ", solution(A))
if __name__ == "__main__":
main()
| [
"julkapedrycz@gmail.com"
] | julkapedrycz@gmail.com |
3ce912889455dcd9ee9fe906681e155a17711461 | f747bb741d17ec138a01b87a07bfd96f6ab4b723 | /clockwork/utils.py | c53e30fd8fc27dceb2973b1ab3e357a5daccdeda | [
"MIT"
] | permissive | iqbal-lab-org/clockwork_validate_spreadsheet | 996f69ae181203e00b3cb73e385cf5bb43f3b522 | 543df9d1af665ec3dd6c6dfa7b9457f1dd142ea6 | refs/heads/master | 2021-05-10T13:40:29.360846 | 2018-01-26T10:28:31 | 2018-01-26T10:28:31 | 118,486,146 | 0 | 0 | MIT | 2018-01-23T08:22:18 | 2018-01-22T16:50:25 | null | UTF-8 | Python | false | false | 47 | py | ../clockwork_original/python/clockwork/utils.py | [
"martinghunt@gmail.com"
] | martinghunt@gmail.com |
8bcfc63d79258fc7090fb849af95c660ea9fc560 | c1ead46041b6150b212a3cf6b5f5121a5c4177b8 | /sites/models.py | 17567913d4d1c6118ee597078ba7cf120ad05006 | [] | no_license | rfadams/yakgroups | 31d6c767c18bdea185b67621656284cdef0a3bdf | fb263cd176ab6b5e5663dce1d919cf70344b4553 | refs/heads/master | 2021-01-22T07:28:14.301724 | 2013-06-14T18:01:12 | 2013-06-14T18:03:19 | 10,694,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from django.db import models
import datetime
class GroupSite(models.Model):
"""GroupSite Model: site id and info for a site"""
random_name = models.CharField(editable=False, max_length=10, unique=True)
name = models.CharField(blank=False, max_length=25, unique=True)
title = models.CharField(blank=False, max_leng... | [
"rfadams@gmail.com"
] | rfadams@gmail.com |
d09e8cfd12158d7338f73096900aa2f29faece0c | 09cead98874a64d55b9e5c84b369d3523c890442 | /py210110c_python1a/day06_210214/homework/hw_5_yiding.py | 2b8e12eb578a330374112c74a1059c59eddd995b | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | """
1,1
2,1
3,1
4,0
5,0
6,1
7,0.5
8,1
"""
"""
q1.
none, false, else if, for, in, from, as
q2.
abc$, 0a
q3.
a
q4.
c
q5.
a
q6.
a
q7.
a
q8.
a
""" | [
"lada314@gmail.com"
] | lada314@gmail.com |
2809357943d5b037037bc13c4f28ae71a69980ad | cb7d6fb9faa8e1c7c68e9a156f997446eae47b83 | /BitcoinSpellbook.py | fa6929c4cdc70e92b5cce3a7a822215b4cde124d | [
"MIT"
] | permissive | WouterGlorieux/BitcoinSpellbook-v0.1 | 3beb7e9edfacf1bad9cb0a900e5a2f0d785ed0ab | 982428470ba977182b2519ca8ab15fe8f94ee607 | refs/heads/master | 2021-05-31T13:05:33.380354 | 2016-05-19T17:58:29 | 2016-05-19T17:58:29 | 57,211,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | __author__ = 'Wouter Glorieux'
import bitcoin
import BIP44
import BlockchainDataWrapper
import SimplifiedInputsListWrapper
import BlocklinkerWrapper
import ProportionalRandomWrapper
import BitvoterWrapper
import HDForwarderWrapper
import DistributeBTCWrapper
import BitcoinWellsWrapper
from pprint import pprint
import... | [
"wouter@valyrian.tech"
] | wouter@valyrian.tech |
7a6ea156514e8fec2c46d6640f4d2fd9b8b57b5d | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/statistics/misdirectedperflow/misdirectedperflow.py | 0562872acb73fb50d2a0e5450f633d42c7da8502 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 4,342 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
4aa8ab5f377a6923765d26773dc5b45edce5d5bc | 527e2b5aa7ed2053d4570997cc46b35c1e22ad1f | /tpfinal/imagenes/plotear imagenes.py | 7a8b2fc8adb372dce31f7f7944d0ecebcd109cfe | [] | no_license | fcaprile/instrumentacion | 8dac060e090a7f445c775e62b32e909f33b38db8 | 1de0ffc6c6017a8d1139b8238a068b45e7fbd823 | refs/heads/master | 2020-05-02T01:06:51.690038 | 2019-06-30T22:18:29 | 2019-06-30T22:18:29 | 177,681,383 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 30 19:00:06 2019
@author: ferchi
"""
import math as m
from matplotlib import pyplot as plt
import numpy as np
from scipy.optimize import curve_fit
from array import array
import os
import sys
from scipy.integrate import quad as inte
carpeta='C:/Users/ferchi/Desktop/gith... | [
"fcaprile@gmail.com"
] | fcaprile@gmail.com |
33f2f552754a26206f2b192b5ce5639d80bcdbf5 | 5efc0271eb922da63a6825112b4de786915b1b89 | /22_qpdf简化使用/test.py | def4e13a983537dc89696317c9b91c7f06cd114e | [] | no_license | uestcmee/PiecemealScripts | 41e7d45cbcd5d720822da6cbc935efd2ce0fcee4 | a18b4dd58229897aafe53767448e3fd8fb9c1881 | refs/heads/master | 2021-04-21T16:04:04.006230 | 2021-01-07T06:47:45 | 2021-01-07T06:47:45 | 249,794,695 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import re
files='{D:/Desktop/Geryler Karadi 2015.pdf} D:/Desktop/光伏产业\链.png'
files.replace('\\','/')
print(files) | [
"zikepeng@outlook.com"
] | zikepeng@outlook.com |
a00f94a9e471ce1f11eaa85e7c0a82d80b5634d4 | a356d83e4b4d87d3494f5a162ba16fa71fedd480 | /opencv_cnn_plant_v0.py | 4ff4634a1c7a7bb4f353ae9ae51bca4bbe230e39 | [
"MIT"
] | permissive | mjain72/OpenCV-and-CNN-for-plant-classification | 6e024270e409e2979397df6d2ab2496a7a72cead | 7e650697c6e192b82016e36bf96c234be7ec4856 | refs/heads/master | 2020-03-23T19:40:08.461722 | 2018-07-23T09:58:14 | 2018-07-23T09:58:14 | 141,994,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,855 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 21 12:37:24 2018
@author: mohit
"""
import cv2
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
from tqdm import tqdm #to show progress
from sklearn.model_selection import train_test_split
from keras.models import S... | [
"noreply@github.com"
] | mjain72.noreply@github.com |
2302883fc7ae5c935c28322e4dca3573cfdade73 | 4347bddb0b39aa60f758eead103454254cc6e467 | /proyecto/biblioteca/apps/libro/admin.py | eb95fd554d93d2dbd9e4e0fb42cb92cbc1059186 | [] | no_license | soledadfbarrios/proyecto | 4573542f57ef4fbe35a2f4519fa10c0ac9ea8d5e | a284b1ce187a243de45cebd560a85af86ba79ee3 | refs/heads/main | 2023-08-23T01:30:12.514942 | 2021-10-21T01:53:55 | 2021-10-21T01:53:55 | 419,546,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from django.contrib import admin
# Register your models here.
from .models import Autor, Libro
#importamos el modelo Autor
admin.site.register(Autor)
#registramo la clase creada
admin.site.register(Libro) | [
"86332428+soledadfbarrios@users.noreply.github.com"
] | 86332428+soledadfbarrios@users.noreply.github.com |
0c6c3749e3e833c57bdc0ef645fd60c82467e7ff | 7b20bfea333946b7241ee48be7341d89fa11b3e4 | /main.py | 17661dd44ebacb4d52be871ef3f144887602a68f | [] | no_license | esperandote/solvecube | 8a363325d1c003fda3ed6a8d30810b10ff12a799 | 397a558632660c656dd52951622b7e7e2817c6ed | refs/heads/master | 2020-07-16T01:35:55.336989 | 2019-09-01T15:11:47 | 2019-09-01T15:11:47 | 205,692,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,044 | py |
#encoding:utf-8
import cube
def checke(state,a,b,c):#check edge piece a in position b and orientation c
if(state[b-1]==a and state[b+19]==c):
return True
else:
return False
def checkc(state,a,b,c):#check corner piece a in position b and orientation c
if(state[b+11]==a and state[b+31]==c):
return True
else... | [
"unnino@126.com"
] | unnino@126.com |
006123581571814076c0c5a650ae638e95c97553 | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode/Question_010_Regular_Expression_Matching.py | 68ae34c4b6feaa6b7adadbf0450d28621463d895 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def isMatch(self, s, p):
"""
:type s: str
:type p: str
:rtype: bool
"""
if not p:
return not s
m, n = len(s), len(p)
dp = [[False] * (n + 1) for i in range(m + 1)]
dp[m][n] ... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
53098885dc20c023f509ece3f40ecf25383fd679 | 381c0b67d9078f1c88e29535643bfd22a897b754 | /helloWorld/venv/bin/pip3.7 | cabf51f8dfe2c2c7218591c85fc1ce659604aa25 | [] | no_license | zrshishir/python-programming | 9c41cdbc563b82f378eb3db686c530cd548dff7f | df93f09a3e4a93d8656441e3c515cd532e229925 | refs/heads/master | 2022-12-01T04:46:21.950559 | 2020-08-11T18:18:48 | 2020-08-11T18:18:48 | 286,817,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | 7 | #!/Users/zrshishir/PycharmProjects/helloWorld/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zrshishir@gmail.com"
] | zrshishir@gmail.com |
c90437d7489788001cdc9b5f5959fdffad3add2b | b2fc177dc3ec04e9f2a7b745b8c6cf885e01ee83 | /lab8/lab8/shop/api/admin.py | f37c38704c68f9983f5bd9466f5190b1d185408b | [] | no_license | Nurdaulet08/WebDev | 1be154f1174ffb3ecae5e76e7b2765588319a6e8 | aa13c9f4e88e654df472d5a302a5faff939cee08 | refs/heads/main | 2023-04-06T03:11:29.905226 | 2021-04-15T13:54:10 | 2021-04-15T13:54:10 | 337,661,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from django.contrib import admin
from .models import product
from .models import category
admin.site.register(product)
admin.site.register(category)
| [
"noreply@github.com"
] | Nurdaulet08.noreply@github.com |
d32573cf52bfd3b5afcb5fdd67737d39274ea1c5 | 0c71b3b47314dfb26b74e1886039e4f58404084b | /飞机大战/main.py | 1ca0ff99aa40814f2f4d433e6ce326dcd8724539 | [] | no_license | Ceeeeeeeeeeeeeb/AircraftBattle | a33dd6ac0326186ac9fb0b101f5097ab4eafa4fd | c9f90b4921cd56924c4c20bda1a6490b27937a32 | refs/heads/main | 2023-03-16T08:53:57.134516 | 2021-03-12T06:05:18 | 2021-03-12T06:05:18 | 346,951,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,618 | py | import pygame
import sys
import traceback
import myplane
import enemy
import bullet
import supply
from pygame.locals import *
from random import *
import os
if not os.path.exists('record.txt'):
with open("record.txt", mode='w', encoding='utf-8') as ff:
ff.write('0')
pygame.init()
pygame.mixer.init()
bg_s... | [
"w18500351019@163.com"
] | w18500351019@163.com |
a66a9fd2e8e3f5ce2f3ec138056b33f7f578050a | eb977cdfc8d2333d4d36efc2e742004f25640139 | /mac/shop/views.py | a5deb77d3a1bab27478f652762d7f73bb4152ff5 | [] | no_license | surajrawat1210/ecommerce | 775faf207a4a3c0579d673691190d45b57c9fa87 | 6f6e950ebaf56d233ca6a22639222b720599511f | refs/heads/master | 2023-05-06T05:20:02.785202 | 2021-05-21T08:05:57 | 2021-05-21T08:05:57 | 369,461,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | from django.http import HttpResponse
from django.shortcuts import render
from . models import Product,Contact
from math import ceil
def index(request):
product=Product.objects.all()
allprods=[]
catprods=Product.objects.values('category')
cats={item['category'] for item in catprods}
print(cats)
f... | [
"surajrawat09859@gmail.com"
] | surajrawat09859@gmail.com |
9e0224d54a64afde8a18b0b2ae04e85b56617093 | d110546d747d7e3865ce5742d5fca09f404623c0 | /pkg/windows/nsis/tests/config_tests/test_install_dir_custom_minion.py | fcdf2146e0a35e6c3723e06236f4a534092dffa9 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"LGPL-2.0-or-later"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 1,375 | py | import os
import pytest
@pytest.fixture(scope="module")
def inst_dir():
return "C:\\custom_location"
@pytest.fixture(scope="module")
def install(inst_dir):
pytest.helpers.clean_env(inst_dir)
# Create a custom config
pytest.helpers.custom_config()
pytest.helpers.run_command(
[
... | [
"leesh@vmware.com"
] | leesh@vmware.com |
693f078cfc8b1df7350051c51f2a3374af94075f | 91639fea573828d08e8642a9022fe2ec62319414 | /telegram/forcereply.py | ed4d9c821ee6c8043822fa94bc0db9cf3bec18eb | [
"MIT"
] | permissive | agincel/AdamTestBot | 9787a22f25a3bfc2bbab0b6c6e66b857cb369f32 | fee093c3dd944881bd92c9180fbb3a13700673da | refs/heads/master | 2020-05-22T04:26:39.241479 | 2016-12-29T22:15:04 | 2016-12-29T22:15:04 | 44,931,116 | 0 | 8 | null | 2016-10-18T22:04:33 | 2015-10-25T21:40:35 | Python | UTF-8 | Python | false | false | 1,753 | py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2016
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as publish... | [
"adam@DESKTOP-TA850RC.localdomain"
] | adam@DESKTOP-TA850RC.localdomain |
7612e8fe4a585cf142934c9de78f0311d029a988 | b6a2a61ebdbec779b504e2a92446200b540311f0 | /detect_with_classifier_sliding_window.py | 2f122d68473f4b8620525a002c63c1bfeb17d9ec | [] | no_license | Walid-Ahmed/Object-Detection-with-Sliding-Window-and-classification | 375b7a4a8602b8f78d4e05103784da2ac8ce096a | e10b5c1513d5c3dff1e335a8ed256ff4db02b964 | refs/heads/main | 2023-05-26T17:38:59.769367 | 2021-06-20T11:38:48 | 2021-06-20T11:38:48 | 378,446,914 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,511 | py | '''
Credit
Adrian Rosebrock, urning any CNN image classifier into an object detector with Keras, TensorFlow, and OpenCV , PyImageSearch, https://www.pyimagesearch.com/2020/06/22/turning-any-cnn-image-classifier-into-an-object-detector-with-keras-tensorflow-and-opencv/, accessed on 16 April 2021
'''
# USAGE
# pyth... | [
"noreply@github.com"
] | Walid-Ahmed.noreply@github.com |
99e24fc1e58762f96e053af6d8df04e9c57e9ee0 | e0d34ce5603b04f50ac019c54e524e91b818bf73 | /world_cup_sim.py | 7d483cdcbd5938234b6cc59367e521d57538b93e | [] | no_license | alck11/world-cup-elo | 9828b1a7e592fc9e4a19aea395d107f2d02a760d | 38a29b8099f3fcdaf2b321ddb5e0b96578da992a | refs/heads/master | 2020-03-19T12:33:03.994206 | 2018-06-08T07:05:35 | 2018-06-08T07:05:35 | 136,525,001 | 1 | 0 | null | 2018-06-07T20:00:29 | 2018-06-07T20:00:28 | null | UTF-8 | Python | false | false | 7,545 | py |
import random, math
from Match import *
from standings import init
from constants import *
from matches import matches
def get_updated_elo(prev, exp, outcome):
WORLD_CUP_CONSTANT = 60
new_rating = prev + (WORLD_CUP_CONSTANT * (outcome - exp))
return new_rating
def update_points(match_data, teams):
te... | [
"afreymiller10@gmail.com"
] | afreymiller10@gmail.com |
6ca464214a42ba84a9d25de3821c229dff2289b3 | 87dd7f0df1e73bcfeb2d3e1c80ff368f3768499b | /test/test_model3.py | 63340eb1cb6c6fb93fee5da9393f1e4d850d4d13 | [] | no_license | torloneg/fabulator-sdk-python | 18bf6b3996062ef28c5731ec67955734a2da87ce | c9480ed4ea4acee2b067b2471759ab68a5eca4b1 | refs/heads/master | 2020-04-18T07:07:55.481187 | 2019-01-24T10:32:08 | 2019-01-24T10:32:08 | 167,349,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # coding: utf-8
"""
Fabulator API
Endpoint Fabulator project # noqa: E501
OpenAPI spec version: 1.0.0
Contact: torloneg@gmail.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_cli... | [
"torloneg@gmail.com"
] | torloneg@gmail.com |
72c49aa9bbe684e1346f0668477ce89c841a9b0a | 74192ed5b9b5529c7b6ab9f238e9f44d5dce6aca | /backend/manage.py | abefc5fc0c9913675279a1ecc7a3677e5d3465ed | [] | no_license | crowdbotics-apps/black-mart-23466 | 47691415229f97248b7aaf18c6efca45f81d6e84 | 5be279d61e74cc543782b8879ca4d7abeb3ad06c | refs/heads/master | 2023-02-03T22:51:54.843742 | 2020-12-24T19:41:41 | 2020-12-24T19:41:41 | 322,783,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "black_mart_23466.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ed60f4604756b8ab463685159c294e5bedba1161 | ec25c4bfaf364b1aed31245d5ad20e1acbb4c723 | /scripts/distpass_createjson_dataset_bruteforce.py | 4d48be662f4704caa8b25ae382612401727ed9cf | [] | no_license | lclms/distpass | 28cce1086b37f844dfc3b74ac0286e6dbf8349fe | dad7eda68551315911dec2a951d4c759da65038a | refs/heads/master | 2020-03-30T08:24:45.200309 | 2018-10-02T22:36:34 | 2018-10-02T22:36:34 | 151,012,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: luismarques
"""
filepath = 'az09.txt'
file = open('file_importa_distpass_brute_force.json','w')
with open(filepath) as fp:
line = fp.readline()
cnt = 1
var = 50000
dobra = 50000
s = "4"
while line:
try:
type(int(... | [
"noreply@github.com"
] | lclms.noreply@github.com |
65b8f432c0f9ad2a8d3da0b263fbe75b60296b9d | 1d4a0e2ea3923ee9799bf696123cb82262e61619 | /drenaj/utils/drnj_time.py | afcec7ecd3c94e507f4114ce3b84839da924a19d | [
"MIT"
] | permissive | kyzn/drenaj | f5e026a374df7a998fdd7b6ab0f8a7c0f87e9bbe | 89c0da419ea936d48bf63766cdff40432aacfe44 | refs/heads/master | 2021-01-11T02:56:59.978637 | 2017-03-05T18:45:29 | 2017-03-05T18:45:29 | 70,877,162 | 0 | 0 | null | 2016-10-14T05:32:25 | 2016-10-14T05:32:24 | null | UTF-8 | Python | false | false | 1,247 | py | # This file defines the functions for time conversion
#
import time
number_of_days_from_1_Jan_0000_to_1_Jan_1970 = 719529.0
def now_in_drnj_time():
t = time.time()
return py_time2drnj_time(t)
def py_time2drnj_time(t):
"""
t : seconds from 1-Jan-1970
returns days from 1 Jan 0000
"""
dt ... | [
"onurgu@gmail.com"
] | onurgu@gmail.com |
a71a9e09267dcf33aa66e75ad4fb6119b393b175 | 5dea72cb1d1978c2cef9792d273af74e7a4d3031 | /api_1.3/containerd/services/namespaces/v1/namespace_pb2_grpc.py | 599bf6f0e012a31eebfb7a79a0d3a2134dcfd5d0 | [
"Apache-2.0"
] | permissive | Silvanoc/pycontainerd | 1cd019828260bef51d566fb4b996ba8166e659d3 | 7245ce623d978f65cd8a4cf0d685a3318640a305 | refs/heads/master | 2020-11-24T22:45:30.072647 | 2019-12-16T12:05:42 | 2019-12-16T12:05:42 | 228,370,707 | 0 | 0 | Apache-2.0 | 2019-12-16T11:33:02 | 2019-12-16T11:20:22 | Python | UTF-8 | Python | false | false | 6,631 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from containerd.services.namespaces.v1 import namespace_pb2 as containerd_dot_services_dot_namespaces_dot_v1_dot_namespace__pb2
from containerd.vendor.google.protobuf import empty_pb2 as containerd_dot_vendor_dot_google_dot_protobuf_dot_... | [
"silvano.cirujano-cuesta@siemens.com"
] | silvano.cirujano-cuesta@siemens.com |
406a6a5350cfcd2121bd46613212bf6cb3324b4b | 5c7887eedad07ab764ad247ba6b4e9cd73675993 | /embeddings/words.py | ecfaf38507836a43f0c7f537ad5f2091d25a00d2 | [
"MIT"
] | permissive | jonathanmutal/neuralFrame | b573fd49098b90f0721765b87f90c9a767e9ff48 | 23f249e01c915856919c7e87247b3678f5d1a887 | refs/heads/master | 2022-01-25T05:04:15.869026 | 2019-05-13T09:03:54 | 2019-05-13T09:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | class IndexWords:
"""
This class is to manage word indexing.
A sentence would be understood by the algorithm as long as we map each word by
a number.
"""
def __init__(self, sentences=[], vocabulary_file='', pad_word='<s>'):
"""
:sentences: the sentences which contains most vocab... | [
"Jonathan.Mutal@unige.ch"
] | Jonathan.Mutal@unige.ch |
342d7838454b684e37cb8847a8e2eb7083a265e8 | bae75bf1de75fb1b76e19b0d32c778e566de570a | /smodels/test/testFiles/scanExample/smodels-output/100488230.slha.py | 61b10a9b406b2f585c269025d1c544acdcb3f737 | [] | no_license | andlessa/RDM | 78ae5cbadda1875c24e1bb726096b05c61627249 | ac6b242871894fee492e089d378806c2c2e7aad8 | refs/heads/master | 2023-08-16T00:47:14.415434 | 2021-09-21T20:54:25 | 2021-09-21T20:54:25 | 228,639,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,108 | py | smodelsOutput = {'ExptRes': [{'AnalysisSqrts (TeV)': 8, 'chi2': -0.01262596850888705, 'dataType': 'efficiencyMap', 'Mass (GeV)': [[808.3, 321.4], [808.3, 321.4]], 'maxcond': 0.0, 'expected upper limit (fb)': 0.242, 'likelihood': 0.24134326901519393, 'AnalysisID': 'ATLAS-CONF-2013-093', 'upper limit (fb)': 0.21, 'theory... | [
"lessa.a.p@gmail.com"
] | lessa.a.p@gmail.com |
362880e0fbf0290665972c5cd1dc295ac48f3de4 | 4ac17d029103e277c2f5776fa34a458e2456585e | /network/models/pranet/pranetv0.py | 635e0412271bdcdd23aeea9cffcf9ea38dc76d5a | [] | no_license | taintpro98/polyp_segmentation | 2784ed243a616c2ab9384f088b0e47b61dbfeaba | 91086ed1d0a4a2d2411aa3d58d6fd93caf628b2e | refs/heads/master | 2023-06-03T12:55:36.591420 | 2021-06-18T06:22:08 | 2021-06-18T06:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,332 | py | from .pranet import BasicConv2d, RFB_modified, aggregation
from torch.nn import BatchNorm2d, BatchNorm1d
import torch
import torch.nn as nn
import torch.nn.functional as F
from ...encoders import res2net50_v1b_26w_4s
from ...contextagg import DualGCNHead, DualGCN
class PraNetv0(nn.Module):
def __init__(self, chan... | [
"hunglhp1998@gmail.com"
] | hunglhp1998@gmail.com |
e5878d1630a04a9819cd721e83e981494c4ab280 | 4deaf8f4f1a91fc12c3a3d10bc8794fa62f54657 | /scroll.py | 12b341c435a70848dc667627818fd7ffcd2411ea | [] | no_license | AdopaX/Manimouse | 03554d81ef5a1a8576ec7041d361541dff0c5096 | 3b02fca16b93be98af093274e6249465b9ee2295 | refs/heads/master | 2021-06-14T21:35:03.308346 | 2017-01-29T17:27:14 | 2017-01-29T17:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,119 | py | # All packages needed for the program are imported ahead
import cv2
import numpy as np
import pyautogui
import time
# Some global variables or others that need prior intialization are initalized here
# colour ranges for feeding to the inRange funtions
blue_range = np.array([[88,78,20],[128,255,255]])
yellow_range = ... | [
"noreply@github.com"
] | AdopaX.noreply@github.com |
17570f54174509c08a7569382cdcdaf5f2c2349b | 177230d7823a5950dea301276c714a9a305b8aa0 | /contentBasedPlotDescription.py | 8f0312e8aa3c51b71769233d9805cc9454c4868c | [
"MIT"
] | permissive | szels/recommender_system | 19480c97aa51c38a1b4ff30fc188ff62691c39a7 | 06839a1e6d4c81cbffe5970f4d4fa60e363b5481 | refs/heads/master | 2020-05-03T17:25:57.588412 | 2019-04-02T20:06:14 | 2019-04-02T20:06:14 | 178,743,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | # read https://www.datacamp.com/community/tutorials/recommender-systems-python
import pandas as pd
# Load movies metadata
metadata = pd.read_csv('../data/movies_metadata.csv', low_memory=False)
#print metadata.head(3)
#Print plot overviews of the first 5 movies.
#print metadata['overview'].head()
#Import TfIdfVecto... | [
"szels@gmx.de"
] | szels@gmx.de |
73f5ed3543f2d49ad1f6a7f276439bce2babf8af | 7fbb895133aa287007f09573d09fa2cfe796e89d | /examples/Multilabel/multilabel.py | 63dcebfcd333115b4ae784adb6ec77d747f39dd1 | [
"Apache-2.0"
] | permissive | xiaosongwang/tensorpack | cde523c656ae1094107151d8502be3d04b749dbf | b7e676c77866d4e86ec8b90507bcf63583255846 | refs/heads/master | 2021-01-19T01:10:46.737590 | 2017-05-08T19:35:01 | 2017-05-08T19:35:01 | 87,231,953 | 1 | 1 | null | 2017-04-04T20:30:16 | 2017-04-04T20:30:15 | null | UTF-8 | Python | false | false | 8,562 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: multilabel_v1.py
# Author: Xiaosong Wang <xswang82@gmail.com>
import cv2
import tensorflow as tf
import argparse
import numpy as np
from six.moves import zip
import os
import sys
from tensorpack import *
from tensorpack.tfutils.symbolic_functions import *
from ten... | [
"xiaosong.wang@live.com"
] | xiaosong.wang@live.com |
6c2cf63addd9d3664eeabb0d446ac9beeed5c449 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch16_2020_03_21_00_14_52_868139.py | 94be6d91f54a3fead1d374afc0cf87ba1bac9fca | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | f=float(input('conta:'))
f=f*1,1
print('Valor da conta com 10%:R$ {0:.2f}'.format(f))
| [
"you@example.com"
] | you@example.com |
ee3473b10902f6c6c697639c370c76082fa54da6 | 06919b9fd117fce042375fbd51d7de6bb9ae14fc | /py/dcp/problems/graph/find_order.py | 65b844789e326bb2a11db792095d06afc91af167 | [
"MIT"
] | permissive | bmoretz/Daily-Coding-Problem | 0caf2465579e81996869ee3d2c13c9ad5f87aa8f | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | refs/heads/master | 2022-12-07T15:41:06.498049 | 2021-11-18T19:45:19 | 2021-11-18T19:45:19 | 226,376,236 | 1 | 0 | MIT | 2022-11-22T09:20:23 | 2019-12-06T17:17:00 | C++ | UTF-8 | Python | false | false | 1,593 | py | '''Topological sort.
We are given a hasmap associating each courseId key with a list of courseIds values, which tells us that the prerequisites of courseId
are course Ids. Return a sorted ordering of courses such that we can complete the curriculum.
Return null if there is no such ordering.
For example, given the fo... | [
"bmoretz82@gmail.com"
] | bmoretz82@gmail.com |
f7383bb07b5a685e539266485c37b94cae869f20 | 992b6058a66a6d7e05e21f620f356d1ebe347472 | /fluent_pages/migrations/0001_initial.py | bebe90e32b27fb10654917cc68d5847990affc35 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | masschallenge/django-fluent-pages | 5ffb47a6dc4d7333ccbef9973cea4e6cf79569fe | 8beb083d89fba935ef3bfeda8cacf566f28b1334 | refs/heads/master | 2021-07-15T14:27:46.078658 | 2015-11-12T16:52:00 | 2015-11-12T16:52:00 | 28,341,345 | 0 | 0 | NOASSERTION | 2021-03-24T18:53:09 | 2014-12-22T14:17:52 | Python | UTF-8 | Python | false | false | 9,911 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'UrlNode'
db.create_table('fluent_pages_urlnode', (
('id', self.gf('django.db.m... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
8e508f5de15158bc323cee8419d2fbd8c6e85167 | d4f485d9e331a8019dcffbc8467e403103ed209e | /python/p053.py | 70bcebcd59a12d96593b3c96da5a39079dac6e75 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | doboy/euler | 777a8c5c7ab5474796e9baab1403934bda645065 | 75a73d7a48f7e02b772a96bec168194ba6f3b666 | refs/heads/master | 2020-04-09T23:54:53.184650 | 2019-01-13T20:06:15 | 2019-01-13T20:06:15 | 2,723,288 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from utils import product, choose
def countGen():
for n in xrange( 1, 101 ):
for r in xrange( 1, n // 2 + 1 ):
if choose( n, r ) > 10 ** 6:
yield 2 if n - r != r else 1
print sum( countGen() )
| [
"Doboy@Huans-MacBook-Pro.local"
] | Doboy@Huans-MacBook-Pro.local |
b3d94c75f6e50153a6dcd11c78d49a3a93aa63e6 | a13e369f7d98f6a97021a654421c71d957b2cb38 | /design/design.py | a1c23c88cf6caeb91bab7b703ab6a98f30da75cf | [] | no_license | eginez/bigdl-jdks | 557f8a65c1dca81bcfabff58b12438b389b67498 | f43d37270507a2b62111a8f4f4a802b06ff750d2 | refs/heads/master | 2023-01-01T13:35:19.329676 | 2020-10-24T13:28:25 | 2020-10-24T13:28:25 | 298,538,355 | 0 | 0 | null | 2020-10-03T08:25:37 | 2020-09-25T10:15:18 | HCL | UTF-8 | Python | false | false | 3,026 | py | import json
import pandas as pd
from argparse import ArgumentParser
from pyDOE2 import fullfact, ff2n, fracfact_by_res
def frac_by_max_res(factor_count, target_resolution=6):
"""Generate fractional factorial design sign table with maximum resolution"""
try:
if target_resolution >= 3:
retu... | [
"wvdbrug@gmail.com"
] | wvdbrug@gmail.com |
07b0ee808e6b529d4d78ec6d7216bfd8955af654 | 9f82983f5f119635931a0233ec86aa223f5f57ec | /base/myfields.py | 1d4f1eb4da76105d460d99c280ed7ac274e61ae4 | [] | no_license | Arox/d_and_d | d49532cd0b0a824aea3f4767200fa9463d2ae6a0 | d707c5cdb557f23f12c99ac8f1b7bd7c86e2a935 | refs/heads/master | 2020-06-02T00:34:12.648579 | 2015-03-21T10:21:01 | 2015-03-21T10:21:01 | 32,378,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from django.db import models
import ast
class ListField(models.TextField):
__metaclass__ = models.SubfieldBase
description = "Stores a python list"
def __init__(self, *args, **kwargs):
super(ListField, self).__init__(*args, **kwargs)
def to_python(self, value):
if not value:
... | [
"mailofarox@gmail.com"
] | mailofarox@gmail.com |
b0ee96afdbb8d940aeeedbe2f8276662709cd207 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200913b_python2m8/day06_201018/filedir_4_remove.py | 0740189b7058ab68253a539e1376c26eddba0f08 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | """
remove dir or file
remove(name)
"""
import os
# os.remove("mydir3a")
# remove a file
os.remove("rename_file_new.py")
| [
"lada314@gmail.com"
] | lada314@gmail.com |
6e5e1b9cb98e0bf40839ba51dd140cf6e32afa14 | fe75b011ad3072ba80db7676a13b20483f515ecf | /hp.py | d80e582da3fa01699dc9d5393ee0d54d52e8d8a3 | [
"MIT"
] | permissive | meelement/noise_adversarial_tacotron | 87f91f03f421ea374082c61c4e16564035fcc080 | 7a7fda49eb8bf82f5139743d55639d48ff204e9e | refs/heads/master | 2022-02-13T20:47:45.626008 | 2019-08-15T00:58:31 | 2019-08-15T00:58:31 | 204,584,234 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,480 | py | from pathlib import Path
from os.path import expanduser
from os import makedirs
from random import sample
from os import system
from math import exp
from platform import node
# Debug Trigger ###############################################################
## Set your debug trigger here.
debug = "sorcerer" in node()
if... | [
"mr.jimmy@foxmail.com"
] | mr.jimmy@foxmail.com |
0d7f1fc9b62199e37dce2ba1ac1f4d5ec06cf21a | affc88ec2d455414261949d6e87ad1fedee3db90 | /02.Python/day4-函数模块与包/package1/subPack1/module_12.py | 9cbe82bdc5e46fb1c24dafbff87f28a3e725b104 | [] | no_license | Wilson-Sunshine/Machine-Learning-Kaikeba | 6c7d12e4fbbb68a42fff5b99e464a64265bc199d | 40b8919805e4b32ec21c274f1bddcdb79e31d54a | refs/heads/master | 2020-08-02T22:24:35.179330 | 2020-02-19T22:20:19 | 2020-02-19T22:20:19 | 211,524,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | def funcB():
print("funcB in module_12")
return | [
"wilson@wilson.local"
] | wilson@wilson.local |
260b2eda0001da5dd016cc606b317e4f77282597 | f23e648a63750dc66645177426717dee549351bf | /stock_czsc_tools.py | d0b08eab05fc257c7a60c49e3bd427668e17fdb8 | [] | no_license | billlaw6/my_python | 6d348d4febe7a2492dfc67e2abe04f5d67e57155 | fe322953e603d70484c69cd73fe7ac71d0353290 | refs/heads/master | 2021-01-10T23:56:39.376887 | 2016-12-30T08:46:34 | 2016-12-30T08:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,367 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# File Name: stock_czsc_tools.py
# Author: bill_law6
# mail: bill_law6@163.com
# Created Time: Wed 23 Nov 2016 01:37:38 PM CST
import tushare as ts
import time
import datetime
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib.fi... | [
"liubin6@gmail.com"
] | liubin6@gmail.com |
12cf2c51c229d7b623d42256e911e7269940fea2 | 04e38597b547424b0d0b0db163372f8a68cc6f92 | /publichealth/home/migrations/0003_auto_20170223_0959.py | 486ad8cf15b2c2fd853a833161d6e0ff009d696c | [
"MIT",
"BSD-3-Clause"
] | permissive | datalets/public-health-ch | 9888dc2561377f024c77fb36a53022958f47a114 | 1cf81f055562afb6954c6b462447fed2957f1006 | refs/heads/master | 2022-11-24T05:30:08.594863 | 2022-11-17T13:30:26 | 2022-11-17T13:30:26 | 88,725,732 | 4 | 4 | NOASSERTION | 2022-11-09T23:49:26 | 2017-04-19T09:19:51 | Python | UTF-8 | Python | false | false | 4,824 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-23 08:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migr... | [
"oleg@utou.ch"
] | oleg@utou.ch |
b99d30b0d196ba1a95380cde7bcc023fc44bddf2 | a4de363190f23f5c7d61e743dcee9cfc674d055d | /testbed/tektronix-afg3252-function-generator/afgtest.py | b069b23be01d913ad360c8448bb6a8cd9838a273 | [
"MIT"
] | permissive | kaikai581/t2k-mppc-daq-deprecated | 150816beb3af39349392e6e87b7244422c1365ba | c4e792eaf6617e603671b04bab9a033a39b1e245 | refs/heads/master | 2022-12-06T09:44:13.042956 | 2020-08-27T18:13:07 | 2020-08-27T18:13:07 | 269,753,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | from AFG3252 import *
import argparse
import time
import socket
if __name__ == '__main__':
# Command line argument to use another IP
parser = argparse.ArgumentParser()
# Default IP address of the function generator assigned by me.
parser.add_argument('-i','--ip', help='IP address of the function gene... | [
"kaikai581@hotmail.com"
] | kaikai581@hotmail.com |
f2bd15544ee3c84be073387e3bc96998892d8e21 | 5ca07360f2350a193251099b379d3105ee9ab566 | /projekt/urls.py | 920e304adbff0c395963a393211f70a8449fbb90 | [] | no_license | MateuszO99/Projekt | b4d4ebbd7af109e14a30566bc22e96b483223fdf | d1cb1206c1ab5a259c828574e9756204886d1432 | refs/heads/master | 2022-08-27T19:20:38.094470 | 2020-05-18T09:35:28 | 2020-05-18T09:35:28 | 247,076,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | """projekt URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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-based... | [
"315352@uwr.edu.pl"
] | 315352@uwr.edu.pl |
9e673189f7b3663b9f3c1004c0d52e8ed3aec3bb | 871c8b48a58b3e7dc7821e14bc451acb92dfe33e | /cms/migrations/0009_auto_20160308_1456.py | e5cf4eb94dfd3f19f01071c28af85f5df2715bea | [
"BSD-3-Clause"
] | permissive | sonsandco/djangocms2000 | 6f3937e2185707c32f15e5e42d06e138751d85e4 | 25131e9e8659a7a30a8fd58b7da011cbb928c8ac | refs/heads/master | 2022-08-25T22:18:17.173639 | 2022-08-17T11:36:36 | 2022-08-17T11:36:36 | 121,998,739 | 0 | 0 | NOASSERTION | 2022-07-24T05:16:48 | 2018-02-18T23:00:47 | Python | UTF-8 | Python | false | false | 1,935 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-08 01:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0008_auto_20150216_1649'),
]
operations = [
migrations.AddField(
... | [
"gregplaysguitar@gmail.com"
] | gregplaysguitar@gmail.com |
6202d9a57108677f07b79083de4263b4ff9620f9 | 79df6b960b2902dc04fad41ef40a48d9305de625 | /setup.py | ddbf6c0698a7800d1bed1f6497413d3ee5cff2c3 | [] | no_license | dagheyman/rovarsprak | 70fc3e14010823bf8e6db58b9689574826127e02 | 7de2e4b63872b2d1b9534f92d585855a6b573775 | refs/heads/master | 2021-01-19T06:36:25.129869 | 2016-08-03T16:05:19 | 2016-08-03T16:05:19 | 64,612,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from setuptools import setup
setup(name='rovarsprak',
version='0.1',
test_suite='test')
| [
"dag@yubico.com"
] | dag@yubico.com |
1c8af3684fa3376ab710147e87f4ca6dae8accac | b83bd5b9b0403223e6a1fbd370dbe74091835534 | /helper_scripts/gmx_msd.py | 05d668e1def26c9240d2b5e7b2073e0fc8de6b66 | [] | no_license | eboek/AlkaneStudy.Gromacs | e7403c2de9a16c7df3f7927952c773af8748346c | 88ac8d2248a8638f34ec5106bef0a549d99a3620 | refs/heads/master | 2020-09-03T16:49:12.200265 | 2019-11-01T14:40:29 | 2019-11-01T14:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # subprocess module is used to call gromacs commands
import subprocess
import re
startTime = '1000' # picoseconds (as a string)
gmxCmd = 'gmx_d' # Usually 'gmx', but 'gmx_d' for double precision
# Set filenames
xtcFile = 'xtc_'+suffix+'.xtc'
tprFile = 'tpr_'+suffix+'.tpr'
# Call again to extract properties
shiftStr... | [
"stephen.burrows@hotmail.com"
] | stephen.burrows@hotmail.com |
66922cde445ad633e85b3360be8a3feddb8824b6 | 2a98d60ee861cc2e5003348c0903b2eebc8b4e77 | /GUI_Tests/first_gui.py | 48785eb3898e5afdaafb015d3893adcc0d996ee7 | [] | no_license | ljkeller/Sorting-Visualization | f68abc4a9ff37435230b18fd58465f7f13659a7d | 80d6bb546db5ea167494cb813d37fe09c7bceffa | refs/heads/master | 2020-11-27T23:51:59.122242 | 2019-12-26T23:41:27 | 2019-12-26T23:41:27 | 229,652,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,876 | py | import math
import random
import heapq
import PySimpleGUI as sg
CANVAS_HEIGHT = 820
CANVAS_WIDTH = 1400
NUM_ELEMENTS = 175
BLOCK_WIDTH = int(CANVAS_WIDTH / NUM_ELEMENTS)
COUNTER = 0
def new_dataset():
return [random.randint(0, CANVAS_HEIGHT) for i in range(NUM_ELEMENTS)]
def clear_graph(graph, graph_elements):... | [
"kellerjlucas@gmail.com"
] | kellerjlucas@gmail.com |
f34b8ffa6417786f7e33668349eb60cae8dfed9a | dadd2955aad6e9435e1fd168301eb54edc668e3a | /hello_world_python_django/hello_world_python_django/wsgi.py | b080316525d197f32a8254bfd9e79ad6d9e7e0f5 | [] | no_license | trackness/hello-world-python-django | a73921275d11deb73917b09397ef601b570d6e28 | 4b8d3e9c3d93a28f2638b7cb62e3442637e30c98 | refs/heads/master | 2022-12-02T01:50:14.418745 | 2020-08-15T18:25:50 | 2020-08-15T18:25:50 | 287,792,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for hello_world_python_django 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"40263851+trackness@users.noreply.github.com"
] | 40263851+trackness@users.noreply.github.com |
6e0472e4471dd8faeb439276a7fdb64178bb84d7 | d5496ee23dccc763d4f8b1e8ae7e1b29d21c18ce | /core/api/serializers.py | b0d47ae0396e67afe7a38d8989aad7373b8a3b15 | [] | no_license | And3rson-Paiva/pontos_turisticos | c685097c3711043eb0fd46459531187feb60d70d | f2ee3cca95234ffc1e21e36437e553c1e7c0cfef | refs/heads/master | 2022-12-27T15:32:33.038773 | 2020-10-16T15:57:20 | 2020-10-16T15:57:20 | 304,116,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from rest_framework.serializers import ModelSerializer
from core.models import PontoTuristico
class PontoTuristicoSerializer(ModelSerializer):
class Meta:
model = PontoTuristico
fields = ('id', 'nome', 'descricao')
| [
"and3rsonpaiva@gmail.com"
] | and3rsonpaiva@gmail.com |
dc8acecc08120972247d355d7d49943cc3d80b05 | 5ed35806523dd5587cb2dc31e55aa086dda87801 | /dataanalysis/modules/plot/GainAnimation.py | 72de0c0b884ea747a5f2ceaacb7c4a60adba299f | [] | no_license | oscarmartinezrubi/ledama | 97d3e188432e42f37dd0229080a8e0750acbf128 | 75fca624dfd38e58af32f23a96113b04248cc251 | refs/heads/master | 2020-12-31T04:16:59.640490 | 2016-09-16T12:04:12 | 2016-09-16T12:04:12 | 68,370,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,061 | py | ################################################################################
# Created by Oscar Martinez #
# martinez@astro.rug.nl #
#############################################################################... | [
"omrubi@gmail.com"
] | omrubi@gmail.com |
e7737a9da1906380651bf68b089dacca80d6427a | 0eb37240203486cc224be79ecf67614ead966109 | /Morgan stanley/qstn2.py | 5e9ff1c7d4894db247b41058c8e9197b0c6a3f9b | [] | no_license | kiranpuligorla/Algorithms | ec41a2a97843b6073c8d94d8269c1f3e8d1c9879 | 9d979874f3f36973300cc716bf3b003368cccfdc | refs/heads/master | 2021-08-09T00:27:15.043047 | 2017-11-11T18:47:33 | 2017-11-11T18:47:33 | 109,561,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | #!/bin/python3
def sort_numeric(st, bl):
dt = {}
for s in st:
k,v = s.split()
dt[k] = v
d_view = [(int(v), k) for k, v in dt.items()]
d_view.sort(reverse=bl)
for v, k in d_view:
print(k, dt[k])
def sort_lxg(st, bl):
st.sort(reverse=bl)
print('\n'.join(st))
if __n... | [
"kiran.puligorla@gmail.com"
] | kiran.puligorla@gmail.com |
9b607339c99c4efbe0cfbe4fda6f6c3457d9e823 | 73767b6a308cf11908bb17d7fac6f0412652d177 | /src/descriptions.py | a7a50a09b1a7b9eead1700e60b2ef1bcc66215bd | [] | no_license | ocarmieo/github-trends | ab36065319b19821b9767a493049eb9a088649e4 | 13aad00f0cf640bee0f4915684afed4bf898d3ad | refs/heads/master | 2021-01-19T02:21:01.856085 | 2020-08-11T17:57:05 | 2020-08-11T17:57:05 | 75,510,616 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | from __future__ import division
from collections import Counter
from pandas.io.json import json_normalize
import json
import numpy as np
import pandas as pd
from sklearn.decomposition import TruncatedSVD, NMF
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
import lda
def load_json_df(filen... | [
"cglai8@gmail.com"
] | cglai8@gmail.com |
2d97358a016a1bf55d4b27eb069b7ec83eb0808e | 2a5f45d8c61bc211ad44cb2df775fbceef86aeb4 | /app/config.py | 6bbd254585df4513870cbe99ae1bed11494f941d | [] | no_license | LABIOQUIM/Plasmodium-Classifier | dae58ac60dcd883f8a27a3556af0ca7f20aa14b0 | 407d27e4a440c247378ab196515572824b312b07 | refs/heads/master | 2023-03-13T10:00:05.672664 | 2021-03-05T00:08:38 | 2021-03-05T00:08:38 | 296,375,197 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = 'gvon475gvqn5q5AISWDU'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
ALLOWED_EXTENSIONS = {'png... | [
"thales3238junior@gmail.com"
] | thales3238junior@gmail.com |
7e96884df88998e1cd4b4b6f2f635021055b5322 | c317f99691f549b393562db200b1e9504ce11f95 | /algorithms_learn/what_can_be_computed/src/simulateDfa.py | efedb724f8a32d4de40d6a61ff15aa0d1e302d68 | [
"CC-BY-4.0"
] | permissive | RRisto/learning | 5349f9d3466150dbec0f4b287c13333b02845b11 | 618648f63a09bf946a50e896de8aed0f68b5144a | refs/heads/master | 2023-09-01T00:47:23.664697 | 2023-08-30T17:56:48 | 2023-08-30T17:56:48 | 102,286,332 | 15 | 24 | null | 2023-07-06T21:22:48 | 2017-09-03T18:42:58 | Jupyter Notebook | UTF-8 | Python | false | false | 1,135 | py | # SISO program simulateDfa.py
# Simulate a given dfa with a given input.
# dfaString: ASCII description of the dfa M to be simulated
# inString: the initial content I of M's tape
# returns: 'yes' if M accepts I and 'no' otherwise
# Example:
# >>> simulateDfa(rf('multipleOf5.dfa'), '3425735')
# 'yes'
import utils;... | [
"ristohinno@gmail.com"
] | ristohinno@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.