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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac8c87e05d0dfeae59cd3f11a91f16a4d2bafbbd | 47743d63962ae9af06a5710e41f06bfc7bad6c2c | /plot_functions.py | 20dfaabc05fd24aa06dd459bbbb414cc1c4d38ea | [] | no_license | dlahtou/wcl-raidnight-summarizer | 8cd9c3c7fd40b2de86d383a42db6e48e58a6334b | b4c97f835f0f5d9e9c5d14e6235be0200cf14193 | refs/heads/master | 2022-12-21T14:17:12.662887 | 2019-01-17T21:21:30 | 2019-01-17T21:21:30 | 135,497,536 | 0 | 0 | null | 2022-12-08T01:30:56 | 2018-05-30T21:04:45 | Python | UTF-8 | Python | false | false | 8,140 | py | from raid_night_summarizer import *
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from textwrap import wrap
import re
import pandas as pd
antorus_ordered_handles = {"Heroic Garothi Worldbreaker": 1,
"Heroic Felhounds of Sargeras": 2,
"Heroic The Defense of Eonar": ... | [
"dlahtou@gmail.com"
] | dlahtou@gmail.com |
600d0751fd86b25e5c1a6b7538daf9855d479a4e | 78d12ba8401d2a7d79569d1a62a179c709421dad | /030-Master_Model_Python/Input_EIA_Crude_WTI.py | 7ec08edbfcf2cb99d4cd34dae96afdfaabb2c9f0 | [] | no_license | hawaii-clean-energy-metrics/hcem | 6f04ae93576c7a9872cdc3ef2f9ef179779e3976 | e0659daa6f211df7e7c5dfefe53129b37fb12e69 | refs/heads/master | 2020-03-28T07:02:04.303960 | 2018-10-26T20:45:49 | 2018-10-26T20:45:49 | 147,876,431 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 99,386 | py | # -*- coding: utf-8 -*-
from xl2py_excel_runtime import *
Input_EIA_Crude_WTI = Worksheet('Input_EIA_Crude_WTI', 10, 10)
@register(Input_EIA_Crude_WTI)
class A1():
# 'Input_EIA_Crude_WTI'!A1
value = "Sourcekey"
@register(Input_EIA_Crude_WTI)
class B1():
# 'Input_EIA_Crude_WTI'!B1
value = "RWTC"
@re... | [
"hawaiicleanenergymetrics@gmail.com"
] | hawaiicleanenergymetrics@gmail.com |
a9851d4124db6cbf60e2964a3025c5fbf0291320 | 6bcd30d9fe661c500070bdeed3b0ceb1f543db55 | /server.py | b3d202d2278e08714814b00b7e0666b55bc5ce29 | [
"MIT"
] | permissive | baka-san/imagezmq | b6fa03d629226eabfca2ac29d3de5ccbe806f8d3 | fd9044000f6b43286d6224712a5a73e534fcfcf8 | refs/heads/master | 2020-06-23T21:32:02.040921 | 2019-08-16T08:38:35 | 2019-08-16T08:38:35 | 198,758,669 | 0 | 0 | MIT | 2019-07-25T04:42:32 | 2019-07-25T04:42:32 | null | UTF-8 | Python | false | false | 7,420 | py | import sys
import os
import pathlib
import argparse
import time
import darknet as dn
import numpy as np
import cv2
from PIL import Image, ImageFile
# A few variables
zmq_default = os.path.expanduser('~/') + 'imagezmq'
cwd = os.getcwd()
results_default = cwd + '/results/frames/'
# Parse arguments
ap = argparse.Argumen... | [
"grant.backes@A-NPC-000072.local"
] | grant.backes@A-NPC-000072.local |
8ccf4c9a412f6e1432129a8e3f52406951f701e4 | 3897a641c17c2a8664f4c061d94043f7abdd5ad8 | /formulario/gestion_empresa/models.py | 2d81a1e1324bf8f5d961fc9a5703f13c64e9ae98 | [] | no_license | irvincc/Proyecto1_django | fc900ce2e7b05a10e9685961625ffc10ac2c813c | af180f75ad249bb5aa87a641b80098d772500b45 | refs/heads/master | 2023-07-16T00:54:41.598910 | 2021-09-03T20:39:02 | 2021-09-03T20:39:02 | 402,890,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from django.db import models
# Create your models here.
class Persona(models.Model):
id=models.AutoField(primary_key=True)
empresa=models.CharField(max_length=50)
departamento=models.CharField(max_length=20)
nombre=models.CharField(max_length=100)
apellido=models.CharField(max_length=100)
fech... | [
"edgar.irvincc@gmail.com"
] | edgar.irvincc@gmail.com |
dff8348d6d40546cebcb1b981709d02569b56dd3 | d47ed20026349e443451b22a71d5e145ba1bf2db | /EdytaZylinskaInformatyka/lab 2.py | 273649c57b26a21fce8a71d1f9dab78e78530275 | [] | no_license | ze39099/ZylinskaEdytaInformatyka- | c066b09e58dcee528554c5d4778a514f9557ddb2 | 304b53dcaf74e76a5ff3913d0a739fb0fef77e2a | refs/heads/main | 2023-06-02T04:21:53.465913 | 2021-06-18T21:50:49 | 2021-06-18T21:50:49 | 365,433,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 9 12:42:54 2021
@author: Edyta
"""
n = 5
silnia = 1
i = 1
print ('silnia = ', silnia)
print ('i = ', i)
while i <= n:
silnia = silnia * i
print ('silnia = ', silnia)
i = i + 1
print ('i = ', i)
print ('Koniec silnia = ', silnia)
| [
"noreply@github.com"
] | noreply@github.com |
2ff0ba4d7c5974ada32ac830e330d2b4e6702ab6 | 57254e4dde5bf8701d937c96a2fccb8e55d3012a | /SPOJ/Some-Solutions/FAST2.py | 7e386aa2c54fc6b27675d26973c7c491bb5209e5 | [] | no_license | congtrung2k1/Algorithms | d5bef7f00b2be701f362ea2e7c173f057a31d713 | 6d8e7b344082315d7fa9ea0915267266e703007c | refs/heads/master | 2020-11-25T01:56:24.963817 | 2020-01-07T19:21:27 | 2020-01-07T19:21:27 | 228,436,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import math
moduler = 1298074214633706835075030044377087
max_n = 500
sum_of_exp = [1] + [None]*max_n
for i in xrange(1, max_n+1):
sum_of_exp[i] = sum_of_exp[i-1]*2+1
if sum_of_exp[i] > moduler:
sum_of_exp[i] %= moduler
T = int(raw_input())
for t in xrange(T):
print sum_of_exp[int(raw_input())]
| [
"42043537+congtrung2k1@users.noreply.github.com"
] | 42043537+congtrung2k1@users.noreply.github.com |
c381e2e6f7f896f8bbba8f23286755f0e30a19a2 | 73c34674dcec6d186224e19e6dd7294ea3408561 | /week8/blast_format.py | 378190e4170d2a6dec57e0290cb7dd85f2a91da3 | [] | no_license | kkchau/bimm185 | 47d9905183762e520f0ddb14f326e397b119de45 | 28b12712d9b04a0bf84b28be5e4bbdbb74621b98 | refs/heads/master | 2020-11-29T14:46:06.642985 | 2017-05-30T19:59:51 | 2017-05-30T19:59:51 | 87,493,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | import pymysql
import getpass
# sql table field names
fields = ['qseqid', 'sseqid', 'qlen', 'slen', 'bitscore', 'evalue', 'pident',
'nident', 'length', 'qcovs', 'qstart', 'qend', 'sstart', 'send',
'scov']
# database connection
print("Connecting to bm185s-mysql.ucsd.edu as kkchau; using kkchau_db"... | [
"kkhaichau@gmail.com"
] | kkhaichau@gmail.com |
9ad86092e385a8f8238bb7bb27ac3740c79a39f7 | 1ecb282756c95d9ae19035761c6e4bb480fdaf26 | /python/lsst/ctrl/stats/records/generic.py | a07b96fbfc651a578c7b2e48c3f7924b5d26cf16 | [] | no_license | provingground-moe/ctrl_stats | 58cba09f95a30007fc5df10d6d8992719b0f5368 | 14790770765b3a167d0d9f318b40e12bbb5df0bb | refs/heads/master | 2020-06-10T20:42:34.260304 | 2017-08-24T21:26:34 | 2017-08-24T21:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #
# LSST Data Management System
# Copyright 2008-2012 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# 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 So... | [
"srp@ncsa.illinois.edu"
] | srp@ncsa.illinois.edu |
1cbae9af00ea9521607893f9d6d6e51e4fbb082c | 0168da9db55c0213b3bef378e4e5f45a64117028 | /manage.py | 68e12eb8e81287c81d959d7556a5fb7404984bd5 | [] | no_license | EpicDeveloperGuy/CrashBoard | 04dac8776680b4ff877912348e0686c39dec8eff | e451a358cb5033bfc6a5b3c000e1ef23a415aade | refs/heads/main | 2023-08-25T13:11:23.475000 | 2021-11-01T16:35:03 | 2021-11-01T16:35:03 | 420,816,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'crashboard.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"xg54@cornell.edu"
] | xg54@cornell.edu |
17680a092a0687b4a3669fef2c938e8909595f61 | cacb12e343c537dc35224b745daa0af9d9a38cf3 | /setup.py | 9cab4626db7d5e96d08175b8d30c019b4a2f9eb5 | [] | no_license | AlexLexx706/RobotHand | 2881ff41d776ee89c989859ced963d17160816ee | fcc3828dc7c34a65ded95e7b57ee1e7ce6cd1215 | refs/heads/master | 2021-01-01T17:10:27.711414 | 2018-07-25T14:55:38 | 2018-07-25T14:55:38 | 31,978,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from setuptools import setup, find_packages
setup(
name='robothand',
version='0.1',
author='alexlexx',
author_email='alexlexx1@gmail.com',
packages=find_packages(),
license='GPL',
zip_safe=False,
entry_points={
'console_scripts': [
'configurator = robothand.configura... | [
"alexlexx1@gmail.com"
] | alexlexx1@gmail.com |
aac36e5e97effc021d51bddce00836cf86108ad9 | e1fe1ed4f2ba8ab0146ce7c08d65bc7947150fc8 | /credit11315/pipelines.py | 6e80a0ff0684dd2011f6c21e58ced8a6f581ef7f | [] | no_license | yidun55/credit11315 | 0d88ceef314efa444de58eb5da8939c1acff3abe | b048ec9db036a382287d5faacb9490ccbf50735c | refs/heads/master | 2021-01-20T01:03:30.617914 | 2015-07-31T09:58:24 | 2015-07-31T09:58:24 | 38,853,611 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy import log
import os
os.chdir("/home/dyh/data/credit11315/infoDetail")
class Credit11315Pipeline(object):
def p... | [
"heshang1203@sina.com"
] | heshang1203@sina.com |
689be72dd1a8ec11ab24d4187e86a076f0a776b9 | 5de4ca71780651d4d6a8f8a4e27ccf0c6468eed7 | /venv/bin/pip3 | aafdfd3929dd6a51da17fdd90276145c93b3cca5 | [] | no_license | PlayerForever/object | 72d8bb813567561bb577a398d7b27024bab3dd70 | 92ca30613f1ae065540d2df93a8d1c1418957f62 | refs/heads/master | 2020-05-16T23:18:57.698838 | 2019-04-25T05:15:17 | 2019-04-25T05:15:17 | 183,360,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | #!/Users/hujia/PycharmProjects/object/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys... | [
"chyneya@gmail.com"
] | chyneya@gmail.com | |
a8e2eab657b40aabce4eae7e0fdea44b81d773da | a96c4cf554ac046a42652d0d5f55a0ada598d596 | /resid-plot.py | 61e370edb6d3ecb1b3a29532393ce9ec6a5b32ae | [
"MIT"
] | permissive | naveenluke/ccr | a7282ad2d6f7ffe36d8573853d1a84dc3d92ab39 | 2eed5e1674a9e1b1ead4efdb148d6d24e6b4b1d2 | refs/heads/master | 2022-11-17T20:13:38.520072 | 2020-07-20T12:02:30 | 2020-07-20T12:02:30 | 279,649,169 | 0 | 0 | MIT | 2020-07-14T17:24:15 | 2020-07-14T17:21:32 | null | UTF-8 | Python | false | false | 8,436 | py | import toolshed as ts
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import numpy as np
import seaborn as sns
import statsmodels.api as sm
from statsmodels.stats.outliers_influence import OLSInfluence
import scipy.stats as ss
from statsmodels.formula.api import ols
import pandas as pd
from... | [
"u1021864@kingspeak23.wasatch.peaks"
] | u1021864@kingspeak23.wasatch.peaks |
fe65624b0bc29c7a7a544917b5c1a6bb5e82431a | b38520185366643cb4eba890db77eea3b8547713 | /05_oreilly02/chapter2_02_blur.py | 17d1cc78070755b823812839347a8c07a56672f4 | [] | no_license | dasanchez/opencv_study | c4c021244309362e64071ac34749266b2d980715 | 2f02ef5830b8bcebf9ddc516236f9fda777372a6 | refs/heads/master | 2020-08-28T22:47:39.982100 | 2017-12-05T17:52:45 | 2017-12-05T17:52:45 | 94,382,449 | 0 | 0 | null | 2017-06-25T15:04:37 | 2017-06-15T00:03:44 | Python | UTF-8 | Python | false | false | 598 | py | import cv2
""" Load and display an AVI video file. """
fps = 40
cv2.namedWindow("Video window")
cv2.namedWindow("Blurred vision")
cap = cv2.VideoCapture('face2.avi')
while cap.isOpened():
ret, frame = cap.read()
if ret:
#blurFrame = cv2.GaussianBlur(frame,(15,15),0)
#blurFrame = cv2.medianBlur... | [
"dante.a.sanchez@gmail.com"
] | dante.a.sanchez@gmail.com |
44769b6f7771b26655d7a767babdc40ca1f56e46 | 08d5b3662bfd0dc304da30fb005f5500358c73b0 | /pythonsrc/tracker-viewer.py | 1853eb740a3e2024f29138ab732335facc860a64 | [] | no_license | somaproject/tracker | 26f74ea0218654f55dc6529c549be1e6064261d6 | f9781fcfc9e2d971d4925c23eee791704f714619 | refs/heads/master | 2021-01-22T18:27:56.480640 | 2009-01-08T20:33:48 | 2009-01-08T20:33:48 | 103,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | #p!/usr/bin/env python
import pygst, pygtk
pygst.require('0.10')
pygtk.require('2.0')
import gst, gtk, gtk.glade, dbus, dbus.glib, gobject
from somaTrackerViewerPipeline import SomaTrackerViewerPipeline
class TrackerViewer():
def __init__(self):
self.pipe = SomaTrackerViewerPipeline().getTracke... | [
"slayton@mit.edu"
] | slayton@mit.edu |
7f7be7515b49d2339d45739a3d6096151dc8de80 | 9381c0a73251768441dc45c7e181548742b9bdbc | /src/educative/fibonacci_numbers/house_thief_memo.py | dfe266791fa02380306c6208bd07804a7c2fbd97 | [] | no_license | Flaeros/leetcode | 45cc510ec513bfb26dbb762aa1bd98f3b42dce18 | 1dcea81a21bd39fee3e3f245a1418526bd0a5e8f | refs/heads/master | 2022-06-02T14:15:31.539238 | 2022-04-18T14:44:18 | 2022-04-18T14:49:05 | 250,183,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | def find_max_steal(wealth):
memo = [-1 for _ in range(len(wealth))]
return find_max_steal_rec(wealth, memo, 0)
def find_max_steal_rec(wealth, memo, index):
if index >= len(wealth):
return 0
if memo[index] == -1:
inclusive = wealth[index] + find_max_steal_rec(wealth, memo, index + 2)
... | [
"flaeross@yandex-team.ru"
] | flaeross@yandex-team.ru |
da64530ce81ca5192823694b51c6a6a433d982b0 | 13c6f4664c37e130a3dac6feacbd3486bcdc65d4 | /api/viewsets/DocumentViewSet.py | dca446423fd01d22991e737c30dfd66970645113 | [] | no_license | daviaroldi/trabSisWeb | c49fb64cccc7554e79f71d776a6d9c9a4fb96dd6 | fc7e3e548ad1a1fca7bd5924edebabe453026c09 | refs/heads/master | 2021-05-17T09:24:29.166936 | 2020-04-03T02:09:25 | 2020-04-03T02:09:25 | 250,725,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django.shortcuts import render
from django.http import JsonResponse
from django.db import models
from rest_framework.response import Response
from rest_framework.decorators import api_view, authentication_classes, permission_classes, parser_classes
from rest_framework.permissions import IsAuthenticated
from ..mode... | [
"davi.aroldi@gmail.com"
] | davi.aroldi@gmail.com |
7d9cdab7eb54945ad09ba92fd102c826a45e0c8a | 5b926bf12340e03deced7495e818958b8866ada5 | /src/09-10/ubc-tbird-ros-pkg/sb_joystick/scripts/keyboard_js_sim.py | 101834096db3ddab2a906ef2eb56cc83214f57a9 | [] | no_license | jpearkes/snowbots | 6514b19e24f246ee1d4291b18090135e2f4998e6 | 52bacd9f58524090e0ab421a47714629249ca273 | refs/heads/master | 2021-05-27T02:02:15.119679 | 2014-05-23T01:19:24 | 2014-05-23T01:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | #!/usr/bin/env python
"""
Curses-based furious state monitor node.
"""
# Configuration constants
NODE_NAME = "keyboard_js_sim"
PUBLISH_TOPIC = "joy"
LOOP_FREQ = 2 # Hz
# Standard library imports
import curses, curses.wrapper
# ROS imports
import roslib
roslib.load_manifest("sb_joystick")
import rospy
# furious pack... | [
"navid.fattahi@snowbots.ca"
] | navid.fattahi@snowbots.ca |
6887f767b739578e9d02e5c9df4963584ffc4eb2 | 8eeeb807a9010e94c07b9622e521ec5e266c21b6 | /bin/pip | 729a43ac175a3a57d52a1d519424622e53c05f7e | [] | no_license | HazyPlanet/my-first-blog | 7e88e242544c1a8c6517e76469dbb6a773ebb40e | 628585aec0a667ee1f56c5babcea38b7abd68964 | refs/heads/master | 2023-03-02T16:52:19.656773 | 2021-01-25T13:24:25 | 2021-01-25T13:24:25 | 332,500,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | #!/System/Volumes/Data/local/evans/computing/swDevel/python/proj/books-examples-practice/django/djangogirls/bin/python3
# -*- 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()... | [
"chris@hazyplanet"
] | chris@hazyplanet | |
d1a7945bfa5fc7770292c82fd27cfa0775b820fe | e9543720e53de3e387133497e66af3b039129dd8 | /apps/user/models.py | 299cfa0e5490cd19f0fd04fa6dac228e1eac5ff1 | [] | no_license | weicunheng/BookStore | d0e5782e45578bf84a36c98c2e029dfc10582959 | d2fd226e130627ae3b39470260ef0961796900a4 | refs/heads/master | 2020-03-25T08:35:07.862245 | 2018-08-17T13:42:33 | 2018-08-17T13:42:33 | 143,620,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | from datetime import datetime
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class UserProfile(AbstractUser):
"""
用户
"""
name = models.CharField(max_length=30, null=True, blank=True, verbose_name="姓名")
birthday = models.DateField(null=... | [
"1261360292@qq.com"
] | 1261360292@qq.com |
84740688fcf4822e320b0acf8ec9148e1ca8121b | 8ea49fe02789aee5076e9aa56fd2e67cc85765bd | /DBMS_Prashant/Student/tasks/forms.py | 0aa1fc5707371f53ebfd4687a26d84c0257e48ec | [] | no_license | prashant-pandit/Python_Django_CRUD | 8fdc9160faa1b68080cc03a365ba930511dbc69e | c842ac3581aa0c1b32960756c4ec3d3cd763db2c | refs/heads/main | 2023-02-07T09:21:07.243427 | 2021-01-01T11:19:52 | 2021-01-01T11:19:52 | 325,964,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | from django import forms
from django.forms import ModelForm
from .models import *
class TaskForm(forms.ModelForm):
usn = forms.CharField(widget= forms.TextInput(attrs={'placeholder': 'Enter Your USN'}))
Name = forms.CharField(widget= forms.TextInput(attrs={'placeholder': 'Enter Your Name'}))
Platform = for... | [
"noreply@github.com"
] | noreply@github.com |
653e6c64350626aa236b8279825acc6265310b27 | b3a8718fba0b2d6922f8fb49ec035cd1d7df879d | /8.python-basics-ii/88-92_scope.py | 75d1b894e3043ced1c2bfb16610f5d6a52df9b63 | [] | no_license | CodingCCarpenter/ZTM-Python-Complete | 0c1cd3c03d01ac21f532d64cfedddc80596737be | 8d4dc287bf0a5f789d117fda2914dbde9dd8817f | refs/heads/master | 2022-12-02T05:09:20.803799 | 2020-08-13T03:21:32 | 2020-08-13T03:21:32 | 283,321,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # Scope - what variables do I have access to?
# Python has functional scope
# global scope - accessible by all code
total = 100
def some_func():
# functional scope - not available outside of some_func
counter = 100
return counter
# we have access to total
print (total)
# but we do not have access to c... | [
"Christineassists@aol.com"
] | Christineassists@aol.com |
dfbeaa25e10c97304810a2de289007e2e095bd42 | 637eb4a6475d3732da9f162ae06762c4db0d1193 | /addatomic/500000_par/benchmark.py | 3957da1d89b339e2a12f57016cd6450398a1c00a | [] | no_license | jamillan/warp_reduce_vs_addatomic_hoomd_blue | 57d1b9b70548c8b162a5d28a9724fcdfa3edb3a6 | 93e11d8d59e024a2e2511c7e1aa7be883140df1b | refs/heads/master | 2021-04-30T09:44:05.342996 | 2018-02-15T20:30:09 | 2018-02-15T20:30:09 | 121,316,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | from __future__ import print_function, division
import sys
sys.path.append('/projects/b1030/hoomd/hoomd-2.1.9-new_walls/')
sys.path.append('/projects/b1030/hoomd/hoomd-2.1.9-new_walls/hoomd')
#sys.path.append('/home/jaime/software/hoomd-install')
#sys.path.append('/home/jaime/software/hoomd-install/hoomd')
import os
i... | [
"jaime.millan@northwestern.edu"
] | jaime.millan@northwestern.edu |
e46900d97662189164e1e244374a46d1087e1235 | d07e0d2c5bba88f96c6fb71d339936c307d49527 | /farhe_celcius.py | 20cb23fc9867d76f1276f1ae6f654bfb70633c77 | [] | no_license | Tapan-24/python | 92bde9dc8a7b5c7b18644dfd9f6c6ac8a63cb33e | 2ce5905229cb62ed3101bce49ca2171e707abab2 | refs/heads/master | 2022-12-28T11:52:58.084060 | 2020-10-03T13:07:42 | 2020-10-03T13:07:42 | 282,006,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | x=float(input("Enter Temperature in Fahrenheit "))
x=(x-32)*(5/9)
print(str(x)+ 'Celcius')
| [
"tapan.24.96.vaghela@gmail.com"
] | tapan.24.96.vaghela@gmail.com |
9fb1ac2822486473f47947f5b02cf3414a5d66bb | 1b8f6104616803e893dc54f7bad3b7f7a58e2fc1 | /ALGO_V2/sort/insertion-sort.py | d7260e86ba85c10d2677c9dd793c2a639074fe01 | [] | no_license | hanrick2000/DSAL | bbb1af525b9e56105c2f6c2b5e20af8211729608 | ae8fba686ea94ceb05085ae8323b16a636afad57 | refs/heads/master | 2022-08-24T19:25:52.691731 | 2020-05-26T04:09:49 | 2020-05-26T04:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py |
def insertion_sort(list):
for i in range(1, len(list)):
current_value = list[i]
pointer_idx = i
while list[pointer_idx -1] > current_value and pointer_idx >0:
# move to the next position
list[pointer_idx] = list[pointer_idx -1]
pointer_idx -= 1
l... | [
"herongrong2011@gmail.com"
] | herongrong2011@gmail.com |
d801910e63215836f5d7be60291bd2d66c972eeb | 7fcc5041d5e185e94f8a5114d4d6b21174f98011 | /2、decisionTree/test.py | c858911bef244a733b58067bfa8d95cc474b0f73 | [] | no_license | masonCaminer/ml_learn | a80902dd903cfce28c76a562d74b9fe83b298315 | 2af8239d457614cbabd04aceb7b92bc460a0808b | refs/heads/master | 2020-04-15T20:28:43.284068 | 2019-03-02T01:51:57 | 2019-03-02T01:51:57 | 164,994,960 | 1 | 0 | null | 2019-03-02T01:51:58 | 2019-01-10T05:19:41 | Python | UTF-8 | Python | false | false | 170 | py | from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()
a = le.fit([1,5,67,100])
a = le.transform([1,5,67,100])
# a = le.fit_transform([1,1,100,67,5])
print(a) | [
"mason@caminer.io"
] | mason@caminer.io |
c77ff7221169be3d60f29bf546fdc5560b0a91de | c169b62296b88035be0262b751ec84f43e49b35d | /samarati.py | a2f00ce2f936b4e14c2481de89e483b48ec57066 | [] | no_license | xzwj1699/USTC_DP_Lab1 | a5a1f63924d462f848da4764675af983c733e1bb | 6426bd53584d7905b1682cabb21249b25427cad0 | refs/heads/master | 2023-06-16T11:52:04.385469 | 2021-07-14T14:30:20 | 2021-07-14T14:30:20 | 385,968,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,845 | py | from os import X_OK, write
from typing import DefaultDict
import math
import sys
def samarati(data_file, k, maxSup, GT, vectors_list, LossTable):
datas = []
out_count = 0
count = 0
low, high = 0, 8
for lines in data_file:
out_count = out_count + 1
if not '?' in lines:
li... | [
"xzwj@ustc.edu.cn"
] | xzwj@ustc.edu.cn |
9f856c8c5bc965ad745f96710fbc2c42a0f8ac3b | cef4c18160c6ae81cb6f549567fc9399a502dfc3 | /ARC/ARC102/D.py | 5215735cf13fd307eb0c1f42f78033359fdb9ffd | [] | no_license | nobishino/AtCoder | 0a6c918e7f0bb1acbb63a58894f7132e6d640a98 | 5c55861d3649fa38c20e77113d2ea5297900a480 | refs/heads/master | 2022-01-02T09:16:50.051125 | 2021-12-25T14:00:04 | 2021-12-25T14:00:04 | 147,978,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | L = int(input())
def divideBin(n):
d = 1
ans=[]
while n > 0:
r,q=divmod(n,2)
ans.append(q*d)
d *= 2
n = r
return(ans)
divided = divideBin(L)
N = len(divided)
M = 2*(N-1) + len([x for x in divided if x!=0]) - 1
print(N,M)
for i in range(1,N):
print(i,i+1,0)
print(i... | [
"john@example.com"
] | john@example.com |
507f1fbfc71ddef13899a4a1feede26c648efd48 | b5702c7abbd2bf546d8b8329be33a8ace077bb45 | /home/data/winner.py | fada443ce8ca9c93fdbd5f6d9c14513a96b22824 | [] | no_license | divanshu79/Africa-Cup | e0fe77a74615df5e3e52360d8349aae472d7c7f8 | 975e70a222e5618df9e2a2aa2a654e1760ac840e | refs/heads/master | 2020-03-28T21:09:01.547020 | 2018-09-24T18:54:36 | 2018-09-24T18:54:36 | 149,132,966 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import requests
from bs4 import BeautifulSoup
import pandas as pd
from collections import defaultdict
import os
os.environ["HTTPS_PROXY"] = "https://ipg_2014037:Divanshu79@192.168.1.107:3128"
link = 'https://www.worldfootball.net/winner/afrika-cup/'
r = requests.get(link)
soup = BeautifulSoup(r.content, "html.parser"... | [
"divanshu79@github.com"
] | divanshu79@github.com |
e898e48a7a702259949e11506a6791a7b8add7dc | 6a36ace6e5c5a68d1695e956553e56a9e328d3d7 | /tests/test_search.py | 27fc835541b6c64c79470d414e9b6edc2c833534 | [
"BSD-3-Clause"
] | permissive | ltucker/giblets | d93bb3bb63d66939d6aac05e08991a7893df93bf | c852bd5d2d0319de522720c829fa95d2e67ab5c1 | refs/heads/main | 2023-03-05T12:35:45.847845 | 2010-06-12T13:58:37 | 2010-06-12T13:58:37 | 306,022 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2010 Luke Tucker
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# Author: Luke Tucker <voxluci@gmail.com>
#
from giblets import ExtensionInterface
class TestPathInter... | [
"ltucker@openplans.org"
] | ltucker@openplans.org |
75ff04700bbef3333f0e5b04408e5c6d166a6e34 | 2caa47f0bdb2f03469a847c3ba39496de315d992 | /Contest/ABC117/b/main.py | d60a1bb7a504f56ae3ca6140c9cb43c9ca6653d3 | [
"CC0-1.0"
] | permissive | mpses/AtCoder | 9023e44885dc67c4131762281193c24b69d3b6da | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | refs/heads/master | 2023-03-23T17:00:11.646508 | 2021-03-20T12:21:19 | 2021-03-20T12:21:19 | 287,489,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/env python3
_ = input()
*l, m = sorted(map(int, input().split()))
print("Yes" if sum(l) > m else "No") | [
"nsorangepv@gmail.com"
] | nsorangepv@gmail.com |
b42085623bfb37fdf6726a4fdc713eb4af185cb2 | 8dd73da1aefe1a1cee86f65c04b75a800de6d817 | /czy_liczba_jest_pierwsza.py | a42c5a06ee20b39ea3bdb130637a30f5043e8c0d | [] | no_license | pawel-turowski/pawelturowski | 5268e537e5a120778f2689d5d74c20fe71fed9db | 409fea327083ea18ec85d8b41684439c850adcd7 | refs/heads/master | 2020-08-03T09:01:41.804711 | 2020-04-05T16:44:20 | 2020-04-05T16:44:20 | 211,693,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from math import *
def liczba_pierwsza1(n):
pom = int(sqrt(n))
for i in range(2, pom + 1):
if n % i == 0:
return False
return True
def liczba_pierwsza2(n):
pom = int(sqrt(n))
i = 2
while i <= pom:
if n % i == 0:
return False
i += 1
return Tru... | [
"pawel1546@gmail.com"
] | pawel1546@gmail.com |
2ce9d1fda2c36f6d8142ac08861968fab7388a2e | 2688202f9f40f916f90c92dbeac423523c2ebad2 | /library/catalog/forms.py | 9c74a6d55869d3260eb4b57a4a81d79a3afc6714 | [] | no_license | bykoviu/Final | 45f6417c5dae055c632298a34c9be595aee7478a | 5b7f0fa54012770fefe8afe1731dbac219606516 | refs/heads/main | 2023-01-14T05:46:00.057861 | 2020-11-25T11:51:33 | 2020-11-25T11:51:33 | 315,565,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | from .models import Comment
from django.forms import ModelForm, TextInput, CharField, PasswordInput, ValidationError
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.models import User
class CommentForm(ModelForm):
class Meta:
model = Comment
fields = ['title', 'com... | [
"71722112+bykoviu@users.noreply.github.com"
] | 71722112+bykoviu@users.noreply.github.com |
0a95b3c9b7871e8e52bb94277a1aea59e8f86d74 | aea41ddc786d3291bdd25a42a1a3a0e3339e7af3 | /src/myastro/log.py | daa6a2d0b99f6dc8785e0490c7035ea39e2f39f9 | [
"Apache-2.0"
] | permissive | benitocm/practical-astronomy | 1b842c099684852e6f62aab74b4faa608d5e64b0 | 4bfea9d5b2bb49997f35e8c7b1ada2708ee6c978 | refs/heads/main | 2023-09-01T06:22:47.173613 | 2021-10-12T17:58:17 | 2021-10-12T17:58:17 | 416,433,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | import logging
import sys
from logging.handlers import TimedRotatingFileHandler
#https://www.toptal.com/python/in-depth-python-logging
FORMATTER = logging.Formatter("%(asctime)s — %(name)s — %(levelname)s — %(funcName)s:%(lineno)d — %(message)s")
LOG_FILE = "my_app.log"
def get_console_handler():
console_handler =... | [
"benitocm@gmail.com"
] | benitocm@gmail.com |
e3bf79405992f5ccd885cf735c0396700ac2fc5e | 7c434c37d56ff4c640f8d42b1ff0c0dc1732445e | /pelicanconf.py | 83f1a9a4673408446f522fccd20434b644b51491 | [] | no_license | sambuc/42 | 732926a64ecb9c273d56777ad3c97130a9a1d849 | e8d1aeac0e14d47fe0044a3f1856870b48ea78b1 | refs/heads/master | 2021-01-01T06:27:04.484549 | 2014-09-02T20:30:25 | 2014-09-02T20:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,174 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
DELETE_OUTPUT_DIRECTORY = False
RELATIVE_URLS = True
#GOOGLE_ANALYTICS = 'UA-51482621-1'
SITEURL = 'http://localhost:8000'
# End of Dev-specific
AUTHOR = u'Lionel Sambuc'
SITENAME = u'42 – Random Thoughts on Programming, OS and Ev... | [
"lionel.sambuc@gmail.com"
] | lionel.sambuc@gmail.com |
931832eb7a9a34f6a8107ee403c52344f9ebbd67 | be06876f460373dafe57d41dfaa225a512074572 | /167_Two Sum II - Input array is sorted/167.py | 66e418c07375485691b6bf0877b50f5bce5c1511 | [] | no_license | Uthergogogo/LeetCode | d5f909f3c21db81461e7ff205c4b685d595cbb2c | 35bd9250b8b672937acdc9b812a8ac519210949f | refs/heads/master | 2023-03-19T22:46:04.284681 | 2021-03-17T21:31:28 | 2021-03-17T21:31:28 | 294,833,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # One-pass Hash Table
def twoSum(numbers, target):
save = {}
for index, elem in enumerate(numbers):
need = target - elem
if need in save:
return [save[need], index + 1]
save[elem] = index + 1
# two pointers
def twoSum2(numbers, target):
left, right = 0, len(numbers)-1
... | [
"48381328+Uthergogogo@users.noreply.github.com"
] | 48381328+Uthergogogo@users.noreply.github.com |
132aceeae2d71d56670267f03dfd282b37b63a65 | be2035ce315b8d1ead9559764375bb2de928c5d6 | /RA.py | 4be6cfd72506b58ef506eefebc37cdb6768817a4 | [] | no_license | sumeetsachdev/Mutual-Exclusion-Algorithms-Simulation | ebdafa78fcf3b4970bbcc1f2f78ae5f090689ea0 | bd60aaa68ea3ca5dfee63efedfad6821667f4e2c | refs/heads/master | 2020-05-09T13:27:28.535962 | 2019-04-13T10:18:49 | 2019-04-13T10:18:49 | 181,152,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | #Ricart-Agrawala
from random import choice
from random import random
import time
class Process:
def __init__(self, name, ts,wants_to_go, is_inside=False):
self.name = name
self.ts = ts
self.wants_to_go = wants_to_go
self.is_inside = is_inside
def __lt__(se... | [
"noreply@github.com"
] | noreply@github.com |
c4a7483285447f23d952a6eeec8c31795bc30414 | 46aba0929e6061b818ba5205b61ebf73678b6cc7 | /pure_upload.py | d476321ace86a7c1d41f9d420963276359946305 | [] | no_license | edison1105/douyin2bilibili | 7e6af5ab959722cc3bf3e354ee2fda70e7446498 | 35dac5182354cc6bb55c6e0201a902f94e88789d | refs/heads/master | 2020-04-23T03:06:23.419733 | 2019-01-21T12:58:50 | 2019-01-21T12:58:50 | 170,868,058 | 1 | 1 | null | 2019-02-15T13:19:57 | 2019-02-15T13:19:57 | null | UTF-8 | Python | false | false | 3,425 | py |
import requests, shutil, time, os, re
import http.cookiejar
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
profile_dir=r"C:\Users\Administrator\AppData\Local\Google\Chrome\User Data" # 对应你的chrome的用户数据存放路径
c... | [
"noreply@github.com"
] | noreply@github.com |
bec987b46ec463a48ccfb01582519267edeb81fd | 8cb210f5a7b9a46dcdd1c4f4cdebb9b006e16d2f | /scripts/gridengine/paramsearch/runScript.py | 8f25665b32d3f6f045302200aca7832f8ad4e096 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | drwiner/Py3Dial | 0ed4572c3d110907a27a8a8f3167299db0de1919 | 0aa5b68f4548bb15e9d167165c17306fd267ee4f | refs/heads/master | 2020-03-26T19:13:53.511897 | 2018-08-18T21:45:32 | 2018-08-18T21:45:32 | 145,254,529 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,102 | py | import os
import sys
import argparse
""" DETAILS:
# THIS FILE EXPLORES GP/REGR/FF/LSTM MODELS
-- Try varying AT LEAST the following network parameters:
a) network structures: n_hideen, L1, L2, acitivation
b) learning rate, decay, and regularisation
"""
############################... | [
"drwiner131@gmail.com"
] | drwiner131@gmail.com |
18c49d5a40295776c09bfc78af948a4058b35bf1 | 30aa7375dd22c230fd7f92fe0d0098f1015d910c | /banks/admin.py | 1aff1a7460b917a79eb5b49360ab07d6de829b9a | [] | no_license | malep2007/bank_app | 4e413f058f44706eab6b42218c36fc609c5542f9 | f7192359e4daecbcce18b4f33cb096d28e446c0f | refs/heads/master | 2021-08-08T14:21:34.735130 | 2017-11-08T13:57:32 | 2017-11-08T13:57:32 | 109,974,307 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from django.contrib import admin
from . models import Bank
class BankAdmin(admin.ModelAdmin):
list_display = ('bank_name','branch location')
admin.site.register(Bank, BankAdmin)
# Register your models here.
| [
"malep2007@gmail.com"
] | malep2007@gmail.com |
6cb3ca413f3d1a5caea21acc9581a07855acf673 | 6d2ce82c05835dbd45254b9062a8f2ba2e3fc1bf | /doglovetest/wsgi.py | 075fd30a92c2fa3d577686d0580d03b4fb5bfd30 | [] | no_license | devfest-ufrn/DogLove | 3bbd83b07832912a5eefc0ddfbbef8b34f8f0b11 | a95923a9240dd654cbd6b8dfebf30c9812871156 | refs/heads/master | 2021-08-18T21:30:59.995001 | 2017-11-23T23:28:14 | 2017-11-23T23:28:14 | 104,280,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for doglovetest 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"tiago.ccdbarros@bct.ect.ufrn.br"
] | tiago.ccdbarros@bct.ect.ufrn.br |
f5091359c432f41a979c5f7ea58580f16ea94418 | 3ea8f462bb08176a1352784434ac6c78e88ded5d | /cartloop_assignment/app/models.py | 0416e724754c3d69b6ba59a7fab2dcdfc589bf61 | [] | no_license | eyadnawar/Backend-Chat-App | a1451879095b15b43b2d3eb46258540e7c46a0e5 | b89822a13e3016e67dc7307d59f71e81ad8c94e4 | refs/heads/master | 2023-06-19T17:57:54.055926 | 2021-07-12T12:43:37 | 2021-07-12T12:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from django.db import models
# Create your models here.
class Client(models.Model):
client_id = models.IntegerField(primary_key= True, db_index= True)
username = models.CharField(max_length=20)
location = models.CharField(max_length=20)
class Operator(models.Model):
operator_id = models.IntegerField(... | [
"efarouknawar@gmail.com"
] | efarouknawar@gmail.com |
c44ddf404c981875be599dd9c76309c34519cb56 | 93358388ca52322b92c835d410decf444d3e717f | /sim/lab4_mcore/MemNetPRTL.py | fec637cb077d639f5da9aa2205b8d7abb9f37526 | [] | no_license | 2php/Multi-stage_Pipeline_Multi-core_CPU | 097e359f423abbc50e6717718a1598fec388fd70 | 26bed2fe4ae9a9d580fe7e16383c128d814dd1eb | refs/heads/master | 2021-04-05T21:01:23.745589 | 2018-02-07T18:01:25 | 2018-02-07T18:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,744 | py | #=========================================================================
# MemNetPRTL.py
#=========================================================================
#
# num_reqers (n): num of requester ports, {1,2,..,n}
# num_reqees (m): num of requestee ports, {1,2,..,m}
#
# reqer_req: the memory request port of th... | [
"catching@bu.edu"
] | catching@bu.edu |
20960a8e28e6193bfa60d2c8cb8a62ad7f805264 | 3afb558d8565033a7cae9fb4864c1c8f52b390cc | /code_oldboy/模块/configparse模块/configparse模块.py | ee226f8c9feca4d01c2ed02263dd22c8a765ef5e | [] | no_license | L-IG/PythonProject | d3fdc099f8e0a3102022ff75e9e2eed369faf30b | 943baf33e95273ac37346a8581af3387070bf838 | refs/heads/master | 2020-09-21T22:43:33.461044 | 2020-01-05T11:07:27 | 2020-01-05T11:07:27 | 224,958,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | '''
作者:lg
日期:2019/11/29
文件描述:
缺陷:
'''
import configparser
# 生成文件
# config = configparser.ConfigParser()
#
# config["DEFAULT"] = {'ServerAliveInterval': '45',
# 'Compression': 'yes',
# 'CompressionLevel': '9',
# 'ForwardX11': 'yes'
# }... | [
"2990875927@qq.com"
] | 2990875927@qq.com |
8dd6db002b7cfee421083e2f1a14012671d69f19 | 3941f6b431ccb00ab75f19c52e40e5dad2e98b9b | /Dasymetric/dasym_tables.py | 41bc20d47b5ee4b9da2c2f6b66632d0c1d6ba20e | [
"Apache-2.0"
] | permissive | scw/global-threats-model | 70c375c1633e8578f1e41f278b443f1501ceb0ec | 11caa662373c5dbfbb08bb0947f3dd5eedc0b4e0 | refs/heads/master | 2016-09-05T11:25:13.056352 | 2013-08-22T22:10:13 | 2013-08-22T22:10:13 | 3,566,652 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,033 | py | # ---------------------------------------------------------------------------
# dasym_tables.py
# Created on: Wed Jan 11 2006
# Written by: Matthew Perry
# Usage: See the "script arguments" section
# ---------------------------------------------------------------------------
#==================================... | [
"perrygeo@gmail.com"
] | perrygeo@gmail.com |
cda1cec5f75f855ac1366790d5d9dd982190b0bb | 86922bfc81a7790f2d516bec16d4c23a60b52af3 | /demo_email.py | 5de0743a3d8e65d602dc81e259d18d6c9c2859bc | [] | no_license | XGongVentes/email_suggest | 8065d6c555e36edcee74a300b25da5af5445f367 | 95b31dd32e76a4c5c53a1b1fef806e4a58c8c295 | refs/heads/master | 2021-01-22T04:48:53.660476 | 2017-09-03T14:59:11 | 2017-09-03T14:59:11 | 102,101,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,360 | py | from gevent import monkey; monkey.patch_all()
from bottle import route, run, request,template,redirect
import email_utils
import name_parse
import email_suggest
import json
import time
import verifyemail
result = {}
verified = {}
vcodes = []
try:
with open('test_results.jsonr','r') as f:
_tmp = [json.loads... | [
"xiaofeng@leadbook.com"
] | xiaofeng@leadbook.com |
3538ed16c8ab27eb7a661ab38a1775640bb2d91b | 9ed8791a8eee409aee38f385687575d6edef7d45 | /run.py | de19931efa22aa0f4211df77fa2ea8397dc777f4 | [] | no_license | Alberto-Vivar/app_store_sales_check | 0fba2c865f7510656dd88d962183675f8133c02a | 5b4acfef44430b59270269863d0fd38e48a89c97 | refs/heads/master | 2023-02-19T18:59:33.057531 | 2022-12-16T10:01:21 | 2022-12-16T10:01:21 | 228,256,291 | 0 | 0 | null | 2023-02-08T00:59:47 | 2019-12-15T21:35:31 | Python | UTF-8 | Python | false | false | 933 | py | import sys
from appstoreconnect_library import request_maker
import datetime
KEY_IDENTIFIER = 'YOUR_KEY_IDENTIFIER'
ISSUER = 'YOUR_ISSUER_IDENTIFIER'
VENDOR_NUMBER = 'YOUR_APP_VENDOR_NUMBER'
# The input arguments of this script are:
# 1.- The date to request the daily report.
if __name__ == '__main__':
if len(sys... | [
"Alberto-Vivar@users.noreply.github.com"
] | Alberto-Vivar@users.noreply.github.com |
5d95d043ddb3d7c2d7618dcf77409373afffc1ec | 0eca9211fc805b6a00eec2caba429e7b06bf094e | /bcsproject/mainPage/filters.py | 0e5d89fabeeef7133f9114d570eeac9139210bc1 | [] | no_license | hungryhost/bcs_test_app | ff4ee7bb10cfdcf84f15ed708c346b5234f02602 | 3dec97288a1fe82145eba18578c1dc499959f86e | refs/heads/main | 2023-06-23T06:30:38.348132 | 2021-07-15T12:56:03 | 2021-07-15T12:56:03 | 386,146,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import django_filters
from .models import Block
from django import forms
class RequestFilter(django_filters.FilterSet):
iso_timestamp = django_filters.DateTimeFilter('iso_timestamp__date')
class Meta:
model = Block
fields = [
'iso_timestamp'
]
| [
"yuiborodin@miem.hse.ru"
] | yuiborodin@miem.hse.ru |
c77e6da35556ae2a00c17b13e382f4aa3e3b0ce3 | a8bf45a661641abf7391b3827b7e220d43c44a4c | /SP-Hashing/WINNER_OF_THE_ELECTION.py | 8fd5784db17c6d3978055438134003f3866df054 | [] | no_license | taurus05/gfg | 45b1c534b26713697a3fbe87de8a799b2ace1c96 | 235e320a050b765cb95636dad15ec655e83dd468 | refs/heads/master | 2020-03-27T07:52:38.578713 | 2018-10-11T18:53:43 | 2018-10-11T18:53:43 | 146,200,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from collections import defaultdict
t = int(input())
for i in range(t):
n = int(input())
d = defaultdict(int)
s = list(input().split())
for i in s:
d[i] += 1
s = sorted(d.items(),key= lambda x : (-x[1],x[0]))
print(*s[0])
| [
"vaibhavrocks0501@gmail.com"
] | vaibhavrocks0501@gmail.com |
0ad73be05ea4a42a3b2118023282236427d3145d | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.3.0/examples/stats.py | 86a1e5c5b193afe5fb375e4eef30098d3dbc84b2 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 4,052 | py | # Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com>
# See the file LICENSE.txt for your rights.
"""Example of how to extend the search list used by the Cheetah generator.
*******************************************************************************
This search list extension offers two extra tags:
... | [
"tom@tom.org"
] | tom@tom.org |
08cd007029079ebf8a6ac3ee9f7c8802a04e7b02 | b4162a7937afb27db824289bfa1174330a58e4a0 | /gal/migrations/0002_auto__add_image.py | 89e6769656c95ce9ec8bf2da3085b777f9d75e9a | [] | no_license | zoranzaric/django-gal | 962164e54e62820e5490f797f3ea905e683ae655 | bcef433a2c38355a06f36c5bf7fbc2f4c73378eb | refs/heads/master | 2021-01-01T15:18:13.706953 | 2013-05-08T15:05:16 | 2013-05-08T15:05:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Image'
db.create_table('gal_image', (
('id', self.gf('django.db.models.fields.Au... | [
"zz@zoranzaric.de"
] | zz@zoranzaric.de |
720eac545b43b93784ed7f35718f54ede04f9117 | 50eec156a6591ac97597c153049bea7003536441 | /11 - Collections/ranges.py | 7efcbe65ebcb0150ddcebcba8e23de27c7d379bb | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | mfigand/start_with_python | 7b6548ae134b50a9ddefaf595c629934944cb088 | 5dc952417781e980fe61af98fa602acb5f14c991 | refs/heads/master | 2021-01-08T00:18:11.334425 | 2020-02-20T10:53:29 | 2020-02-20T10:53:29 | 241,860,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | names = ['Susan', 'Christopher', 'Bill']
presenters = names[:2] # Get the first two items
# Starting index and number of items to retrieve
print(names)
print(presenters)
| [
"m.figand@gmail.com"
] | m.figand@gmail.com |
d18bba0a105578fc5d84c9a8df9be9a20de78b77 | 7b99f1fd359ad0f6a45ce596ef3c6319d7ba4eb1 | /validation_kmers.py | 8e0ad4d5b3bd8b1191c05eea286b10886baf32ba | [] | no_license | farid7/bioinformatica | 9a5a645372304d106fd283666ec93c64a24692b8 | 1e9ce03795c6913f1321660cf00f2e7ea264e96d | refs/heads/master | 2021-01-20T14:03:16.826483 | 2017-03-02T03:42:01 | 2017-03-02T03:42:01 | 82,733,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | from sys import argv
from collections import Counter,defaultdict
import numpy as np
window = 10
misses = 2
chain = list('CACAGTAGGCGCCGGCACACACAGCCCCGGGCCCCGGGCCGCCCCGGGCCGGCGGCCGCCGGCGCCGGCACACCGGCACAGCCGTACCGGCACAGTAGTACCGGCCGGCCGGCACACCGGCACACCGGGTACACACCGGGGCGCACACACAGGCGGGCGCCGGGCCCCGGGCCGTACCGGGCCGCCGGCGGCCCAC... | [
"diraf_thechild@hotmail.com"
] | diraf_thechild@hotmail.com |
a14afa187d4f50330213a5ff213bba44714005c5 | b97c4720b667dcdcfbfc114c051bca39c2cf3fe9 | /Algorithm/maximum_subarray.py | 78056c5bf7b49d97b6699d5bbc9bbfc59703fdc0 | [] | no_license | 8luebottle/DataStructure-N-Algorithm | 595b03413720def4827e6012a30af19d20cb3358 | 69b933c36d79b6cc5a0936db70033538f46ec378 | refs/heads/master | 2022-11-17T22:40:33.563344 | 2020-07-11T09:03:26 | 2020-07-11T09:03:26 | 219,773,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | def max_sub_array(nums):
if max(nums) < 0:
return max(nums)
local_max, global_max = 0, 0
for num in nums:
local_max = max(0, local_max + num)
global_max = max(global_max, local_max)
return global_max
| [
"itbiz.irs@gmail.com"
] | itbiz.irs@gmail.com |
5c904ea926f69d8697c460dc95cba06e53b9cb19 | 2dd28b1ab2bd56f55e457c4b7c1f5f96856a795d | /core/urls.py | 46b2a95a22acdbb19ee9f9fadf92b3d6d35223b6 | [] | no_license | Aldo-lima/testeconfirmar | e34b2d37133262d331a755ffe9a6f339fa263c9c | 2da947237f7c5b7724ef8890642fac679b7f8229 | refs/heads/main | 2023-08-17T10:53:32.013554 | 2021-09-16T15:02:24 | 2021-09-16T15:02:24 | 407,159,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from .views import home
from django.urls import path
urlpatterns = [
path('', home, name='home_core'),
] | [
"57098697+Aldo-lima@users.noreply.github.com"
] | 57098697+Aldo-lima@users.noreply.github.com |
f51558bfe5192cb59b9736a74ce3591e50b861b9 | d8b201ba6bf57db0101d88836429bbcb3a10b857 | /Math/TriangleQuest.py | c1a6cd2a1b0e05a20a09b0582cb16f0e25c80188 | [
"MIT"
] | permissive | MaxCodeXTC/PythonHackerRankSolutions | 32ad41df3fbd33f8651cdc5099c8ec3d37d9bc17 | 987618b61b71fe5e9a40275fb348476657bbea57 | refs/heads/master | 2022-06-28T06:00:19.126751 | 2020-05-07T09:23:37 | 2020-05-07T09:23:37 | 262,471,271 | 1 | 0 | null | 2020-05-09T02:24:11 | 2020-05-09T02:24:10 | null | UTF-8 | Python | false | false | 127 | py | '''
Title : Triangle Quest
Subdomain : Math
Domain : Python
Author : codeperfectplus
Created : 17 January 2020
'''
| [
"54245038+perfect104@users.noreply.github.com"
] | 54245038+perfect104@users.noreply.github.com |
c5494429aada5dcdccc2bbc0b645c615689a2219 | 22b431be09922ad767d5fcd6b0fa1bb9eb2cc4d3 | /split.py | cf219cdfd9174b3787f639a4d1182655d2cef5ba | [] | no_license | gsy/leetcode | b2de916cc5e01eea8b7d026c7a935b4db1164e26 | 3b13a02f9c8273f9794a57b948d2655792707f37 | refs/heads/master | 2021-01-10T10:58:07.561282 | 2020-05-25T12:47:09 | 2020-05-25T12:47:09 | 48,165,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | # coding: utf-8
def car(s, sep):
"""
get first split.
:param s: string to be split
:param sep: delimiter string
:return: first split string
>>> car("", ',')
''
>>> car("a", ',')
'a'
>>> car("a,b", ',')
'a'
>>> car(",", ',')
''
"""
result = ""
if len(s) =... | [
"xuanguang.chen@qunar.com"
] | xuanguang.chen@qunar.com |
3aa00b6c6c2a67cbd2bb189284eaadae9f218fc2 | 9a1865f4a8b7ea956bc3a25f147db6189ee88cb8 | /network/migrations/0002_auto_20210315_1617.py | 89cba4ea39c49a245d90ee54bc56dd6bff4d92c0 | [] | no_license | benomac/network-refresh- | b94a4ac34b864fd95bec7dcaf504e22e1edbc784 | 7e5caa1f3871071f8be7df380dc441399ef478c5 | refs/heads/master | 2023-03-30T19:35:42.997789 | 2021-03-17T20:09:28 | 2021-03-17T20:09:28 | 348,138,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # Generated by Django 3.1.4 on 2021-03-15 16:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('network', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"64007619+benomac@users.noreply.github.com"
] | 64007619+benomac@users.noreply.github.com |
1238c6bb3af77479daab7b19dbced09ddd2276ee | ebe36eba494b9ab9bb658686e69c9253c43cb524 | /Competitions/Atcoder/ABC_193/B.py | b314661dcbc62026428ec8940be7c8174c8b6815 | [] | no_license | Dutta-SD/CC_Codes | 4840d938de2adc5a2051a32b48c49390e6ef877f | ec3652ec92d0d371fd3ce200f393f3f69ed27a68 | refs/heads/main | 2023-07-03T11:46:30.868559 | 2021-08-19T12:03:56 | 2021-08-19T12:03:56 | 316,813,717 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | N = int(input())
for i in range(N):
| [
"duttasandip11100@gmail.com"
] | duttasandip11100@gmail.com |
ac6bb52507bdfb51c99246ed05a626b6fbf84f40 | 47b28ab257af2153d0054ce142905bd5ab458b58 | /example.py | 0d55bc96fe8b21b1b5e158349506dcefcc028ff7 | [] | no_license | fredhsu/eApiExampleVlans | 042f6f55db499322c18bd335ec50491d025e3410 | 4a488cf0391f32ff3b6dfaf41270269fe665d21e | refs/heads/master | 2016-09-09T23:18:52.179311 | 2014-02-03T23:54:22 | 2014-02-03T23:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | import json
from jsonrpclib import Server
switches = ["172.22.28.156", "172.22.28.157", "172.22.28.158"]
username = "admin"
password = "admin"
# Going through all the switch IP addresses listed above
for switch in switches:
urlString = "https://{}:{}@{}/command-api".format(username, password, switch)
switchRe... | [
"fredlhsu@aristanetworks.com"
] | fredlhsu@aristanetworks.com |
4af2c8b5383925ce88a9cf268ae8035c4c3aaa34 | b2671809f47911c1226d71ab6c315cf58f72377a | /COMP90049 Introduction to Machine Learning/Project/project1/Project1_MuTong_28_04_2019/code/global_edit_distance.py | b23d695cd1545796eb324ddd629da71830845846 | [] | no_license | MooTong123/Unimelb-Subject | 426ebc616e44aef7d3e04c6ac965e0a268b12bb8 | a4185318efe251c9664af46027ba1332c1963906 | refs/heads/master | 2020-11-26T17:50:25.915775 | 2019-12-22T11:05:16 | 2019-12-22T11:05:16 | 229,163,363 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py |
import editdistance
def global_edit_dis():
dict_file = open("../data/dict.txt", 'r')
misspell_file = open("../data/misspell.txt",'r')
result_file = open("../result/global_edit_distance_result.txt",'w')
# to read the dictionary
dict = []
for line in dict_file.readlines():
line = line.... | [
"1756389851@qq.com"
] | 1756389851@qq.com |
ee33b62f4ef3e6784c0aa32be6050caa9281e220 | 4b2496796dd8f0c07c58a7768098f757b91b2df8 | /Decision_Tree_scratch.py | e43d5eafb7d2dc8d961f87ffa195e2d6e7b4b9f0 | [] | no_license | shivamkc01/MachineLearning_Algorithm__from_scratch | 39f4207bc1d449ade1a850bf6e0b67286324a76b | e644a81255404e33e16ab5ac2eed210fe28d3c3c | refs/heads/main | 2023-07-09T22:50:17.956743 | 2021-08-11T16:35:05 | 2021-08-11T16:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,070 | py | """
Decision Tree implentation from scratch
This code you can use for learning purpose.
programmed by Shivam Chhetry
** 11-08-2021
"""
import numpy as np
from collections import Counter
from sklearn import datasets
from sklearn.model_selection import train_test_split
"""
Calculating Entropy -> Entropy measure of puri... | [
"noreply@github.com"
] | noreply@github.com |
5aae57fc607a70052c54ad09b04cbd25840d0f28 | 9fc6604ae98e1ae91c490e8201364fdee1b4222a | /eg_msg_base/models/msg_status.py | 4501bdc8b00a217bae754eaa0a5b5c32b395123c | [] | no_license | nabiforks/baytonia | b65e6a7e1c7f52a7243e82f5fbcc62ae4cbe93c4 | 58cb304d105bb7332f0a6ab685015f070988ba56 | refs/heads/main | 2023-03-23T21:02:57.862331 | 2021-01-04T03:40:58 | 2021-01-04T03:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from odoo import models, fields
class MsgStatus(models.Model):
_name = "msg.status"
name = fields.Char(string="Status", readonly=True)
is_last_status = fields.Boolean(string="Is Last Status")
sms_instance_id = fields.Many2one(comodel_name="sms.instance", string="Sms Instance", readonly=True)
| [
"ash@odoxsofthub.com"
] | ash@odoxsofthub.com |
386938533cc7a4fbfb7fee0046c5d0c2e4406d89 | c194aa3baf239edef12747b51053beaaebd25a80 | /src/dashboard/views.py | d7c7cc173ece58e2bc6251f040e1b99d1152fc9b | [] | no_license | cplax14/dailydashboard | e7d37d2b10198175539c7b6f6cea82fe8de5e5f9 | 8766c97f2a54761af367c09a987661966a661bf5 | refs/heads/master | 2021-01-12T14:08:26.548007 | 2016-10-02T20:47:06 | 2016-10-02T20:47:06 | 69,757,833 | 0 | 0 | null | 2016-10-02T20:47:25 | 2016-10-01T19:07:24 | Python | UTF-8 | Python | false | false | 374 | py | from django.contrib import messages
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import render, get_object_or_404, redirect
from django.db.models import Q
from .models import Area
def areas_list(request):
queryset = Area.objects.all()
context = {
"object_list":queryset... | [
"cplax14@gmail.com"
] | cplax14@gmail.com |
afe69ae31a6285f10b876f9f4c269a0bde8cf181 | 0049d7959ff872e2ddf6ea3ce83b6c26512425a6 | /advtempproject/advtempproject/wsgi.py | 0eb3d019ab04a1ac8d64047a343bd0a726103e5c | [] | no_license | srazor09/Django_projects | 9806ab25d966af780cdabe652a1792220c7806a8 | 8d664ba4c9478bd93c8e5bcbcaf594e8ffe6ce93 | refs/heads/master | 2023-04-18T02:13:15.993393 | 2021-05-04T20:34:05 | 2021-05-04T20:34:05 | 364,379,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for advtempproject 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.setdefault('DJANG... | [
"sourabhaws09@gmail.com"
] | sourabhaws09@gmail.com |
827a78cc47cd4d1f99e0ace0cf6603aca4abcfc0 | 7a04774e01e3b2065200cd0d57aacc19bbdd4653 | /python_sources/ModelTraining.py | f6d8f1194d72a3dd625fa1013cafb970c9231a4d | [] | no_license | gerykiss86/master-project-ml | 22c7ca7906850f8c5b8da3c93209c011f25c6673 | a1e6698fb89774e5c3e63ea2771c995ca89ccf83 | refs/heads/master | 2020-03-21T23:32:34.789318 | 2019-03-11T00:34:33 | 2019-03-11T00:34:33 | 139,192,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | import numpy as np
from keras.layers import Dense, Activation
from keras.models import Sequential
def my_train(week):
def keep_columns(passed_array, last_column_to_keep):
arr = passed_array
label = arr[:, arr.shape[1] - 1:]
arr2 = arr[:, :last_column_to_keep]
arr3 = np.insert(... | [
"gergo.laszlo.kiss@gmail.com"
] | gergo.laszlo.kiss@gmail.com |
4e59b315ea0eefd8f148888dc07903bba562e531 | 59182ffe28c054d9f33ee9b8885a52fd5944440c | /twilio/rest/wireless/v1/usage_record.py | 91867ba874f25cc0138ed624ec37517e3a4b31c9 | [
"MIT"
] | permissive | NCPlayz/twilio-python | 652b508e086ee7e6658015e74f3bd19572012502 | 08898a4a1a43b636a64c9e98fbb0b6ee1792c687 | refs/heads/master | 2020-08-12T22:24:06.816467 | 2019-10-09T19:25:08 | 2019-10-09T19:25:08 | 214,854,286 | 0 | 0 | MIT | 2019-10-13T16:29:39 | 2019-10-13T16:29:39 | null | UTF-8 | Python | false | false | 9,237 | py | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import serialize
from twilio.base import values
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.page im... | [
"twilio-ci@twilio.com"
] | twilio-ci@twilio.com |
93991c44c4934ca2e346f1c389f11852fa134472 | 2edc41743511a39951c9b125e0644e2b7b187583 | /scripts/classification/imagenet/train_imagenet.py | f8646259a331651e9ec353acb22076d180a8e8cb | [
"Apache-2.0"
] | permissive | Angzz/fpn-gluon-cv | 04477968c0d4ff7eec3cba39d223ef9cd7b3fe71 | d0e730799757910b450d17f19db07e3ffe424d9f | refs/heads/master | 2022-12-01T23:44:12.971267 | 2019-08-07T14:16:43 | 2019-08-07T14:16:43 | 166,018,194 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,634 | py | import argparse, time, logging, os, math
import numpy as np
import mxnet as mx
from mxnet import gluon, nd
from mxnet import autograd as ag
from mxnet.gluon import nn
from mxnet.gluon.data.vision import transforms
from gluoncv.data import imagenet
from gluoncv.model_zoo import get_model
from gluoncv.utils import make... | [
"liang@megvii.com"
] | liang@megvii.com |
f095c17c392697ec5fb7da951dd4309508663a2f | c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8 | /Hacker Rank/Day3_04_02_20.py | c7cd53f8193dae0cfdc503af27bf0d8b26745ef5 | [] | no_license | Silentsoul04/FTSP_2020 | db0dae6cd9c371f3daa9219f86520dfa66348236 | 7e603af918da2bcfe4949a4cf5a33107c837894f | refs/heads/master | 2022-12-21T20:44:32.031640 | 2020-09-20T12:29:58 | 2020-09-20T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 4 22:00:31 2020
@author: Rajesh
"""
def swap_case(s):
return s.swapcase()
if __name__ == '__main__':
s = input()
result = swap_case(s)
print(result)
#########################
a = "this is a string"
b = a.split(" ") # a is converted... | [
"sharma90126@gmail.com"
] | sharma90126@gmail.com |
37d773e766ec4128fa05bb23fd58b27dc1a4e3a1 | 8df6cbbc3a0a10147a17c7b699110a123c493ea3 | /Algorithm Analysis and Design/coin.py | 2736c6356219595609dc09c1868518255ae3fcd6 | [
"BSD-3-Clause"
] | permissive | tolgahanakgun/School-Projects | 7982cd3a3841f1509434c3342b1cafe807e28354 | 3aecfa3887bc69f3fff44bd9509ff355c99ab1f4 | refs/heads/master | 2021-03-19T07:44:58.181555 | 2018-07-08T11:26:39 | 2018-07-08T11:26:39 | 86,336,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | '''
Created on 31 May 2016
@author: TOLGAHAN
'''
def coin(coins,x):
if x == 0:
return 0
if x == 1:
return coins[1]
return max(coins[x] + coin(coins,x-2), coin(coins,x-1))
a = [0,5,1,2,10,6,2]
print coin(a,6) | [
"tlghnakgn@gmail.com"
] | tlghnakgn@gmail.com |
d1b61c78e3318835f3a4dd7f322f293ed0539d4b | 25cd9515e4566c90c53cf809b1a4933c15c95a1d | /utils.py | 0652f17cf0d8aa064f22976ccc720c13e9e41405 | [] | no_license | raynardj/npsg | fdc2ea3b41d9786e7bf300a10198f4aa7061ce60 | aaaf02b07ee9443c45f702e4fec97c2eec2e5ee8 | refs/heads/master | 2021-09-04T16:20:42.862853 | 2018-01-20T08:26:44 | 2018-01-20T08:26:44 | 115,770,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from keras.layers import Conv2D, Dense, MaxPool2D, Flatten, Activation, Input, BatchNormalization, Dropout
from keras.layers import Reshape, Lambda, UpSampling2D, Multiply, Add
from keras.layers.advanced_activations import LeakyReLU
from keras.models import Model, Sequential
from keras.optimizers import Adam,SGD
import... | [
"zhangxiaochen@zenmen.com"
] | zhangxiaochen@zenmen.com |
9612b0b0b057de21705640a3164b0b31063f3364 | 09dc545b0a4645e694463c7e5826931ceb473430 | /giteapy/models/transfer_repo_option.py | a10a6ab56580cfd5167c932c48667c50e28442e2 | [] | no_license | mheden/giteapy | 912ec8a207c922004e731b81fe86a13b5393dd72 | 9b15486fb41bfed2c9f779741fa5dcae836d9ddc | refs/heads/master | 2023-08-26T18:17:06.131693 | 2021-10-19T09:04:01 | 2021-10-19T09:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,501 | py | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.15.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from giteapy.configuration import Configuration
class ... | [
"mikael@heden.net"
] | mikael@heden.net |
2be5096f18e4dcd89cb7a54714ee19851b1e8f91 | f6667b7e0d5ad29227efcae1bbededd5e7b06e70 | /blog_project/mysite/mysite/settings.py | 2c89687942de2efee35739a162c5e6736b975961 | [] | no_license | Abhishek-b1/Django_Level_one_to_five | 4e74e2555fe7b31fb7ef8c7a0e9b1d2aa119c9d7 | 8b1b9cecc88553c61bfc9357451c67c3c243f68a | refs/heads/master | 2020-03-15T20:23:21.490706 | 2018-05-18T14:19:54 | 2018-05-18T14:19:54 | 132,331,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.12.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"abhishek.banagunde@kisanhub.com"
] | abhishek.banagunde@kisanhub.com |
9d80a655db28a1a02e70343ae7a7c6be7e6d2e61 | 81ad6eceaaa2334393b6c5ddd1948ed3f7fb5850 | /customers/views.py | be31d3213c47869c21cd4c672880dc7ae17ca88d | [] | no_license | hmoskva/kankara | deb7bb1ca3172d5dee262c16d664b98f50d029b0 | 283d462b27451f0e9e5a40e5a6ae134910c66d3b | refs/heads/master | 2021-09-10T22:29:08.422507 | 2018-04-03T12:39:59 | 2018-04-03T12:39:59 | 118,362,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from django.shortcuts import render
from django.views.generic import ListView
from .models import Customer
class CustomerList(ListView):
template_name = 'customers/home.html'
context_object_name = 'customer_list'
queryset = Customer.objects.filter(active=True)
def get_context_data(self, *args, **kwa... | [
"dejisogbesan@rocketmail.com"
] | dejisogbesan@rocketmail.com |
cfe33aa198b6cd99ffac40afbdfd05b36d63b654 | a0bb8fae61343d0eb5d78ee212e2d8859be28a9d | /src/data_loader.py | 178ee2f9523501264f561a208db135c44433b48b | [] | no_license | nikhil741/lstmAndGruFromScratch | 03466c17cb52422ec9df6097161f2cd5d4d90fbb | a3da113d62f91b43d5eedfb74ebf7a27c1b1ab79 | refs/heads/master | 2021-11-25T23:15:03.430511 | 2018-03-07T21:45:54 | 2018-03-07T21:45:54 | 124,290,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | from zipfile import ZipFile
import numpy as np
'''load your data here'''
class DataLoader(object):
def __init__(self):
DIR = '../data/'
pass
# Returns images and labels corresponding for training and testing. Default mode is train.
# For retrieving test data pass mode as 'test' in fu... | [
"nikhilagrawal741@gmail.com"
] | nikhilagrawal741@gmail.com |
8abec5eec6897caceff5720c533f4f4702b732a3 | 0e944edbe19033b2bb7356842cf4b66f8bbdb643 | /pretrain/train_mdnet.py | 0cdcdb4a02ac20c7ad39dc66b32fddc30bada208 | [] | no_license | zyxxmu/Fast-Vital | b9067fd894a0f2b8704a577c0db7c345202e0584 | 71f086c76fb72d49d6481c7ff2d56c9a672eda72 | refs/heads/master | 2022-03-25T21:27:42.297454 | 2019-12-24T07:43:10 | 2019-12-24T07:43:10 | 228,348,195 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | import os, sys
import pickle
import yaml
import time
import argparse
import numpy as np
import torch
sys.path.insert(0,'.')
from data_prov import RegionDataset
from modules.model import MDNet, set_optimizer, BCELoss, Precision
os.environ['CUDA_VISIBLE_DEVICES'] = '0,1'
def train_mdnet(opts):
# Init dataset
... | [
"yxzhangxmu@163.com"
] | yxzhangxmu@163.com |
3707942092f8a2717e1e159fd36fc8769e28c5ee | 5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e | /py/topcoder/TCCC 2003 Semifinals 2/TicSolver.py | a7805ff035c64217729de5ff4c0bd9d4ebc789e0 | [
"MIT"
] | permissive | shhuan/algorithms | 36d70f1ab23dab881bf1a15573fbca7b2a3f4235 | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | refs/heads/master | 2021-05-07T14:21:15.362588 | 2017-11-07T08:20:16 | 2017-11-07T08:20:16 | 109,799,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | # -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect
class TicSolver:
def whoWins(self, board):
return ""
# CUT begin
# TEST CODE FOR PYTHON {{{
import sys, time, math
def tc_equal(expected, received):
try:
_t = type(expected)
received = _t(... | [
"shuangquanhuang@gmail.com"
] | shuangquanhuang@gmail.com |
297e5849c3166455025dbc3088c25b4a4b337fd6 | 6b50a7e1aff1203f31189c997ee7e76e17236066 | /cifar10_alexnet.py | 28f1104b00c0134815dc4654a9157cb8824b6170 | [] | no_license | ZhangYi19941217/alexnet_vgg_cifar10 | 485f98aedafacd4c9f3d6da3473f02b84eedee44 | 673b216deca9dfa54031475275e3a0a170b59e29 | refs/heads/master | 2020-04-08T06:46:34.793043 | 2018-08-01T07:15:39 | 2018-08-01T07:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,925 | py | # Copyright 2015 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 applica... | [
"1536419711@qq.com"
] | 1536419711@qq.com |
9b7ddeee42889b99669d49cb0f7ffd393e7285eb | 48f670ce1e7f6b0a868fcd1817c3b878ad2093e2 | /app/views.py | ce72a2f5a9773444a42d0d890a4206099202d64b | [] | no_license | cdutsov/tdcr_analysis-v2 | fa96047b2e6d9b37487f949e2dd7d7a0235f8414 | fad82dc4f7d3920b5abdb34971d6adba78d0e40b | refs/heads/master | 2021-01-19T07:31:29.456038 | 2018-03-08T07:52:05 | 2018-03-08T07:52:05 | 87,550,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,542 | py | import os
import pickle
import re
from datetime import datetime
from subprocess import call, check_output
from flask_login import login_required
from flask_login import login_user
from flask_login import logout_user, current_user
from sqlalchemy import and_, engine
from app import app, db, login_manager
from flask im... | [
"chavcho93@gmail.com"
] | chavcho93@gmail.com |
cb2de01dabc6e614b7ec50462818de83e904f403 | ea6c2a0029b261fb1438ffc4089cd92b2ad63619 | /censor.py | 1441a55d59695f91165029d7a60aa247775d0917 | [] | no_license | mmcelroy75/censordispenser | f99fae7b79d7363f8e7c72fd48988d0370fcda18 | ab89b5b24ccf334d6f4d6f03b8f8bf3a924ffdb5 | refs/heads/master | 2022-04-20T06:39:41.894166 | 2020-04-17T04:30:14 | 2020-04-17T04:30:14 | 255,747,074 | 0 | 0 | null | 2020-04-17T04:30:16 | 2020-04-14T22:59:03 | Python | UTF-8 | Python | false | false | 1,599 | py | # These are the emails you will be censoring. The open() function is opening the text file that the emails are contained in and the .read() method is allowing us to save their contexts to the following variables:
email_one = open("email_one.txt", "r").read()
email_two = open("email_two.txt", "r").read()
email_three = o... | [
"Mark@Excerceo-Novus.local"
] | Mark@Excerceo-Novus.local |
b60e15383bddc7ea3a0cfc31e4fa61c1a89fc56b | 3761ee7c8bf2217804a8127cb93087c506f10743 | /Ex7.2-Adaboost识别手写体/svm-test.py | 1677d1020afe958de558728541f668fefbba26e9 | [] | no_license | zfg88287508/CV-code | 599918ba4340363d1d8462cbf031a8f903bb7e48 | d61b01ece58588e838cdcb5730700c6949b7ab01 | refs/heads/master | 2023-05-13T15:53:43.014302 | 2019-11-06T17:02:41 | 2019-11-06T17:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | """
svm 测试例子
"""
import numpy as np
import pandas as pd
from sklearn import svm
import matplotlib.colors
import matplotlib.pyplot as plt
from sklearn.metrics import accuracy_score
from sklearn.model_selection import GridSearchCV
from time import time
from sklearn.ensemble import AdaBoostClassifier
from sklearn.linear... | [
"576261090@qq.com"
] | 576261090@qq.com |
23d602305de31d96583e88e385bc79e6420cdb96 | 52950b2783a7aebf23689c9c5397cf381d0dde7d | /oss/deepm2/pathways.py | a2cd8fc4f713105042427c37207672397c0dd7e2 | [] | no_license | zhouyong64/academiccoder | 9b4a8f9555b99dc364a0c0e4157faa582b542e90 | 5415a43889a18795fb98960ff7700dbcdd5138df | refs/heads/master | 2020-05-17T11:46:15.143345 | 2017-12-05T06:57:14 | 2017-12-05T06:57:14 | 29,723,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,959 | py | # Copyright (c) 2016, Konstantinos Kamnitsas
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the BSD license. See the accompanying LICENSE file
# or read the terms at https://opensource.org/licenses/BSD-3-Clause.
import numpy
import numpy as np
im... | [
"joe@joedeMacBook-Pro.local"
] | joe@joedeMacBook-Pro.local |
175b341a56c39c15bc473eabefdea8436aba734f | 09d79c3509252cfccac35bb28de9a0379094823a | /alx/movies/migrations/0002_auto_20201123_1045.py | 1ac4f1ab4103dc7788ff628ea113fe1d93025510 | [] | no_license | marianwitkowski/python2311 | 73ad491016cd6d0010d0203db43aca2c6debe0ad | 9bbeca3fb6d8658a1321ab099ff2102cd7de76e0 | refs/heads/master | 2023-01-22T13:13:56.695680 | 2020-12-02T14:58:15 | 2020-12-02T14:58:15 | 315,350,865 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.1.3 on 2020-11-23 09:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('movies', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='movie',
options={'verbose_name': 'Film', 'ver... | [
"marian.witkowski@gmail.com"
] | marian.witkowski@gmail.com |
30c99dfdd5ca6240f4823e4700937a6180f408ea | 7634e833cac4973375739e814cc9aa755c7b1f77 | /day_2/4_find_the_runner_up_score.py | eaca8df361fcb1e777ea912efc837fc1b60c0bdb | [] | no_license | RonakNandanwar26/Innomatics_Internship | 34a2b75a68eae022734010caeef05c28807a7435 | 15884516f38331ae6f152cac8bfd36af4e195c19 | refs/heads/master | 2023-04-17T16:57:32.409572 | 2021-04-14T03:54:39 | 2021-04-14T03:54:39 | 331,293,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | """
Given the participants' score sheet for your University Sports Day, you are required to find the runner-up score. You are given scores. Store them in a list and find the score of the runner-up.
Input Format
The first line contains n. The second line contains an array A[] of n integers each separated by a space.
... | [
"ronaknandanwar10@gmail.com"
] | ronaknandanwar10@gmail.com |
b09ea8ae30786f0547c3fc9f3cf5ed86aff6342a | 836114e315f19baaf236153d7ff5aea0762898b6 | /__unported__/product_with_supplier_unit_price/__openerp__.py | 2b42f930bbff57e3bc94c05e9b16a01c6712b7a1 | [] | no_license | acsone/product-attribute | 4fd30f89feeb05c80cdd6c47df4ad27c857216db | 4c053ed71a464e31a3e49c9ec9a968a17b799233 | refs/heads/master | 2023-09-05T01:27:53.076091 | 2014-07-09T10:30:41 | 2014-07-09T10:30:41 | 21,644,928 | 1 | 0 | null | 2023-07-25T13:26:14 | 2014-07-09T08:30:01 | Python | UTF-8 | Python | false | false | 1,835 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it... | [
"guewen.baconnier@camptocamp.com"
] | guewen.baconnier@camptocamp.com |
de7cdeb56ac6a9da4ebdb384575159164684b92d | dfad6d85ddcccee8e582c34b5e0486b10d1b1dca | /wizard/confirm_auto_fulfill.py | d0df28f0588ad94334d80e74dca35dfcb42b5960 | [] | no_license | HichamFkr/fulfillement | 97845ad189de9281951390402fc5c3e76723bc14 | 00eba73aec03a2ddf2e069837936c7551c372f8e | refs/heads/master | 2020-05-26T04:29:02.874740 | 2019-07-08T07:43:01 | 2019-07-08T07:43:01 | 188,106,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,541 | py | # -*- coding: utf-8 -*-
from audioop import reverse
from openerp import fields, models, api
import numpy as np
class sale_order_auto_fulfill(models.TransientModel):
_name = 'sale_order.auto.fulfill'
def _decesion_matrix(self, partners):
def fill(row, n, begin, end):
if n == 1:
... | [
"hichem420@gmail.com"
] | hichem420@gmail.com |
b956bf75c5205f6186423173fbd05e4ad8f4c45d | 92002b325654387604286b92b107f31d7fc2167e | /sina_backup.py | a75801791a31a7ebec7e3a75d5a0b4e35e017539 | [] | no_license | jit2088/sina_blog | 21ccbb16ca3f498ab8d226afe7d1e99f83e11fb6 | d3cadcfc9e573597058a648f2554de8d1b0df52b | refs/heads/main | 2023-02-14T18:23:50.183933 | 2021-01-10T16:58:17 | 2021-01-10T16:58:17 | 327,697,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,363 | py | # -*- coding:UTF-8 -*- #
'''
Created on 2011-12-18
@author: Ahan
'''
import re
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import os
import time
import socket
import locale
import datetime
import codecs
from urllib import urlopen
#正则表达式定义
#匹配博文目录链接
pattern1=u"""<a href="(http:.*?)">博文目录</a>"""
prog1 = re.co... | [
"jin.2088@usask.ca"
] | jin.2088@usask.ca |
8c5fb8bc6094cee02d62818ed1fdba969117d0ea | 57235e5fbd29dc5e0b3f24649e15a48935edd65f | /boa3_test/test_sc/built_in_methods_test/IsInstanceListLiteral.py | 11e0d91468bec39a5306a5e643f06dec8b69c858 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | DanPopa46/neo3-boa | ae75543bdc4e0aeadf45578b6b5e4c45b9253557 | e4ef340744b5bd25ade26f847eac50789b97f3e9 | refs/heads/development | 2023-04-01T19:25:08.216180 | 2021-04-15T17:45:38 | 2021-04-15T17:45:38 | 358,663,228 | 0 | 0 | Apache-2.0 | 2021-04-16T16:46:46 | 2021-04-16T16:46:31 | null | UTF-8 | Python | false | false | 94 | py | from boa3.builtin import public
@public
def Main() -> bool:
return isinstance([], list)
| [
"mirellamedeiros.09@hotmail.com"
] | mirellamedeiros.09@hotmail.com |
9252178bd560c85b23332610a4299b0ec0f71f57 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /q4bBcq5NET4CH5Rcb_16.py | 5f42fed2a73573979ea8acc56462e2f23301b0ed | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py |
def jay_and_bob(txt):
a={"half":"14 grams","quarter":"7 grams","eighth":"3.5 grams","sixteenth":"1.75 grams"}
return a[txt]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5ee67e80af40f1fb9ca2e30abc32a0d1d67ae76a | a617d322816e844829fa48b26759a4ef6258f193 | /cobrapy/ijr904/ex0/case2.py | 01f206a8dc64ece77cc9269f274c2ae2f81dd283 | [] | no_license | t6g/genomescalemetabolicmodeling | cb66c5b56fbcb0ad3b391187c2321f4cb3e87ba5 | e02c0817a2958bb4c41970f5887ee1c7a39c4cd6 | refs/heads/master | 2021-01-10T03:11:01.249420 | 2016-02-04T19:38:54 | 2016-02-04T19:38:54 | 51,077,991 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from __future__ import print_function
import cobra as cobra
model = cobra.io.read_sbml_model('../../../xml/iJR904.xml')
biomass = model.reactions.get_by_id('BiomassEcoli')
model.change_objective(biomass)
glu = model.reactions.get_by_id('EX_glc_LPAREN_e_RPAREN_')
glu.lower_bound = -18.5
mod... | [
"tanggp@yahoo.com"
] | tanggp@yahoo.com |
f0f7d898a452de3ce1b9a7940f8dcd61c38c6500 | 18f8abb90efece37949f5b5758c7752b1602fb12 | /py/django_tools/django-haystack/tests/simple_tests/tests/simple_backend.py | d9b5120d942eb0f05a4fcbd1769c58de0da181cd | [
"BSD-3-Clause",
"MIT"
] | permissive | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 5,799 | py | from datetime import date
from django.conf import settings
from django.test import TestCase
from haystack import connections, connection_router
from haystack import indexes
from haystack.query import SearchQuerySet
from haystack.utils.loading import UnifiedIndex
from core.models import MockModel
from core.tests.mocks i... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
d549ba467c97d5c0f1e6bbbe09468611fa76e397 | 8517f9ee07964eabef065a4ebc13ff6dbdb0dc5e | /purchase_analysis/__manifest__.py | 5aa2c925d6e4227818344988a0dba610e35bed32 | [] | no_license | sendalpegat/promotionv12 | 01cb3289862d96ed8d7df58fff65af618ee76724 | d0659ebd3ce46ffe9440e21287c4fea2599e2644 | refs/heads/master | 2022-07-15T04:13:34.766504 | 2020-05-09T05:19:39 | 2020-05-09T05:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
{
"name": "Purchase Analysis",
"category": 'purchase',
'summary': '',
"description": """
""",
"author": "Odox SoftHub",
"website": "http://odoxsofthub.com/",
"depends": ['base', 'purchase', 'product','product_brand'],
"data": [
'securi... | [
"ashifpk1@gmail.com"
] | ashifpk1@gmail.com |
a227ccbe053d5ce1d3c9cad90399739b78d1a5a2 | f1c77ea87628e8cf1c5020ac74107c97a12ecbb2 | /old/push2ES_batch.py | 8fedd0620f2a50d19ad10a61143c84d1ad1c7764 | [] | no_license | czxxjtu/youTube-8m | 8d1f339e0637d7eabca1c05d13f18457add42c2a | 41f43fbf2817b22c2669a7c46db9341098be5bbe | refs/heads/master | 2021-01-12T09:11:12.966588 | 2016-12-13T03:01:21 | 2016-12-13T03:01:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | # 2. Push data into ElasticSearch
# What do I need?
import json
import pyes # Package to dump YouTube data to ElasticSearch (https://pyes.readthedocs.io/en/latest/references/pyes.es.html)
import sys
from retrieveData_batch import retrieveAPIData
reload(sys)
sys.setdefaultencoding('utf-8') # For displaying foreign char... | [
"noreply@github.com"
] | noreply@github.com |
d72e85e9155e145a4086c011b7fc6725abf1cbec | d6c9f45d1369089f05b2479e531407f5e06649b6 | /kitti/writeDescriptors.py | 36b9e2ba8b99e7189e19f30da7efd112b2987a6a | [] | no_license | jingdao/PointCloudApp | acc2136c5eea7e1f2dc547c09617e67e5f07e4aa | 862972f1ac376ef25dd425f556b5e80a30486201 | refs/heads/master | 2021-01-25T14:56:50.822350 | 2017-09-11T16:59:02 | 2017-09-11T16:59:02 | 38,130,300 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | #!/usr/bin/python
import sys
import glob
import os
dir = sys.argv[1]
labels = None
if os.path.isfile(dir+'/labels.txt'):
labels = []
fd = open(dir+'/labels.txt')
for line in fd:
labels.append(int(line))
print 'Read '+str(len(labels))+' labels'
outfile = open(dir+'/svmdata.txt','w')
if labels is None:
maxN = ... | [
"chenjingdao@wustl.edu"
] | chenjingdao@wustl.edu |
55bacf98f915eaac80ad81e7cd9541e1d1d103f4 | fb82b947f230d790e02aa931bede474bd2838a1d | /Maquinas.py | 751addb2d37812f788e736bcdcbdca40d04d3cc4 | [] | no_license | josejacomeb/Maquinas | 6dc201da3d27fbbb3b2342186c210e5dadb289ec | a3ce5de4f1da2b2c63c383f88e7d285e56a018a3 | refs/heads/master | 2021-01-20T11:06:32.012727 | 2014-07-12T16:34:14 | 2014-07-12T16:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Maquinas.ui'
#
# Created: Sat Jul 12 09:50:50 2014
# by: PyQt5 UI code generator 5.3.1
#
# WARNING! All changes made in this file will be lost!
| [
"josejacomeb@openmailbox.org"
] | josejacomeb@openmailbox.org |
5183ef70a198156e115c1a6cfbf495b63f38c77f | c6a8aa51d489358381c9ba51ad162169243de16c | /10_1-10_3/def__UpToDateShapeLengthField.py | fde44cb61d007f10a5c5401fd0c365d422394f34 | [] | no_license | aantonio99/FCToolbox | e6fa78bb2f3a5fb0eb3174e9f80baa832b174bcc | 4c76e5923dfff1833fd944c8af4cc5ddb3c91f08 | refs/heads/master | 2021-07-21T07:04:17.671545 | 2017-10-31T12:38:14 | 2017-10-31T12:38:14 | 108,995,073 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,861 | py | # -*- coding: utf-8 -*-
'''
Created on 21 fev. 2013
Last update on 07 fev. 2014
@author: Clement Roux
@contact: clement.roux@ens-lyon.fr
CNRS - UMR5600 Environnement Ville Societe
15 Parvis René Descartes, BP 7000, 69342 Lyon Cedex 07, France
@note: For each use of the FluvialCorridor t... | [
"aurelie.antonio@ens-lyon.fr"
] | aurelie.antonio@ens-lyon.fr |
5e29a1322e48474262d25fec16e26d81b47188a4 | f81e9a81338c56bcca2c1900d6a189f9633ec406 | /store/urls.py | be7e8e7ab89db81e01b1295f20ef379ea90e6787 | [] | no_license | allahgabo/greatkart-django | b2127c9227e28a7d9856a6c99162eeaaf328fa92 | 38f8b07f060fd14a7bf85dd9a9b7217fcccee1af | refs/heads/main | 2023-04-30T01:42:45.962041 | 2021-05-20T19:48:46 | 2021-05-20T19:48:46 | 368,124,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.store,name='store'),
path('home/',views.home,name='home'),
path('category/<slug:category_slug>/',views.store,name='products_by_category'),
path('category/<slug:category_slug>/<slug:product_slug>/',views.product_detail,name='product_det... | [
"suliman_allahgabo@yahoo.com"
] | suliman_allahgabo@yahoo.com |
398495e9fdcb0aefeea06c8c7e1c34515a197940 | 63d1fd387d5fce97a17edcd0170088f51aef106b | /Dynamic_Programming/knspack/0-1knapsackbottomup.py | a99440d27e09afc7a2064b4eefab30123b46b10c | [] | no_license | ayushkedia357/interview_practice | 46355dd8b18c9e497a9495bac9056c37d628ab0a | fb409c4a8f579581424bff26d56196ba3c2ece4c | refs/heads/master | 2021-05-19T04:18:34.918714 | 2021-04-29T05:36:03 | 2021-04-29T05:36:03 | 251,525,504 | 1 | 1 | null | 2020-04-28T04:42:05 | 2020-03-31T07:02:45 | Python | UTF-8 | Python | false | false | 346 | py | wt = [1,2,3]
val = [6,10,12]
W = 5
n=len(wt)
memo = [[0 for i in range(W+1)] for j in range(n+1)]
for i in range(1,n+1):
for j in range(1,W+1):
if wt[i-1] <= j:
memo[i][j] = max(val[i-1] + memo[i-1][j-wt[i-1]],memo[i-1][j])
else:
memo[i][j] = memo[i-1][j]
... | [
"noreply@github.com"
] | noreply@github.com |
fd030c84a3083c494b2b5cc68e2f65fceb0e1585 | 767280307aeb00b70b3326a22586a514e57bf8d4 | /middlebox.py | 976c2b37a7762ba2edede8fea0e68fea117a2cfc | [] | no_license | vithirun/Reliable-Communication | 3dacf5178e4b4f2888ebb7277aeb545e8e9bf533 | 1dca93dd10379dfaa00b18a40c1b6dd9b35b6b50 | refs/heads/master | 2021-09-01T05:10:13.677144 | 2017-12-25T01:35:47 | 2017-12-25T01:35:47 | 115,296,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,453 | py | #!/usr/bin/env python3
from switchyard.lib.address import *
from switchyard.lib.packet import *
from switchyard.lib.userlib import *
from threading import *
from random import *
import time
BLASTER_IP = "192.168.100.1"
BLASTER_MAC = "10:00:00:00:00:01"
MIDDLEBOX_BLASTER_IP = "192.168.100.2"
MIDDLEBOX_BLASTER_MAC = "... | [
"viki@DESKTOP-G5DH82V.localdomain"
] | viki@DESKTOP-G5DH82V.localdomain |
15cdef80de74576e1921e64605edf2172182c0c0 | 59ccc333c74b64cd3160ff66e5594cf0d94c6a4e | /learn_python/work3_test_pytest/core/calc.py | 8b27050d342fccff0cedb4dc40f76ba5be9887d4 | [] | no_license | pengketong-pkt/pengketong_lg4 | 86933c324d0cc85267035c63887de8449f275534 | 79460f837b1f94da58ddba091487d9a670d1de33 | refs/heads/master | 2023-04-28T17:57:56.665724 | 2021-05-17T09:15:28 | 2021-05-17T09:15:28 | 293,811,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | class Calc:
def div(self, a, b):
return a/b
def mul(self, a, b):
return a*b
return a / b
def mul(self, a, b):
return a * b
| [
"13680586193@139.com"
] | 13680586193@139.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.