blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2bce02e783af0af714c95b82a85e5f81f24efc6 | d2a0d976e05a769d3c16d133b4baa1104fffb77a | /2019/eirik/day2.py | 8c070f9b3975ef28b70e8626bccaf0c53ced4625 | [] | no_license | Tarjeison/KebabOfCode | 9853f2f25004e2230a8c862eff12cea253e6269d | 46da626b78d1bd17a210dbed9b0c81c0f178b089 | refs/heads/master | 2022-12-06T17:34:54.957341 | 2022-12-04T13:00:06 | 2022-12-04T13:00:06 | 226,492,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py |
def is_valid_password_old(password, char, min_count, max_count):
return min_count <= password.count(char) <= max_count
def is_valid_password_new(password, char, pos_1, pos_2):
return (password[pos_1-1] == char) ^ (password[pos_2-1] == char)
with open('day2.txt', 'r') as file:
number_of_valid_passwords_ol... | [
"eirik.lid@statnett.no"
] | eirik.lid@statnett.no |
57355db77692aaf72dbe260226fada4ad49c149c | f31f1a1ce17a9ae50a107d1b5d2797efd6850618 | /neighborhood/tribeca/isolate_intersection.py | d4d611b00b1ac7483cd7dc2d9491ec52a05a2f17 | [] | no_license | mikebmc/fare_backend | cc18b2a20dc883a44ddc444c758b6cc31e8932f5 | 84534674bcffb944d1685d91595812fb55b7ad09 | refs/heads/master | 2020-03-08T06:46:24.964977 | 2018-05-22T18:27:12 | 2018-05-22T18:27:12 | 127,979,308 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import pandas as pd
import numpy as np
from pathlib import Path
import os
read_file = 'tribeca_data_2016-06.csv'
write_file = Path('busy_intersection.csv')
if write_file.is_file():
os.remove(write_file)
intersection = np.array([40.720768, -74.010015])
half_block_from_int = np.array([40.720410, -74.010097])
radi... | [
"crawboy@me.com"
] | crawboy@me.com |
1851de3fc5529f44c231e4d68c5db6c402f96996 | 197d1605a5dde500ddda1c9080eb2cb207d97d41 | /emojifi_site/emojifi/urls.py | ad9b09bcd25b9810facc564aa0236be82faad422 | [
"MIT"
] | permissive | bretttjohnson1/EmojiFi | 0d178fa23b1a0d76c1c3d69c5509ff81cb98f43d | 41e8bc03de83e5895a4872f5791af81072368854 | refs/heads/master | 2020-04-23T05:36:55.528445 | 2019-04-09T20:54:16 | 2019-04-09T20:54:16 | 170,945,270 | 1 | 1 | MIT | 2019-03-03T03:59:30 | 2019-02-16T00:19:55 | HTML | UTF-8 | Python | false | false | 232 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('emojifi', views.emojifi, name='emojifi'),
path('emojifi_types', views.emojifi_types, name='emojifi_types'),
]
| [
"btj12@case.edu"
] | btj12@case.edu |
3f9206db2472c2e54c8290aec6cf69a5b416a994 | 777bb211f34ee8b4b81ddb90d738afd4c2d59f3f | /src/moderate/stack-implementation/solutions/python/solution.py | e3d14018b21fc2a6ba62a4a14b40c00fe77cc5a7 | [
"MIT"
] | permissive | rdtsc/codeeval-solutions | ef158af9fcf1a3548663386884e04d3a7aee05fe | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | refs/heads/master | 2021-07-19T05:31:49.871413 | 2021-07-12T14:03:16 | 2021-07-12T14:03:16 | 245,548,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #!/usr/bin/env python3
import sys
class Stack:
values = []
def __init__(self):
self.values = []
def push(self, value):
self.values.append(value)
def pop(self):
return self.values.pop() if not self.empty() else None
def empty(self):
return not self.values
for line in (line.rstrip() for l... | [
"rdtsc@users.noreply.github.com"
] | rdtsc@users.noreply.github.com |
c67c6aa5d5f63958801f1bc6b365fa8cf502cda7 | bd933b02a85343e5c7b2bf4018c7d9e11d39b222 | /MODEL1303260003/model.py | e613b83d4e71b70742457b7c2808d360bbdebe8c | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | biomodels/MODEL1303260003 | 8533d064f8a9a65e84258cc98d91386adb69eb1e | a2695ffb9d247f28b8c397bc516c8750ea6ab559 | refs/heads/master | 2016-09-05T13:57:50.132052 | 2014-10-16T05:49:12 | 2014-10-16T05:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'MODEL1303260003.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
888d19439a4db1f52c52055430b3d64caf0aa050 | 09c3d65f7b19c105eeb3db17334f362feef78c05 | /tests/unit/core/test_connection_interface.py | 7fb7d084e115e9d4316efac8745390f65d20e02c | [
"Apache-2.0"
] | permissive | dme722/ayx-blackbird | 07e9f14aeba36be97e32cc5780694e90f0ded2ba | 16533e22e3cbe36621328d94500a6e58ec0c73ea | refs/heads/master | 2021-08-07T11:42:30.366083 | 2020-02-28T15:36:56 | 2020-02-28T15:36:56 | 220,735,871 | 14 | 2 | Apache-2.0 | 2020-09-21T15:23:24 | 2019-11-10T03:24:59 | Python | UTF-8 | Python | false | false | 3,951 | py | from AlteryxPythonSDK import AlteryxEngine, FieldType, RecordInfo, RecordRef
from ayx_blackbird.anchors import InputAnchor
from ayx_blackbird.core import ConnectionEvents, ConnectionInterface, PluginEvents
from ayx_blackbird.mixins import ObservableMixin
from ayx_blackbird.utilities.constants import ConnectionStatus
... | [
"dellison@alteryx.com"
] | dellison@alteryx.com |
5ae32f6183d8eb5c72e5e64fbe91ce386938a045 | 58edcb7b986781e2ae19358c1a10fa32c0f23b81 | /app/serializers.py | e63154836513251a6c1b972ca21c8808a2be81fc | [] | no_license | 0EVIL0/Sistema-Riego | a66167a39501ccd55fba9a19eb589e16c6208ef5 | fb904b60582a2ed5c05529e8fc438726f2d9a9fa | refs/heads/master | 2023-08-02T02:48:59.172798 | 2021-09-30T20:45:24 | 2021-09-30T20:45:24 | 407,360,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from rest_framework import serializers
from .models import *
class rolSerealizer(serializers.ModelSerializer):
class Meta:
model=rol
fields="__all__"
class UsuariosSerealizer(serializers.ModelSerializer):
class Meta:
model=Usuario
fields="__all__"
class AuditoriaSerealizer(ser... | [
"yesidsvc@gmail.com"
] | yesidsvc@gmail.com |
7bcb47585ad29b47525dc0ee55c22c5c6cf1d163 | 42758502488aea5f4272d475d3ff1318f752e014 | /UPB/cond_combinado.py | ebab5cc81f323da55450eee9ff756c4ab7d7d30a | [] | no_license | alopezja/Phyton | f080d1e3a979fb3481b6b00cffc1a0ec65403cf7 | ea52fa46158f67b53d6515b5405d85285473b408 | refs/heads/master | 2023-06-05T21:11:01.914192 | 2021-07-05T02:34:26 | 2021-07-05T02:34:26 | 342,975,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """
edad = int(input ("Digite su edad: "))
if edad >0:
print("Edad correcta")
if 0<edad<100: #if edad >=18 and edad<100:
print("Usted es mayor de edad")
else:
print ("Usted es menor de edad")
else:
print ("La edad es incorrecta")
"""
######################
"""
x = -2
if x>0:
print ("... | [
"alopezja@gmail.com"
] | alopezja@gmail.com |
5f2aa004a6d8843642b6c52ff11087cc3af08884 | c05f3bb5705ca6f2fee012e24de7ee75ec31d8a9 | /html_downloader.py | 6ce174e19bf26fcde8095e8e51ee42a1262b77f5 | [] | no_license | dzye/baike_spider | 5e63e7ed9ce7d15b490dbda41156005a8bd47f27 | 86a8fb9a83b069e05eff9916f4eb0cc333700616 | refs/heads/master | 2020-04-06T04:14:03.884722 | 2018-03-07T03:46:42 | 2018-03-07T03:46:42 | 83,025,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py |
#encoding:utf-8
#---------------------
import urllib2
class HtmlDownloader(object):
def download(self, url):
if url is None:
return None
try:
response = urllib2.urlopen(url ,timeout=10)
if response.getcode() != 200:
return None
... | [
"756611752@qq.com"
] | 756611752@qq.com |
d7ffd4355594ae45e3c3f483fbc7f58c3ee5b1a2 | 2e623207c0c758a9bda765a503b064074b0d4629 | /InterleavingString.py | 4ec3791aaeae19d936a5bfd30a60d5e8fe604514 | [] | no_license | WeeJang/basic_algorithm | f2bdafa67f84b64307efd643c4ab2ffa4d9f576f | b18dff62bcd023708fbc37d35859b08560412569 | refs/heads/master | 2021-01-22T07:57:41.737221 | 2018-01-13T03:22:34 | 2018-01-13T03:22:34 | 92,589,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python2
#-*- coding:utf-8 -*-
def solution(s1,s2,s3):
""" (s1,s2) -> s3 """
def helper(s1,s2,s3):
if all((len(s1) == 0,len(s2) == 0,len(s3) == 0)):
return True
s1_test,s2_test = False,False
if len(s1) * len(s3) != 0:
s1_test = (s1[0] == s3[0] and helper(s1[1:],s2,s3[1:]))
if len(s... | [
"jiangwei@dingfudata.com"
] | jiangwei@dingfudata.com |
5878f6566ea7b0af452814e2b863efb3b5e0a316 | 18de9374db9f8efcb65a0287d0079c0c33fc278f | /HoG-based Face Classification Project/get_data_matrix.py | c92ace9cb3e1ee4ac7e54d9f0fe6efbd6db28b14 | [] | no_license | nus-group1-4w/AI_Project | 06211a3dce7296e44d6d7ca3b6c9ae0a4288bd01 | 227a7b133bc42353b8d741df677597ac7dbab20e | refs/heads/master | 2020-06-19T19:27:09.742022 | 2019-07-20T10:21:36 | 2019-07-20T10:21:36 | 196,842,278 | 0 | 0 | null | 2019-07-20T07:05:58 | 2019-07-14T13:51:32 | null | UTF-8 | Python | false | false | 1,280 | py | import os
import cv2
import numpy as np
import preprocess
from settings import *
from hog import *
"""
HoG para: cell_size = 8, bin_size = 8, block_size = 16, img_size = (112,112)
---> hog_vector_size: (img_width/cell_size-1)*(img_height/cell_size-1)*((block_size/cell_size)**2)*bin_size
... | [
"1374414628@qq.com"
] | 1374414628@qq.com |
79e07c6d4eb631d0458dd3a369941042ebf329ff | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_CLI_Config_SNMP_Trap.py | 1cd2cc625e0a8cef8938c78b6c4bf089240f43cd | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,956 | py | '''
Config SNMP Trap via ZD CLI
Config snmp trap via ZD CLI successfully
1. The trap information from CLI and GUI are same.
2. Enable trap v2, the information are same between get and set, CLI get and GUI get.
3. Enable trap v3, the information are same between get and set, CLI get and GUI get.
2. ... | [
"tan@xx.com"
] | tan@xx.com |
f3550fa2ee7d1195a2dbb3fcd6fd02ce18ead0eb | a88957a9d78cb0b1d91fcd6ffe2c1c44a5c99ea0 | /run_app.py | a134e077fe3db4e614dce805c53013f1086dd407 | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | b355fe334a4939ea036b343d8ed97382537ce217 | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | refs/heads/master | 2021-09-13T07:52:37.708947 | 2018-04-26T20:18:43 | 2018-04-26T20:18:43 | 118,079,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | import src.assignments.main_assignment5
| [
"arturo.gonzalez@austincc.edu"
] | arturo.gonzalez@austincc.edu |
2f1b43a07423d7c8a56a4baef0817b8eecd9c617 | c98e747f7a91b262baa76d13956423be60073279 | /tabulate.py | ffec80950c025dcb9462e694c7a9653e712575de | [
"MIT"
] | permissive | brianhuang822/ppanalyzer | 5b5834c0066b686be5c8a1f127e31b884dcefbba | 0cf71daf9f711a5783c2168f20da462c67f91054 | refs/heads/main | 2023-03-05T05:54:33.890249 | 2021-02-21T00:12:20 | 2021-02-21T00:12:20 | 340,258,030 | 0 | 0 | MIT | 2021-02-19T05:43:54 | 2021-02-19T04:28:53 | JavaScript | UTF-8 | Python | false | false | 715 | py | import pickle
from os import path
import math
import json
players = []
for i in range(0, 30000):
cur_path = f"pickles/{str(i)}.p"
if path.exists(cur_path):
players.append(pickle.load(open(cur_path, 'rb')))
interval = 100
ranks = {}
for x in range(0, 30000, interval):
counts_logged = {}
for son... | [
"brianhuang822@hotmail.com"
] | brianhuang822@hotmail.com |
a00da9b3a8568ca40cac0d1ea67083ce9ef97c43 | 9af35b0e0c0ed4b102c61c563d7c7647a758bb72 | /braindecode/datautil/signal_target.py | ebb6280370c5f4026abc132b5482426657926cdc | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | TonioBall/braindecode | 7c0a5217c944e8718d74fd9763b3c609252c9feb | d5b8d87d959c96ea8422e21099e1ef4b71b9d05a | refs/heads/master | 2020-12-13T08:56:34.939109 | 2020-01-17T13:27:30 | 2020-01-17T13:27:30 | 234,367,901 | 0 | 0 | BSD-3-Clause | 2020-01-16T16:56:45 | 2020-01-16T16:56:44 | null | UTF-8 | Python | false | false | 911 | py | class SignalAndTarget(object):
"""
Simple data container class.
Parameters
----------
X: 3darray or list of 2darrays
The input signal per trial.
y: 1darray or list
Labels for each trial.
"""
def __init__(self, X, y):
assert len(X) == len(y)
self.X = X
... | [
"robintibor@gmail.com"
] | robintibor@gmail.com |
b7a1b07961384cf2b46e7d81ca90c2626d9a807b | 5c8b4d19a9f7ddbd41565f82982bef487022694a | /token.py | 3da43ce459b22857397522b315b01926e6a8838c | [] | no_license | tcr/rdioplaybacktoken | 6b35419a03bdcb0ee8345ff3301b3e6dcdc7c9ba | 00f634da291eddd1bc2c2c10ed43e40b3a9f7fa8 | refs/heads/master | 2021-01-18T14:09:48.804574 | 2013-04-30T20:19:15 | 2013-04-30T20:19:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | """
RdioUtil.py
"""
CONSUMER_KEY = '...'
CONSUMER_SECRET = '...'
domain = "example.com"
# https://github.com/rdio/rdio-python
from rdio import Rdio
from pprint import pprint
state = {}
rdio = Rdio(CONSUMER_KEY, CONSUMER_SECRET, state)
pprint(rdio.getPlaybackToken(domain=domain)) | [
"id@timryan.org"
] | id@timryan.org |
3dcff99559d2d1556f67ba262ff9fb3338adab21 | d34087fa552d7492406def9871f756f101d3b6a6 | /source/packages/mailman_2.1.20-1_brcm63xx-tch/usr/local/mailman/Mailman/Gui/ContentFilter.py | 9043fe89179fa2d4b5f438060f3a35b49968b0ed | [] | no_license | fexofenadine/brcm63xx-tch | b0a582518418c43078bf6799e59f72e31c5c9e4f | b50c32f7bab074c7017d7b15d76da06430036a76 | refs/heads/master | 2023-07-22T10:22:20.838756 | 2023-07-08T02:57:10 | 2023-07-08T02:57:10 | 132,597,313 | 7 | 8 | null | 2022-10-19T00:54:37 | 2018-05-08T11:10:50 | Vim script | UTF-8 | Python | false | false | 9,149 | py | # Copyright (C) 2002-2005 by the Free Software Foundation, Inc.
#
# 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.
#
# Th... | [
"pwandz@gmail.com"
] | pwandz@gmail.com |
a99fd894801fd5f1ff5d3dc8f7a2caa8b9f4238f | 5565300448ade33f440e05f4d48e1846809411e7 | /embedding_model/train_helper.py | 77fde3d571522363a897fa15922bf957d3ca821a | [] | no_license | sanlunainiu/Author-Disambiguation | ca1ec17bf756565212574c2da7d81d765ebf9816 | 06528b2883cf8f2d1369fa179812687c5bec0240 | refs/heads/master | 2023-06-11T21:34:06.749933 | 2019-01-14T13:12:54 | 2019-01-14T13:12:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,877 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 17-12-11 下午7:09
# @Author : xujun
# @Email : xujunrt@163.com
# @Version : 1.0
from utility import save_embedding
class TrainHelper():
@staticmethod
def helper(num_epoch, dataset, bpr_optimizer,
# pp_sampler,
# pd_sampl... | [
"xujunrt@163.com"
] | xujunrt@163.com |
370746879f92c1b13f11c698959e6632b66b6d98 | 0a2bc9bd770e9797a9cd1f73e7dddba7a69a9c35 | /Element/basepage.py | a9c2ed0a51709d438c1bbdaaab4c7f8c46f93897 | [] | no_license | wcg2009zc/Che360Test | 21ff7c7ffed20aae8876199c25705fad6722a8b4 | 5a86f5117fed9850c09302a4c62950b70de3e5b0 | refs/heads/master | 2020-05-21T07:09:26.461706 | 2019-05-10T15:56:30 | 2019-05-10T15:56:30 | 185,952,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,038 | py | #!usr/bin/env python
#-*- coding:utf-8 _*-
# 作者 :zhangchen
# 创建时间 :2019/5/8 0008 17:42
# 文件 :basepage.py
# IDE : PyCharm
import unittest
# from selenium import webdriver
# from Util.singleton import singleton
# from selenium.webdriver import ActionChains
# from selenium.common import exceptions
from sel... | [
"409943746@qq.com"
] | 409943746@qq.com |
b9ef4892c9e656c106a6cb96f60766254cb6e8d3 | be2f6e45e33fba47d0d3f66ec430610271b07347 | /loginwindow.py | 3b4bb5a890e684fa577803bfbc5068961ed53262 | [] | no_license | artemisfowl1996/python-UI-generation | d4bd725f82accca95b4cbf3af417029a4a775ed8 | 19ed86cea434db0ea4fa06215595d2230e226fbc | refs/heads/master | 2021-01-20T17:26:23.757580 | 2017-05-10T14:32:51 | 2017-05-10T14:32:51 | 90,873,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from tkinter import *
root=Tk()
label1=Label(root,text="Name")
label2=Label(root,text="Password")
entry1=Entry(root)
entry2=Entry(root)
label1.grid(row=0,sticky=E)
label2.grid(row=1,sticky=E)
entry1.grid(row=0,column=1,ipadx=10)
entry2.grid(row=1,column=1,ipadx=10)
c=Checkbutton(root,text="keep me logge... | [
"noreply@github.com"
] | noreply@github.com |
acad3c9f38d59d60361e23eb56c9d6a31c46a541 | 7a1fbed42a195782e35112a98a43b2ca155e8156 | /itesco programas/ex_2_3.py | 08ad81984412d580cebd11f1e2570efd113f7ad2 | [] | no_license | Jose-manuelR-I/R.P.1._Jose_Manuel_Ramirez | 4a411f7dab143f1e56e12fdd146effc225b8933a | 27179471249cf0a912c51e36ae3471175e7230d7 | refs/heads/main | 2023-03-28T07:21:05.963600 | 2021-03-26T17:21:29 | 2021-03-26T17:21:29 | 351,858,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #Puntos Bidimencionales
ax , cy= int (input('Ingrese el valor de ax:\n'))
ay = int (input('Ingrese el valor de ay:\n'))
bx = int (input('Ingrese el valor de bx:\n'))
by = int (input('Ingrese el valor de by:\n'))
#Formula
m = (ax + bx)/2, (ay + by)/2
print('Los puntos medios son:\n',m)
| [
"noreply@github.com"
] | noreply@github.com |
8f974be7d4b370d499fd1b626154accaa1302cff | 45a5d2d9b5c07866f0a4dcd7e83cfd432299f206 | /single_xor_cipher.py | 2dd23c2a198113491767a658eff5fb4ba1cf9279 | [] | no_license | alexandr-gnrk/ciphers_crack | 7684e6a85cf422bbb59d068ccb6a88a08cb6eb6a | e82ce8eb8afd6dca3afe92f86089cec3b291edfb | refs/heads/main | 2023-01-28T13:07:40.353685 | 2020-12-19T08:19:04 | 2020-12-19T08:19:04 | 316,728,515 | 1 | 0 | null | 2020-11-28T12:36:41 | 2020-11-28T12:25:46 | null | UTF-8 | Python | false | false | 733 | py | import itertools
import cipher_common as cc
def single_xor_cipher_decode(bytes_):
res = bytes()
min_chi2 = float('inf')
key = None
# for byte in bytes(string.printable, encoding='ascii'):
for byte in range(256):
# xor the string
str_xor = cc.bytes_xor(bytes_, [byte])
# c... | [
"alexandr.gnrk@gmail.com"
] | alexandr.gnrk@gmail.com |
93af4a4381ec646629373220cfca44dd3497d828 | 94b652382f0e77266d0c04bf0895a21e572fc1df | /8 Year 3 University Python Head Pose Estimation Project/ImageSegmentation.py | 6ab069df4fcaf4b7f1e08ac1a28fa8a4c687d9a7 | [] | no_license | tigerblue67/Academic-Projects | d9309754d8a3a174597c02b6d43fdef26f6bb679 | e7b4398cc76fc7a078f4b2b094843173dcfcb9b4 | refs/heads/master | 2021-06-22T18:37:18.768237 | 2021-01-10T16:11:51 | 2021-01-10T16:11:51 | 167,067,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import numpy as np
#takes in 2d image array and list of the number of height blocks and number of width blocks ie 3,3 for a 3x3 block image
def imageblocking(imageIn, blockNums):
imSize = imageIn.shape
blockHeight = int(imSize[0]/blockNums[0])
blockWidth = int(imSize[1]/blockNums[1])
currentImage = np... | [
"jacheah02@qub.ac.uk"
] | jacheah02@qub.ac.uk |
d2a4b13380fb8279c49360b31e6544ae7ae7ab6a | 589e5d16bf11cc1cc64c5cf9e750bde122b9e0b5 | /tests/mock/dao/ItemTypeDAO.py | bfcdd9abdb10278e4ef0c3f74fe1ff969ad587dd | [
"Apache-2.0"
] | permissive | argux/server | 38a2efc26782aaa9a2920d0230029acec46d47ab | e469521c037ecadc21a0527bce6a0cdba5cffcf2 | refs/heads/master | 2020-04-05T23:47:49.921547 | 2016-11-26T12:50:30 | 2016-11-26T12:50:30 | 44,723,415 | 0 | 1 | null | 2016-05-29T21:22:35 | 2015-10-22T05:10:18 | Python | UTF-8 | Python | false | false | 41 | py |
def getItemTypeByName(name):
return
| [
"stephan@xfce.org"
] | stephan@xfce.org |
cd8b61b73263b520681ebc7481f4e66158ad7563 | a784ff468f9d06625c6e8991a615049bdd2284c1 | /vida/__init__.py | 401f995d7ef4faaaa55a1cf9f953b482e822bc82 | [
"MIT"
] | permissive | vtadrones/vida | 41e30768a029bba5b71abef7b5d171088e742d9c | 2b2592a6998b9bfc63e948beb2342862b657a4fb | refs/heads/master | 2021-01-11T21:54:20.937017 | 2016-05-16T17:21:13 | 2016-05-16T17:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from brpy import init_brpy
br = init_brpy()
br.br_initialize_default()
br.br_set_property('algorithm', 'FaceRecognition')
br.br_set_property('enrollAll', 'true')
| [
"mwerling@gmail.com"
] | mwerling@gmail.com |
8240be47b794da01c97cac3281ad8bfe1800094c | 43acc603d65ad5fb00958c0c87323bcf69af31d8 | /wiki/general/classes.py | f2aca81f85d176d5d4da645211cce242c11c5146 | [
"Apache-2.0"
] | permissive | aikido-sensei/pyWiki | 733a2e63812586742993c51556e869c37ec1ae70 | 694306f9cb3e1413f7f5a84d7e18576e0f956acb | refs/heads/main | 2023-08-28T22:43:41.812866 | 2021-09-14T15:14:04 | 2021-09-22T00:21:44 | 401,870,756 | 0 | 0 | null | 2021-09-22T00:21:44 | 2021-08-31T23:33:21 | Python | UTF-8 | Python | false | false | 4,052 | py | import time
class Car(object):
"""
Abstracts a car. It is meant to have all the functionalities of an actual car.
"""
def __init__(self) -> None:
self.__engine_on: bool = False
self.__speed_in_kmph: float = 0
self.max_speed_in_kmph = 0
@staticmethod
def get_type() ->... | [
"ranjanmj@gmail.com"
] | ranjanmj@gmail.com |
a22eb00e2d5bd0a9882872c73548d7450fc78ee2 | 9978403efeefa081ced0f1695f93bfe6feffb5a7 | /profiles_api/urls.py | 1bc543a56b56134f055b6790935472366b24e2a1 | [
"MIT"
] | permissive | slemouton/profiles-rest-api-cours | 6676c6b3aa702d591aa5a7ccd61bfe431c3941d6 | ebbf37ce407e719a28deadd55919f5a6392252b9 | refs/heads/master | 2023-03-09T07:46:32.913202 | 2021-02-27T11:23:21 | 2021-02-27T11:23:21 | 338,908,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from django.urls import path, include
from profiles_api import views
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('hello-viewset',views.HelloViewSet,base_name='hello-viewset')
router.register('profile',views.UserProfileViewSet)
router.register('feed',views.UserProfileFeedVi... | [
"lemouton@ircam.Fr"
] | lemouton@ircam.Fr |
b093275d94113a03d3dc99426d6e03999ef3e8e3 | 850500f7b47f742dca7235de01808487d08e7876 | /LinkedList/pair_twin_sum.py | 8d4fd1bdedf79893ed591cd91766941205df2e04 | [] | no_license | rodriguez-jan/leetcode | febd44432d1ae1493e3a2f32d3a383e96fd5df29 | 88369f6486fb4290b010968b247d809935bd0194 | refs/heads/master | 2022-08-21T23:15:18.781545 | 2022-08-03T23:23:23 | 2022-08-03T23:23:23 | 204,528,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def pairSum(self, head: Optional[ListNode]) -> int:
#find_middle
def find_middle(head):
slow_ptr = head
fast_... | [
"rodriguez.janrichard@gmail.com"
] | rodriguez.janrichard@gmail.com |
dfdb6a32b9161958f467afaa2fec421398942248 | ca0159d53e0fec8b7ce0d04246de7dbb17ded587 | /venv/bin/f2py | 30d0ad292631b03977e6e52604a799a3c1f12dca | [] | no_license | annapynda/task2_wep_map | fd1ac250fa3f25d4741f5fb70ed990fd4cf3cdcb | bdfeef83a0c15bdec183b796b51419588c4c9b5a | refs/heads/master | 2020-04-21T22:36:58.330921 | 2019-02-09T16:19:59 | 2019-02-09T16:19:59 | 169,918,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/anna/PycharmProjects/lab2_task2/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"a.pyndap@gmail.com"
] | a.pyndap@gmail.com | |
e6b3f8cfaf3860b32026984f951c83e6776d8014 | 7bfe7013dd643ea844433a08788f287d34332e05 | /carRentals/Accueil/models.py | 054c39b5cf5961e11b0147934815aa60991d2ce1 | [] | no_license | afefhnid/Django- | 877f9e7f6f06022bacb7178431ea1e372739f0c4 | abb9888415ff7813130db56724a09ddbd29d9191 | refs/heads/master | 2022-10-07T08:38:44.014824 | 2020-06-10T21:35:46 | 2020-06-10T21:35:46 | 268,357,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | from django.db import models
import datetime
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django import forms
class Snippet(models.Model):
lieu = models.CharField(max_length=100)
dateRetour = forms.DateTimeField(
input_formats=['%d/%m/%Y %H:%M'],... | [
"afefhnid@gmail.com"
] | afefhnid@gmail.com |
19e742e1b15911636951f130f8bc202f9f66142e | c8e7237fb5b137cd1192721dc8549789bcf71b2a | /guru_api/apps/messaging/serializers/__init__.py | c4ddfe3ff3544da422bcbf9206ee60e52a88c035 | [] | no_license | mroyce/guru_api | ee929c8272cb0e40ecb45df91fd139acaffad279 | f97c07bf62776ba965affe832caa099f423328fd | refs/heads/master | 2021-01-19T05:29:07.634312 | 2016-07-15T07:03:16 | 2016-07-15T07:03:16 | 63,398,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from .inbox import InboxSerializer
from .message import MessageSerializer
__all__ = ['InboxSerializer', 'MessageSerializer']
| [
"maurice.royce@gmail.com"
] | maurice.royce@gmail.com |
735f35af6fd52d34c983954a7a8397422e1f8c08 | 8ddac45d118559b1322cb967b3a59b6d8e22e58b | /MM-803 Humansegmentation Code/YOLO-BG-Sub/mask.py | 99e0001d9f59b1f2c8dda7b3fb94bf248f4d2378 | [] | no_license | vaibhavrakheja11/Human_Segmentation__In_Realtime_Using_Static_Camera | 803860ceb076d9f529d95d83d7713ca40b10a29b | 3b76f990717877e9ccacc0b9d2cb4070ead4eaa2 | refs/heads/master | 2020-12-09T12:43:02.353091 | 2020-01-23T18:27:03 | 2020-01-23T18:27:03 | 233,306,836 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | import cv2
import numpy as np
def draw_mask(img, image_bg, bbox, labels):
global mask
global masked_img
alpha = 0.95
mask=[]
masked_img_final=[]
#print('bboxt: ' + str(type(bbox)) + '\n')
bbox=np.array(bbox)
#img = np.array(img)
print('bbox: ' + str(bbox)... | [
"vaibhav@Vaibhavs-MacBook-Pro.local"
] | vaibhav@Vaibhavs-MacBook-Pro.local |
9f59fafe88bb9f7a31f97e401f0006ec8d2b7db0 | e3901dea38e8712654d5d56a77eba17201c2282e | /shift_crack.py | ea27b72e2353e933bfc55015827db0fad3fffec0 | [] | no_license | ceuerle/CMSC396H2 | d01201288b24d9d8769d844e556304b588ce7858 | 485ea931c15674d2e21f050a83933ca63d20b6ea | refs/heads/master | 2016-09-06T21:34:58.055499 | 2014-12-03T14:45:00 | 2014-12-03T14:45:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def dot_product(list1, list2):
sum = 0
for i in range(len(list1)):
sum = sum + list1[i] * list2[i]
return sum
string = input("Enter the string to decode")
counts = {}
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(len(alphabet)):
counts[alphabet[i]] = 0
for c in string:
counts[c... | [
"ceuerle@gmail.com"
] | ceuerle@gmail.com |
21c8b6dd3fc6469d9bce3a5864b716a375351a0c | 89c729b08ff6774bfbea125088da896e819882dc | /portfolio/migrations/0001_initial.py | c29b4994a1fe85550b9dd8127a645b620dae82b6 | [] | no_license | Alyssabo/HiTrust-website | 222dba7897030109e4c996c39e1ef72b039c6385 | 34231f5311a6576c745bfd6393919aa15f8c7bcf | refs/heads/master | 2023-02-27T18:04:02.346508 | 2021-02-11T03:05:47 | 2021-02-11T03:05:47 | 337,915,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # Generated by Django 3.1.5 on 2021-01-31 02:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(... | [
"alyssazhang888@yahoo.com"
] | alyssazhang888@yahoo.com |
6805eafac10c8f3c2cc5a43dd787c61969eec0fe | a406c87c8b293a430f2c1332b4b93203d2f9a067 | /code/pykalman/pykalman/variant.py | da1ff0efa91f97a4efd65313ee958b07069b65f7 | [
"BSD-3-Clause"
] | permissive | moulines/GLSS | 57064cedfb33ed2641275fc2066f5a67eba96c69 | 7523ff1c08519a4c251e1c9c3aa6b2b78e86dc6d | refs/heads/master | 2021-01-10T06:08:13.704610 | 2015-12-14T15:30:07 | 2015-12-14T15:30:07 | 45,346,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,027 | py | """
=====================================
Inference for Linear-Gaussian Systems
=====================================
This module implements the Kalman Filter, Kalman Smoother, and
EM Algorithm for Linear-Gaussian state space models
"""
import warnings
import numpy as np
from scipy import linalg
from .utils import a... | [
"dexiongc@gmail.com"
] | dexiongc@gmail.com |
b3defa8cb47e60a76331d426740f6a4fafb7d0ec | 9b0a9cf3e55ee51ce9d42dbd947f04b505320c09 | /ahmad/apps.py | 586d9c2bf67f04954ef8aa8012dc87b9dcb730a7 | [] | no_license | ahmadlabeb/Token-Facebook | f4ccf16fa13a7fa103e1607128e4d7fc5e25c095 | a9e10a3294b3682a11037d493601648b927087e7 | refs/heads/master | 2021-01-12T04:44:25.541487 | 2017-03-02T21:22:25 | 2017-03-02T21:22:25 | 77,779,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class AhmadConfig(AppConfig):
name = 'ahmad'
| [
"ahmadlabeb1992@gmail.com"
] | ahmadlabeb1992@gmail.com |
9f7cd33b09083b7ca32ab65d512beb3d76667dc4 | 525bdfe2c7d33c901598a501c145df94a3e162b0 | /subject6_graphs/text.py | e255a01bf2155d3b55fd0ba8180d1b331aa5b94d | [] | no_license | davendiy/ads_course2 | f0a52108f1cab8619b2e6e2c6c4383a1a4615c15 | e44bf2b535b34bc31fb323c20901a77b0b3072f2 | refs/heads/master | 2020-04-06T09:37:12.983564 | 2019-05-09T10:28:22 | 2019-05-09T10:28:22 | 157,349,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python3
# -*-encoding: utf-8-*-
# created: 05.12.18
# by David Zashkolny
# 2 course, comp math
# Taras Shevchenko National University of Kyiv
# email: davendiy@gmail.com
tasks = int(input())
for mini_task in range(tasks):
s = input().split()
n, m = int(s[0]), int(s[1])
l = []
x, y = -1, ... | [
"davendiy@gmail.com"
] | davendiy@gmail.com |
2ca6cf53d3b33ddd6d22705d0f028a4dc8a6f51a | 9e5919c56eb6d94b83b255ac91b0ef9123ac7bef | /projects/tracing/hsv/old_scripts/thalamus_midbrain/thal_all_nuclei.py | 58b447dfe5e7e39f76662c4fad22953afd7e6d71 | [] | no_license | marcelomata/lightsheet_helper_scripts | 2a4adf5bbb9ded436f7400482b4b227cb54248d0 | ca0242c7e950773c56e1e7d239369ee91a3a499f | refs/heads/master | 2022-12-02T09:34:28.565036 | 2020-08-21T21:06:29 | 2020-08-21T21:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,996 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 23 13:38:57 2019
@author: wanglab
"""
from tools.analysis.network_analysis import make_structure_objects
import statsmodels.api as sm
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np, os, pickle as pckl, pandas as pd
from... | [
"zahramansoor@github.com"
] | zahramansoor@github.com |
3a3d74df3a228ab17a1b34ef7d4beb1d74263f30 | 27227f07ffb9f1abf02b62675046fc0a805444fb | /impyute/imputation/ts/__init__.py | b91066b160c013e0dce3be02fb8cd08862928d6f | [
"MIT"
] | permissive | mathematixy/impyute | 2e603c0751c3f42ec3cb01684e1ac9e6efdea61e | f95576bb1d878d6c7be407979b55b0f0f2a096b6 | refs/heads/master | 2020-04-02T06:06:52.479413 | 2018-10-21T23:14:22 | 2018-10-21T23:14:22 | 154,129,697 | 1 | 0 | MIT | 2018-10-22T11:09:25 | 2018-10-22T11:09:17 | null | UTF-8 | Python | false | false | 157 | py | """
Imputations for time-series data.
"""
from .locf import locf
from .moving_window import moving_window
__all__ = ["locf", "moving_window"] # , "dsae"]
| [
"eltonlaw296@gmail.com"
] | eltonlaw296@gmail.com |
1c483c8dd8e46fa7eda6f1203e740bc5470850aa | 74e01610f4f69f2d68f3ff644eba05900bbea9f8 | /config_module.py | 0e92f95fdd2b1d3e6b32bdc98d67fe245a37f8b4 | [] | no_license | bousmahafaycal/FReveil_synthese_date | f7a9298c193603e2d790a8de6d6677406eb6397b | 4a36949ace10a5a22d2e49681346bcad2805a375 | refs/heads/master | 2021-01-23T03:27:39.607341 | 2017-03-24T15:44:55 | 2017-03-24T15:44:55 | 86,080,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from outils import *
class ConfigModule:
def __init__(self,endroit):
self.endroit = endroit + "configModule.f"
self.openConfig()
def initialisation(self):
# Initialise les variables
self.nom = ""
self.arduino = False
self.ressourceAudio = False
self.versionFRMC = ""
def setNom(self,nom):
# Fonctio... | [
"faycal.bousmaha.fac@gmail.com"
] | faycal.bousmaha.fac@gmail.com |
5ddabf6e02af3e36bc3db5ddd80e9f94dc7127aa | 937034a7d85e2fc3918949d73ca51183296d6f09 | /file_csdn3_main.py | 67263e45223ac14e801242a21fa41dc87a66dacc | [] | no_license | ijt0walle/DemoTianYanCha | ca5ce2bd54175aeb65730f9d55d263b266878736 | d0db93e5b12ceb09e96c4d9289f667c97c3a5dcb | refs/heads/master | 2021-01-25T13:11:16.475185 | 2018-03-02T02:59:16 | 2018-03-02T02:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
"""
主函数进行表格的输入输出的
"""
import file_csdn3_text_parse
import file_csdn3_xslx_parse
import file_csdn3_request
import time
import xlsxwriter
# 创建新表格
global worksheet
workbook = xlsxwriter.Workbook("result.xls")
worksheet = workbook.add_worksheet()
#获取公司名称
company_dict = file_csdn3_xslx_parse.read... | [
"xiaopeng.guo@chinacache.com"
] | xiaopeng.guo@chinacache.com |
e5d499d518d066a313d6782a07fa722337337743 | 4e33bf01ccc0b9cd422e8bd211238aab2d0a16bb | /social_network/accounts/urls.py | 74fda8acb1dbea2a04d4137532df0043cb4cd8cf | [] | no_license | MuhammedMegz/societa-social | 512ca3201c1ca63ba37eff7c0caa1fc8b96f17fb | d4a83cb8cbb1553bdfc3787f841dff3d2fc5289f | refs/heads/master | 2020-03-16T23:40:13.427578 | 2018-05-11T21:58:35 | 2018-05-11T21:58:35 | 133,086,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | from django.contrib import auth
from django.contrib.auth import views as auth_views
from django.conf.urls import url
from . import views
app_name = 'accounts'
urlpatterns = [
url(r"login/$", auth_views.LoginView.as_view(template_name="accounts/login.html"),name='login'),
url(r"logout/$", auth_views.LogoutView... | [
"engmuhammedmag@gmail.com"
] | engmuhammedmag@gmail.com |
2189d43d2a4c83015687657016f39c1584700a0e | 104bebf5acef7e8baed27283ee78fcfc6c1c71a4 | /elkm1_lib/__version__.py | 7e9102d26f5d4f6ec6ae02e201c41da343e9b114 | [
"MIT"
] | permissive | stevemcquaid/elkm1 | dd8ebb6d2d5254c8c92fcfa3c1e8b0f70f384eb3 | 843092329208a3a2bafdedc0a8984a6f20626480 | refs/heads/master | 2020-03-28T00:29:19.545824 | 2018-09-04T20:53:49 | 2018-09-04T20:53:49 | 147,420,147 | 0 | 0 | MIT | 2018-09-04T21:12:28 | 2018-09-04T21:12:28 | null | UTF-8 | Python | false | false | 89 | py | """Version of package."""
VERSION = (0, 7, 8)
__version__ = '.'.join(map(str, VERSION))
| [
"gwwaters@gmail.com"
] | gwwaters@gmail.com |
7c00ca52e63b240ae4de1214608463016402e3a7 | a3e06a6e546f55525006a2230bb4e165fc7a2e89 | /train_main.py | 4d3978130af78e96bd23a25deca1c1fefaf3ddda | [] | no_license | Mircea-Marian/attract_grid_data_flow_optimization | 0c489ad6d935b1c97f41c2463da5661a383e116d | 796566a4829debd9c581771a0365d41ec92466d4 | refs/heads/master | 2023-05-14T00:51:27.965716 | 2021-02-15T00:34:04 | 2021-02-15T00:34:04 | 227,128,273 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,467 | py | import numpy as np
import pickle
from keras.models import Sequential, Model
import keras.layers
import keras.metrics
import keras.optimizers
import matplotlib.pyplot as plt
import keras.backend as K
from keras.callbacks import TensorBoard, ModelCheckpoint, CSVLogger
import random
from csv import reader
from os import l... | [
"noreply@github.com"
] | noreply@github.com |
d2ae4a959e3335f2a14863c8ee189300ed63a5a0 | e290f2e1ff9036f6f663d967a3a168363da4493f | /20200222/main.py | 32d345abaa2fda64c4101b3dc3c2f546380a970c | [] | no_license | Kevin3182/Road-to-python-programmer | 3346847bc6d698dc5c1734b9601d7244d82b4598 | 48a7b6ca3b6c97a2e5723ea6417c668f2cc9fcc0 | refs/heads/master | 2020-12-28T05:18:18.923891 | 2020-02-22T05:33:52 | 2020-02-22T05:33:52 | 238,193,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,225 | py | import pygame
import sys
import random
from time import sleep
Width = 480
Height = 640
rockImage = ['./src/rock01.png','./src/rock02.png','./src/rock03.png',\
'./src/rock04.png','./src/rock05.png','./src/rock06.png',\
'./src/rock07.png','./src/rock08.png','./src/rock09.png',\
'./... | [
"kimgm2022@tciscommunity.com"
] | kimgm2022@tciscommunity.com |
e8d0585f36fdea83ba8c8a8e31f5d125684e1e9f | 2303f9e76ab994a0ff76ae875ba5b5ab127b6172 | /Python/LayerEditorPlus/LayerEditorPlusUI.py | 03837c4be66b9d01abac539ab3c34697a923726a | [] | no_license | Cronza/GTATools | f44848e585310dce59c9b4c9a79501afd0234173 | 791e31ca8934425af15957b3525d0c6289fe1306 | refs/heads/master | 2020-04-24T18:03:13.593052 | 2020-02-04T08:01:30 | 2020-02-04T08:01:30 | 172,168,041 | 0 | 0 | null | 2020-02-04T08:01:31 | 2019-02-23T03:47:29 | Python | UTF-8 | Python | false | false | 3,183 | py | import maya.cmds as mc
import LayerEditorPlusFunctions
from PySide2 import QtCore, QtWidgets, QtGui
class LayerEditorPlusUI():
def __init__(self):
self.funcs = LayerEditorPlusFunctions
#Core Window Setup
self.mainWindow = QtWidgets.QWidget()
self.mainWindow.setWindowTitle('Layer Editor +')
sel... | [
"garrett.t.fredley@hotmail.com"
] | garrett.t.fredley@hotmail.com |
7264806facacbd28ac4651c3e266a350d7fbe10f | bf6c6c9e990ca75f580efab969162cfaacf413fb | /polls/views.py | 54a6c37d763d5bed8cc70357add98c955a2f32dd | [] | no_license | malpiatko/django-tutorial | 502a4f676e193e76c12f443a96a1904fa8b68a33 | 8845eb2991b38f4c63340b025154814290eb925f | refs/heads/master | 2020-05-20T11:50:46.359625 | 2014-07-10T22:32:13 | 2014-07-10T22:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render, get_object_or_404
from django.core.urlresolvers import reverse
from polls.models import Poll, Choice
def index(request):
latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
context = {'latest_poll_list... | [
"ela@lshift.net"
] | ela@lshift.net |
cd6e8276b89ab78c02389cbb84c51b5ba844fbdb | 421d58c6b93b81e0724f8f4576119300eb344252 | /influencers/users/migrations/0005_auto_20181111_1505.py | 1d7c2ca75db84615820701ef82599ab6c705746f | [] | no_license | momen/influencers | 7728228c92a552bdff9ae62f85986ad03bce186e | f9c76cfc2970440112967f9579dc31f77063cb25 | refs/heads/master | 2020-06-03T22:20:03.881411 | 2019-06-15T07:48:43 | 2019-06-15T07:48:43 | 191,754,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 2.1.2 on 2018-11-11 15:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_user_is_removed'),
]
operations = [
migrations.AlterField(
model_name='user',
name='is_active',
... | [
"momennegm@gmail.com"
] | momennegm@gmail.com |
f39b4262fb154edd32b8b8c4c483881d01c834aa | db12d54d7186ed50836bc2632b4750d4d5468568 | /mailing.py | a57b36448cf6da7e0ded90fcb97d3d2ee749d5ee | [] | no_license | KiranPesarlanka9/Logistics | c2fedf2dc442b4202e103735f299b7869fa29aae | 5d42eef4e48c65b5dcf980090773c60e6d6e1be9 | refs/heads/master | 2021-07-13T13:58:31.639412 | 2020-03-09T15:56:51 | 2020-03-09T15:56:51 | 241,545,144 | 0 | 1 | null | 2021-03-20T02:57:36 | 2020-02-19T06:00:50 | CSS | UTF-8 | Python | false | false | 615 | py | # using SendGrid's Python Library
# https://github.com/sendgrid/sendgrid-python
import os
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail
SENDGRID_API_KEY = ""
def send_mail(content, subject, to):
message = Mail(
from_email='dont-reply@mailing.com',
to_emails=to,
... | [
"kiran@deepcompute.com"
] | kiran@deepcompute.com |
8d5ab2ac2f9f3feed3bcb898040784ad256e54f9 | 8878700a71196cc33b7be00357b625cf9883043c | /store/tests/tests_viewset_OrderLine.py | e4296695c7e7c37c60581d5c5eff5512440e9821 | [
"MIT"
] | permissive | Jerome-Celle/Blitz-API | bc7db966cbbb45b29bbbe944adb954d6cb5a0040 | a0f870d6774abf302886ab70e169572a9d0225ef | refs/heads/master | 2021-06-10T06:05:03.753314 | 2018-11-30T15:40:38 | 2018-11-30T15:46:19 | 165,642,546 | 0 | 0 | MIT | 2019-01-14T10:32:29 | 2019-01-14T10:32:28 | null | UTF-8 | Python | false | false | 19,573 | py | import json
from datetime import timedelta
from rest_framework import status
from rest_framework.test import APIClient, APITestCase
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from blitz_a... | [
"frank.jeanneau@gmail.com"
] | frank.jeanneau@gmail.com |
b74fdc2b3e74f8b6ba0a7541d245f5fbbfcc9816 | 64d70b4e2ec97bed70b1c843b878d90b55115392 | /manage.py | 2ff77ec610b53f7489e534855e76eb7fa54fb3f2 | [] | no_license | jasondza2010/flood-control | 6fb96600ad02a4b79f4e97f08ca6ef5865c84fe1 | ea2305c2dd79d2c0464f84471474298b698f72d0 | refs/heads/master | 2020-06-13T23:32:49.356961 | 2019-06-22T10:20:07 | 2019-06-22T10:20:07 | 193,249,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flood_control.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django... | [
"jasondza2010@gmail.com"
] | jasondza2010@gmail.com |
78114eb9b8af0d0f91311f5efe983687ab814067 | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/lib/surface/ai_platform/operations/describe.py | 06aa812cb986b22a941e19bab4929cc2330eda88 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 1,528 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. 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 requir... | [
"guanzhi97@gmail.com"
] | guanzhi97@gmail.com |
2f93382e656caee4ccd4b62d3752f31716d8231a | fc2e59418cc82b3856b056222660b2021ff17c59 | /tests/test_evaluation.py | 57add5dab894b5808b12c449a9b9ef4f2c287fad | [] | no_license | Ivan1248/deep-learning-uncertainty | 7bd3cd0cb16d70eda9336972d0458270a79560db | 9ce315777d8beb9443c312f75232c028822c7075 | refs/heads/master | 2021-12-02T03:46:37.510755 | 2021-11-23T14:29:03 | 2021-11-23T14:29:03 | 128,963,299 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | import numpy as np
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, jaccard_similarity_score
from _context import dl_uncertainty
from dl_uncertainty.evaluation import NumPyClassificationEvaluator
#### begin from https://github.com/chainer/chainercv/blob/master/chainercv/evaluations... | [
"ivan.grubisic.mail@gmail.com"
] | ivan.grubisic.mail@gmail.com |
4d097fbf07c7acb8c61b01f51fcf3662cec4e8a7 | cf6d47e9a135f67929663137073f8e916ea3801b | /bin/saved_model_cli | 1f6b07551651126b8e896da9b909340a303fef99 | [] | no_license | danielgallegoso/MusicGeneration | 56d41eed21052034d3e3e68154a9914b626259dd | dc4cc12a9a72b975c873e0a36a47bfe980075e1a | refs/heads/master | 2022-12-29T22:28:38.429628 | 2020-10-15T06:29:20 | 2020-10-15T06:29:20 | 304,223,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | #!/Users/danielgallegos/Documents/Stanford/cotermWinter/cs230/MusicGeneration/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tensorflow.python.tools.saved_model_cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"72905829+danielgallegoso@users.noreply.github.com"
] | 72905829+danielgallegoso@users.noreply.github.com | |
e090d06079153e043345e89dae50d561e3b966fc | 731d3098416048ce6c365070ac779273cb99bb74 | /04.Codes/Functions/preprocess.py | 14e3848c63c1a931b89c36c4b470679c4b93a6da | [] | no_license | DeloitteAM/AmericanM | a5a407be57725db46a3473be3d272524573c1c71 | f036c58a1db39ff0a4c21b78ca410fd41468cc48 | refs/heads/master | 2020-03-29T19:55:35.478412 | 2018-10-23T13:11:23 | 2018-10-23T13:11:23 | 150,287,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 10 13:02:44 2018
@author: dmiglani
"""
def column_preprocess(dat,cols):
for i in cols:
dat[i] = dat[i].astype(str)
dat[i] = dat[i].str.upper()
dat[i] = dat[i].str.replace('[^A-Za-z]+\s', '')
dat[i] = dat[i].str.replace('.', '')
... | [
"deepak.miglani1995@gmail.com"
] | deepak.miglani1995@gmail.com |
9e4720e9b3e5b30877ce9ada3e58d4df32d842f4 | c7ebe99afb7dbace55cb9c4ae334996791966bf9 | /src/Asyncio/exception_handling.py | 8fcb94c5d2293222bd935920d0f1fd1e7ca97e67 | [] | no_license | avimehenwal/python.avimehenwal | 880760ee0fed850bf02d5de6d3ebab0fee3a9629 | 0b8c32338fb19ea7e806c7e56362bd2e46947df2 | refs/heads/master | 2023-01-22T20:59:41.367849 | 2021-12-20T00:10:17 | 2021-12-20T00:10:17 | 49,519,361 | 1 | 0 | null | 2023-01-09T23:00:53 | 2016-01-12T18:12:18 | Python | UTF-8 | Python | false | false | 434 | py | import asyncio
@asyncio.coroutine
def A():
raise Exception("Something went wrong in A!")
@asyncio.coroutine
def B():
a = yield from A()
yield a + 1
@asyncio.coroutine
def C():
try:
b = yield from B()
print(b)
except Exception as e:
print("C got exception:", e)
def mai... | [
"avi.mehanwal@gmail.com"
] | avi.mehanwal@gmail.com |
792451ae4deffa9b1fcfbae36e7e0397b0f3d802 | cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4 | /meridian/tst/acupoints/test_zusanli213.py | f53e9b7310099603a6d346caed38546241f59172 | [
"Apache-2.0"
] | permissive | sinotradition/meridian | da3bba6fe42d3f91397bdf54520b3085f7c3bf1d | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | refs/heads/master | 2021-01-10T03:20:18.367965 | 2015-12-14T14:58:35 | 2015-12-14T14:58:35 | 46,456,260 | 5 | 3 | null | 2015-11-29T15:00:20 | 2015-11-19T00:21:00 | Python | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
import unittest
from meridian.acupoints import zusanli213
class TestZusanli213Functions(unittest.TestCase):
def setUp(self):
pass
def test_xxx(self):
pass
if __name__ == '__main__':
unittest.main()
| [
"sinotradition@gmail.com"
] | sinotradition@gmail.com |
080221d14c30651408bf134ca5e3e94e318e6702 | 59a93993804c1a72dac55f25b5efe826982acebe | /1)circle area.py | fc9d038be25d0a10f3197b0f8094d79e05e9308c | [] | no_license | AmalDamodar/Python---Programming-Lab | b99dd5cea3301d6ea70ebd669e4052d41584964d | e211f457edd70173807e71d3696ace479e19d03e | refs/heads/master | 2023-03-13T23:01:37.434124 | 2021-03-09T02:23:09 | 2021-03-09T02:23:09 | 329,832,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from math import pi
r = float(input ("Enter the radius of the circle : "))
print ("The area of the circle is " + str(pi * r**2))
| [
"amhzamal@gmail.com"
] | amhzamal@gmail.com |
e62fda6ebc68743af0af01a2bc34bc14ba0e666a | 3117852233ea6c2644e723587a7b28d6d6518d95 | /ttslang.py | 28c918e4b4594278eeae4e3af6f10d766e7db1e7 | [] | no_license | harishravi121/Pythoncodes | d70059a3b7785d668a4b03f3ec85b0777b33706f | 1d6d6ca0ed6348b6c5d07d27d24668fb567527ca | refs/heads/master | 2023-07-07T11:58:03.741814 | 2023-07-01T08:01:56 | 2023-07-01T08:01:56 | 211,642,477 | 3 | 0 | null | 2020-01-13T06:45:25 | 2019-09-29T10:00:32 | Python | UTF-8 | Python | false | false | 83 | py | import pyttsx3
engine = pyttsx3.init()
engine.say("HEllo")
engine.runAndWait()
| [
"noreply@github.com"
] | noreply@github.com |
cea88e4c2f65851b2c2b12741d4b1a692a58f3f4 | 1cf44d5482a6b3b343f38429fcaeb3b6260b8968 | /day 16.py | 26d801ae0b0a91742ea2438285c3e83a4701cf0b | [] | no_license | Mundhey/-HackerRank--30-Days-of-Code | ac3a05da35e0b35b258082384aab53ed5caed843 | a3a427ee48d38ebb3d1bf714a54c2839eb1a1825 | refs/heads/master | 2021-07-25T20:25:54.242171 | 2017-10-31T08:29:16 | 2017-10-31T08:29:16 | 104,542,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | try:
print(int(input()))
except ValueError:
print "Bad String" | [
"mundheyrohan@gmail.com"
] | mundheyrohan@gmail.com |
852f1f8902b3df6d80977afdeea44483240b0615 | f567582cb5cddc3f172c00ff0f722380af95b35a | /foodpanda/foodpanda/items.py | 0164032f6dc12235a4a701d2357343ca94b065ac | [] | no_license | dorahero/foodpanda_scrapy | e23d2f67f71062ee5818ed428ff1e102e7ecb932 | 9168d824737b0828a4bee4b0443c0930c8964b92 | refs/heads/main | 2023-02-21T23:05:51.080722 | 2021-01-23T05:37:29 | 2021-01-23T05:37:29 | 329,513,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class FoodpandaItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
data = scrapy.Field()
| [
"66933004+dorahero@users.noreply.github.com"
] | 66933004+dorahero@users.noreply.github.com |
6b5240c09546ae48c6e11c2e580c271be45aea67 | b75ee1f07fcc50142da444e8ae9ba195bf49977a | /test/todo.py | fda75e5f8c9744005e5de098f819c7cadc1540c1 | [
"Apache-2.0"
] | permissive | FlorianLudwig/code-owl | 369bdb57a66c0f06e07853326be685c177e2802a | be6518c89fb49ae600ee004504f9485f328e1090 | refs/heads/master | 2016-08-04T02:26:07.445016 | 2014-05-25T19:19:13 | 2014-05-25T19:19:13 | 18,918,361 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # this file contains tests for missing features
# this means the tests here do FAIL.
import codeowl.search
def match(query, code):
query = codeowl.search.generate_query(query)
code = codeowl.code.parse(code)
return codeowl.search.tokens(query, code, '<test>')
def test_py_import():
assert match(
... | [
"f.ludwig@greyrook.com"
] | f.ludwig@greyrook.com |
db7ef489df94f69d5ba210b204d884cf3a44ad09 | cb52895cced71b7ae75771241970eabae22cf311 | /addons/tt_print_form_schet/__init__.py | 5336a2481a6d6ca17e16c5a3a0c129f59e6269a5 | [] | no_license | odoo-russia/odoo-russia | 636033b3ed0686fb1fe22a816f1c6883d397f045 | 8dd14dee3066d7ef38a75a374be03b0cca33e8eb | refs/heads/9.0 | 2020-04-14T10:53:28.557127 | 2015-10-10T10:04:16 | 2015-10-10T10:04:16 | 11,379,892 | 31 | 13 | null | 2015-10-10T10:04:17 | 2013-07-12T23:12:27 | Python | UTF-8 | Python | false | false | 1,382 | py | ##############################################################################
#
# Copyright (c) 2008-2012 NaN Projectes de Programari Lliure, S.L.
# http://www.NaN-tic.com
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of... | [
"ivkond@gmail.com"
] | ivkond@gmail.com |
a06be0d74b4b15af6044eb7f071cb38b58b8560f | 92776eafa7c4fbc2a3836fcdd3a9aece46152f0a | /6.py | 5e0c42e1f9626088ea0cd68ac7ef8742f9f3ddb4 | [] | no_license | debil-from-Russia/21.1.2018h-w | e127d3722886f789a0af5b4e8070d14f6319292f | 7861d08bd936006f7428be390205dbadec584f8e | refs/heads/master | 2021-05-11T01:51:58.907964 | 2018-01-21T14:24:34 | 2018-01-21T14:24:34 | 118,341,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | x = int(input())
ch = 2
zn = 3
step = 1
minus = True
total = 0
while not step>10:
pre = (ch/zn)*(x**step)
if minus:
total-=pre
minus = False
else:
total+=pre
minus = True
step+=1
ch+=1
zn+=1
print(total) | [
"noreply@github.com"
] | noreply@github.com |
1b661917f1bbf1889691f540f74bfadc8996f42a | 244189d49a3967b4b002af73f40ca8e8064c4771 | /modules/auxiliary/scanner/http/octopusdeploy_login.rb | e95f4eb8c6b5e148702da83e0b31045c7dcf1249 | [
"MIT"
] | permissive | darkcode357/thg-framework | 7540609fb79619bdc12bd98664976d51c79816aa | c1c3bd748aac85a8c75e52486ae608981a69d93a | refs/heads/master | 2023-03-01T05:06:51.399919 | 2021-06-01T14:00:32 | 2021-06-01T14:00:32 | 262,925,227 | 11 | 6 | NOASSERTION | 2023-02-10T23:11:02 | 2020-05-11T03:04:05 | Python | UTF-8 | Python | false | false | 2,528 | rb | ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'metasploit/framework/credential_collection'
require 'metasploit/framework/login_scanner/octopusdeploy'
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remo... | [
"darkocde357@gmail.com"
] | darkocde357@gmail.com |
88741e965ad62792c88ae2768cba1b7c24756d2c | a0295c3b87094de5717995c960c276be79853afe | /exec_cmd/migrations/0001_initial.py | f2b60ec7740ab35f8283a567bfdb5222b8c709d0 | [] | no_license | HanChengITer/ops-tools | ae79b782214c0bc7073ad49d70e8ecad6da742ec | 1f8ed382b7bcaf3aba2599cc68447c76591630ee | refs/heads/master | 2022-12-14T20:40:26.287753 | 2018-06-07T15:54:46 | 2018-06-07T15:54:46 | 136,015,498 | 2 | 0 | null | 2021-06-10T20:19:02 | 2018-06-04T11:31:57 | Python | UTF-8 | Python | false | false | 1,229 | py | # Generated by Django 2.0.6 on 2018-06-05 14:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ExecCmd',
... | [
"13186087857@163.com"
] | 13186087857@163.com |
037039a1295224580e90c789e304781e86577c41 | 989a9b3eb09e396972f753e903ab49ecf2ba4eae | /venv/Scripts/easy_install-script.py | 8d35fad6b9a9035eb000990ffb0073917ca07869 | [] | no_license | anjalibansal28/PlatformScience | 9376103b3049354d44b84a0032ae61f1800ea5aa | 4b7dbdefed76646a48b8cfdc7db342cf2e189ae7 | refs/heads/main | 2023-07-15T08:34:39.368532 | 2021-08-08T16:09:35 | 2021-08-08T16:09:35 | 393,990,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\bansaan\PycharmProjects\PlatformScience\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"bansaan@win.eng.vzwnet.com"
] | bansaan@win.eng.vzwnet.com |
dbcc7339a76df3ed83b2369ed7c38dd867386a0b | adcaed06e1139ed9ec2d8c974178931f51c19674 | /euler6.py | 814974e2ea59663585beb788c9acc183de240a3c | [] | no_license | r-tron18/ProjectEuler | bae979945ca8c93363288016f6a02db7107e9f1a | addd5f23176e2f0adf89670a7a38deac97301e3e | refs/heads/main | 2023-06-08T12:02:55.462679 | 2021-07-02T12:15:06 | 2021-07-02T12:15:06 | 382,332,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py |
def solve(n):
return (n * (n+1) * (3*n**2 - n - 2)) // 12
N = 100
ans = solve(N)
print(ans)
| [
"procoder9973@gmail.com"
] | procoder9973@gmail.com |
9026f35aa56cd5cb5b3b0d947ee3ea90a09a5eb0 | 906d2ad0e38bec1e8cc28c91e0cdab2f9ad0db22 | /vagueness/line_plot_meaning_median.py | 5d55d42d5c517a42eff5316cc7a87f5b83d35eb0 | [] | no_license | alan-turing-institute/latin_annotation | 0c5d0a77a97997fa7ddde167fb47e14b88ef8c2f | 7d59782f7a66f5b4d5de5b3a77519edce531ee28 | refs/heads/master | 2023-04-11T21:25:47.910309 | 2022-05-03T07:52:01 | 2022-05-03T07:52:01 | 285,318,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import pandas as pd
import matplotlib.pyplot as plt
inputf = pd.read_csv('ratios_by_meaning_nbr_median.tsv', sep="\t", header=None)
columns = []
for column in inputf:
columns.append(inputf[column].tolist())
source = columns[0]
alpha = columns[1]
source = map(str, source)
fig = plt.figure()
ax = fig.add_subplot(11... | [
"helena.b.sabel@gmail.com"
] | helena.b.sabel@gmail.com |
7c2dbe11d9c7876daed93c39543914fc1ab2a014 | 66005dbb8038c55e7081d449970efe415d97212f | /read_models.py | 159861cc58073522483be87c87016511abcd653e | [
"Apache-2.0"
] | permissive | Lednik7/SMART_Product | 4793fdb77b9283cf62fa035f26bbbee967c3a844 | 069f63ec944747352b8609d103e7ffb5023c798f | refs/heads/main | 2023-03-25T20:34:17.787365 | 2021-03-21T18:06:51 | 2021-03-21T18:06:51 | 316,019,055 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | import os
import pickle
PATH = 'models/'
def read_models():
with open(os.path.join(PATH, 'abstract_certain_feat_xgb.pkl'), 'rb') as f:
abstract_certain_feat_xgb = pickle.load(f)
with open(os.path.join(PATH, 'abstract_certain_vect_xgb.pkl'), 'rb') as f:
abstract_certain_vect_xgb = ... | [
"noreply@github.com"
] | noreply@github.com |
84ff600633ba27219e53f693d55b68704fdba45f | 957e5e5fc3397f247834fe3d1830197a2ac7a6c1 | /modulo2/problemas diversos.py | e09966606a0ef22333c69fa16688dc7f3a9ea11c | [] | no_license | jose7303/python | bfbb2bf4ac2af86b78766b61cddec2d227b7f99d | f42a0648036e128a23a3ea068f38c30d9d333c34 | refs/heads/main | 2023-08-21T23:54:40.582249 | 2021-10-14T05:46:17 | 2021-10-14T05:46:17 | 342,997,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | def vint_num(c):
'''
validar un entero
Parameters
----------
c=str
Returns
-------
n=int
'''
while True:
try:
n=int(input(f"{c} "))
return n
except:
print("error , ingrese de nuevo")
def vfloat_num(c):
'''
... | [
"noreply@github.com"
] | noreply@github.com |
66bf1e3802beecffaca8da272bb0fc05f0cfac1f | 00db4eef63423432ab44d8c6fb2f7c4e38f55791 | /Python/第2题/test.py | 3b40a253792585b9ca31e68cf07439c2325389a2 | [
"AFL-3.0"
] | permissive | eternidad33/csp | 736276c340e560fc29c85fd1ce7659d95e372a4e | da25225c578464d4ca500a4bb655e1a2205d9a52 | refs/heads/master | 2023-02-13T16:17:33.651541 | 2021-01-08T03:44:32 | 2021-01-08T03:44:32 | 281,258,083 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # 公共钥匙盒
# 找出要借,或者要还的钥匙编号
def return_lend_key(info, time):
RL_key = []
for i in range(0, len(time)):
if time[i] == t:
RL_key.append(info[i][0])
return RL_key
n, k = input().split()
n = int(n)
k = int(k)
key = [i for i in range(1, n + 1)] # 钥匙盒
info = [[0 for i in range(3)] for j in ra... | [
"3496655347@qq.com"
] | 3496655347@qq.com |
ebdd55a6a5fe595a3800d3f060b45d7a9d95bb74 | 3848fcfea9635e8d5aff41007220eefe67b299b0 | /model_prediction/event_log_predictor.py | dd243c83b8219500b39a98ef4acbaa0b57481105 | [
"Apache-2.0"
] | permissive | abhipannala/GenerativeLSTM | cd91934fe4df8ae9ee925b6006a24b47350b9537 | 0f3dab5b9bf675d97276c081154727cc00c77dfd | refs/heads/master | 2022-11-14T05:53:24.491371 | 2020-06-30T16:50:39 | 2020-06-30T16:50:39 | 275,196,342 | 0 | 1 | Apache-2.0 | 2020-06-30T16:50:40 | 2020-06-26T16:08:09 | null | UTF-8 | Python | false | false | 5,643 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 17:11:17 2020
@author: Manuel Camargo
"""
import numpy as np
import math
import datetime
from datetime import timedelta
from support_modules import support as sup
class EventLogPredictor():
def __init__(self):
"""constructor"""
self.model = None... | [
"38304139+Mcamargo85@users.noreply.github.com"
] | 38304139+Mcamargo85@users.noreply.github.com |
98a3bb666aa53326b5eaed0135122f7aa1ea659d | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002017.py | 3e62b15d60a4b9a7663df6952ee01bd0980a8d61 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
11ef6ca2d147d233356a6acba44ea40205158c00 | d83ba1f2af64f35ffdc1f3fb822dbb4b7d32a71c | /registration/forms.py | c90d13574cdf2581f269cbc85ff4b1a38a3239db | [] | no_license | PSV37/Project | 4996a011221c0c2a19f31aec1adbdd5765694260 | 9262d8ee94e0757ccd79181f979fdf45bf841e52 | refs/heads/master | 2021-01-01T04:47:31.878256 | 2017-07-15T15:10:26 | 2017-07-15T15:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.contrib.auth.models import User
from django import forms
class UserFoms(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput)
class Meta:
model = User
fields = ['username','email','password']
| [
"sapnapastapure@gmail.com"
] | sapnapastapure@gmail.com |
2bf16d2a0b120a587301917cafe6e3763746f348 | 52a3beeb07ad326115084a47a9e698efbaec054b | /horizon/.venv/bin/heat | da3eeefdf4e4f11003d3c6597a0c69aea163d0fd | [
"Apache-2.0"
] | permissive | bopopescu/sample_scripts | 3dade0710ecdc8f9251dc60164747830f8de6877 | f9edce63c0a4d636f672702153662bd77bfd400d | refs/heads/master | 2022-11-17T19:19:34.210886 | 2018-06-11T04:14:27 | 2018-06-11T04:14:27 | 282,088,840 | 0 | 0 | null | 2020-07-24T00:57:31 | 2020-07-24T00:57:31 | null | UTF-8 | Python | false | false | 240 | #!/home/horizon/horizon/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from heatclient.shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Suhaib.Chishti@exponential.com"
] | Suhaib.Chishti@exponential.com | |
a8b75d380cc2dabf3b993334ea90a79166b071f7 | 729ee5bcb31708a82b08509775786597dac02263 | /coding-challenges/week06/AssignmentQ4.py | 40922ab75fb78db62f5805f72f03ea8d78695d15 | [] | no_license | pandey-ankur-au17/Python | 67c2478316df30c2ac8ceffa6704cf5701161c27 | 287007646a694a0dd6221d02b47923935a66fcf4 | refs/heads/master | 2023-08-30T05:29:24.440447 | 2021-09-25T16:07:23 | 2021-09-25T16:07:23 | 358,367,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Given an array of size n and a number k, find all elements that appear
# more than n/k times
# Input : k = 4 ,n=9 , A = [ 3 ,1, 2, 2, 2, 1, 4, 3, 3 ]
# # Output: - [ 3 , 2]
list1=list(map(int,input("Enter the list=").split()))
n=len(list1)
k=int(input("Enter the value of k="))
frequency={}
for i in list1:
if... | [
"ankurpandey131@gmail.com"
] | ankurpandey131@gmail.com |
f697e1e55d0fe487685d1fb9e046442a4c570ed6 | 5590517fbdcd6d670fd3a68bb367495597fd9f3c | /insect/models/family.py | 4431332d47d678aba11242f8ae0c2e064dc89e8d | [
"MIT"
] | permissive | Kradukman/beesUlb | 3efac0e2e3b0a93e599abb21358aa3ed07ae2eef | 1234658af3aff7d2f580212c01d8acec96167078 | refs/heads/master | 2022-12-04T15:00:47.363076 | 2020-08-22T22:26:39 | 2020-08-22T22:26:39 | 237,664,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from odoo import api, fields, models, _
class InsectFamily(models.Model):
_name = "insect.family"
_description = "Insect Family"
name = fields.Char('Name', required=True)
position = fields.Char('Position')
super_family_id = fields.Many2one('insect.super.family', string='Super Family', required=Tru... | [
"dag@odoo.com"
] | dag@odoo.com |
adb6427317dfc161210edab8159cb6ef4ec06f21 | 23b44edcd663eb60d4deee64ced5a5b27ee3b7d2 | /thermosteam/chemicals/phase_change.py | ef5a32237d3cf1e9db68f454ccd5c957c0c7a959 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"MIT"
] | permissive | sarangbhagwat/thermosteam | 7b13c6c3146fe2fc378b453fe3c732dc7397ea0c | 710ec22b17c257a742300bf172fd3121852abf98 | refs/heads/master | 2022-12-13T03:37:49.251727 | 2020-09-14T17:24:30 | 2020-09-14T17:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module extends the phase_change module from the chemicals's library:
# https://github.com/CalebBell/chemicals
# Copyright (C) 2020 Caleb Bell <Caleb... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
08b345bee03aef1c1b0c715a527cb238aae959d8 | 75cd185cf371d6c7e5f094aaa31eb63e9fa85b13 | /exam/urls.py | 40d70f1cbfe68bec0bd6263fe82b7b54175fbf1a | [] | no_license | satofromjapan/quotes | 42e611537e42110355e85bcb9fc1f9b7f6dfe5d5 | 7a1850ba78937af733a29d32dc0780c9522c2446 | refs/heads/master | 2021-01-20T03:12:18.856139 | 2017-04-26T18:49:10 | 2017-04-26T18:49:10 | 89,511,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | """exam URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"masato.takaha@gmail.com"
] | masato.takaha@gmail.com |
e66ebdd888e9440f4b5b8a61baab02d13ca65f89 | 05a6893b52239f2a415ef9ab3d29060a9a7f4f1f | /beans/beans_bill/apps/expense/migrations/0001_initial.py | d3387272afbd54c8ede566185c29d17e5b9a85b7 | [
"MIT"
] | permissive | tjhlp/beans_code | d4df7bc1f8c3ac545e34ede0c38e56e5984d12e5 | d9b5eceddfd2c0028875001d7d53fd3fd222edf9 | refs/heads/main | 2023-02-20T19:38:03.691823 | 2021-01-14T06:26:48 | 2021-01-14T06:26:48 | 327,171,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2020-07-16 14:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Expen... | [
"shikaining@zkzz.onaliyun.com"
] | shikaining@zkzz.onaliyun.com |
556b97f1bccd033b0884646ddcd289c5d1b778ff | 273b5891b0edbfebd271f3bdac407c919affe008 | /models/mmt_lstm_model.py | c15989008d7469723ceee14db80342f861e707c7 | [] | no_license | TeigenZhang/RucEmo-muse | 05e4e6049b161168255bbeeefebe22c9e68378ee | 73e92ba17e9ba25b048a78117a0bf9cdb991b71c | refs/heads/master | 2023-06-05T09:52:35.695821 | 2020-07-28T18:47:08 | 2020-07-28T18:47:08 | 373,161,185 | 0 | 0 | null | 2021-06-02T12:33:12 | 2021-06-02T12:33:12 | null | UTF-8 | Python | false | false | 7,855 | py | import torch
import os
import torch.nn.functional as F
from .base_model import BaseModel
from .networks.classifier import FcClassifier
from .networks.mmt_lstm import MMTLstm
class MMTLstmModel(BaseModel):
@staticmethod
def modify_commandline_options(parser, is_train=True):
parser.add_argument('--max_se... | [
"ruichen.fatd@gmail.com"
] | ruichen.fatd@gmail.com |
edcdc2093e120123d93e694e63df0eca3b666191 | 999d99304cc8f7e6c06430d060ffb8d47f4d7549 | /conv_evanyearbook.py | 6a60720b7c6c41716094cedd1ce066ed1dd7ee3a | [] | no_license | mrthinger/High-School-Yearbook-Autoencoder | 7822e82fe4279906e5f8aaca958a25ba0a940bfc | 0fdffc7dbb4208666b4a034077168427ccc9bada | refs/heads/master | 2020-04-06T17:19:35.814721 | 2018-12-18T02:59:20 | 2018-12-18T02:59:20 | 157,654,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,938 | py | import os
import cv2
import numpy as np
import tensorflow as tf
import pickle
from tqdm import tqdm
#image dimensions are 550x680
scale = 1
squishDim = (56*scale,68*scale)
facesFolder = "C:\\Users\\miste\\Desktop\\ProjectNov18\\faces"
faces = os.listdir(facesFolder)
faces = [os.path.join(facesFolder, face) for face... | [
"evanpierce@aim.com"
] | evanpierce@aim.com |
a75e743e3aba5884be27cb641f199e76cf4d0189 | 247d4dd2bc68de771605cb1b67c44c1c0f0f43dc | /ensemble/house_price.py | 6b14205f4ff44154f5ab33af7874e15521a32d77 | [] | no_license | Kings-union/ML_study | 3f1ad41a9223d7b49eaeb2807870d7590a025804 | 1126c9a519d1fddde1b7d568f02e4df676dc7138 | refs/heads/master | 2021-10-10T12:47:24.134419 | 2019-01-11T01:25:24 | 2019-01-11T01:25:24 | 114,610,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | import numpy as np
import pandas as pd
from sklearn.linear_model import Ridge
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import cross_val_score
import matplotlib.pyplot as plt
train_df = pd.read_csv('./input/train.csv', index_col=0)
test_df = pd.read_csv('./input/test.csv', index_c... | [
"sukisleep@hotmail.com"
] | sukisleep@hotmail.com |
ba2dba9f3f8b6287d25ffbb5992a661635b0b81c | f1b9dc71b2dafc2b331de495ef4ceab938734fbe | /test.py | b80d38b36f71633c8ecb41f54b9fdf2f08e362bc | [] | no_license | philippjfr/FOSS4G-2017-Talk | 7deb6e48755b71658f930aa55c06d3a903f1abc6 | e3f035dc648cfc4642e774e536d6c07c847417b5 | refs/heads/master | 2022-11-07T07:19:37.053629 | 2017-08-23T17:16:38 | 2017-08-23T17:16:38 | 100,023,633 | 2 | 4 | null | 2022-11-01T10:51:44 | 2017-08-11T11:09:21 | JavaScript | UTF-8 | Python | false | false | 1,261 | py | import holoviews as hv
import param
import parambokeh
import numpy as np
from bokeh.io import curdoc
renderer = hv.renderer('bokeh').instance(mode='server')
class CurveExample(hv.streams.Stream):
color = param.Color(default='#000000', precedence=0)
element = param.ObjectSelector(default=hv.Curve,
... | [
"P.Rudiger@ed.ac.uk"
] | P.Rudiger@ed.ac.uk |
40693fc2bae730d2956de0b897e805803e03cd92 | 9f72bec949c972b90da0133b7df7f74dc80173f5 | /Assignment 1/PageRankApp/wait_for_spark_app.py | 68044ed6fd8bcb8071a63fa558042faef54fecfd | [] | no_license | chakshuahuja/CS744 | 1bc3e9eead95259ccfc51442a9160a16f4310ec3 | 811425c1942a2b87718b79c29eb0e9b1eef05ceb | refs/heads/master | 2020-04-21T10:57:07.497643 | 2019-05-16T15:05:14 | 2019-05-16T15:05:14 | 169,503,918 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from urllib import request
import json
import subprocess, sys
ip_address = subprocess.check_output('hostname -i', shell=True).decode('utf-8').strip()
api_url = "http://" + ip_address + ":4040/api/v1/applications/"
WAIT_PERCENTAGE = 50.0
def get_json_from_url(url):
try: return json.loads(request.urlopen(url).read(... | [
"SushmaKN@node0.sparkassign.cs744-s19-pg0.wisc.cloudlab.us"
] | SushmaKN@node0.sparkassign.cs744-s19-pg0.wisc.cloudlab.us |
8f542d8f0c3ee94a57ca157f9e12ed70535eb72d | 71abd3768db29b21b611918de4ff7d087273ffd1 | /main.py | 48a06cc8970cc6138c56ce3ce56660dd93b40b2c | [] | no_license | Vamgam/pythonProject2 | e0bcf373828d0740f6280f2e644e3c23610a8911 | 02e29a6d1ed09a7c4eb171d27aa62b2b0f7a9701 | refs/heads/master | 2023-01-31T03:47:47.740080 | 2020-12-18T11:28:50 | 2020-12-18T11:28:50 | 320,336,685 | 0 | 0 | null | 2020-12-18T11:28:51 | 2020-12-10T17:02:38 | Python | UTF-8 | Python | false | false | 1,137 | py | import matplotlib.pyplot as plt
import numpy as np
def power():
l = list(simfunc.split())
n = np.double(l[1])
for i in range(np.size(x)):
x[i] = x[i]**n
def log():
for i in range (np.size(x)):
x[i] = np.log(x)
x = list(map(np.double, input().split()))#входные данные оси x
x = np.asarr... | [
"babikian.gv@phystech.edu"
] | babikian.gv@phystech.edu |
62de38f216a4bb285bd5c78c9ae8517e3d1c44dc | 4ddf82eeb31d46fb67802a4375390eb42a8f23b8 | /tests/pyb/adc.py | 875d31d732cc3648fff5484fb1e95c617dda69ad | [
"MIT"
] | permissive | pulkin/micropython | 1437a507b9e90c8824e80c3553e6209d89e64565 | c274c947c611f510fd2b1c4ef6cbd9f4283794fc | refs/heads/master | 2023-03-08T02:35:28.208819 | 2022-04-19T12:38:47 | 2022-04-19T12:38:47 | 167,732,676 | 103 | 36 | MIT | 2023-02-25T03:02:36 | 2019-01-26T19:57:59 | C | UTF-8 | Python | false | false | 1,546 | py | from pyb import ADC, Timer
adct = ADC(16) # Temperature 930 -> 20C
print(str(adct)[:19])
adcv = ADC(17) # Voltage 1500 -> 3.3V
print(adcv)
# read single sample; 2.5V-5V is pass range
val = adcv.read()
assert val > 1000 and val < 2000
# timer for read_timed
tim = Timer(5, freq=500)
# read into bytearray
buf = byte... | [
"damien.p.george@gmail.com"
] | damien.p.george@gmail.com |
8873f04291c13871eb62daa5b3fdc49968d46355 | f8fb86dc5731afa8a366a3e33b02a50e93336a86 | /fundoshi/tests/test_mangapanda.py | 000ebffd9166ad48bc4615352402a4d7ba0807c4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nhanb-srht/fundoshi | af6eb98d0cf0984c014ef92426a39a4ca2c1541e | 22e87eed949bd42a342fce1984abc0ffaec323af | refs/heads/master | 2020-07-10T04:23:41.495952 | 2019-08-24T14:15:01 | 2019-08-24T14:15:01 | 204,166,561 | 0 | 0 | MIT | 2019-08-24T14:14:12 | 2019-08-24T14:14:11 | null | UTF-8 | Python | false | false | 4,873 | py | from vcr_unittest import VCRTestCase
from fundoshi.sites.mangapanda import Mangapanda
from . import (
_test_series,
_test_chapter,
_test_search_series
)
site = Mangapanda()
class TestMangapandaSearchSeries(VCRTestCase):
def test_beelzebub_search(self):
expected = [
{
... | [
"nhan@nerdyweekly.com"
] | nhan@nerdyweekly.com |
d04aaef21caf30a7b3162da917e0162e5972d2ce | 4e93e4275e82a08d3c114c9dd72deb0959d41a55 | /src/ch10/binary/__init__.py | 6f8ad9a2cdb18a4e50d6eeff4b4bd01581729622 | [] | no_license | wsjhk/wasm-python-book | fd38e5a278be32df49416616724f38a415614e8b | 872bc8fe754a6a3573436f534a8da696c0486c24 | refs/heads/master | 2023-03-16T02:18:48.869794 | 2020-09-17T11:31:49 | 2020-09-17T11:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: __init__.py
@time: 2020/8/19 1:55
@project: wasm-python-book
@desc:
"""
from ch10.binary import reader
decode_file = reader.decode_file
| [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
0eab1f1693580c5279c450170b68332f66467d9a | 9b8057e75ee40f02739de698bc7a224de8a3b2f1 | /kwargs.py | dd503311de1dde2d11f05fbcc234fd2a3d7d0684 | [] | no_license | sprawin/Python_Docs | ea5dede9393b5d7a4620b3c54dc73b482fdc0f55 | f5eda0fe70d8075cc04621280eb4b4555524826c | refs/heads/master | 2023-06-28T08:06:45.888736 | 2021-07-20T17:42:37 | 2021-07-20T17:42:37 | 387,541,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # key word arguments
def person(**data):
for i,j in data.items():
print(i,j)
person(name = "Praveen", age = 23, mobile = 9486185751) | [
"spraveen241297@gmail.com"
] | spraveen241297@gmail.com |
d7758e2169634a87bc921ea9e999b7c9acc9b5f3 | 8924ba7719164c962b49c36c05d81d393915d456 | /jenkins/setup.py | 7d84584d4d8784b27d8c079f2afd88bd88708763 | [] | no_license | carlosal1015/VecGeom | 23525ff91567d58cfde1aa7c66f9cc508a3b5bbf | 12512cd7f67b89f7619a64474080ad24077aba10 | refs/heads/master | 2020-09-13T17:16:12.770167 | 2015-06-02T07:26:54 | 2015-06-02T07:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,224 | py | #!/usr/bin/env python
import sys, getopt, fnmatch, os, subprocess, platform, string, re
global arch, system
arch = platform.machine()
system = platform.system()
# --------------------- Setting command lines options
def main(argv):
global compiler, build_type, op_sys, external, rootDir
global comp, build
... | [
"patricia.mendez@cern.ch"
] | patricia.mendez@cern.ch |
2a63154626e0dca340bacdadf3daacf8dd47f105 | ff2db4b2ffb79f84316688681b49f8d695eff120 | /moo/moo/wsgi.py | 69364bcef2ed9254df3a0908864900ca2573e288 | [] | no_license | AVatch/moochat-api | 667a936b1a1de6a68b98ff129b2385fbe146d144 | 2248c40955e58b299db4d9f42b5313bc6db80647 | refs/heads/master | 2021-01-13T00:42:32.043229 | 2015-08-25T01:48:49 | 2015-08-25T01:48:49 | 36,503,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for moo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"avatchinsky@Adrians-MacBook-Pro.local"
] | avatchinsky@Adrians-MacBook-Pro.local |
be7266329113d0f67c217f3ca06508e67a8a0521 | 9ecf8b0c977dc596d2d55d2bebc77f4db1a26bde | /train.py | 144579fcb66385bc2a8aa2d9ecce1db5c9743972 | [] | no_license | github1ss/udacity1 | 1160292814c65fdecace0ef24215e0a9a97f0c14 | 0f2f33045b571d9cde89587274f6f984f147419b | refs/heads/main | 2023-01-12T04:12:55.602503 | 2020-11-19T00:50:21 | 2020-11-19T00:50:21 | 312,989,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,893 | py | #!/usr/bin/env python3
# Imports here
# %matplotlib inline
# %config InlineBackend.figure_format = 'retina'
import os.path
from os import path
from datetime import datetime
import matplotlib.pyplot as plt
import numpy as np
import torch
from torch import nn
from torch import optim
import torch.nn.functional as F
from ... | [
"noreply@github.com"
] | noreply@github.com |
1584e04269a93d4d37d7dbd400d5a6004bd6ad2a | 455db75000b04f04aae1dc9348ff37c659affc1f | /day16.py | b90e76aaeabd065e7726d76ad38fc0e91f897293 | [] | no_license | wamonite/advent-of-code-2020 | dacf28ebaa1c30d0eec78651923b38f756750928 | dee42dd8a3cd080e323fccd6c79807acecb7b9c6 | refs/heads/master | 2023-02-16T01:08:28.147588 | 2020-12-25T10:44:24 | 2020-12-25T10:44:24 | 317,507,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from aocutil import load_file
import re
from math import prod
def parse_data(file_name):
line_list = load_file(file_name)
field_lookup = {}
ticket_list = []
for line in line_list:
if match := re.match('^([^:]+): ([0-9]+)-([0-9]+) or ([0-9]+)-([0-9... | [
"warren@wamonite.com"
] | warren@wamonite.com |
9d9b777e9db5f14839481e9edb2dc062d203210a | 93b5da40708878016d953aeb4d9b908ff8af1e04 | /function/practice2.py | 3a807a52ef9fe652abe3614a37febbc4e2a91658 | [] | no_license | Isaccchoi/python-practice | e50e932d2a7bf13b54e5ca317a03a5d63b406c6b | 70e3e1f8590667cfe5ba4c094873eb39d555c44a | refs/heads/master | 2021-06-29T05:45:18.371743 | 2017-09-21T06:15:47 | 2017-09-21T06:15:47 | 103,229,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | def sequential_search(str, key):
count = 0
while count < len(str):
if str[count] == key:
return count
else:
count += 1
return 0
print(sequential_search("개구리고양이", "개"))
print(sequential_search("개구리고양이", "구"))
print(sequential_search("개구리고양이", "리"))
print(sequential_se... | [
"isaccchoi@naver.com"
] | isaccchoi@naver.com |
f5440ee9f953f8c7f2c78474a02b1d419a55e7f9 | 923ff1031671ec8907420a29aab0cca4ad73ae7c | /tamer_app_workflow/actions/reply_email.py | ed2617ef74f0a33eda69a5faa59c22915b310bbb | [] | no_license | suijius/tamer | c2c4ab5f45bd8920723f15a0594da1d064a59fc1 | 8b52ef9a30cec0fa5f6e9dd493157de3b9a6b5df | refs/heads/master | 2022-11-25T04:28:33.528803 | 2020-08-03T11:04:45 | 2020-08-03T11:04:45 | 279,901,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | import win32com.client
from subprocess import Popen
from django.forms import FileInput, FileField
from django.forms import modelformset_factory
# from dashboard.models import DashboardTask as db_task
#
# from root.views.workflow.action import ActionView
# from root.models import DashboardWFInstance as db_instance
from... | [
"chepurnov_s@iit.ru"
] | chepurnov_s@iit.ru |
3c92a91b6ab537d980de67771c79bb1dc50b4fce | 6c06ee99d219c395406d97126af66b553b8e6fe3 | /nick/bin/easy_install-3.7 | 3ed095ad53f75f7fdd1f50cb2b15b9978f5f3ce7 | [] | no_license | Tommyngn/tradervo.com | dff07cb75b87dacfb2cf6dd0ea8253cb18fccdd7 | 91136fb4401a25f739f551508fbb7a8ff45f8627 | refs/heads/master | 2023-04-06T12:30:35.603536 | 2021-04-13T23:43:39 | 2021-04-13T23:43:39 | 357,717,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | 7 | #!/Users/tommynguyen/PycharmProjects/tradervo/nick/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())
| [
"tommynguyen@huy-nguyens-mbp.attlocal.net"
] | tommynguyen@huy-nguyens-mbp.attlocal.net |
090d6345e55a93d906445f8e35e8c0c555158490 | 998282826ea25958b8e1210777faed11462a6bd0 | /docs/examples/03.5.modules/package1/module2.py | 90506b0779712816d0608619187d87cbe3334e4f | [] | no_license | dluciv/python-intro-course | 13beff3cadf3b48a8dd0c0ea47b4f0061e609644 | 2df111c388154ab5025357b373061375005907cc | refs/heads/master | 2023-06-26T13:22:32.400024 | 2023-04-19T08:31:05 | 2023-04-19T08:31:05 | 147,370,775 | 17 | 29 | null | 2023-02-25T18:37:44 | 2018-09-04T15:50:25 | Python | UTF-8 | Python | false | false | 298 | py | from . import module1 # а вот тут хорошо — import из своего пакета
from .subpack2 import module3 # или из пакета/модуля на одном уровне с собой
def p1m2f1():
return 'p1m2f1 -> ' + module3.p1s2m3f1() + ' -> ' + module1.p1m1f1()
| [
"dluciv@dluciv.name"
] | dluciv@dluciv.name |
589ae3c298f4d149fbd516a179903378870e0dea | ab37732e61b958e9b396cee1cd37dc939e44c772 | /electionsentiment/algorithms/fasttextClassify.py | 9464c80edde2b6f175888814717854f99a89d3af | [] | no_license | sharmi1206/elections-2019 | 9941ba588322d72f34cfc29121d5ac7e8345a074 | 4fead88935a79c31940e1715a9ab1c91764c9ff3 | refs/heads/master | 2021-07-11T01:32:34.994242 | 2020-07-24T08:58:45 | 2020-07-24T08:58:45 | 177,279,605 | 23 | 13 | null | null | null | null | UTF-8 | Python | false | false | 5,819 | py | # Import libraries/functions
import pandas as pd
import matplotlib
import numpy as np
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import re
import fastText as ft
from sklearn.model_selection import KFold
from sklearn import metrics
from sklearn.metrics import accuracy_score
import os
import datetime
import... | [
"sharmi.chatterjee@gmail.com"
] | sharmi.chatterjee@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.