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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1dc07947163f162841fac667cf4ec00bef3e681f | ec3a1a6787fc88d862e5e7476377d364a6437b1f | /restaurant/meals/views.py | 5ce99a2654fb2fc552dfa334f7c8e2432e0667da | [
"MIT"
] | permissive | alex-dsouza777/Seasonal-Tastes-Restaurant | a31f5d52504a05012a963149f2de8e8c7351f475 | 22d39ba6d1d353f66811641214fd386103270304 | refs/heads/main | 2023-07-17T17:51:05.422482 | 2021-09-07T09:56:25 | 2021-09-07T09:56:25 | 403,854,782 | 0 | 0 | null | 2021-09-07T09:50:24 | 2021-09-07T05:43:10 | HTML | UTF-8 | Python | false | false | 517 | py | from django.shortcuts import render
from . models import Meals, Category
# Create your views here.
def meal_list(request):
meal_list = Meals.objects.all()
categories = Category.objects.all()
context = {
"meal_list":meal_list,
"categories":categories,
}
return render(request,"meal... | [
"alexdsouza00777@gmail.com"
] | alexdsouza00777@gmail.com |
5ecff5ad5fe3286e9a8e813f3c9de2d599229c34 | 781116645c0d60de13596aac81a76c791ed0c18a | /kivy_garden/flower/__init__.py | 6793aaafcc1aa355b42b381f1800e9714707bb6e | [
"MIT"
] | permissive | matham/flower | 503dae3446110da05ecd2a527b3459f7e1bcadb3 | e7c71346563573197ae304ceb343bff14e54a5cd | refs/heads/master | 2020-05-24T22:33:43.761720 | 2019-05-19T08:56:14 | 2019-05-19T08:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | """
Demo flower
============
Defines the Kivy garden :class:`FlowerLabel` class which is the widget provided
by the demo flower.
"""
from kivy.uix.label import Label
__all__ = ('FlowerLabel', )
__version__ = '0.1.0.dev0'
class FlowerLabel(Label):
def __init__(self, **kwargs):
super(FlowerLabel, self)... | [
"moiein2000@gmail.com"
] | moiein2000@gmail.com |
0c6c18f30e29a079c85f04ab0a9b5d59618dad5d | 229e9750b9acd0092d5d021c42c4fd1f609b8b8a | /Python/pig_it.py | e2a4942a469bcf90dd242a7312ff4634fda8f6eb | [] | no_license | idellang/codewars | aad1c3becf2c6f600ccb45efd5c7fc5d0acf08a2 | 1e09b5f59342136d4a8010580a78a30b916890f8 | refs/heads/master | 2023-03-27T16:57:24.966851 | 2021-03-14T07:11:45 | 2021-03-14T07:11:45 | 343,757,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | def pig_it(text):
ans = []
list_text = text.split(" ")
for text in list_text:
if text.isalpha():
ans.append(text[1:] + text[0] + "ay")
else:
ans.append(text)
return " ".join(ans)
print(pig_it("O tempora o mores !"))
| [
"jfcastaneda@up.edu.ph"
] | jfcastaneda@up.edu.ph |
d5fd5d05d76dd805abbb7f51983ab43ceb1f169c | 108cdb1a467e2569ee1197f66bb773fa172f4b4a | /lib/core/portscan.py | db3f6a713edc45c10d3815a64aa12d3b6ef1f806 | [] | no_license | Da7uraN0ir/scanner-based-spider | 0821853cb55a1d0c71676595541f6a7c66490ba1 | 2e588b760b1fa08d0dd8ad50ca83dc57121bec8b | refs/heads/master | 2020-03-07T05:15:20.626595 | 2018-04-08T07:42:41 | 2018-04-08T07:42:41 | 127,290,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import socket
import threading
import Queue
class portscan:
def __init__(self,ip="localhost",threadnum=5):
self.PORT = {80: "web", 8080: "web", 3311: "kangle", 3312: "kangle", 3389: "mstsc", 4440: "rundeck",
5672: "rabbitMQ", 5900: "vnc", 6082: "varnish", 7001: "weblogic", 8161: "... | [
"1061919665@qq.com"
] | 1061919665@qq.com |
b341d8e48eb23d4b830ebca10113720caf32a3d5 | d9f85e88424c03072b2939e1e0681c4a28595c91 | /matrixstats.py | 029f8de3b6299f5014b614f677c049cae10ec691 | [
"BSD-2-Clause"
] | permissive | Cadair/chat_stats | 1d826377c95462d555a3d5df1a840f1b9f32c9b3 | c34648d80b67f8e66a9a8adcad92147644ad7923 | refs/heads/master | 2022-09-05T21:26:13.611506 | 2022-08-05T10:22:33 | 2022-08-05T10:22:33 | 160,004,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,373 | py | """
This file contains a set of helpers for analysing the history of groups of
matrix rooms.
"""
import unicodedata
import re
import datetime
from urllib.parse import quote
from collections import defaultdict
from matrix_client.errors import MatrixRequestError
import pandas as pd
import numpy as np
__all__ = ['get_r... | [
"stuart@cadair.com"
] | stuart@cadair.com |
d30e87902b060e3ee5ffe9249453e0c1c1b3b2ec | 8aefe8287b195165edf796b814d931a3399d7fe3 | /users.py | 35c37ea4d56e02db5eced03ba7d09d18a027deab | [
"MIT"
] | permissive | lchebib/room-to-grow-plant-daycare | a77de6c9aad16c6f742ef6d06f3bd1eb6ecd87d0 | 71f78ec863f61759dffd3f18a5bf18d1c02cc244 | refs/heads/master | 2023-02-03T08:11:07.282727 | 2020-12-21T01:28:40 | 2020-12-21T01:28:40 | 318,349,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import sqlite3
# information we need: user name, user location, user instances of plants
# users
# name
# location
# plants
# breed
# name
#need to to create two tables one for our users and one for out plants
#each plant instance will have a property tied to the user so when we want to recall a certain... | [
"lanachebib@Lanas-MacBook-Pro.local"
] | lanachebib@Lanas-MacBook-Pro.local |
2d8b849c119f6ad6fb792acbc74b43a0617ac741 | 23d7690ae4c6d083e55672882a1823c932d33a8f | /pico8/lua/lexer.py | 923405963ac64b089250943955f587c36bcaa993 | [
"MIT"
] | permissive | andmatand/midi-to-pico8 | e42dfb11eeefe0a4b97c216fe8844c45346cfbe7 | 371e52a584631d668ed127f7d43678cd0916fc1f | refs/heads/master | 2020-11-30T14:04:18.595377 | 2017-10-21T22:20:53 | 2017-10-21T22:20:53 | 66,683,076 | 58 | 4 | null | null | null | null | UTF-8 | Python | false | false | 11,526 | py | """The Lua lexer."""
import re
from .. import util
__all__ = [
'LexerError',
'Token',
'TokSpace',
'TokNewline',
'TokComment',
'TokString',
'TokNumber',
'TokName',
'TokLabel',
'TokKeyword',
'TokSymbol',
'Lexer',
'LUA_KEYWORDS'
]
LUA_KEYWORDS = {
'and', 'break'... | [
"andrewloveskitties@gmail.com"
] | andrewloveskitties@gmail.com |
8cd7aac808f9f78c1c4742d8f5ed18403fccda45 | 71268b559e076fc1a11be580158b8ba26bf6f057 | /batchInvertTrack.py | 1f7f3d43369829b68d861cfdea3c387698a3df79 | [] | no_license | feganflamer035/flame-family | 69f99f2fbc86de8a3e88237fb1db1435dcac39ca | a8b16c907cc4df7254ad2ba5b759d6a574bc3e60 | refs/heads/master | 2020-05-27T02:33:45.792510 | 2019-05-24T16:35:23 | 2019-05-24T16:35:23 | 188,453,345 | 1 | 0 | null | 2019-05-24T16:17:50 | 2019-05-24T16:17:50 | null | UTF-8 | Python | false | false | 1,830 | py | def getCustomUIActions():
def invertTrack(selection):
import flame, os, commands, subprocess, random
for item in selection:
action = flame.batch.current_node.get_value()
current = action.current_node.get_value()
axisInvert = action.create_node("Axis")
... | [
"noreply@github.com"
] | noreply@github.com |
293787f3c48cc3c3ced989ce8523a28c173701d2 | cdab89747a02414d6126e7fa4897b6decb9176ce | /manage.py | c1a6de13ffefeeef8d6135be653a03951d9b7144 | [] | no_license | OA31C/RentingCar | 6e964bcb01e53341e057d635f3327a9b9a9da962 | ba1c2c6e49c5ecf98a2fe5dad289ef01b0baa803 | refs/heads/master | 2022-12-20T12:49:15.935533 | 2020-10-10T17:07:18 | 2020-10-10T17:07:18 | 298,558,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | 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', 'renting_car.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"OA3IC.QV@gmail.com"
] | OA3IC.QV@gmail.com |
2b1e82719e10753198ea8df678dabb25879741f4 | ac894b7f69a6523151a870218125193c0dc6d203 | /lesson one/24.py | b18ec62a7ed9fadf81b10aeb1288a39abf83af67 | [] | no_license | vincentdf/python | aded2a539af3f1432c5f7d9018bb8069a5c97656 | 00af94c49d8efa8c7b04a02192a4850bac4257b7 | refs/heads/master | 2021-04-15T11:18:10.907592 | 2018-03-23T09:12:28 | 2018-03-23T09:12:28 | 126,456,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | #!/usr/bin/python
# coding=utf-8
"""
题目:有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出这个数列的前20项之和。
程序分析:请抓住分子与分母的变化规律。
"""
n=2
m=1
j=0
for i in range (20):
j=n/m+j
# print j,n,m
# print j
n,m=m+n,n
print n,"/",m | [
"Durple@promote.cache-dns.local"
] | Durple@promote.cache-dns.local |
fa27baa0dca7aa2ef4790da7dbdd1d4f257aa105 | 0444fe93180ade854d3a59a62f4757bdab5e3477 | /sourcecode/Archieve/DDPGMultiAgent.py | 4d47169e5deb642068d21ce30c28bca2d51c3446 | [] | no_license | SENC/AiTennis | e2485a19e03c0ad6f8d30da15bc6b0a992e21113 | cdd08eecf0cde475b419afa9a6972498a05c4ddb | refs/heads/master | 2022-12-15T12:51:23.819817 | 2020-09-12T06:51:05 | 2020-09-12T06:51:05 | 286,974,930 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | from agent import DDPGAgent
import torch
import numpy as np
class DDPGMultiAgent:
def __init__(self, state_size,action_size,num_agents):
super(DDPGMultiAgent,self).__init__()
self.gamma = 0.997
self.multiagent = [DDPGAgent (state_size,action_size) for agent in range(num_agents)]
... | [
"SENTHILC78@HOTMAIL.COM"
] | SENTHILC78@HOTMAIL.COM |
12ee5f4eac1540065a246d0a64ab8a9b07db7924 | 60121a94a0ae99c1993f4231bf5caa20968d0d4b | /vision.py | 36f025377c9c37d2f8749e17b7a919b8e93c2fe7 | [
"MIT"
] | permissive | Shashank-Dwivedi/DesktopAssistant | 4d556f53c167754401b9e936b1447e7bd74ce53a | 1d5fda08fb875fee8502553de3bed86f0df087d4 | refs/heads/master | 2022-04-01T07:36:10.824900 | 2020-01-05T12:11:02 | 2020-01-05T12:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,661 | py | import pyttsx3
import os
import speech_recognition as sr
import datetime
import wikipedia
import webbrowser
import smtplib
import googlesearch
import bs4 as bs
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
def speak(audio):
engine.say(audio)
engine.runAndWait()
def... | [
"noreply@github.com"
] | noreply@github.com |
3101d3bd1babaa72f3a22d83e64963717d3eab67 | 09fee6ebdb0fdbac89bd84087c794d0ce57cd67e | /gpred.py | d2081c69bf83f3c4a1e18e5cdb5565314cee3de0 | [] | no_license | clementdesir/rattrapage_ohmique | f7308df12a6db8134425165f003abf3354c4969e | 7ef46083839a1e9056deb7a1318afc709687c7ff | refs/heads/main | 2023-08-10T20:03:07.509907 | 2021-09-29T02:24:39 | 2021-09-29T02:24:39 | 410,873,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | import argparse
import sys
import os
import csv
import re
def isfile(path):
"""Check if path is an existing file.
:Parameters:
path: Path to the file
"""
if not os.path.isfile(path):
if os.path.isdir(path):
msg = "{0} is a directory".format(path)
else:
... | [
"noreply@github.com"
] | noreply@github.com |
19575b1564e0017c90cc3e4a7b8bb967467f57ae | 762b8087f92b6bce8bec6b6de229786ed8a2cfa0 | /web_flask/5-number_template.py | 5ee5311a636ac77efd7fca6003e4dee4cd3e5191 | [] | no_license | 821-N/AirBnB_clone_v2 | 41a871dc47ad28af5d3440bb456cf18f4886e4b0 | 61d8ef1930662937ab23a8783fc81bce5c6b69ef | refs/heads/master | 2020-12-08T04:11:10.185900 | 2020-01-23T04:48:15 | 2020-01-23T04:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | #!/usr/bin/python3
"""
start flask
"""
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/", strict_slashes=False)
def root():
""" test """
return "Hello HBNB!"
@app.route("/hbnb", strict_slashes=False)
def hbnb():
""" test """
return "HBNB"
@app.route("/c/<balls>",... | [
"nathaniel.marofsky@gmail.com"
] | nathaniel.marofsky@gmail.com |
a096e4437abaa8b9a4ef88b8553396569b3095f9 | c009bb2981602e604dd115ffa621c48a4382a3d7 | /selfdrive/controls/lib/longcontrol.py | 4794e5eced0c95946db31da80af1fe330f460d3b | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | DS1SQM/OPKR_088_210814 | bc6de6a7ef5f56bc4e509b0c1ad9117508d5eb04 | 48dbc1aca8859bb6b8de3e74938ad4087d03a3fb | refs/heads/main | 2023-07-10T02:26:41.774093 | 2021-08-13T12:34:17 | 2021-08-13T12:34:17 | 395,825,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,049 | py | from cereal import car, log
from common.numpy_fast import clip, interp
from selfdrive.controls.lib.pid import LongPIDController
from selfdrive.controls.lib.drive_helpers import CONTROL_N
from selfdrive.modeld.constants import T_IDXS
from selfdrive.car.hyundai.values import CAR
from selfdrive.config import Conversions a... | [
""
] | |
c714879ab292decf242cb272a4d05560414fb170 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /LV2_LX2_LC2_LD2/ParamMap.py | 12d64819be32886c056b2489f3ffb2779ffe3981 | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 2,876 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/LV2_LX2_LC2_LD2/ParamMap.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
import Live
class Callable:
def __init__(self, anycallable):
... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
df8e1519382f5e846aedc96f25434bbeb9ebdd51 | db863a4ea4b8534c769fac892df3aa4362094b49 | /homeca/__main__.py | 466e116c2b4cf75f108a06eb37db71b6a200121d | [
"MIT"
] | permissive | ejsmit/homeca | f23cfbed422e65346ba5340bc250d8daba7b41fa | 2466f6b0a029d7b33627e9c62bb09d22f81f25f3 | refs/heads/master | 2020-03-20T23:56:25.966574 | 2018-06-19T09:37:55 | 2018-06-19T09:37:55 | 137,870,792 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,237 | py | #!/usr/bin/env python
import sys
import datetime
import os
import argparse
import ipaddress
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import hashes
from... | [
"rassie@smit.org.uk"
] | rassie@smit.org.uk |
d488723716829ac81ed627cfe7e5dbbff81ba6d9 | 1506ff625b6ad1ee7117af54044acd72dc6f5c81 | /Arboles/Agra set 1/emails.py | 921246cdb6766a271377404c64cdb2d81d797aef | [] | no_license | Nicortiz72/ICPC_AlgorithmsProblems | a4e7c1bf2b4f7804c1c7da61e39e775c4bc6a5ae | 462b1e696d8c9e27a0363eb257dfce7e2c580306 | refs/heads/master | 2023-07-12T10:14:30.609834 | 2021-08-16T17:55:10 | 2021-08-16T17:55:10 | 291,610,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from sys import stdin
visited=None
vis=1
def dfs(E,v,Dis):
global visited,vis
stack=[v]
q=v
Dis[v]=-1
visited[q]=vis
cont=1
while(visited[E[q]]!=vis):
visited[E[q]]=vis
cont+=1
q=E[q]
Dis[q]=-1
stack.append(q)
if(Dis[E[q]]==-1):
q1=stack.pop()
while(q1!=E[q]):
Dis[q1]=cont
... | [
"noreply@github.com"
] | noreply@github.com |
2235add0ce48477a2a58d68f369f8cd3ba1fbf2b | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/com_adobe_granite_frags_impl_check_http_header_flag_properties.py | b32110895772ddda09288d935ee3f1e98dbd4215 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 7,658 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
cf400b74f8333bd94a8076b1ce28d603b859639b | f8eefef177c4794392ddbad008a67b10e14cb357 | /platform/source/tools/clustercli/installer.py | 8e7b6782155ff0f9197900416768d8643f903298 | [
"Apache-2.0"
] | permissive | durgeshsanagaram/argo | 8c667c7e64721f149194950f0d75b27efe091f50 | 8601d652476cd30457961aaf9feac143fd437606 | refs/heads/master | 2021-07-10T19:44:22.939557 | 2017-10-05T18:02:56 | 2017-10-05T18:02:56 | 105,924,908 | 1 | 0 | null | 2017-10-05T18:22:21 | 2017-10-05T18:22:20 | null | UTF-8 | Python | false | false | 11,381 | py | # -*- coding: utf-8 -*-
#
# Copyright 2015-2017 Applatix, Inc. All rights reserved.
#
import os
import re
from anytree import Node
from ax.cloud.aws import EC2
from .common import CommonPrompts
from prompt_toolkit.history import FileHistory
from ax.platform.cluster_config import AXClusterSize, AXClusterType
from ax.c... | [
"abhinav.das@gmail.com"
] | abhinav.das@gmail.com |
ed04a9cd876557388460983a68bf2f02e039d5c6 | 023415cd478c85ed387b28ed3903208ebdd21789 | /register_env/bin/flask | 260bc23c122eff78c2e451471887202c2f7e4980 | [] | no_license | kartik1695/Basic_form | 6c75c217d7786e68f707ccb279e25cf109bc0022 | a4c5718b81a55c6f3cbfc3d4988ed03875162d76 | refs/heads/main | 2023-05-11T06:23:54.170372 | 2021-06-06T07:20:50 | 2021-06-06T07:20:50 | 374,294,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/home/kartik/Documents/register-app/register_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"keswanikartik1695@gmail.com"
] | keswanikartik1695@gmail.com | |
5ebc5ffb780f550289159f7c9c67eb58138d96ee | 236a10f814d1b8ef90c90097b738e64566873a08 | /001TwoSum.py | 9c0444d40e00058b3dce68c1aae874704fe95a37 | [] | no_license | cocowindwebster/PythonLeet1 | cb75ab4e85694b36c8d56ad2629ef61f5fb10051 | dffe615edd36eca48d16ac9d4b660de68f2030f7 | refs/heads/master | 2021-01-10T13:15:41.830320 | 2016-05-09T00:59:43 | 2016-05-09T00:59:43 | 51,130,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
result = []
dict = {}
if nums == None or len(nums) == 0:
return result
for index in range(len(nums)):
... | [
"cocowindwebster@gmail.com"
] | cocowindwebster@gmail.com |
4cd143f4bb98d8b0bbb11a52b5e1b6d5bf550968 | 0fa976c47615fea486e43b1b09e0a36eb2f0c734 | /lab2/gradientchecking.py | 3b4d8db4f88e915fb558fe0fbc2659082f17351e | [] | no_license | baldassarreFe/dd2424-deep-learning | 757b2c294cd206d2de031b24b3ad8e759fd64f01 | b82fc8249885d133518f664976112d75db20ff16 | refs/heads/master | 2022-10-26T12:26:53.341390 | 2019-03-13T13:30:14 | 2019-03-13T13:30:14 | 86,454,128 | 1 | 5 | null | 2022-10-10T07:30:24 | 2017-03-28T11:52:57 | Jupyter Notebook | UTF-8 | Python | false | false | 4,214 | py | import numpy as np
from tqdm import tqdm
from network import Network
def compute_grads_for_matrix(one_hot_targets, inputs,
matrix, network: Network,
initial_cost):
# Initialize an empty matrix to contain the gradients
grad = np.zeros_like(matrix)
... | [
"baldassarre.fe@gmail.com"
] | baldassarre.fe@gmail.com |
5ba52ff24e624806eae6fe605a2683ec81aef369 | 6792ef0520c599aeacded498bb359bcd715a5a51 | /src/1000_Prime_number.py | 5eb66d42576e03a99bf7dcfd671b82d116a398cf | [] | no_license | palmieriang/Python_exercise | 3d39d7fbe5ff3189811c5a718a9fe48c40a72226 | 159d1842f9f60ee944d2e9124ca48b7ff967dcf7 | refs/heads/master | 2021-01-17T15:13:02.234707 | 2017-04-04T21:40:34 | 2017-04-04T21:40:34 | 56,397,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | """
prime_numbers.py
Created by Angelo Palmieri
"""
def is_prime_func(number):
'''
Takes in a Number and determines if it is a Prime Number
Args: A Number
Returns: True or False
'''
is_prime = True
n = abs(int(number)) # make sure n is a positive integer
if n < 2: ... | [
"palmieri.ang@gmail.com"
] | palmieri.ang@gmail.com |
cc13ede1a5694d6051f80c5c4d867d56bd7ef003 | 7071dce3556cc2a4c1735de7e94e6ff41ba169f9 | /blog/views.py | 87a359a9d069b02a3ba9eb7347ed807c204f5d36 | [] | no_license | gauravsonthalia/Django_ecommerce | a0a89470b87af59c9b5aa00808d49ca55b024929 | 6e63d8bf7d5e7f33255d88dfb120e7cd26896023 | refs/heads/master | 2022-04-18T03:55:20.584975 | 2020-04-18T14:53:00 | 2020-04-18T14:53:00 | 254,911,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Blogpost
def index (request):
blog= Blogpost.objects.all()
return render(request,'blog/index.html', {'blog':blog})
def blogpost (request, id):
post = Blogpost.objects.filter(post_id = id)[0]
print (post)
r... | [
"grvsonthalia@gmail.com"
] | grvsonthalia@gmail.com |
58f9a9326020492f50026e590db6446fbaea096a | 87f0fbf9b9b369d4e73854a5e6bd426564fae2f2 | /COMPONENTE_PRACTICO/Sesion14_Semana5/CP_SESION14_SOLUCION/app.py | 8fb225d1d37a16777f3ace179888e1448ccd8343 | [] | no_license | MISIONTIC-UN-2022/CICLO-III | 8d995dcc0b291dfad9eec96ae783ec8b441b42fc | 5fc5d8715e55b8048e506e31bf4417badd287b66 | refs/heads/main | 2023-08-14T00:00:42.423574 | 2021-10-19T16:08:29 | 2021-10-19T16:08:29 | 399,984,007 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,279 | py | import functools
import os
from re import X
from flask import Flask, render_template, flash, request, redirect, url_for, session, send_file, current_app, g, make_response
import utils
from db import get_db, close_db
from werkzeug.security import generate_password_hash, check_password_hash
from formulario imp... | [
"kristell.urueta@gmail.com"
] | kristell.urueta@gmail.com |
25b61e304b936c5e84ffe57f9d196cca268179ff | 63b864deda44120067eff632bbb4969ef56dd573 | /object_detection/ssd/Config.py | f444dc728514a6492170e0eaf1c5d65542716889 | [] | no_license | lizhe960118/Deep-Learning | d134592c327decc1db12cbe19d9a1c85a5056086 | 7d2c4f3a0512ce4bd2f86c9f455da9866d16dc3b | refs/heads/master | 2021-10-29T06:15:04.749917 | 2019-07-19T15:27:25 | 2019-07-19T15:27:25 | 152,355,392 | 5 | 2 | null | 2021-10-12T22:19:33 | 2018-10-10T03:06:44 | Jupyter Notebook | UTF-8 | Python | false | false | 481 | py | import os.path as osp
sk = [ 15, 30, 60, 111, 162, 213, 264 ]
feature_map = [ 38, 19, 10, 5, 3, 1 ]
steps = [ 8, 16, 32, 64, 100, 300 ]
image_size = 300
aspect_ratios = [[2], [2, 3], [2, 3], [2, 3], [2], [2]]
MEANS = (104, 117, 123)
batch_size = 2
data_load_number_worker = 0
lr = 1e-3
momentum = 0.9
weight_decacy = 5e-... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
194313e9c4f2285199f26b879ee699f19596d0ff | dcf1f1075ce351913cb50e2aadf163eb857a6951 | /adder.py | 19908c616a624c89076ff5ece796e760d21137a3 | [
"MIT"
] | permissive | dagmawilencho/telegram-member-scraper-and-adder | 13b57b342257987d73c043eaaa139104630bf022 | 118a4df956917a636aa866ed863783ce0af92974 | refs/heads/main | 2023-06-21T20:37:31.205632 | 2021-07-23T10:16:23 | 2021-07-23T10:16:23 | 388,569,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,065 | py | from telethon.sync import TelegramClient
from telethon.tl.functions.messages import GetDialogsRequest
from telethon.tl.types import InputPeerEmpty, InputPeerChannel, InputPeerUser
from telethon.errors.rpcerrorlist import PeerFloodError, UserPrivacyRestrictedError
from telethon.tl.functions.channels import InviteToChann... | [
"noreply@github.com"
] | noreply@github.com |
bca6be76ba08e67566f1f645e424b62b0801982c | 54623c4cb9e4f84867fd251ac83332cb9ab952cc | /Pruebas y funciones por separado/Funcion imprimir en pysiomple.py | 46e2dc0df861b5fe51c6546950c135f47cc2d6c9 | [] | no_license | SergioOrtegaMartin/Proyecto-Python-1-DAW- | 8cb4595c9691727a435233eeb2f30a1345bf4d1f | dae5f964d7e5dfbbc391d4cdcea581438a839a92 | refs/heads/main | 2023-08-25T23:04:26.079702 | 2021-10-27T11:33:32 | 2021-10-27T11:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | import sqlite3
import os #Para listar los ficheros de un directorio
import matplotlib.pyplot as pyplot #Para hacer el gráfico
import random #Para obtener numeros al azar
from tkinter import * #Para hacer la ventana
from tkinter import colorchooser #Para importar el selector de color de tkinter
... | [
"noreply@github.com"
] | noreply@github.com |
25b687df59c881d13c6435f5c8aa9b8fe2b5f1d7 | 3bc14074ac3f11c8469011877e32cc199eadcae2 | /spider_touyiao/config.py | c3c684262d9263810dd1315366ecb7aa8587b91d | [] | no_license | learncoderZ/spider_learning | 0475ca84826397329255e4e6e98cc01e625c20be | 4822ccda55c195990ccc828fc5fbf9aa0a88cc00 | refs/heads/master | 2021-09-04T03:56:19.029120 | 2018-01-15T15:34:09 | 2018-01-15T15:34:09 | 106,669,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | MONGO_URL='localhost'
MONGO_DB='toutiao'
MONGO_TABLE='toutiao'
GROUP_START=1
GROUP_END=20
KEYWORD='街拍'
| [
"noreply@github.com"
] | noreply@github.com |
f9de3a87dd8997ea2ec1c0fd9715afb92d205967 | 3a416d74823987c5541de75122982edf3d7f2e20 | /can_they_connect.py | 4368b2e6e682514b18c31c530b7c83826f2330b9 | [] | no_license | andytumelty/aws-connectivity-tool | 48f2d9c6690c8848060b553606ffe994eecb02ba | dea54ad52c82e528976967c229955a4617ee1d2d | refs/heads/master | 2021-08-17T07:34:17.418835 | 2017-11-20T23:15:59 | 2017-11-20T23:15:59 | 111,032,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,565 | py | #!/usr/bin/env python3
import argparse
import boto3
import re
import configparser
import os
import logging
import ipaddress
import json
import pprint
# def get_resource_from_identifier(identifier):
# # TODO explicitly define connectivity scenarios
# # given an account/ip determine instance id
# # given a... | [
"andrew.tumelty@gmail.com"
] | andrew.tumelty@gmail.com |
8a5799a5b8ba3118f6b7fb2c66b40d952a20f849 | b01dad2f9676a612c1b4e57c982dda923446e9a3 | /board.py | 8b6fc7d749fa49b29205595f1319ce64a93c67a6 | [
"MIT"
] | permissive | DandrePie/monte-carlo-walkers | ccf237dcb9712115d9ee634067982123f78e78e0 | 9365d3b7a7442af7adffe636adce5effedb0363b | refs/heads/main | 2023-07-10T20:21:39.934808 | 2021-08-19T13:09:21 | 2021-08-19T13:09:21 | 395,003,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,592 | py | class Board:
'''
A class to simulate the grid on which the random walkers walk
...
Attributes
----------
board_size: int
The board_size represents the size of the n*n grid
inbounds: str
'In boundary' - the random walkers are within the bounds
of the grid
... | [
"noreply@github.com"
] | noreply@github.com |
4c699101fa8582289ec996b5664bd8ab5b3ec4f5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s297706816.py | d7371f5e563b20937599d014765a4d6f1b0ebd4c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | n,k=map(int,input().split())
v=list(map(int, input().split()))
if k<n*2:
ans=0
for i in range(k+1):
for j in range(k-i+1):
v_r=v[:i]
v_l=v[(n-j):]
sute_cnt=k-(i+j)
v_new=v_r+v_l
v_new.sort()
# print(i, j, v_r, v_l, sute_cnt, v_new)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c533ef9a968126380026d4ab1d1f48566fd1741a | 2e59e8ab519227e07665e3c06f2a77d77a4b8e90 | /key_value_store/wsgi.py | a3f9ab3ed84f8383fb3a03a093fa5ab2ebd0d268 | [] | no_license | rofi93/key_value_store | 3218b9bebebc5cc4ef2e932437484de88d402256 | 0dfc7a992f0ae199d0b1d7c70ff3c607027feb19 | refs/heads/master | 2022-02-18T09:39:48.514722 | 2019-12-26T09:18:33 | 2019-12-26T09:18:33 | 230,210,256 | 0 | 1 | null | 2022-02-10T09:02:42 | 2019-12-26T06:41:32 | Python | UTF-8 | Python | false | false | 407 | py | """
WSGI config for key_value_store project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"khairul.basar93@gmail.com"
] | khairul.basar93@gmail.com |
95a3fd656911c6d823850e0ce1362c717f5b5152 | 8eff7831838d2e76225c4f066cfd26fd406990b3 | /Customer/admin.py | cf7d9df86c5b0da7430e616169e66931ae76c872 | [] | no_license | iwangjintian/PPEcommerce2 | 22d7102ff20e1b323a9908a84f0cb20b92056000 | d97166a957937612be0c2af724984e27fdb262b1 | refs/heads/master | 2021-01-20T00:13:22.348253 | 2017-04-23T02:19:40 | 2017-04-23T02:19:40 | 89,096,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Customer)
admin.site.register(Service_Request)
admin.site.register(Shipping_Address)
admin.site.register(Billing_Address)
admin.site.register(Payment_Method)
admin.site.register(Security) | [
"597493748@qq.com"
] | 597493748@qq.com |
079e74a7a90253b0ac6a7c0bd044c290d9481ada | 4e67f09cf6dc3d10062c9c3e4a5266fd5385d5ed | /cli.py | bb0a80bdce8e445f23db141f9b36560dab92f62e | [] | no_license | misogynyX/news-crawler | 30b7bfd7c3d4be0ba84e63735ac2b61ea65dbaa0 | 629b57519f48e4c58fa5269efbe0385701fcc704 | refs/heads/master | 2023-01-22T05:27:42.950270 | 2020-11-18T08:04:58 | 2020-11-18T08:04:58 | 255,079,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | import csv
import itertools
import json
import os
import sys
from datetime import date, datetime, timedelta
from multiprocessing import Pool
from urllib import request
import fire
import crawl
DATA_DIR = 'data'
CAP = date(2016, 1, 1)
OVERWRAP = 3
class CLI:
"""News crawler"""
def fetch_missings(self):
... | [
"kkyueing@gmail.com"
] | kkyueing@gmail.com |
92e7c8831b110adf86347d7b020099eeb5daa74c | 80682560668fcdc7e9f270761dcd2a52ffa91ee1 | /RealTimeEdgeDetectionAndObjectCreation.py | cde70ec6add062d99be6c72d6240badadcf19ee1 | [] | no_license | gabrielDiaz-performlab/IMSG-789 | f630ac852c321fc1c459c1f430122e384602bc4f | f1a24afd05639bdd12c3f122b6dd7b3183d1d270 | refs/heads/master | 2021-08-02T23:37:47.032375 | 2016-05-04T14:02:59 | 2016-05-04T14:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | import viz
import vizshape
import vizact
import math
import cv2
import numpy as np
# Enable full screen anti-aliasing FSAA to smooth edges
#viz.setMultiSample(4)
# Increase the field of view(fov) to 60 degrees from default 40 degress
#viz.fov(60)
# viz.go starts an empty world
viz.window.setPosition( 0, 0 )
#Set th... | [
"arun.pattu9@gmail.com"
] | arun.pattu9@gmail.com |
76b0fd7724eacc43e16f04dc7b6e1083bdea1093 | f77053d493df5b064316e038ecd42e9dc9f416c5 | /experiment_receiver.py | 092b10f1eda401c6f62527af458741d32515aac9 | [] | no_license | osabuoun/jqueuer_manager | 0269b3144fbe1a8934d4e83c55f790a8b4ebe159 | d178a2186c5297aa6561e1c44f5cfd67f0d2fcfd | refs/heads/master | 2021-09-14T22:34:18.242176 | 2018-03-28T10:58:01 | 2018-03-28T10:58:01 | 113,175,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | from http.server import BaseHTTPRequestHandler, HTTPServer
import urllib.parse, json, time, ast, random
from pprint import pprint
from threading import Thread
from experiment import Experiment
def add_experiment(experiment_json):
print("-------------------------------------------")
print(str(experiments))
print("-... | [
"oabuoun1"
] | oabuoun1 |
16241caf95d6f2f6a2c327e2309ad58990c11cd5 | be549921446835ba6dff0cadaa0c7b83570ebc3e | /run_eval_sutter.py | a0ba2df9ac3c6f63655586a070cc69f7762854c8 | [] | no_license | uctoronto/AutoPrescribe | 895ee4375625408c663cee22610bb5425d7efc7f | a6188e9189df727320448a368f6e70036472ede4 | refs/heads/master | 2020-03-27T05:47:47.500486 | 2017-05-31T18:49:33 | 2017-05-31T18:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | from models.processor import Processor
from models.leap import LEAPModel
from exp.coverage import config_sutter as config
from utils.data import dump
config = config.get_config()
dir = 'build/'
config.saved_model_file = dir + 'sutter_%s_%s_seq2seq.model' % (config.level, config.order)
print(config.saved_model_file.sp... | [
"stack@live.cn"
] | stack@live.cn |
991dca36ac04de7fc66617c9dc6b5b69955f62de | 175522feb262e7311fde714de45006609f7e5a07 | /code/OCE/oce_ba_toy.py | b0d5e7d5d33e9d60e03b134751d925d68012207c | [] | no_license | m-hahn/predictive-rate-distortion | a048927dbc692000211df09da09ad1ed702525df | 1ff573500a2313e0a79d68399cbd83970bf05e4d | refs/heads/master | 2020-04-17T13:49:36.961798 | 2019-06-20T12:37:28 | 2019-06-20T12:37:28 | 166,631,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,806 | py | # Computes estimates also from held-out data.
# Was called zNgramIB_5.py.
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--language", type=str, dest="language", default="RIP")
parser.add_argument("--horizon", type=int, dest="horizon", default=1)
parser.add_argument("--code_number", type=... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
1e9a6d57604cd1c364504b455ee45ebb51105f26 | 79b798b6400287ae142d23427e299a1de0633d2e | /ARM/BatchTest.py | 49034fc7769627bf1e83933b3dbb48eeb2032c58 | [] | no_license | WasatchPhotonics/Python-USB-WP-Raman-Examples | 1c422448bc943eeb7f272868adb73e98896adf3c | eb6a7fc7a0a4a8f12dbde8782a119f21c60da974 | refs/heads/master | 2023-08-03T10:54:44.609911 | 2023-06-27T23:35:18 | 2023-06-27T23:35:18 | 82,347,610 | 0 | 2 | null | 2023-08-28T20:28:49 | 2017-02-17T23:42:14 | Python | UTF-8 | Python | false | false | 4,694 | py | #!/usr/bin/env python -u
################################################################################
# BatchTest.py #
################################################################################
# ... | [
"mark@zieg.com"
] | mark@zieg.com |
b5fdf682f928aef41c6625b6e5d1e70bb65baa49 | cfc49e6e65ed37ddf297fc7dffacee8f905d6aa0 | /exercicios_seccao4/35.py | f774259ca92b71fb8f2bb8f0eeece2cbe180ede4 | [] | no_license | IfDougelseSa/cursoPython | c94cc1215643f272f935d5766e7a2b36025ddbe2 | 3f9ceb9701a514106d49b2144b7f2845416ed8ec | refs/heads/main | 2023-06-12T16:51:29.413031 | 2021-07-07T00:20:53 | 2021-07-07T00:20:53 | 369,268,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # Hipotenusa
import math
a = int(input('Digite o cateto a: '))
b = int(input('Digite o cateto b: '))
hipotenusa = math.sqrt(a ** 2 + b ** 2)
print(f'O valor da hipotenusa é {hipotenusa}.')
| [
"doug_ccortez@outlook.com"
] | doug_ccortez@outlook.com |
bf61729fa718b439998532f367204e3cf8b93cf6 | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_ipv6_neighbor_static.py | 9c058e6fee3024c46ed849ab350ff96c39149478 | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 6,211 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_static
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
ipv6-addr:
description:
... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
38e09cdc7461baaa37f47bf8e665418601e4dee6 | 262dbc0c8a49d8e1801624d68f75423aa15260ba | /dnn/optimizers/optimizer.py | bce11287bbc40277af43ea09abf6e515577e8e9e | [] | no_license | mofeiyu/dnn | 9efc195929d76cb93115c23ca89b003a7dba0092 | ca39575a3138ae12156814e916ef20b8d20181e8 | refs/heads/master | 2021-05-14T23:06:11.684513 | 2017-11-20T15:57:03 | 2017-11-20T15:57:03 | 105,369,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | #encode=utf-8
class Optimizer:
def __init__(self):
pass | [
"mofeiyu1110@foxmail.com"
] | mofeiyu1110@foxmail.com |
abc5fce9f81fd39237b6947e84495392b9671c0f | 06130291b603ea91c2d656e18ff9c086c2e0e4f2 | /A. Business trip.py | 76a1cebde36c71c8dcab0cdcf8a8af528ceeb501 | [] | no_license | rpask00/codeforces_py | 7ca6da163f3885e16b269f946fac6240d539d1b1 | afa2de05cd80e0015456c3f71634e74713811958 | refs/heads/main | 2023-04-17T07:43:54.414899 | 2021-05-01T16:04:15 | 2021-05-01T16:04:15 | 363,449,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | import sys
k = int(input())
mths = list(map(int, input().split(' ')))
def solve(c, cnt, index):
if c <= 0:
return cnt
if index > 11:
return sys.maxsize
return min(solve(c-mths[index], cnt+1, index+1), solve(c, cnt, index+1))
res = solve(k, 0, 0)
if res == sys.maxsize:
res = -1
pri... | [
"rp.261000@gmail.com"
] | rp.261000@gmail.com |
c52b5a990a5ac6f28b3b6859230087f29c451146 | 01a62a9cbd1392a00d216f5c242931e592b3cc33 | /examples/vehicle_reads/functions/ingest/function.py | 6bd5167e202f2ae96e8aac24ed6ca998ccad2183 | [] | no_license | beaucronin/plausible | 3a8af9b90ea4ca263a4ac7efb89a00583af43f01 | 80cfe1bfd8fcc051206715186ad98a9b25f0ec3f | refs/heads/master | 2023-01-06T17:46:54.848980 | 2020-10-29T03:16:39 | 2020-10-29T03:16:39 | 295,292,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | import plausible as pbl
def handler():
obj = pbl.function.current_trigger.payload
vehicle_id = obj["vehicle_id"]
vehicle_oem = | [
"beau.cronin@gmail.com"
] | beau.cronin@gmail.com |
26a00687d628fabeb7d90279726a75c457cbef7c | 636166c4aebbea24680c66f02e7ac0a4b58ab724 | /tasks.py | b999d53e911858878b19f127ad3ff99880b62003 | [
"MIT"
] | permissive | createchaos/arc_311_magic | ba5d308e0c927623135324a0e709f24558bad643 | e4f62bb6906dc6e7faa9bf3a3d5b0af0a604776f | refs/heads/master | 2023-01-04T07:17:17.690134 | 2020-11-04T19:54:51 | 2020-11-04T19:54:51 | 298,762,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,989 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import contextlib
import glob
import os
import sys
from shutil import rmtree
from invoke import Exit
from invoke import task
try:
input = raw_input
except NameError:
pass
BASE_FOLDER = os.path.dirname(__file__)
class Log(object):
def __ini... | [
"mskepasts@gmail.com"
] | mskepasts@gmail.com |
c8e141a266777c7b7c4c27b0d4e2c748a2fba65a | ed647f7a09659c803e8a43cb20d32d2ad1bf520d | /src/webapp/controllers/__init__.py | e00a845027ce17541ac6083c460bc5c7e00b539e | [
"Apache-2.0"
] | permissive | Alvaruto1/project-caos | 2b88e8315fa39138c9df469660bf021a4a52807c | 16a51fbe2dc573f0706ead8fe8b99c8ba7c362c5 | refs/heads/master | 2020-12-01T13:55:04.059610 | 2020-01-01T07:45:54 | 2020-01-01T07:45:54 | 230,649,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | """Import all the controllers from the project"""
import pkgutil as _pkgutil
_search_path = ['src/webapp/controllers']
__all__ = [x[1] for x in _pkgutil.iter_modules(path=_search_path)] | [
"camilo.ospinaa@gmail.com"
] | camilo.ospinaa@gmail.com |
e7bc2d2a8c3145e84c9b38fe49d5d18db00a0893 | bfff820f48bda49acbb683f02c135662f03671cd | /database_project/database.py | 96ccccf0b07902cfe31f0394a69ff9e89d5054af | [] | no_license | Prowes5/database_project | 3a48c8c03aa286ed841b19f6e9443f90c5b07824 | 34dc2e5c36a00bbee7ff729a3d9eac0e534cf699 | refs/heads/master | 2020-04-28T15:50:03.018781 | 2019-11-12T10:22:46 | 2019-11-12T10:22:46 | 175,390,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,244 | py | # -*- coding: utf-8 -*-
from flask import Flask,render_template,request,redirect,url_for
from flask_sqlalchemy import SQLAlchemy
from flask import session
import re
import config
import hashlib
app = Flask(__name__)
app.config.from_object(config)
db = SQLAlchemy(app)
global Stu_no_sel
global Tea_no_sel... | [
"noreply@github.com"
] | noreply@github.com |
b7ff58f7fd138ac1e47845971f1c07cefaa5f3c4 | b93d151d6f086635996a0f3d96b3e3b4f54c8743 | /newyear/routes.py | d4993cac84872a5922545c01594fb7cf3eda5486 | [] | no_license | BleddP/cs50python | 9af72baf03c7f3fffb2e1bbe96954a18d063fe1b | 7ae3f5f009c4b8d70d4be8040f4a076be0c62f93 | refs/heads/main | 2023-03-18T00:19:50.137698 | 2021-03-10T13:30:02 | 2021-03-10T13:30:02 | 346,348,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name='index'),
path('tasks', views.tasks, name='tasks'),
path('tasks/add', views.add, name='add')
] | [
"pijpersbleddyn@gmail.com"
] | pijpersbleddyn@gmail.com |
2cc246af3d3baaf1e758bf2b9951bbadf6ea0dba | fa6259a151f8f88a7b7440658ac8544c767fb384 | /TimeConversion.py | 6e913f3edb621bcf44cdb6960ae5ba84eacaca64 | [] | no_license | narendraparachuri/Hackerrank-Python-Solutions | b1507fb7a6b20be7e66d1de984995b535002749d | 484389aa831795ac70ecdeab6e310ff76dd99ce3 | refs/heads/master | 2020-08-02T15:20:10.490845 | 2019-09-29T22:30:21 | 2019-09-29T22:30:21 | 211,405,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/bin/python3
import os
import sys
#
# Complete the timeConversion function below.
#
def timeConversion(s):
timepart=s.split(":")
if s[-2:]=="PM":
if timepart[0]!="12":
timepart[0]=str(int(timepart[0])+12)
else:
if timepart[0]=="12":
timepart[0]="00"
militaryti... | [
"noreply@github.com"
] | noreply@github.com |
2885492ca5985186fc6679194b29244d55c4fb63 | ff05de5c4aef5aa2c5390c580ba5312bdae48297 | /556633221144556.py | d144d2dcae3b1e4373bd7085350bc14dfe220990 | [] | no_license | ShadowXEsport/la | c1e9ad38f466eef29c80d67001288f64c9022210 | bfa876984cc7e85ccb62ce93182fa135aa9ff783 | refs/heads/main | 2023-01-19T03:27:40.991200 | 2020-12-02T15:46:53 | 2020-12-02T15:46:53 | 317,910,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,751 | py | #!/usr/bin/python2
#coding=utf-8
#The Credit For This Code Goes To MR-SH4DOW
#If You Wanna Take Credits For This Code, Please Look Yourself Again...
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass
os.system('rm -rf .txt')
for n in range(50000):
nmbr = random.randi... | [
"noreply@github.com"
] | noreply@github.com |
fcbdb9ef1a0daa356c62eb50655a1bb59ae04218 | c5f719c6387616151c7f701b98739f754024de6b | /project/migrations/0001_initial.py | 33774985ec177362fdbb66f8057e15b85eef21ae | [] | no_license | arifmahmood/shop | 85fbf369a8802821c2a7ea1d2a73e53a4754aa35 | 9add175f03facf693b3629c96e4f83824451bfde | refs/heads/master | 2021-01-21T22:14:47.459651 | 2018-01-30T19:07:53 | 2018-01-30T19:07:53 | 102,138,538 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,818 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-08-26 18:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"arifmahmoodsourav@gmail.com"
] | arifmahmoodsourav@gmail.com |
2cca6dfe4d4574b35d0e7a6b57e0cbab8b47d763 | 5ec88621138734c8ee2a8388ec29f157d54dcbb0 | /code/4_BGR_colors.py | 6a06f9f4a39620c02507b811054a9dc32ee573d7 | [] | no_license | SingaporeDataScienceConsortium/Image-Processing-and-Computer-Vision-Using-Python-and-OpenCV | 99e7668f3d0a15b07faeb0bcce8f004ce33e7558 | c02c35cc192bde411480832e93ba81c777668718 | refs/heads/main | 2023-01-11T01:32:51.519621 | 2020-11-12T15:51:41 | 2020-11-12T15:51:41 | 312,322,777 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | # The code is shared on SDSC Github
import numpy as np
from matplotlib import pyplot as plt
plt.subplot(3, 3, 1) # create panel (3 rows and 3 columns) and locate to the first sub-figure
RGB = np.zeros([50,50,3], dtype = 'uint8')
RGB[:,:,0] = 0 # define the intensity (0-255) in channel 1 - Red
RGB[:,:,1] = 0 #... | [
"noreply@github.com"
] | noreply@github.com |
d14e39b92b168f16694f2e86414676e241c24375 | 64c7e148678e3322a19fd83d928c2b6f6b68d4a0 | /Strikwerda-Problems/Chapter-6/Section-3/Problem-11/p6311.py | 1a225390ec97edb0a185c7da7f9e93b7dc940ff9 | [] | no_license | floresab/MTH-693b | 3357bbf2e35c6a5531a7e62e419fd617fbe94fa9 | b92e5ce49f9bc367234853da72f1cfd466cac8a9 | refs/heads/master | 2020-03-08T17:49:56.847875 | 2018-05-10T00:35:16 | 2018-05-10T00:35:16 | 128,278,965 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,655 | py | """
Author : Abraham Flores
File : p6311.py
Language : Python 3.6
Created : 3/20/2018
Edited : 3/21/2018
San Digeo State University
MTH 693b : Computational Partial Differential Equations
Strikwerda 6.3.11 : Parabolic Equations
Heat Equation:
u_t = b*u_xx
x = [-1,1]
t = [0... | [
"noreply@github.com"
] | noreply@github.com |
425df93c462fc6066a78b75e9bab55d6bdcbb602 | 64285c1356cd31426214a3c69a9ae7caf6600a97 | /download.py | c8b47f6bd2c8ae2e62312423abeb39ef93ef9eb0 | [
"MIT"
] | permissive | cl1ck/tutsplus-downloader | de13cc5d69bb5ba402efa30118bdc1c6b3b4dd29 | 80556ccb52da0f326f10125b5b1ee5506cfc6ab4 | refs/heads/master | 2021-01-15T12:27:53.603994 | 2015-06-05T09:00:55 | 2015-06-05T09:00:55 | 27,097,228 | 3 | 1 | null | 2015-05-17T19:32:04 | 2014-11-24T22:02:54 | Python | UTF-8 | Python | false | false | 328 | py | #! /usr/bin/env python
#-*- coding: utf-8 -*-
from Tutsplus import Tutsplus
username = 'my_username'
password = 'my_password'
courses_url = ['https://tutsplus.com/course/say-yo-to-yeoman/',
'https://tutsplus.com/course/phone-gap-essentials/' ]
t = Tutsplus(username, password)
t.download_courses(cours... | [
"mauromarano@MacBook-Pro-di-Mauro.local"
] | mauromarano@MacBook-Pro-di-Mauro.local |
6fae718acf95e014caaf32ba33593bb4db9988ac | ccdfab61c91114ac83353ec3825be34712a3fd4c | /core/models.py | 51a0b68ca64452e64571614d78508620bcd3b28c | [] | no_license | johnpozo/parroquia | 040271b1bce2740b417745dceab3082929a3b710 | bf46585034c426875f15c05770e110f978fedfd9 | refs/heads/master | 2020-04-09T14:57:57.725141 | 2018-12-04T20:04:20 | 2018-12-04T20:04:20 | 160,288,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,177 | py | from django.db import models
# Create your models here.
class Comunidad(models.Model):
descripcion = models.CharField(max_length=30)
ubicacion = models.CharField(max_length=30)
def __str__(self):
return self.descripcion
class Meta:
verbose_name = "Comunidad"
verbose_name_plural ... | [
"LC1301319"
] | LC1301319 |
24c645c0cd419a07dc36807a10d56f44914471fe | 29f124bffdf2d877726a9687372ee9ebda174a4f | /dataset/coco_dataset_to_voc.py | 4f2c23c5422a9c29a198dae70bac11468e1ee4af | [] | no_license | richiesui/yolo-training-tf2 | c926f7a1d15ef8d1a8b641671c36c79d18f76cc0 | e3bf2719fad6f385744bae2820140d2dc88420bb | refs/heads/main | 2023-08-01T06:09:35.148575 | 2021-09-23T11:38:45 | 2021-09-23T11:39:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
A simple script to pick out PascalVOC object from COCO annotation dataset
"""
import os, sys, argparse
import numpy as np
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..'))
from common.utils import get_classes, get_dataset
def mai... | [
"tienhiep11@gmail.com"
] | tienhiep11@gmail.com |
c004b10f7c871892c40eca497663bdcacee8d764 | e7ee7f949ddd7791950dbda9f97bbf4d1d5ccd83 | /autoTest/fahuobaoSaaSFlowTest/SaaSFlowTest/FlowTestCase/FHBtoushuNormalFlow.py | 6b8c96109d98c6fc3ef7874303652d9e5a3ab9bb | [] | no_license | liangyi0310/autoTset | 2fd5ece9ecc3830f2841ddb5dac43cdc41d6efa6 | 8c657337fd046b71d3aa58b3bfbbea9845ff4d8a | refs/heads/master | 2023-05-24T11:03:00.807415 | 2021-06-09T08:36:33 | 2021-06-09T08:36:33 | 375,260,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,201 | py | # -*- coding: utf-8 -*-
import requests
import pymysql
import json
import datetime
import time
from Common.newReadConfig import *
# 发货宝web端操作用户18883612485
headers1 = {
'Content-Type' : 'application/json',
'tokenCode' : 'QM',
'tokenSecret' : '123456',
'systemCode':'FAHU... | [
"1060508831@qq.com"
] | 1060508831@qq.com |
b80c485d4c2cdda02cf51ddd54d15ea3e5671002 | a1dac2b2237b079f2aaae5ac395446128b0693fe | /main/lesson3/task3.py | a9188142f9831f238451c7d7958aa65c2715e248 | [] | no_license | Alexidis/algorithms_basics_py | be439d4f645f6342cf07a124d70183e7fcaff14e | 5c07952cdacd099cc67942aeeb69b3ca27d80ff2 | refs/heads/master | 2023-03-05T05:08:24.092582 | 2021-02-15T15:03:11 | 2021-02-15T15:03:11 | 331,846,757 | 0 | 0 | null | 2021-02-15T15:03:12 | 2021-01-22T05:32:58 | Python | UTF-8 | Python | false | false | 992 | py | # 3. В массиве случайных целых чисел поменять местами минимальный и максимальный элементы.
import random
def main():
lst = [random.randint(-20, 33) for _ in range(0, 10)]
print(lst)
local_max = {'idx': 0, 'value': lst[0]}
local_min = {'idx': 0, 'value': lst[0]}
for i, item in enumerate(lst):
... | [
"Alexidis911@gmail.com"
] | Alexidis911@gmail.com |
ab4a4ec80a1bfd3b4a215a39861be605bc408651 | 9766c2e479e99cca5bf7cc834c949fc4d5286275 | /SRC/engine/IO/outputdestination.py | c01e8e8163a5f71c0b0c1fb0662dbb4b7e54d8e7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | UstbCmsPjy/OOF2 | 4c141e8da3c7e3c5bc9129c2cb27ed301455a155 | f8539080529d257a02b8f5cc44040637387ed9a1 | refs/heads/master | 2023-05-05T09:58:22.597997 | 2020-05-28T23:05:30 | 2020-05-28T23:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,483 | py | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | [
"lnz5@rosie.nist.gov"
] | lnz5@rosie.nist.gov |
0ce985d697a05c53a33705123bd8fdc79fa2a290 | 1b7921f8df829aa9a767f3e8657bf5ff9cf6247a | /python/suanfa20-04-03/unit2_digui_bin_search.py | 23779e83ce4580d4cfc75cb0398915e0fcf8cbe5 | [] | no_license | yujianBai/python_base | 80bc71441c919d668ea56982ba19477333653874 | 63b72787b7b93f547941ffe8c3472eb9ce15bda6 | refs/heads/master | 2021-06-11T12:27:43.976068 | 2021-05-10T14:24:03 | 2021-05-10T14:24:03 | 154,644,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | # auth Bernard
# date 2020-04-05
import random
# data = [1, 7, 17, 19, 21, 22, 35, 66, 77, 99, 101]
def produce_data(start, stop, length):
# 随机生成一个长度为length的list
data_list = []
for i in range(length):
data_list.append(random.randint(start, stop))
return data_list
def search2(left, right, da... | [
"244643099@qq.com"
] | 244643099@qq.com |
9c264e1993b80b7ae7a8f5855e308da0400fa976 | f4c7fd56caf93670a7e5ebf760d3cc9bdf2fe7c3 | /venv/Scripts/pip3-script.py | f6d2f20d41ac587a723fd0d58a20ae250bbd6bf2 | [] | no_license | HAP28/4Connect | 9ea7773a8b86497a272b42b782b9a6ce3286ab81 | d53c7bbd18b9d92fc0b2134919ab6041b77c9324 | refs/heads/master | 2022-06-01T22:48:57.349826 | 2020-05-06T10:46:30 | 2020-05-06T10:46:30 | 261,727,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\Harshit\PycharmProjects\4Connect\venv\Scripts\python.exe
# 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.ar... | [
"harshitparikh2000@gmail.com"
] | harshitparikh2000@gmail.com |
91ceb21dae0b2909a51b7bc58276c4bbf5770be6 | 6a6ee7af2131d40709d307602cdab749900f7f28 | /days/day09/puzzle_09.py | c114c9e829b1d04d5b47a269ee03c75c85307b7e | [] | no_license | troyunverdruss/advent-of-code-2017 | 7a44c364b0e89bd4e1be3443268385b78d7c257f | e8dd1ce2867679adef2c6360ffe9eab2eddecaf0 | refs/heads/master | 2020-04-14T18:32:41.291075 | 2019-04-27T22:22:22 | 2019-04-27T22:22:22 | 164,023,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | from collections import deque
from helpers import read_raw_entries
def solve_09(input_str, return_garbage_count=False):
capture = deque(list(input_str))
stack = deque()
total = 0
current_value = 0
garbage_count = 0
while len(capture) > 0:
char = capture.popleft()
if char ==... | [
"troy@unverdruss.net"
] | troy@unverdruss.net |
f457a3a931655e762980fc357d3d06aa909aa6ad | 40df7897ad7e9e37882129fbfc3fc331f71218d2 | /kinappserver/tests/task_results_overwrite.py | c202aba98d80ed68451cea0a63e39b279dd4012a | [] | no_license | kinecosystem/kin-app-server | f25158d9ff4c31d29ea4407376cc6534d6b95b04 | f74d01eb1d198da1629139a90a6acb6c7df15f1e | refs/heads/master | 2021-06-03T10:35:51.844299 | 2019-06-18T12:18:59 | 2019-06-18T12:18:59 | 118,350,901 | 11 | 3 | null | 2021-05-06T19:11:54 | 2018-01-21T16:14:06 | Python | UTF-8 | Python | false | false | 5,429 | py | from time import sleep
import unittest
import uuid
import simplejson as json
import testing.postgresql
import kinappserver
from kinappserver import db
import logging as log
log.getLogger().setLevel(log.INFO)
USER_ID_HEADER = "X-USERID"
class Tester(unittest.TestCase):
@classmethod
def setUpClass(cls):
... | [
"ami.blonder@kik.com"
] | ami.blonder@kik.com |
686a2629d41be14e725d9eb6f5493df97ceabb57 | 73a3a1a885037888fae8a73785f7cc1fa206b384 | /wither/weather/views.py | e448ca4a04aa92e276ad4a66715e490128b43e51 | [] | no_license | crintus/wither | 9a45a45b0e5fd24ad917047ded51f63eb8b61b73 | de80a2c5f6609fe868b84936ae92a28d9cbdf38c | refs/heads/master | 2022-12-07T13:00:39.176374 | 2020-08-23T21:14:58 | 2020-08-23T21:14:58 | 289,426,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | from typing import Dict
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.viewsets import ViewSet
from rest_framework.exceptions import ValidationError
from wither.open_weather_map.client import OpenWeatherMapClient
from wither.utils import latitude_longitude_from... | [
"johandp92@gmail.com"
] | johandp92@gmail.com |
05902826e37452077afb0ce8c9a1be2f59efd2e5 | ba8111bdb52235e965188574b8584f01eaec8548 | /tests/indicators_test.py | 9cbefbea8c9121f8549c2bfb6758dd6838fb1bd2 | [] | no_license | BrendenDielissen-uofc/UofC-DAD | 66f6f45dd752bb1783cd719f4a648e95ffe1b070 | 192be0b12bae1837e8b42f71116cc60a922be2e7 | refs/heads/master | 2023-04-06T09:57:57.191069 | 2021-04-20T18:16:09 | 2021-04-20T18:16:09 | 346,522,677 | 0 | 1 | null | 2021-03-20T17:21:23 | 2021-03-10T23:41:44 | Python | UTF-8 | Python | false | false | 1,170 | py | # Python Packages
import Adafruit_BBIO.GPIO as GPIO
import time
from enum import Enum
class PINS(Enum):
"""BeagleBone Black pins enum."""
# GPIO
GPIO1_13 = 'GPIO1_13'
GPIO1_12 = 'GPIO1_12'
GPIO0_26 = 'GPIO0_26'
GPIO1_15 = 'GPIO1_15'
GPIO1_14 = 'GPIO1_14'
GPIO0_27 = 'GPIO0_27'
GPIO2... | [
"brenden.dielissen@ucalgary.ca"
] | brenden.dielissen@ucalgary.ca |
2ef5d4dc4b0bcba12d63fd765b4904d56a422e43 | bc45f6a08534b1210b7adb7cdd7334c39a4529e0 | /ftl_project/wsgi.py | 28ad11037c3481b6bbb393f9efe41b592a8740f1 | [] | no_license | genardginoy/ftl_assignment | 637c6ddae93c152d65ede08e32975a05da77d967 | 8fa445ffbc376bc9a13a90d17cbb6c2b443ef45f | refs/heads/main | 2023-03-07T19:48:32.502855 | 2021-02-15T11:25:57 | 2021-02-15T11:25:57 | 338,813,229 | 0 | 0 | null | 2021-02-15T10:56:39 | 2021-02-14T13:36:55 | Python | UTF-8 | Python | false | false | 399 | py | """
WSGI config for ftl_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"gino.p.vincent@gmail.com"
] | gino.p.vincent@gmail.com |
d8620c41a734cc922c22e305fca645a8fba03438 | 88e9d97389085df663769643aee85d9a339bb8f2 | /atomic/electron_cooling.py | 60525a975393ef036cd0fa0cbef79689e6eb7a76 | [
"MIT"
] | permissive | shawnzamperini/atomic | 757e3ebd07f84981614ff55eef218c43044c97b2 | 5e5617eff02aaf4ce5448c44f0b32fff72815b69 | refs/heads/master | 2021-06-18T23:55:07.624007 | 2016-12-14T19:38:20 | 2016-12-14T19:38:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | import numpy as np
import matplotlib.pyplot as plt
from atomic_data import ZeroCoefficient
from radiation import Radiation
# This class is almost a copy of Radiation; only
# _get_staging_coeffs / _get_power_coeffs and _compute_power are different.
class ElectronCooling(object):
"""
Electron cooling power is r... | [
"thesquarerootofjacob@gmail.com"
] | thesquarerootofjacob@gmail.com |
45f594f8c02d9c3a3e341e690b24eef1529dece0 | 9d8a6df016e3f7aca9dda22858cee643f7247a1f | /models/backbone.py | 05f790d4896148ef56e4658af2a51464111b2d63 | [] | no_license | wxywb/detection | 36b066b72b47fee5984f0b1e961de1c8321e9a5b | 8fbac8656d2c3e06eccb4113f1c424efebac303c | refs/heads/master | 2020-04-07T09:28:08.450632 | 2018-11-19T16:06:48 | 2018-11-19T16:06:48 | 158,253,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import torch as t
from torch import nn
from torchvision.models import vgg16
def init_from_vgg16():
model = vgg16()
features = model.features
classifiers = model.classifier
not_use_dropout = True
if not_use_dropout:
del classifiers[2]
del classifiers[5]
for layer in features... | [
"285088914@qq.com"
] | 285088914@qq.com |
7ef5899fc65729bb3d4169066bc9065937633f77 | 8565e4d24b537d1fb0f71fef6215d193ceaed6cc | /tests/test_check_circular.py | 4a91863962a4377cf6bad0ba6466463a0579f885 | [
"MIT"
] | permissive | soasme/dogeon | 5f55c84a6f93aaa7757372664dd60ed90cf200e8 | 496b9a5b099946d14434ed0cd7a94a270f607207 | refs/heads/master | 2020-05-17T19:01:42.780694 | 2018-11-04T05:01:23 | 2018-11-04T05:01:23 | 20,592,607 | 3 | 0 | null | 2014-06-28T01:34:35 | 2014-06-07T12:28:07 | Python | UTF-8 | Python | false | false | 736 | py | import dson
import pytest
def default_iterable(obj):
return list(obj)
def test_circular_dict():
dct = {}
dct['a'] = dct
pytest.raises(ValueError, dson.dumps, dct)
def test_circular_list():
lst = []
lst.append(lst)
pytest.raises(ValueError, dson.dumps, lst)
def test_circular_composite():
... | [
"soasme@gmail.com"
] | soasme@gmail.com |
9c9da976da567c09a2ddb3bb40e51bc5d963025d | cf77642fc2a475149db7ce8178c3d0446eeba785 | /main.py | 9a5b1114405359843ba943e5c607cae75782d923 | [] | no_license | ijhwanny/crawling | 3470d5b5d0199565aad0925da7c810e3c9affd62 | 82ec1dbfb6ce0e8d89796414435f1af4eaf5df22 | refs/heads/master | 2021-01-04T07:36:53.393811 | 2020-02-17T02:41:15 | 2020-02-17T02:41:15 | 240,449,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from bs4 import BeautifulSoup as bs
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
# set Chrome webdriver
drv_path = "C:/Users/ijhwa/Downloads/chromedriver_win32/chromedriver.exe"
driver = webdriver.Chrome(drv_path)
driver.implicitly_wait(3)
category = 'ai_ml'
target_url =... | [
"alvin.jhkim@gmail.com"
] | alvin.jhkim@gmail.com |
e101525b6580e78fdc853b7f98f4fac5ef734d92 | a23bb3362ccc1da7d11cd34444650f3c83c0f6b0 | /hsrl/HsrlProductServer/RawDataRay.py | 726a4d658777d8a9eac5b1edc3b5332098a5eb57 | [] | no_license | glassstone/HSRL_python_Brad | a39407274682b0904890b471507095a0bb053ca0 | 1cece92d8bf57c0b5cc52b7dbc14d69bc21705f2 | refs/heads/master | 2020-05-21T07:08:23.273927 | 2017-02-13T22:55:36 | 2017-02-13T22:55:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | #!/usr/bin/python
from datetime import datetime
from copy import copy
from PyQt4.QtCore import *
class RawDataRay(QObject):
def __init__(self, rayTime, nBins, nGoodShots, xmittedEnergyCounts,
binWidth, dwellTime, pointingDir,
combinedHiData, combinedLoData, crossData, molecularDa... | [
"brads@ucar.edu"
] | brads@ucar.edu |
e967cafe8cabee4fb93955481b240a804ce2626a | 5025225669388ae98f9589e1be589110d50b9c9e | /forest/initialRUN.py | e99ee693d53c1ba904842a67ef15859d7ec4d95a | [] | no_license | spajpasu/AutoBin | e5d09b05acb2853eb779d583d36d35fca89e3e5f | 71bd7a35c2cc4946da0645f302bb2a952ec53897 | refs/heads/master | 2021-05-17T00:57:22.472208 | 2020-07-18T16:02:54 | 2020-07-18T16:02:54 | 250,545,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import LatLonCreator
import LatLong
import InputData
import GeneralOperations as GO
'''osmium is developed with concept of handler, which takes in file name, it has some predefined functions that we can
use to get the data from OSM file'''
# number of trees corresponding to each node
# print(GO.node_loc)
... | [
"noreply@github.com"
] | noreply@github.com |
871db5e6912156978094ec67daac0879e592453f | e96b44f5fdc5d99e587065d2bdebf9db57721fa2 | /Exersice/factorAndCount.py | 403259de06c600c9030a6dd4888f60a1fa364c4f | [] | no_license | amiraliucsc/Projects | e7339d8cee58397438bac48e808459977927ab48 | b1fe4549b0583e73406037a7e48cc34317b2068f | refs/heads/master | 2021-01-18T12:17:00.117341 | 2016-05-25T08:02:21 | 2016-05-25T08:02:21 | 49,929,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 18 12:46:51 2016
@author: Amirali
Return the number of occurance of x in factorization of n. Example n=24 , x=2
must return 3 since 24 = 2^3*3 or n=25,5 must return 2 since 25 = 5^2
"""
def two_count(n,x):
stop = False
rem = 0
div = 2
cou... | [
"ashahinp@ucsc.edu"
] | ashahinp@ucsc.edu |
3eee00da21dfd424582553120dc6e7ea8ead195e | 85dbb4cebdfa0ed877c72d0b10f5cc6a1881d168 | /Senior Year/Fall Semester/CS466/Assignment 4/New Assignment 4/Control_3/simulation_3.py | ce19b833a85c64dc523488938185bc2c7616c938 | [] | no_license | brockellefson/school | 298963e0d61b0e748b248964641255a8f172e55c | 5ccca65f160254af990f15da8ccb1c99c5c9ea74 | refs/heads/master | 2021-01-22T06:28:49.363224 | 2018-09-30T20:05:20 | 2018-09-30T20:05:20 | 81,759,107 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | import network_3
import link_3
import threading
from time import sleep
import sys
##configuration parameters
router_queue_size = 0 #0 means unlimited
simulation_time = 10 #give the network sufficient time to execute transfers
if __name__ == '__main__':
object_L = [] #keeps track of objects, so we can kill their... | [
"brockilli03@gmail.com"
] | brockilli03@gmail.com |
4dee5e0f7b4cc51baf47bb8c3e8933d77c641c85 | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /controlm_py/models/fts_general_settings.py | 9eab4959b0d808a9b66815d288744bfd62ea5263 | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,131 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class FtsGeneral... | [
"dcompane@gmail.com"
] | dcompane@gmail.com |
810c2dd3f612f4af4deec9ef8adb78db3abf0469 | 8a1b90728c61ba5cf3e9c601d3c53e70722cf82f | /replace.py | 633bfd4cd648ad4478401a3891b5df81a19d2b90 | [] | no_license | luizcarlos16/sre_deal | 17f8f761a3fc922cf811bc59d5504971d4b6bfd4 | 193ea32e591e3e2ca8348543e855403a015a3d18 | refs/heads/main | 2023-03-12T16:16:00.137391 | 2021-03-02T05:12:10 | 2021-03-02T05:12:10 | 342,433,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import os
def walk(path):
f = []
for root, dirs, files in os.walk(path, topdown=False):
for name in files:
f.append(os.path.join(root, name))
return f
def check_if_string_in_file(file_name, string_to_search, string_to_replace):
if string_to_search in open(file_name, 'r',enco... | [
"thecalifornia16@hotmail.com"
] | thecalifornia16@hotmail.com |
08824881bc68f2ddf1fee1b25916cd115d4df279 | aec59723a3dd0d3356a4ce426dc0fc381a4d3157 | /catalog/model/pricing.py | 020f6e8a724428673e0662dd1b10eba1af0e2087 | [] | no_license | Guya-LTD/catalog | f44e31593637e22b3b2a2869a387e29875986f7c | 632b3c3766e2600275c0a18db6378b2d38e3c463 | refs/heads/master | 2023-02-11T19:03:36.796812 | 2021-01-08T14:12:06 | 2021-01-08T14:12:06 | 275,332,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
"""Copyright Header Details
Copyright
---------
Copyright (C) Guya , PLC - All Rights Reserved (As Of Pending...)
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
LICENSE
-------
This file is subject to the terms and conditi... | [
"simonbelete@gmail.com"
] | simonbelete@gmail.com |
eee3cfdc459dc13a31ef3210abdd3ab4cc2b38fb | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/product_bidding_category_level.py | 136f73cb4b5a918c667515478fd95aaa94f7a0f1 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
3ad00265c8520a5d29f72a16e2d257962012b632 | 90ed257f4e193b0b19e5bcb9d4a384b0cf6e6d3f | /MUSEUMS/spiders/museum11.py | cc2aee513771a0bf7f5ac00b5c0cdbfde5f1198b | [] | no_license | BUCT-CS1701-SE-Design/webDataCollectionSystem | adc8ca97dda48c508909e73c02bb6622b93534b8 | f653b973b265d52e2ba4711b689c2de637a2cf8b | refs/heads/master | 2022-08-22T14:16:54.857847 | 2020-05-17T07:33:38 | 2020-05-17T07:33:38 | 256,792,222 | 1 | 1 | null | 2020-05-17T01:27:22 | 2020-04-18T15:49:35 | Python | UTF-8 | Python | false | false | 2,110 | py | # -*- coding: utf-8 -*-
import scrapy
from MUSEUMS.items import MuseumsItem #包含这个item类,必须设置
class Musume1Spider(scrapy.Spider):
name = 'museum11'
allowed_domains = ['www.chnmuseum.cn']
start_urls = ['http://www.chnmuseum.cn/']
# 设置经过哪个pipeline去处理,必须设置
custom_settings={
'ITEM_PIPELINES':{'MU... | [
"455693279@qq.com"
] | 455693279@qq.com |
1d5bd5c1dba8192aba45f511c1b8bd9d5e1711f2 | c127fda2d2961ef2ce4480527769dc595e988b97 | /spider.py | e5102d3bddde7603acdf4bb71cae74b74b85be20 | [] | no_license | naman1901/9gag-Image-Downloader | 96e94d7ec2c02a6519341b935b4fd8e029641d96 | 19380a997a6a8fa229f36344c79ab29f90c9485f | refs/heads/master | 2021-01-10T06:56:11.703854 | 2016-04-08T17:53:55 | 2016-04-08T17:53:55 | 55,598,405 | 1 | 1 | null | 2018-10-27T16:59:33 | 2016-04-06T10:55:42 | Python | UTF-8 | Python | false | false | 1,948 | py | from urllib.request import urlopen
from linkFinder import LinkFinder
from functions import *
class Spider:
# Class variables shared among all instances
projectName = ''
baseURL = ''
domainName = ''
queueFile = ''
crawledFile = ''
queue = set()
crawled = set()
def __init__(self, projectName, baseURL, domain... | [
"naman1901@gmail.com"
] | naman1901@gmail.com |
3eb6943aae1ad11db104ee00d54ed9bccbb642e4 | 855dc9fcd4170923e8723b6946c09c5cae68e079 | /what_transcode/migrations/0001_initial.py | cb61199f9d66f0b1aee0d9c062f1096d498bbdcf | [
"MIT"
] | permissive | point-source/WhatManager2 | 3fc72976402ac40d132aef0deffd8bcfbd209703 | ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9 | refs/heads/master | 2023-01-27T11:39:43.861041 | 2019-02-24T17:51:24 | 2019-02-24T17:51:24 | 210,232,561 | 1 | 0 | MIT | 2019-09-23T00:21:54 | 2019-09-23T00:21:53 | null | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TranscodeRequest',
fields=[
... | [
"ivailo@karamanolev.com"
] | ivailo@karamanolev.com |
f3822c56be1305e7b55915ab88f6b4e8ff7f9704 | 62587160029c7c79b5d11f16e8beae4afa1c4834 | /webpages/island_scraper_kyero/island_scraper/middlewares.py | f34dd9c19c21b5524d2483086acae265764a8f49 | [] | no_license | LukaszMalucha/Scrapy-Collection | b11dcf2c09f33d190e506559d978e4f3b77f9f5a | 586f23b90aa984c22ea8f84eba664db9649ed780 | refs/heads/master | 2022-12-14T15:06:00.868322 | 2021-07-27T12:09:07 | 2021-07-27T12:09:07 | 144,448,351 | 3 | 0 | null | 2022-11-22T03:16:19 | 2018-08-12T07:55:05 | Python | UTF-8 | Python | false | false | 3,611 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class IslandScraperSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# s... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
14f648102f5ede6ed0cbfd6da4036fb02e0e97b3 | 8983b099a27d124b17fc20d4e9b5ec2f0bf8be25 | /altair/schema/_interface/named_channels.py | d2d7c77e95eadb00163c13a153019fb543b03f86 | [
"BSD-3-Clause"
] | permissive | princessd8251/altair | a7afa0745291f82215fbda6a477e369f59fcf294 | 387c575ee0410e7ac804273a0f2e5574f4cca26f | refs/heads/master | 2021-01-16T21:41:40.935679 | 2017-08-10T16:36:05 | 2017-08-10T16:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # -*- coding: utf-8 -*-
# Auto-generated file: do not modify directly
# - altair version info: v1.2.0-98-g8a98636
# - date: 2017-08-09 12:14:26
from . import channel_wrappers
class Color(channel_wrappers.ChannelWithLegend):
pass
class Column(channel_wrappers.PositionChannel):
pass
class Detail(channel_wra... | [
"jakevdp@gmail.com"
] | jakevdp@gmail.com |
afc8b7c0f07cc20743f9cd2b06061d58dd632a32 | bf30943529db58f9ea65aa38fbc8b3abc0a29d53 | /app/products/models.py | 405f1fb4222f7a74289e4c8bb9525665aa9fff7b | [
"MIT"
] | permissive | kummitha503/django-tip-01 | bc9d19233a18959162f716c9897995079a3163a4 | 5eb8e3b7ce0741c5be4b78afefa6e4862f664d16 | refs/heads/master | 2020-11-29T01:27:04.549386 | 2017-08-14T12:23:59 | 2017-08-14T12:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from django.db import models
class Product(models.Model):
title = models.CharField(max_length=100, blank=True)
is_active = models.BooleanField(default=True)
is_adult = models.BooleanField(default=False)
def __str__(self):
return "{}".format(self.id)
| [
"lucas.magnum@fyndiq.com"
] | lucas.magnum@fyndiq.com |
5e9cf5ae03e925ad4d818c9b0637c412bbc60146 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02709/s022509829.py | dd9fa602873f6ee74e43f9bacf44dd9a2eee3894 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | import sys
input = sys.stdin.readline
from collections import deque
N = int(input())
#A = list(map(int, input().split()))
A = [(a, i) for i, a in enumerate(map(int, input().split()))]
A = sorted(A, reverse=True)
values = []
num_indcies = {}
for i, a in enumerate(A):
if not a in num_indcies:
num_indcies[a]... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
48b1cfe1f2c159159035fd8b8781a2df3fb2ffde | b11a5afd6682fe003445431ab60a9273a8680c23 | /language/nqg/tasks/spider/write_dataset.py | b2ed9f1018cf872e2b4933c9712c698deaeb8e52 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | Srividya-me/language | a874b11783e94da7747fc9a1b0ae1661cd5c9d4a | 61fa7260ac7d690d11ef72ca863e45a37c0bdc80 | refs/heads/master | 2023-08-28T10:30:59.688879 | 2021-11-12T22:31:56 | 2021-11-13T01:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
6d4669427a2a68d23356eca9f2b95764ad636720 | 4c255e0f3411171b0fdd797a96154245df7a55c7 | /coordination_network_toolkit/preprocess.py | 2155e5d7d97d6f8ef3a605afa55dc602a601048c | [
"MIT"
] | permissive | weiaiwayne/coordination-network-toolkit | db589605b7166caf476cb4c941988fefbf9ec8cb | f8d654ad3f1fdd21204a0aabf61e25f254da3b92 | refs/heads/main | 2023-02-18T05:28:45.384987 | 2021-01-19T00:50:46 | 2021-01-19T00:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,843 | py | import json
import zlib
import csv
from coordination_network_toolkit.database import initialise_db
from typing import Iterable, List
def preprocess_csv_files(db_path: str, input_filenames: List[str]):
for message_file in input_filenames:
# Skip the header
print(f"Begin preprocessing {message_fil... | [
"elizabeth.alpert@qut.edu.au"
] | elizabeth.alpert@qut.edu.au |
a656ad4c91c3d12a31134e288572b4f8972bd4e1 | a5819a63baf9536facf7edebf3e3934b7d8286c1 | /egrep.py | efd1360cd7e2ab240765e05c33b60855aae68d2c | [] | no_license | nasreenkhan/data-science-from-scratch | 86d278c3d0f09b96a704a6c54fa05b87197d6b21 | 5a832dd8f9b423f22d1e7161ddeaaa3af123c696 | refs/heads/master | 2022-06-22T21:48:18.110425 | 2020-05-13T02:27:33 | 2020-05-13T02:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | import sys, re
regex = sys.argv[1]
# For every line passed into the script
for line in sys.stdin:
# If it matches the regex, write it to stdout
if re.search(regex, line):
sys.stdout.write(line)
| [
"santi.viquez@gmail.com"
] | santi.viquez@gmail.com |
6836d5503f43a90573faaab4769192dd27d75f0c | 0ed73ce8e9bed3ef3bd376714cb99d450bde78da | /todotask/urls.py | 7a924d22fc7bebac301493e0263cf1c2c56d459e | [] | no_license | Mikolo007/LIPE-To-do | 8402f71ee90a6ee6c6cd859b600615979a084610 | c45adc56aa960fb239ae5c497d011a31e994fe7d | refs/heads/master | 2022-09-17T13:27:36.354321 | 2020-06-04T22:17:34 | 2020-06-04T22:17:34 | 268,232,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py |
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='todotask'),
]
| [
"mikeakalaa@gmail.com"
] | mikeakalaa@gmail.com |
edf0c98ce98b70722a869867df79d216a02dc1f8 | ef387a1be75136955a5460b9bcc4fd42048d7700 | /matrixGenerator.py | 0759f90881a9c9a4289d584271f472ff1b805e8a | [] | no_license | allenyu94/NPTSP | b3098648ec7e9f0f5123114e257b6ca184bea089 | a38d496eff79715081abc406585c806f290d06db | refs/heads/master | 2020-04-13T17:01:38.027214 | 2015-05-08T07:17:00 | 2015-05-08T07:17:00 | 34,770,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import fileinput
first = True
matrix = None
for line in fileinput.input():
if first:
first = False
matrix = [[100]*int(line) for i in range(int(line))] #[[100]*int(line)]*int(line) # can change the default of the other lines you don't care about
for j in xrange(int(line)):
matrix[j][j] = 0
else:
lin... | [
"janetpchu@berkeley.edu"
] | janetpchu@berkeley.edu |
6544fcf260d6f8112c79a5e3a5ec70a10575a277 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1425+219/sdB_PG_1425+219_lc.py | e8ee83c9f091b54b888664988d5fb0c6cd57aee1 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[216.986042,21.632814], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1425+219 /sdB_PG_1425+219_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
e073a8419eda5bafad84588f1124d089f124d4cd | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbon/common/lib/markdown/extensions/tables.py | f613f9a67f1f99e646124dad4f9a5fdff380870a | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\markdown\extensions\tables.py
import markdown
from markdown.util import etree
class TableProcessor(markdown.blockprocessors.BlockProcessor):
def test(self, parent, block):
rows = block.split('\n')
... | [
"le02005@163.com"
] | le02005@163.com |
c569d1d6c880f26851eb4eeaee69948d486704f1 | 7247379c3641dbd21496e8225b7c91e2a6c8f90e | /backend/models.py | 037fe71cb0bcbaeb660eec4ac73d3c4098c55f10 | [] | no_license | ZiadEzat/triviaapp | 4568ebee6c960206cd64badc6b19acc40078ca42 | 4439f736f54b7dfb6b24f6b2b43d8552f12111cb | refs/heads/master | 2022-12-12T17:06:03.732356 | 2020-09-09T01:01:44 | 2020-09-09T01:01:44 | 292,440,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | import os
from sqlalchemy import Column, String, Integer, create_engine
from flask_sqlalchemy import SQLAlchemy
import json
database_name = "trivia"
database_path = "postgresql://postgres:951753@localhost:5432/trivia"
db = SQLAlchemy()
'''
setup_db(app)
binds a flask application and a SQLAlchemy service
'''
def ... | [
"ziad.esam.ezat@gmail.com"
] | ziad.esam.ezat@gmail.com |
fe4a4445d2df78bcbcf7b4ff07872ff1126fe735 | 26f0111163daf2e1bfa453407c187f6ad19f56b4 | /main_code/dataset.py | 4bc7d87c8051929a68e246275c80fa19a849b7c7 | [] | no_license | pcmin03/mge55101-20195104 | d5092848034109193a955fae5c775bb7cafa3737 | 83691560970d762ae4daa81060c2ceb8302016c9 | refs/heads/master | 2022-11-04T21:42:09.288609 | 2020-06-19T21:59:35 | 2020-06-19T21:59:35 | 247,850,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,529 | py | import io
import numpy as np
from glob import glob
from natsort import natsorted
from utils import *
from sklearn.model_selection import KFold
import skimage
#################################################################
# data load #
##################... | [
"pcmin03@gmail.com"
] | pcmin03@gmail.com |
3d76924803db335c9cb94bb42f4444f162c2d2ae | 936f72b46215b89b277ffd57256e54f727ce1ac5 | /spark-comp04/token.py | 3147a73cbc6b3be806e113977983bf177f1a4f32 | [] | no_license | luizirber/dc-compilers | 91dc99097d628339b53b20a0c0f2a6255a599b7a | 4a47e786583c5f50cac2ac3a35de195f7be7a735 | refs/heads/master | 2016-09-06T11:27:51.815748 | 2012-07-03T01:28:26 | 2012-07-03T01:28:26 | 41,540 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | class Token(object):
def __init__(self, type, attr=None, lineno='???'):
self.type = type
self.attr = attr
self.lineno = lineno
def __cmp__(self, o):
return cmp(self.type, o)
def __repr__(self):
return self.attr or self.type
| [
"luiz.irber@gmail.com"
] | luiz.irber@gmail.com |
e8ecf7fc0963b49fbee6320bd113e8f851195674 | add161c6e8d86dc8448d4f3d4b61a173a3a4543a | /fuglu/src/fuglu/plugins/icap.py | 7c45e6ac0df6497843ea46eb04e299795b1f6fe7 | [
"Apache-2.0"
] | permissive | sporkman/fuglu | 9a578746a52308d618a6edcd7abeb4c50fb0f6fc | 1b458147a93ed17927e0fe16debd80b6f690d11b | refs/heads/master | 2021-01-12T22:30:50.575560 | 2015-04-06T10:07:51 | 2015-04-06T10:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,724 | py | # Copyright 2009-2015 Oli Schacher
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"oli@fuglu.org"
] | oli@fuglu.org |
583f60ff287cee838ecb0f535047399292eeab50 | 653eaef652627b155569b5fe9ab9bb3607fc1e78 | /alg/ganite/ganite.py | 1e5aaedc8c7c7720ded1a6bf6cee744f9f7711a5 | [
"BSD-3-Clause"
] | permissive | IlyaTrofimov/mlforhealthlabpub | 11ab86a83bd2ffd2574364a956b322b0c62406ae | 190cbad2faae9e559ffe7a68143df7f747d70adc | refs/heads/main | 2023-04-16T03:58:38.423288 | 2021-04-21T10:22:43 | 2021-04-21T10:22:43 | 358,528,623 | 0 | 0 | NOASSERTION | 2021-04-16T08:25:26 | 2021-04-16T08:25:25 | null | UTF-8 | Python | false | false | 12,408 | py | '''
GANITE:
Jinsung Yoon 10/11/2017
'''
import tensorflow as tf
import numpy as np
from tqdm import tqdm
import argparse
import os
import json
import pandas as pd
import initpath_alg
initpath_alg.init_sys_path()
import utilmlab
def init_arg():
parser = argparse.ArgumentParser()
parser.add_argument("--alpha",... | [
"e.s.saveliev@gmail.com"
] | e.s.saveliev@gmail.com |
d630ba6ec649a45b657654e4a48867ba1978b41e | df9fb16c1209a69c1191c2a936a264e84174c238 | /model.py | c30958f4ee15d3a2a5c235dfe46ae25d72b1805f | [] | no_license | twistedcubic/knn_vgg | 3bdb022b5495941c799417d5f5c87f562512bcb8 | d7507c76e60f6cdb1f4ece72bf683ae8e415a904 | refs/heads/master | 2020-05-05T14:06:15.342093 | 2018-11-07T18:34:36 | 2018-11-07T18:34:36 | 180,107,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,138 | py |
import torch
#import torchvision.models as models
import torch.nn.functional as F
import torchvision.datasets as datasets
import torchvision.transforms as transforms
from vgg import VGG
import torch.nn as nn
from collections import OrderedDict
import os
import time
BATCH_SZ = 128
use_gpu = True
normalize_feat = True
... | [
"yihdong@microsoft.com"
] | yihdong@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.