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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1f2bc27194e8f706625493989d95c5335783f9f | fc58366ed416de97380df7040453c9990deb7faa | /daoliagent/services/arp.py | 7d9cf1622fdcd08505553150ef2cdef052d75232 | [
"Apache-2.0"
] | permissive | foruy/openflow-multiopenstack | eb51e37b2892074234ebdd5b501b24aa1f72fb86 | 74140b041ac25ed83898ff3998e8dcbed35572bb | refs/heads/master | 2016-09-13T08:24:09.713883 | 2016-05-19T01:16:58 | 2016-05-19T01:16:58 | 58,977,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,005 | py | from oslo.config import cfg
from ryu.lib.packet import arp
from ryu.lib.packet import ethernet
from ryu.lib.packet import packet
from ryu.lib import addrconv
from ryu.ofproto import ether
from daoliagent.services.base import PacketBase
from daoliagent.lib import SMAX
from daoliagent.openstack.common import log as log... | [
"wenxiang.wang1204@gmail.com"
] | wenxiang.wang1204@gmail.com |
7eba5f147fc621a898d8f0d6fad9215a40574729 | fc58b26212f6133839b12f8fd98cbd5e984629ba | /app/app.py | 12ce5d736fa08540be4030741477a3d72400ec53 | [] | no_license | nytr0gen/hts | e87062551f0003b40d2630d7186c7a32b019a18c | 2d7866707db6b61dacf42507bffca51f3096843b | refs/heads/master | 2020-06-27T03:41:17.491656 | 2017-07-18T05:36:11 | 2017-07-18T05:36:11 | 97,043,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | from flask import Flask, request, jsonify
from bson.json_util import dumps
from config import db, config
app = Flask('hts')
# main flask api route
# /items/?subreddit=<subreddit>&from=<t1>&to=<t2>
# /items/?subreddit=<subreddit>&from=<t1>&to=<t2>&keyword=<kw>
@app.route('/items/')
def items():
subreddit = request.... | [
"nytr0gen.george@gmail.com"
] | nytr0gen.george@gmail.com |
89fc6dc680c2a7f8d24f9378f69e90655b89aa98 | aa08a55c48016ae948f3e4619b1d300914312f61 | /web_flask/6-number_odd_or_even.py | 2be8bbf65bc27a0e5484c5b0dd5cfc5c1c734f63 | [] | no_license | DiegoSusviela/AirBnB_clone_v2 | 5afda7dce3f57bf42dbf78129b0942e803c5ded6 | 87e4cc5c9affbe329bd8e816ddfc58e73387aaae | refs/heads/main | 2023-08-14T10:06:25.567140 | 2021-09-21T20:00:44 | 2021-09-21T20:00:44 | 405,736,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | #!/usr/bin/python3
"""starts flask"""
from flask import Flask, abort, render_template
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello_hbnb():
"""returns"""
return 'Hello HBNB!'
@app.route('/hbnb', strict_slashes=False)
def hbnb():
"""returns"""
return 'HBNB'
@app.route('/c/<... | [
"dieguitosus@hotmail.com"
] | dieguitosus@hotmail.com |
af881679204b1449f665ea8edb98563261127fb5 | c8d5c879b12e124c6840b90afbdc8b928227efa4 | /my_unet_v2_loc.py | 99b9a8217856fd8c0b3b839f8b8fc4a63f83af08 | [
"MIT"
] | permissive | yimejky/fiit-dp-unet-visualiser | 5828b52e8b0fd3c8fec4c940ba077d3414cdeab4 | 835190c771a1b4c0a1640b10f4f05dc1a129d706 | refs/heads/master | 2023-02-22T04:11:14.058425 | 2021-01-01T15:27:45 | 2021-01-01T15:27:45 | 268,133,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py |
import sys
sys.path.append('../')
from pycore.tikzeng import *
from pycore.blocks import *
def block(conv_num, pool_num, in_channels, out_channels, height, height_out, to=None, width=2, width_scaller=2):
cn = conv_num
pn = pool_num
if to is None:
offset = "(1,0,0)"
else:
offset = "(-... | [
"nikolas.tsk@gmail.com"
] | nikolas.tsk@gmail.com |
34e39d656595b9d37b2a3f10902af713720b6660 | 7bb8650c873c9c9122332890020df25da168ec63 | /Practice Problems and Exams/Lists and File Reading.py | f74ce374c2ce788d9c4ed0b7ad22ba213a01f5bb | [] | no_license | akhlaque-ak/pfun | b64e9f4e4f09fcfe3213ac21120e72ab463f9ca5 | 19b3e06261e76968220f84967bb477ac9688a17c | refs/heads/master | 2020-07-24T20:48:01.273396 | 2019-08-08T08:56:14 | 2019-08-08T08:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | # ---------------
# Question 1 (15 Marks)
# ---------------
# Given two lists:
#
# subjects = ['Math', 'Science', 'Urdu', 'English', 'Computers']
# marks = [100, 78, 88, 75, 95]
#
# Write a function MarksPrinter that iterates through the lists using recursion
# and shows individual scores like this:
#
# Comp... | [
"noreply@github.com"
] | noreply@github.com |
85d269c58a8b916c4b0d941cf97263956df9043a | 12d7d62a81981d4854ebb352184ff2f855abda68 | /Sunday/sunday_0023.py | fd0e58e6ddb3f680a217285e1ad303d5666b5bf8 | [
"MIT"
] | permissive | Morek999/OMSCS_Taiwan_Leetcode | e200ccf25915164b1c34161f7d0c6a2572962579 | 8ec18e08e9313bc3326846ca6ef6e569380a133f | refs/heads/master | 2020-12-06T18:55:15.071029 | 2020-04-12T02:45:56 | 2020-04-12T02:45:56 | 232,529,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # refer to https://leetcode.com/problems/merge-k-sorted-lists/solution/
#
# Time: O(N log k) (k is the number of lists)
# Space: O(1)
class Solution:
def mergeKLists(self, lists: List[ListNode]) -> ListNode:
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
amount = len(... | [
"noreply@github.com"
] | noreply@github.com |
a32bc2aa2d40e3bc7216a0a034b9f3f89efa6c59 | b131df8cce5fa514a9849f8ced8fef1b7afd057b | /mlob.py | f4ccc184ecf057f67e9d21b2967e61916f8db5ea | [
"MIT"
] | permissive | eyaffe/moving_loads | a09c0c39c6bc35854c911b558c66355d75539afd | a83944a3f44d3072aac33e255ce47794b612feb7 | refs/heads/master | 2021-01-22T23:07:24.555568 | 2017-03-20T15:54:37 | 2017-03-20T15:54:37 | 85,613,348 | 0 | 0 | null | 2017-03-20T18:42:53 | 2017-03-20T18:42:52 | null | UTF-8 | Python | false | false | 11,200 | py | import pdb
import timeit
def analyze_vehicle(axle_spacing, axle_wt, span_length1, span_length2,
num_nodes, space_to_trailing_load,
distributed_load):
V_max1 = []
V_min1 = []
M_max1 = []
V_max2 = []
V_min2 = []
M_max2 = []
span1_begin = 0.0
span1_... | [
"mwhit74@gmail.com"
] | mwhit74@gmail.com |
7ce6c7f62f83a916f4de22bfa3028340b1b55c50 | ccf1a743a0e8bff0cce9c4424118f675ae9fdac8 | /Mundo 2 - Estruturas de controle/ex040-aquele classico da média.py | e90254678ba6274fc783a2918201df6c18a469b5 | [] | no_license | herbetyp/Exercicios_Python | 18138ed83473f0238381fbb2b5412b672cffe62b | d976a279b58124e3666d1b1cd57aa537c4b1b2bf | refs/heads/master | 2022-04-04T19:37:46.989484 | 2020-02-14T03:46:09 | 2020-02-14T03:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | nome = str(input('Digite o nome do aluno: ')).strip().lower()
nota1 = float(input('Digite a primera nota do aluno: '))
nota2 = float(input('Digite a segunda nota do aluno: '))
media = (nota1 + nota2) / 2
if media <= 4.9:
print('A média do aluno {} é de {}, e está abaixo de 5.0 aluno REPROVADO!'.format(nome, me... | [
"herbetyp@gmail.com"
] | herbetyp@gmail.com |
074bb08ea06e02502d88908fb0e99f03eb1c5c83 | 3502f235e50f389fd95ecc6a0ec40866b238aa43 | /search_engine/migrations/0005_auto_20160523_0814.py | 1bcf65a17443e1adfba3904d74dc229268f4fd4e | [] | no_license | 2ncs/myapp | 4136733435e740d2771b6e64ad5de914aaa76967 | ff59ccd8e92095cd600eef0f77aa7454e0e8f327 | refs/heads/master | 2020-09-25T23:31:26.492762 | 2016-08-24T18:19:26 | 2016-08-24T18:19:26 | 66,489,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-05-23 05:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('search_engine', '0004_afrikanikh_asiatikh_brunch_burger_burger_amerikanikh_ellhnikh_paradosia... | [
"greekou@gmail.com"
] | greekou@gmail.com |
c31a6958795f46fcd902a7ae3611a35a54b6f85c | c93a9acddefa367d73ca9d8c3100d7ee4b9c1dfe | /Agri/Agri/urls.py | aa38120ada8be34eac0d8302b25fb2a97f27b140 | [] | no_license | carlos-nyaga/Redefined-Farming | 0a4c532b843f803750ec954f288acab7446b8f4d | 4bc5eccfdbb16dbbf13bafb829969c364d6d3563 | refs/heads/master | 2020-05-17T06:49:35.632373 | 2019-04-26T08:20:39 | 2019-04-26T08:20:39 | 183,566,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | """Agri URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"crlsnyaga@gmail.com"
] | crlsnyaga@gmail.com |
f324d68fe448c50900e3408e7eb40fe7646e5e82 | bed4131fbe6700af18f7e1a169854c5d4660e36f | /src/ppmf_reid/models.py | 5dd5c24a526912a2f6c8274b64d126f62f39ba70 | [
"MIT",
"BSD-3-Clause"
] | permissive | aflaxman/ppmf_12.2_reid | c0a29ce1b342becc6fddcfe92985ad75e2c15087 | ea4b29c1e87e2390f82abc8efdc159b8764cb6ba | refs/heads/main | 2023-06-19T19:46:58.436089 | 2021-07-19T20:32:21 | 2021-07-19T20:32:21 | 368,644,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,346 | py | import numpy as np
import pandas as pd
race_eth_cols = ['hispanic', 'racwht', 'racblk', 'racaian', 'racasn', 'racnhpi', 'racsor', 'racmulti']
def match_summary(df):
""" summarize the race and ethnicity information in the dataframe
Parameters
----------
df : pd.DataFrame including columns from race_et... | [
"abie@uw.edu"
] | abie@uw.edu |
9166a5025b83503317fc99cf5620f56acadc063c | 35fb652b0b20e7352cacdc078e23464fad40ccf3 | /web/controllers/food/food.py | ed79027f6fa2230bee2cb9150725d18254385a43 | [] | no_license | xiaoheng14/flask_wx_order | 52f8fe01a473855c22a43c2651b102c291dbde04 | be3314fdb0266eecf4ca7f5a55b2ea24078857c9 | refs/heads/master | 2020-08-23T03:59:19.006943 | 2018-11-19T12:21:25 | 2018-11-19T12:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # _*_ coding: utf-8 _*_
"""
__author__ = 'lawtech'
__date__ = '2018/10/27 3:14 PM'
"""
from flask import Blueprint
from common.libs.helper import ops_render
route_food = Blueprint('food_page', __name__)
@route_food.route("/index")
def index():
return ops_render("food/index.html")
@route_food.route("/info")
de... | [
"584563542@qq.com"
] | 584563542@qq.com |
f6f84dcc3656ac3c623fa8ecd4bfcedf2259c2ef | a22cc323b29f50da397d8363ac2521e3542a0fd7 | /tests/dpaycli/test_steem.py | d04f4ac3d9988e261ae2bc7c834ff2c3642c4d91 | [
"MIT"
] | permissive | dpays/dpay-cli | 1a58c7dae45218e3b05b7e17ff5ce03e918d27b9 | dfa80898e1faea2cee92ebec6fe04873381bd40f | refs/heads/master | 2020-04-01T09:26:43.200933 | 2018-10-15T08:03:06 | 2018-10-15T08:03:06 | 153,075,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,444 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
from builtins import super
import mock
import string
import unittest
from parameterized import parameterized
import random
import json
from ppri... | [
"jaredricelegal@gmail.com"
] | jaredricelegal@gmail.com |
a80b08369aebe3a6b598b0881a03eee69adcdeb1 | f9478c3969996208783a26c3744092a43a53206e | /catkin_ws/build/test_mavros/catkin_generated/pkg.installspace.context.pc.py | eb0ddca05c17fcb2a0f7a2af11198d6cc7030959 | [] | no_license | cangozpinar/Drone_Project | 4485ac8b47f16d8f3d7d37ab39075e06dbba4498 | bdd61ac0aea69b1a6a67933a8e3352aee32a5ec0 | refs/heads/main | 2023-08-19T21:02:29.840882 | 2021-10-26T22:15:02 | 2021-10-26T22:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/usr/include".split(';') if "/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "control_toolbox;eigen_conversions;geometry_msgs;mavros;mavros_extras;roscpp;std_msgs;tf2_ros".replace(';', ' ')
PKG_CO... | [
"can@can-ubuntu-18.04"
] | can@can-ubuntu-18.04 |
3a163307f6e168f0d4592d769b3438132dc8a406 | 8b23e24dd0179f6b4d8920797f003d74169c6520 | /file1.py | fe93ccee8cce51cc3e82115ea67485541f21e13a | [] | no_license | alxthmsCO/lab4 | 62a2d82fd534e71f3be8fc2b9e11bfd36609c211 | 73ede6b0f4186a22e772bc903461f016509b821f | refs/heads/main | 2023-08-10T01:26:13.072683 | 2021-09-17T18:58:22 | 2021-09-17T18:58:22 | 407,381,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | import os
import sys
file = open(sys.argv[1], 'r')
Lines = file.readlines() | [
"90875291+alxthmsCO@users.noreply.github.com"
] | 90875291+alxthmsCO@users.noreply.github.com |
52fa7f6ab35d271fd30dbc1f96ddcee4a2df32b5 | e74c2e5b85b9af58a6f9b4b6eea160fb66f6bb08 | /aula11.py | a14bb8b989d099d4f7350a32cb0c4b75eb76c49b | [] | no_license | Nokutomi/AulaPython | 670cc27986aa3a12e528f5d1602929a524b632fc | 1e97e4821b12a0ad0a4438d682c1e4d61a10f61d | refs/heads/master | 2022-11-15T08:38:47.401055 | 2020-07-08T02:49:54 | 2020-07-08T02:49:54 | 275,640,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py |
lista = [1,10]
arquivo = open('teste.txt', 'r')
try:
texto = arquivo.read()
divisao = 10 / 0
# numero = lista[3]
# x = a
# print('Fechando arquivo')
# arquivo.close()
except ZeroDivisionError:
print('Nao e possivel realizar uma divisao por zero')
except ArithmeticError:
print('Houve um ... | [
"you@example.com"
] | you@example.com |
0cab5c5f3ee22758a17fae55680be1ded65e3ed6 | 00596c5f4e9547677046aea34dc4b55c4bb0b340 | /ref_model.py | e52696f61ccae311f55f836d1c04734b4b70d76d | [] | no_license | Xnsam/chabot_sequence_2_sequence | 6f6e41753e2341d8ed883064fec4675d3ede63cb | ab1d8f9d8aae03628458f4dec2540cb2c36908ba | refs/heads/master | 2020-05-17T00:26:55.983637 | 2019-04-25T09:18:09 | 2019-04-25T09:18:09 | 183,396,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,711 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import random
import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tf
from tensorflow.models.rnn.translate import data_utils
class Seq2SeqModel(object):
... | [
"abcd@localhost.localdomain"
] | abcd@localhost.localdomain |
a02a2341ab021509e596e6ab801c9b00af24f937 | 988385035443e5d46d29d96b15179509fd1c782e | /addToArrayForm.py | ea09a01733d9a2d3d3b61c25a1837f7b7368545e | [] | no_license | mwoitek/leetcode-python3 | c120ee1b1eb8e17f3a301026f25c643be9852953 | eb9989d3768eba82275a57243c99796e74ccdd48 | refs/heads/master | 2022-12-28T21:19:51.215210 | 2020-10-18T06:17:27 | 2020-10-18T06:17:27 | 301,295,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | class Solution:
def addToArrayForm(self, A: List[int], K: int) -> List[int]:
A_str = "".join([str(num) for num in A])
A_int = int(A_str)
ans = A_int + K
ans_list = [int(char) for char in str(ans)]
return ans_list
| [
"woitek@usp.br"
] | woitek@usp.br |
c14cca36fd70f17c4adf7cf1050a549b485a5112 | dd44e145ac547209f5f209bc9b1f09189bb8b5c7 | /Python-OOP-July2021/04.Classes_and_objects-E/05.To-do-list/project/section.py | 391f64c88e1e7f0db3acc9df9b8d20c2de06a156 | [] | no_license | todorovventsi/Software-Engineering | e3c1be8f0f72c85619518bb914d2a4dbaac270f8 | 64ffa6c80b190e7c6f340aaf219986f769f175ab | refs/heads/master | 2023-07-09T05:35:14.522958 | 2021-08-15T14:35:55 | 2021-08-15T14:35:55 | 336,056,643 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | class Section:
def __init__(self, name):
self.name = name
self.tasks = []
def add_task(self, new_task):
if new_task not in self.tasks:
self.tasks.append(new_task)
return f"Task {new_task.details()} is added to the section"
return f"Task is already in the ... | [
"todorov.ventsi@gmail.com"
] | todorov.ventsi@gmail.com |
592c999b313d564667eecf2bc25a16f9e9a44646 | 01c0426fdcd495fdb73fc708326de83a25ae9056 | /blog/views.py | c6628ff5d71f3c6583b3673a72ee43b3f6f82683 | [] | no_license | zlenyk/django_blog | 68a3db160d8ade5bffbd6e7f04b7e366b75ee3c8 | 1405b8d7857e71736b271e47fa323c1df8ad3f4f | refs/heads/master | 2021-01-21T12:53:34.325590 | 2016-04-25T11:59:33 | 2016-04-25T11:59:33 | 55,899,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | from django.shortcuts import render
from blog.models import Post
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import login_required
import users
def index(request):
all_posts = Post.objects.all().filter(classified=False).order_by('-publish_date')
context = {'post_list': al... | [
"zygmuntlenyk@gmail.com"
] | zygmuntlenyk@gmail.com |
81237ecb5e03f5de33f8093fc6668ab42f73405b | bbc8dc59cd70af6f6a3116b1d58685e5fd553024 | /main_debug.py | ee94c2c0265867b79cd5a9d13ca0afed33b9cdec | [
"MIT"
] | permissive | m3h0w/transparent_blobs_detection | c58a9d168f677cc883c1a051c846ad7cf544557f | 5fe3ca6d9cba1fab3588e29751d423086dfc1ac0 | refs/heads/master | 2021-01-24T18:25:43.289178 | 2017-05-22T20:57:29 | 2017-05-22T20:57:29 | 84,433,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,870 | py | import cv2
import numpy as np
import trackbar as tb
import auxcv as aux
from matplotlib.pyplot import imshow, scatter, show, savefig
def shrink_rect(rect, scale = 0.8):
center, (width, height), angle = rect
width = width * scale
height = height * scale
rect = center, (width, height), angle
return ... | [
"mga@smart-in.eu"
] | mga@smart-in.eu |
7a9bc7fc3c9c4c62b7a9d9b9fa4065a832025ac5 | 53a83821b3631313732abddcce8eb3646facfeb9 | /code/part2/generate_stopwords.py | 8d7ba4483b42b2d510b891144c19baedeb6c412a | [] | no_license | jschear/cs1951a-final | 6add03b39f1057d04b7bbacf706dee0c864798c5 | ada6c21690826173d088b83ea948ac213a1a4a51 | refs/heads/master | 2020-05-16T11:26:31.205023 | 2014-05-10T02:58:54 | 2014-05-10T02:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | from __future__ import division
from tokenizer import Tokenizer
import sys
from collections import defaultdict
import json
import pdb
def generate_stopwords(review_file, business_file, outfile, stopwords_file):
tokenizer = Tokenizer(stopwords_file)
occurances = defaultdict(int)
with open(review_file) as review_file... | [
"elijah@Elijahs-MacBook-Air.local"
] | elijah@Elijahs-MacBook-Air.local |
2d84c157b9846a8aec28e139fd2ca2fe4863d293 | ed2d4c6dbdec9bb501b515e25b620917c6d0704e | /controllers/joystick/catkin_ws/devel/lib/python2.7/dist-packages/nodes/srv/_emitter_get_channel.py | ef884bae667b3ff78ca0afc5d285dbb85f25e3b3 | [] | no_license | pvarthol/aristeia1 | c069db900c9ce7d0bbcddfd284a74c2b67447354 | 2da2796673d801c01e5ddeeaccd1f1dcbab2e535 | refs/heads/master | 2020-05-21T11:42:29.247546 | 2015-07-13T16:59:20 | 2015-07-13T16:59:20 | 39,025,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,633 | py | """autogenerated by genpy from nodes/emitter_get_channelRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class emitter_get_channelRequest(genpy.Message):
_md5sum = "f9df5232b65af94f73f79fe6d84301bb"
_type = "nodes/emitter_get_channelReques... | [
"pvarthol@gmail.com"
] | pvarthol@gmail.com |
da3c6e83305d27014371f3d5c058202ceed0e107 | 68b7cb2dc29f7fe9d9b01a7b045d6e103cc7ae0b | /scripts/f024.py | bcd42ddd8dad04c23516945a0729c160ab96a4e8 | [
"MIT"
] | permissive | Eve-ning/aleph0 | 1507426e75c1c3ff61ae124e0b3b9809e0adf322 | 0a893f81328420ba4661cb920d3f9c39b3506d96 | refs/heads/master | 2022-12-04T02:18:36.907890 | 2020-07-29T06:26:04 | 2020-07-29T06:26:04 | 283,411,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | import numpy as np
from aleph.consts import *
from reamber.algorithms.generate.sv.generators.svOsuMeasureLineMD import svOsuMeasureLineMD, SvOsuMeasureLineEvent
from reamber.osu.OsuMap import OsuMap
def f024(m: OsuMap):
events = [*[SvOsuMeasureLineEvent(
firstOffset=i, lastOffset=9337,
... | [
"johnchangqi@hotmail.com"
] | johnchangqi@hotmail.com |
28ce059d72621398c170362a8527bbe29d0309c0 | 14204526624b3132aa599bee2eaec425eed92e18 | /venv/model.py | 2139295663d667df209877fc7bbbe0550132fb2a | [] | no_license | RajRatanPote/House_prise | f9c4557f896deb8ca2aec508b28c6092b078b332 | e701b66bf478b146447276fcdd558a2315a47bea | refs/heads/master | 2023-04-02T23:00:58.300788 | 2021-04-11T09:59:50 | 2021-04-11T09:59:50 | 356,830,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import numpy as np
import pandas as pd
from pandas import read_csv
from sklearn.datasets import load_boston
boston = load_boston()
data = pd.DataFrame(boston.data)
data.head()
df = pd.DataFrame(boston.data)
df.columns = boston.feature_names
df.head()
df.describe()
df['PRICE'] = boston.target
bins = [0,200,400,600,8... | [
"rajratan.pote@ksolves.com"
] | rajratan.pote@ksolves.com |
ef00af5d34e3dd65c260ca773cd1388636e3b07a | 83cd63f49e86c8945115c8a2ba31bb129e167983 | /hello.py | c87c820b5b7cd3ad5c54b9f3a83371bf41dd83b8 | [] | no_license | miniaishwarya/Python-stuff | 657d7c32463badfdf7818528e26ce65d465830ad | 291c015cb39821912a5c8856f83497fbf2415123 | refs/heads/master | 2020-12-13T22:54:13.523454 | 2020-01-17T13:37:26 | 2020-01-17T13:37:26 | 234,555,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py |
# Reading an excel file using Python
import xlrd
# Give the location of the file
loc = ("C:\Python")
# To open Workbook
wb = xlrd.open_workbook(loc)
sheet = wb.sheet_by_index(0)
# For row 0 and column 0
sheet.cell_value(0, 0)
| [
"noreply@github.com"
] | noreply@github.com |
3cfb100f580765a53f828f757e04126c0d5ba7ec | 5e5f5cd80de17b6f31682630c8b6826cbdea7b62 | /Lesson 05/requirements.py | 88b19d13c31da4d3813b50a5290e413a17320d14 | [] | no_license | maraja/ai-bootcamp | 3e813e8c5888f043357b0979a3eb62f70db6eda0 | f44f0da35814b83a4da38009eb1845c6700d8b46 | refs/heads/master | 2021-05-05T14:42:34.165044 | 2018-03-29T00:57:52 | 2018-03-29T00:57:52 | 118,500,856 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Required Python Machine learning Packages
import pandas as pd
import numpy as np
# For preprocessing the data
from sklearn.preprocessing import Imputer
from sklearn import preprocessing
# To split the dataset into train and test datasets
from sklearn.model_selection import train_test_split
# To model the Gaussian ... | [
"amit.maraj@gmail.com"
] | amit.maraj@gmail.com |
9999bf5d93fa20451f61973a2e0ae14307aded8d | 4b1cf07275a8f2abf30943b975d443485ef897ff | /data_generator.py | 3805e30c71100e78de5cec92ba0c561a77bb426d | [
"MIT"
] | permissive | gipsyblues/edge_ml_emotion_recognition | a0e1e0acc98d11f710542218b2603f72a8a93a4b | 028e9a9264e7df5c48a047677b48f0c15e059e6c | refs/heads/master | 2023-06-27T02:53:18.707806 | 2021-07-28T06:48:30 | 2021-07-28T06:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,108 | py | import numpy as np
import cv2
import os
import imgaug as ia
import logging
from imgaug import augmenters as iaa
from imgaug.augmentables.segmaps import SegmentationMapsOnImage
from imgaug.augmentables.bbs import BoundingBox, BoundingBoxesOnImage
def _create_augment_pipeline():
sometimes = lambda aug: iaa.Sometim... | [
"dmitrywat@gmail.com"
] | dmitrywat@gmail.com |
8608e303a36bf3f85081086abacf05377c92e3f0 | 080029466f1885822b4f9ef3bb351bddd9bae826 | /src/Labyrinth.py | 47cf009350102d35da8752cff8759b9de046c15b | [] | no_license | kleeblatt007/Labyrinth | e9650a0eaf6fb34a12c718101ea895ecf32c7865 | 157c1edfa5ba320eff834d972677bca6aad53b8f | refs/heads/main | 2023-08-24T20:36:13.592199 | 2021-10-17T15:51:19 | 2021-10-17T15:51:19 | 371,376,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,378 | py | from Graph import Graph
from RandomPath import RandomPath
from DepthFirstPath import DepthFirstPath
from Coordinate import Coordinate
import matplotlib.pyplot as plt
import plotly.express as px
import plotly.graph_objects as go
import pandas as pd
# from pprint import pprint
# import numpy as np
class Labyrinth(obj... | [
"clemens.bandrock@campus.tu-berlin.de"
] | clemens.bandrock@campus.tu-berlin.de |
7091c8bb4d092cb28c4a6f0d1fe1a329abcb2805 | 40b20d7e5f4381a64bd264a562c4ae6d6721b01c | /14-it-generator/sentence_gen.py | a17c48f6811da8c5180ec412bacbf4618080cabf | [
"MIT"
] | permissive | KyrieCham/example-code | 7d2f0d5901bf80b49dd6b1e9ae1c37c9cb6df7f5 | 3dd11744d1c0b1f00860e985ee2a0761e73ef7e7 | refs/heads/master | 2020-04-18T00:56:06.384756 | 2019-01-22T19:27:43 | 2019-01-22T19:27:43 | 167,098,245 | 1 | 0 | MIT | 2019-01-23T01:52:48 | 2019-01-23T01:52:47 | null | UTF-8 | Python | false | false | 446 | py | """
Sentence: iterate over words using a generator function
"""
import re
import reprlib
RE_WORD = re.compile('\w+')
class Sentence:
def __init__(self, text):
self.text = text
self.words = RE_WORD.findall(text)
def __repr__(self):
return 'Sentence(%s)' % reprlib.repr(self.text)
... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
c64f6276a76c1f9c5a452595cbcd25de501fd7f6 | e65a448da4f82d6e7c95cfadc5e8dfd06ed05c62 | /cinder/cinder/api/middleware/auth.py | cf898c9b07d780e57e877272a930772dd33360d5 | [
"Apache-2.0"
] | permissive | bopopescu/devstack | 7a9d11bcc37884f3686e7178ebc25c178a6da283 | 6b73b164af7e5895501f1ca5dafebbba90510846 | refs/heads/master | 2022-11-19T19:58:43.536574 | 2015-01-29T09:00:59 | 2015-01-29T09:00:59 | 282,101,378 | 0 | 0 | null | 2020-07-24T02:17:48 | 2020-07-24T02:17:47 | null | UTF-8 | Python | false | false | 6,014 | py | # Copyright 2010 OpenStack Foundation
# 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 requ... | [
"swethapts@gmail.com"
] | swethapts@gmail.com |
35bcc77e349cc812c7bd54f2b0b870705d6cb17c | 2536c2235ccb701b11ff20054d13c1d988e81cd2 | /fuse.py | 9475020b7c732cee24262c077dfd12a4301ba7cb | [] | no_license | icco/clyde | f372f0685e12a6e2aeeb91b9d702ef54bfc6e597 | 4d011f45a7a00b8889e32821a2123fe784141d27 | refs/heads/master | 2020-06-08T06:03:11.215639 | 2009-05-31T00:56:43 | 2009-05-31T00:56:43 | 199,375 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,113 | py | # Copyright (c) 2008 Giorgos Verigakis <verigak@gmail.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE... | [
"nat@natwelch.com"
] | nat@natwelch.com |
249f92441ee8c9dd0bac700ca628226db862ef82 | e120f942d706b755382d0367e2f1c43bb81a3b40 | /crawling.py | 47909207af58fb56d4c42b37ef20ba407ba62a62 | [] | no_license | samiant/projectcraw | 740594d2b49e7d857a5dae28c1eba35217bbbdfe | 09a8ff45a2d1b98761f6a9579163d5f11e1b17f9 | refs/heads/main | 2023-01-12T19:57:56.267225 | 2020-11-12T02:21:52 | 2020-11-12T02:21:52 | 312,144,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import requests
from bs4 import BeautifulSoup
url = "https://scholar.google.com/citations?user=p4-7UvwAAAAJ&hl=en&oi=ao"
page = requests.get(url).text
soup_expatistan = BeautifulSoup(page)
expatistan_table = soup_expatistan.find("table", class_="comparison")
expatistan_titles = expatistan_table.find_all("tr"... | [
"noreply@github.com"
] | noreply@github.com |
3d4b9065d5b37d5328bf1b457f014f33e0b50b42 | 493c14e7747884015271c0050f1c0dccda4faea5 | /app/auth/email.py | f2dca25f4a6f14c2c50762ffb4ae5af0c7c740a6 | [] | no_license | antoniovmonge/datapark | 4636a7b491245e7dbedd4a01aa609df521dfceda | 2a347dda85235e2cf43342ae6841b686cd37c805 | refs/heads/master | 2023-09-01T04:39:06.379066 | 2021-10-28T17:49:04 | 2021-10-28T17:49:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from flask import render_template, current_app
from app.email import send_email
def send_password_reset_email(user):
token = user.get_reset_password_token()
send_email('[Megablog] Reset Your Password',
sender=current_app.config['ADMINS'][0],
recipients=[user.email],
... | [
"antoniovmonge@gmail.com"
] | antoniovmonge@gmail.com |
b7b033005c4d6c2fa2526203b4ff0fb9024fa215 | 45fe398064731ce4f3b9c9f6d1970b25c3bd63c2 | /Deps/Argh/conanfile.py | d6dd943dd8dde8725f01b7cd261aa208609361f8 | [
"BSD-3-Clause",
"MIT"
] | permissive | 15831944/AutoCADLI | 4977e7410fbd01bdc14b9ab97d8c81a02a37c35d | 6836c73bab89898ee789818e32fdef021664e09b | refs/heads/master | 2021-09-19T08:10:25.013455 | 2018-07-25T11:51:22 | 2018-07-25T11:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from conans import ConanFile
import os
class ArghConan(ConanFile):
name = "argh"
version = "1.2.1"
url = "https://github.com/adishavit/argh"
description = "Argh! A minimalist argument handler."
license = "BSD 3-Clause"
exports = ["LICENSE"]
exports_sources = "argh.h"
def package(self)... | [
"33334607+rena0157@users.noreply.github.com"
] | 33334607+rena0157@users.noreply.github.com |
e5132aeded7b1de370ce27c619521a91c10ac1ea | 75a6c56e4273d2c681898e77ee0c4e60d38b3032 | /scripts/run_yolo.py | 666a0d793a35fa6ffb416c73ed2c5ab32304d68b | [
"Apache-2.0"
] | permissive | tmralmeida/tensorrt-yolov4 | 23283568042949d78de325997bc9a3d4df83bbc2 | 320ffaf9cfe8fb3e787b16b03bb5de3a5e1ce5b9 | refs/heads/master | 2022-11-29T05:46:29.508389 | 2020-08-11T16:41:43 | 2020-08-11T16:41:43 | 286,789,494 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py |
import os
import argparse
import sys
import time
import cv2
import numpy as np
import pycuda.autoinit # This is needed for initializing CUDA driver
from utils.camera import add_camera_args, Camera
from utils.yolo_classes import get_cls_dict
from utils.yolo import TrtYOLO
from utils.display import open_window, set_dis... | [
"tm.almeida@ua.pt"
] | tm.almeida@ua.pt |
ca9547928ab7a957dabd169f16fc201dc6d06efe | b83ff584bfcd9fce7a337ba1253287fc9afd03c7 | /cmdline_fluency_countdown.py | c6564c0a2aa5dcf88e15805c147edba2570aebac | [] | no_license | houstonhunt/fluencycountdown | 6166eaf625f6e348213dcd5be8045ee218159900 | d555b83972e05d09e1caafca61ea465c4ca3770c | refs/heads/master | 2021-01-23T23:12:17.392090 | 2015-05-23T18:48:24 | 2015-05-23T18:48:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | #!/usr/bin/python
# cmdline_fluency_countdown.py
import pickle # used to save user progress (currently supporting 1 primary user)
import ConfigParser, os # used to parse language file
def init():
state = 0
try:
pickle.load(open("save.p", "rb"))
print "SUCCESS: loaded save file!"
state = 1
except:
config... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c8fa31a07d27a230d6c516d6c6bb9ea68dd49118 | 09b6791321b907d1142bccfbbd2ee37293e802be | /birthdb.py | 6999ab96a07bf7ec0e4690c6d28db08a20ef6174 | [] | no_license | motionfit/whale-sighting-gae-ready | f5c48821d0a8504b605c91a425a6bdee3fa7a93f | d5494116e8b41a7ad9e07aab7f358cf2aff31a94 | refs/heads/master | 2021-01-11T20:01:35.703274 | 2017-01-19T12:31:08 | 2017-01-19T12:31:08 | 79,450,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from google.appengine.ext import db
class BirthDetails(db.Model):
name = db.StringProperty()
date_of_birth = db.DateProperty()
time_of_birth = db.TimeProperty()
| [
"taparaidhamkih@gmail.com"
] | taparaidhamkih@gmail.com |
0fd1232b94b7356cada32efeaadd592028c4b8f4 | 649fa544cbf60c5f281fba693d3eb0aafcf691f3 | /apps/register/urls.py | be65eb74d72167573ecc170605e1d2260df63b8b | [] | no_license | Kallou0/smartlurning-registration | 55de4b5b043da368bc78020a2c2eeef51d97cc7c | 3c495e58c90312508e07780fde2225d07db006ca | refs/heads/master | 2022-12-15T19:07:44.359410 | 2020-09-10T18:17:23 | 2020-09-10T18:17:23 | 294,484,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from django.conf.urls import url
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('register', views.register, name='register'),
path('login', views.login, name='login'),
path('success', views.success, name='success')
] | [
"nzenzamk@gmail.com"
] | nzenzamk@gmail.com |
09db4be45d5d63793dcd85353daabc9d84d3ac5d | 08ca7028e0488c420fff8c831e9d4fd3e32ee292 | /models/wideresnet.py | 59ba6496518eab9bc92f85bceb9a2459910e4762 | [] | no_license | yogeshbalaji/Adversarial-training | 0ee53fdbef2742788cbbc73ca592738347076fe2 | 3593c836f39c1313545fcc71e5ba8afa6f427326 | refs/heads/master | 2020-07-15T03:00:26.425582 | 2019-09-04T19:59:51 | 2019-09-04T19:59:51 | 205,464,494 | 12 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | from collections import OrderedDict
import torch
from torch import nn
import torch.nn.functional as F
from utils import data_normalize
def init_weight(*args):
return nn.Parameter(nn.init.kaiming_normal_(torch.zeros(*args), mode='fan_out', nonlinearity='relu'))
class Block(nn.Module):
"""
Pre-activated Re... | [
"yogesh22@ramawks95.umiacs.umd.edu"
] | yogesh22@ramawks95.umiacs.umd.edu |
990da46c82a76999fbddaa493ef4ca54ab52a049 | 982321c3b0cd09a47e54a63c922251731e1c07bd | /twoway.py | 92d2dc1c99dd413438b2d7b95b47d3d6d88608f2 | [] | no_license | Trung-IoT2020/IOT-Thi-t-B- | f49bb0ef551327724caf77732d689a8972566bc7 | f803aec9af2b2cb52593eacf2733997d2efb845e | refs/heads/master | 2023-02-05T14:01:22.480756 | 2020-12-31T06:46:27 | 2020-12-31T06:46:27 | 325,436,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | import os
import time
import sys
import paho.mqtt.client as mqtt
import json
import serial
import requests
THINGSBOARD_HOST = '172.16.1.57'
ACCESS_TOKEN = '6pKSfXP7Xas580xnzkpx'
# Data capture and upload interval in seconds. Less interval will eventually hang the DHT22.
INTERVAL=2
ser = serial.Serial(port='/dev/ttyS4'... | [
"vantrungD17.com"
] | vantrungD17.com |
45308f396a473523b83588deb000f8e14411debe | 5c97a3e8e83bb044b42edf32173ca4ac3f0b3afd | /scripts/run_oof_inference.py | 70a2bf377fa0fdce6c518ee88005f4f72e39a432 | [] | no_license | MahdiMohamadi/OAProgression | 6f61afccb6d12af99182bf3550207cecc83c2718 | 8240c306c33d5150696299fc58a8348f71bb0cbe | refs/heads/master | 2020-07-03T22:50:52.062696 | 2019-04-16T05:23:43 | 2019-04-16T05:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | import argparse
import gc
import os
import pickle
import pprint
import cv2
import numpy as np
import pandas as pd
from tqdm import tqdm
from oaprogression.evaluation import tools
cv2.ocl.setUseOpenCL(False)
cv2.setNumThreads(0)
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argumen... | [
"aleksei.tiulpin@protonmail.ch"
] | aleksei.tiulpin@protonmail.ch |
1459c64f2b0faa668eab98a381cf4631a4f046c5 | f51bf78ebea69a0b125a68b427aa7b30b3d4549c | /print_all_links.py | b51f5967b51d7a448894cb9ccdf40f4b4f74d094 | [] | no_license | ariakerstein/Python-Udacity | 9b8449599be2d6e0b232f73b08a34db7a2f614ac | b182072a2734b83e6562be0ff7188ba6e99a737e | refs/heads/master | 2020-06-30T04:13:36.514688 | 2015-01-11T18:35:03 | 2015-01-11T18:35:03 | 29,083,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | def get_next_target(page):
start_link = page.find('<a href=')
if start_link == -1:
return None, 0
start_quote = page.find('"', start_link)
end_quote = page.find('"', start_quote + 1)
url = page[start_quote + 1:end_quote]
return url, end_quote
def print_all_links(page):
while True:
url, endpo... | [
"ariakerstein@gmail.com"
] | ariakerstein@gmail.com |
6db1b3d1edda9e897114c64e57690d551d14479d | 442f8354bd79a3284826beddc68b8f018988ef0f | /app.py | d14a75221c02d686d625ab64973ad578095a3bdc | [] | no_license | arkusuma/ftsearch-server | d311c71c7d4449f03528ac662ce1af0e24c520a6 | 9741c8c8e871081e290ebef73d868b2930f2cb34 | refs/heads/master | 2016-09-06T01:42:42.412964 | 2013-09-19T07:41:13 | 2013-09-19T07:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) 2012, Anugrah Redja Kusuma <anugrah.redja@gmail.com>
Utilization of the works is permitted provided that this
instrument is retained with the works, so that any entity
that utilizes the works is notified of this instrument.
DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
"""
im... | [
"anugrah.redja@gmail.com"
] | anugrah.redja@gmail.com |
f6e400373186312a9fcf3e60bc466491e7ced87f | 780b6cca690a213ac908b1cd5faef5366a18dc4e | /276_newbie_bite/save1_passed.py | 7568b69b77be52f1d12ae46c2c3d5cec4cd7fba1 | [] | no_license | katkaypettitt/pybites-all | 899180a588e460b343c00529c6a742527e4ea1bc | 391c07ecac0d92d5dc7c537bcf92eb6c1fdda896 | refs/heads/main | 2023-08-22T16:33:11.171732 | 2021-10-24T17:29:44 | 2021-10-24T17:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | # Hint: Don't forget the 4 leading spaces to
# indicate your code is within the function.
a = 10
b = 5
def multiply_numbers(a, b):
return a * b
def enter_name():
username = input("What is your name?")
return username | [
"70788275+katrinaalaimo@users.noreply.github.com"
] | 70788275+katrinaalaimo@users.noreply.github.com |
c597b2434ade753840e6bf1086500f102a3f7799 | 5f18d03466732eeb90f0ce8d07b3272161936e2c | /venv/03_asking_questions_v3.py | 693cc36af686f5a1bf71643cf20e4a767f9858e6 | [] | no_license | FrancesMangos/03_quiz_assessment | ddd19064c749ae509881bebcd349a5477fcd795b | 29cdd029a8d441ee1cd1aefe20667980d3523211 | refs/heads/master | 2023-09-02T17:47:59.910894 | 2021-11-15T00:29:16 | 2021-11-15T00:29:16 | 405,781,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | play_game = True
test_list = [["What is the most used streaming service?", "netflix", "disney+", "hulu"],
["What is the smallest planet in our solar system?", "mercury", "venus", "earth"],
["In which country did Lego originate from?", "denmark", "germany", "england"],
["What chas... | [
"magno.franc@awatapu.school.nz"
] | magno.franc@awatapu.school.nz |
e240efd4b800cd678c6f60b6c25898416bff474f | ed84cd95a6aa589cfb995c81c8ccf4aa1f9a0f40 | /apps/main.py | caf814fee0a2d80e12e1ee2a38e64d9b8e7f4d82 | [] | no_license | mchevro/FLASK-JWT | 9f61cb15310b9ecc2b6c6f5c60f81b53d32c4596 | 9e26d81616d26ca4a8fa0277bc272666ed3a4eda | refs/heads/main | 2023-03-29T07:29:18.159956 | 2021-03-31T18:29:47 | 2021-03-31T18:29:47 | 353,452,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | #Source From : https://www.youtube.com/watch?v=e-_tsR0hVLQ
from flask import Flask, jsonify, request, session, render_template, flash, make_response
from functools import wraps
import jwt
import datetime
app = Flask(__name__)
app.config['SECRET_KEY'] = b'_\x00\xc0\x90\x08\x88C\xfb\xf8\x13\xe8\\\xb3\x1f4\x14'
... | [
"noreply@github.com"
] | noreply@github.com |
a2c68ce90de87d5877c312dba618fe1424b344e3 | 00dbe07732fec1d24bc86d436d4f448e3c8494eb | /卫生监督1024.py | c842e6669ae621ebf844f16ee17944920a27ea2d | [] | no_license | fx19870419/WSJD1024 | 263e8614747caa8a160a2724601e436b3660511b | 500c76cb13c9289b0b93c249f003ab2c67293677 | refs/heads/master | 2020-09-06T22:54:04.086110 | 2019-12-05T08:54:20 | 2019-12-05T08:54:20 | 220,581,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,397 | py | import datetime
import time
import os
import shutil
from selenium import webdriver
from selenium.webdriver.support.select import Select
import sys
import openpyxl
#系统环境变量中增加‘C:\\python’
env_path = os.getenv('path') + ';C:\\python'
os.environ['Path'] = env_path
#获取yyyymm
yyyymm = input('请输入数据年月(格式yyyy-mm),当月请直接按回车键:'... | [
"fx19870419@163.com"
] | fx19870419@163.com |
e2e10c2c8149bfa47b105a6177f72db01b0f512a | 7961640734faa157c4e55e5a5a68142a09dc5b24 | /12_return_statement.py | a838d889734fcbaa572938d4f69805034e3ab75c | [] | no_license | SergoMartynov/python-course-mikedane | b0ed8e0a61342da8972714c59585e00c9beb0361 | 8dcd9aba18c05f99dbae637631d4e9372ee3d163 | refs/heads/master | 2022-12-09T02:34:10.294095 | 2020-09-11T12:44:52 | 2020-09-11T12:44:52 | 294,692,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | def cube(num):
return pow(num, 3)
result = cube(3)
print(result)
| [
"sergo.martynov@gmail.com"
] | sergo.martynov@gmail.com |
6c2d3a9bb2d2d44039b292add4f1df3997783e1e | 554c17471f288f92d9ff98d0ee60b6d283832c77 | /WarGexe 0.0.4.py | bfe2d2d7b109875e844a3148c6b67d03d5a65776 | [] | no_license | EdouardVincent/WarGame | bf911a580c1b88bb131021c9857fdba1f08e9b1f | 5501f7bbbf45de43f28eb4dab615a0538cccfebe | refs/heads/main | 2023-08-29T04:34:14.485509 | 2021-11-01T12:23:17 | 2021-11-01T12:23:17 | 423,443,977 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,897 | py | #WarGame
import pygame, sys, time, random
from pygame.locals import *
pygame.init()
pygame.mixer.init()
nb_joysticks = pygame.joystick.get_count()
#Et on en crée un s'il y a en au moins un
if nb_joysticks > 0:
joystick = pygame.joystick.Joystick(0)
joystick.init() #Initialisation
fen... | [
"noreply@github.com"
] | noreply@github.com |
485ad8e6baaed3e0c1597b50422b67fef5348a91 | 6c224dd1fe33d69bbbf9241ebc0b8aecc238f654 | /eval_kinetic_models/exceptions.py | 1f3a313487c4f4b1a5b253d1911b4086aee4b6d5 | [
"MIT"
] | permissive | Lyle-zhang/eval_kinetic_models | 4ca39c06ab408355ad5e26fcc6e108f91200ba28 | 186980a78c618c8887c7188915da156adf50235e | refs/heads/master | 2021-01-18T17:12:29.761079 | 2016-03-10T01:17:58 | 2016-03-10T01:17:58 | 53,903,934 | 0 | 1 | null | 2016-03-15T01:13:47 | 2016-03-15T01:13:47 | null | UTF-8 | Python | false | false | 1,204 | py | """Exceptions for ReSpecTh Parser.
.. moduleauthor:: Kyle Niemeyer <kyle.niemeyer@gmail.com>
"""
class ParseError(Exception):
"""Base class for errors."""
pass
class KeywordError(ParseError):
"""Raised for errors in keyword parsing."""
def __init__(self, *keywords):
self.keywords = keywords... | [
"kyle.niemeyer@gmail.com"
] | kyle.niemeyer@gmail.com |
e34145873aede1b65f5e55265e1505cc6bde3391 | 387cf5f72ed6679a4d9e04bddd16998a190c4caf | /problems/programmers/lv3/pgs-67258-sweep-slow.py | 6a3ef6ae150570c9680bfdc5e53635a2e6635517 | [] | no_license | CodyBuilder-dev/Algorithm-Coding-Test | db4ee1e7565fbcef3140192225167eff42ad5c02 | cca5c4ba8bc31679ab00aceccfd8d9d39c232f72 | refs/heads/master | 2021-07-24T00:34:41.888289 | 2021-07-21T14:29:00 | 2021-07-21T14:29:00 | 219,123,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | """
제목 :보석 쇼핑
아이디어 :
"""
def solution(gems):
s = set(gems)
hash = {}
#interval_list = [] # 리스트에 넣고 저장
best_answer = [123456,456789]
for i,gem in enumerate(gems):
if gem not in hash:
hash[gem] = 0
hash[gem] = i
if len(hash) ==len(s):
temp_answer = [mi... | [
"imspecial1@u.sogang.ac.kr"
] | imspecial1@u.sogang.ac.kr |
2652a081fa0c39d0a95dd3dcfb026c1471796d73 | c6c17fc7c7de104017ebada385e1d26861239ca7 | /treetraversal.py | ecb517564170c553c6fec804d2c8ef67be0c39c5 | [] | no_license | shrikantnarvekar/Algorithims-and-Data-Structures | d7f5c1ba41616eb5d16ea1ccf34332020e031411 | 9525958d4b7f6434e72ffa4316c96039c012ab5c | refs/heads/master | 2020-03-07T22:13:23.035833 | 2018-04-02T11:43:57 | 2018-04-02T11:43:57 | 127,748,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | class Mytree:
def __init__(self,data):
self.left = None
self.right = None
self.data = data
def inOrder(root):
if root:
inOrder(root.left)
print (root.data)
inOrder(root.right)
def preOrder(root):
if root:
print (root.data)
preOrder(root.l... | [
"noreply@github.com"
] | noreply@github.com |
790f7806b7f537150ccb4a127bd799627afad0e4 | 1f8344813458f669bdf77059220290a3b2a3cdd0 | /tutorials-docs/thinking-in-coroutines/8_run_in_default_executor.py | 81a53d28f3690104d9512aac1b837e073a2f0b81 | [] | no_license | gridl/asyncio-study-group | 7c03e8640070ebe8d1103f27bc3c3da37a5a661f | 1ba9cf90e21b5174518032d467e89526da219576 | refs/heads/master | 2020-07-02T07:03:12.364097 | 2017-12-26T20:55:09 | 2017-12-26T20:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import time
import datetime
import asyncio
def blocking_call(seconds):
print(seconds, datetime.datetime.now())
time.sleep(seconds)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.call_later(5, loop.stop)
for i in range(1,4):
#по умолчанию используется concurrent.futures.T... | [
"nataliya.samoylenko@gmail.com"
] | nataliya.samoylenko@gmail.com |
f648c8693ae1b2a639ae03c0646405a290ec3a8d | e697bb1dd2c96049225b1615df8c613b8c366489 | /LPI/Unidade 03/Aula08.py | 0883f63fe29c073a3be63b6c83c9c4e410d882a8 | [] | no_license | zTaverna/Cursos-Python | 9a4f67091c26e59ed0cb1534e72bc855688beb9b | 28c089229c9b63b2f6739fe52646c6d154a2adc8 | refs/heads/main | 2023-05-08T15:51:15.331995 | 2021-06-04T20:27:08 | 2021-06-04T20:27:08 | 365,034,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | def media(n1,n2,n3):
media=(n1+n2+n3)/3
print(media)
num1=int(input('Digite um número: '))
num2=int(input('Digite um número: '))
num3=int(input('Digite um número: '))
media(num1,num2,num3)
| [
"noreply@github.com"
] | noreply@github.com |
223935c2c586bfc9888c7a7f122c4d47be11ce5d | d2d879e7ec46665e01932bbbd2ff113f381089b8 | /tipe_source_geogeo/main2.py | 69366ac85a70fee1158fc567317e567a37876db7 | [] | no_license | theolavigne/TIPE | 320f2e641143b2373e033485d99890ab51ccea6f | 86c52a266c4a556475acd56d8c0175f6e6b56860 | refs/heads/master | 2023-01-24T00:33:24.041888 | 2020-12-04T09:29:35 | 2020-12-04T09:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,198 | py | from random import *
import matplotlib.pyplot as plt
N = 10 #taille de la ville
n = 3 #nombre de caserne
Ville = [[[i,j] for i in range(N)] for j in range(N)] #ville
class caserne():
def __init__(self):
self.x = randint(0,N-1)
self.y = randint(0,N-1)
def nexplace(self,x,y):
self.x = x... | [
"noreply@github.com"
] | noreply@github.com |
ac560db83517e5922bce87d453c58192843352b6 | 0e822323071d972c4a2a8b3c4e778a9144b2b5b4 | /tests/unit/extractor/restapi/test_rest_api_extractor.py | f1fd97f5a3e6752c6f85a56e4adba19bbfa509b4 | [
"Apache-2.0"
] | permissive | duyet/amundsendatabuilder | f3bed53c93d19bfda5ae7df1bd456214e442012f | 21a763add3c00c34b4f4c2d9809f59e50fb264c8 | refs/heads/master | 2023-04-09T05:08:07.816951 | 2020-07-01T16:34:56 | 2020-07-01T16:34:56 | 277,763,943 | 0 | 0 | Apache-2.0 | 2023-04-03T23:05:59 | 2020-07-07T08:43:44 | null | UTF-8 | Python | false | false | 1,746 | py | import unittest
from pyhocon import ConfigFactory # noqa: F401
from databuilder.extractor.restapi.rest_api_extractor import RestAPIExtractor, REST_API_QUERY, MODEL_CLASS, \
STATIC_RECORD_DICT
from databuilder.models.dashboard.dashboard_metadata import DashboardMetadata
from databuilder.rest_api.base_rest_api_que... | [
"noreply@github.com"
] | noreply@github.com |
ac52931b05105e9c8f60e324e6789180322f2fba | 54f14725bd2d8192583f20136293b6604e781641 | /store_io/migrations/0013_auto_20190508_2241.py | 86055527086063123e5b55de8366e0bf547f6be7 | [] | no_license | ViktorPetreski/StoreIO | 92e093514b8d05f7093c9dddc4e10b60b8e46150 | 3fd59c223efe5e094af7df27ac8b2d554cfeb2b6 | refs/heads/master | 2022-11-22T19:47:02.734528 | 2019-12-24T17:31:10 | 2019-12-24T17:31:10 | 229,988,248 | 0 | 0 | null | 2022-11-22T03:59:43 | 2019-12-24T18:29:07 | Python | UTF-8 | Python | false | false | 530 | py | # Generated by Django 2.2 on 2019-05-08 20:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store_io', '0012_auto_20190507_1529'),
]
operations = [
migrations.RemoveField(
model_name='storeproductquantity',
nam... | [
"vpetreski96@gmail.com"
] | vpetreski96@gmail.com |
e24667856f38a278bffc70cfe8227a4e542ff4b2 | 059c5275226104883e2665fde2a40303f864203c | /utils/metrics.py | 2f626f66127c0a7752cac7f22565eae0f4e340c2 | [
"MIT"
] | permissive | marcelo-santos-12/lbp_paper | e54f873720c48100c5685f6a794b553e2af29ecd | 56d2457dce2c97a16de9e034b1a87ef0ceb9446a | refs/heads/main | 2023-03-05T05:06:48.498206 | 2021-02-21T17:36:34 | 2021-02-21T17:36:34 | 340,678,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | '''
Modulo que implementa o GridSearch
'''
import numpy as np
import os
from itertools import product
from sklearn.metrics import (roc_curve, f1_score, auc,
accuracy_score, matthews_corrcoef,
confusion_matrix)
from sklearn.metrics._plot.base import _get_response... | [
"marcelo@debian-marcelo.debian"
] | marcelo@debian-marcelo.debian |
5911a202cf08140b09bab95aaf2d07223a3a2e73 | 07889fa5be5aab8fbdb7eacb35bcaf51b550c9f9 | /refactor_scripts/manufacturer_prefix.py | 8287382fcfd6d9fcea2fec1620ea5bfd722a5a7f | [
"Apache-2.0"
] | permissive | rcbuild-info/scrape | 5615d8ffca9b03a7998c708203940a2b2aca7e00 | 88376e26b6465546996e71a78843c91cd05961d3 | refs/heads/master | 2020-12-29T01:30:26.537906 | 2015-11-23T06:08:02 | 2015-11-23T06:08:02 | 35,204,077 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | #!/usr/bin/python
import os
import os.path
import sys
import json
def stripManufacturerPrefix(manufacturer, destinations, test = False):
correct = manufacturer
if ":" in manufacturer:
s = manufacturer.split(":")
manufacturer = s[0]
correct = s[1]
for destination in destinations:
if not os.path.... | [
"scott.shawcroft@gmail.com"
] | scott.shawcroft@gmail.com |
80fd86660bc0bee2c434abb54b4cbfa9ef7f9be7 | dbfc8ca4dbdef6002b0738dd4c30d569eb9e36c3 | /imetadata/database/base/dml/__init__.py | a6be46c1871dc8b7d257b2735654be33a8be0ce4 | [] | no_license | GISdeveloper2017/imetadata | da32e35215cc024a2e5d244ee8afc375c296550d | 58516401a054ff0d25bfb244810a37838c4c8cf6 | refs/heads/master | 2023-03-26T06:38:28.721553 | 2021-03-06T09:32:06 | 2021-03-06T09:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | # -*- coding: utf-8 -*-
# @Time : 2020/11/23 21:11
# @Author : 王西亚
# @File : __init__.py.py
| [
"wangxiya@me.com"
] | wangxiya@me.com |
9de698aabcd24e0d8e7b125ea53adbb5167b3d8b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02394/s366374910.py | 34d6b2cc6782e5002623f9419f9f8a358a2dd94e | [] | 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 | 142 | py | w, h, x, y, r = map(int, input().split())
if 0 <= (x-r) and (x+r) <= w and 0 <= (y-r) and (y+r) <= h:
print("Yes")
else:
print("No")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
95f93a3b553112932f685d0062512d329d20bfb9 | 4b40a5126bc5728282542bf7b2fd70d5425433c7 | /rovorweb/rovorweb/settings_shared.py | d83da6afeebfe641084704acfa444ecadbcb74ee | [] | no_license | DerHabicht/RedROVOR | 9d33bc1ac568169bea5c8b3a8ee4209b65b94413 | 17a19dea7c3033b9adaec614983e703f5bc9e8ba | refs/heads/master | 2020-03-09T09:38:11.873128 | 2013-08-14T04:20:18 | 2013-08-14T04:20:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,918 | py | # Django settings for Rovor project.
import os
PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__)) #get the directory of the project, up two levels
ADMINS = (
('ROVOR-admin', ''),
)
MANAGERS = ADMINS
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/L... | [
"astrothayne@gmail.com"
] | astrothayne@gmail.com |
c52ffa502f70e56cd01b3beb435cf4271d9274d0 | 3fe3da509f1899d7ae5116c6ee1cafb22699e21d | /naivebayes.py | 24caa0dfc5007700464fc7fa3c8c57a8cb762f63 | [] | no_license | tinawu-23/binary-classification-models | 64757cc03024bf617598ecd22e362aa33198f2e8 | e4f64b61baa6332aec328f73b233ce4d079cea8e | refs/heads/master | 2020-03-30T00:15:29.534837 | 2018-09-27T18:17:28 | 2018-09-27T18:17:28 | 150,513,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | #!/usr/bin/env python3
import pandas as pd
# read training data
df = pd.read_csv('Dataset-football-train.txt', sep='\t', lineterminator='\n')
df_features = df[['Is_Home_or_Away','Is_Opponent_in_AP25_Preseason','Media']]
# P(Lose) P(lose)
l,w = df.groupby('Label').size()
pl = l / (l+w)
pw = w / (l+w)
# P(feature)
fea... | [
"tinawu.nd23@gmail.com"
] | tinawu.nd23@gmail.com |
4821c274eca3dedfa79f027f183fccf8e8699689 | a7a0dc5d5e6f8e61cd9729dcb79ee191edf4ee4b | /Week-1/AplusB.py | edd08978f5416aac11d4e295965ac481138d49af | [] | no_license | bvchand/algorithmic-toolbox | 857904bf6c14b5f3f5f3d33a739ed33b9a6985e2 | 935211ea22b1d429190a26fec95516691a358760 | refs/heads/main | 2023-01-06T15:35:24.635505 | 2020-11-04T21:13:58 | 2020-11-04T21:13:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | #python3
# a, b = input().split()
a = input().split()
print(a)
# s = int(a) + int(b)
# print(s) | [
"65008811+bvchand@users.noreply.github.com"
] | 65008811+bvchand@users.noreply.github.com |
8ba3ca416a5d385c1158274f46e71ad3750148eb | e7af30370e277b459e1c49edcc0562d5b5c32abc | /Learning_ScikitLearn/Model/Linear_Classification/LogisticRegression_Classification.py | 68bb53cef0d25d1f7959af186211991c7beda251 | [] | no_license | justgolikeme/My_MachineLearning | 208ab766478662cf36ffa7f9202fed0ad6f0ad28 | 948a84684a2a6f1c9e613948ed246062468016bd | refs/heads/master | 2022-05-13T05:02:48.488269 | 2020-01-03T07:27:50 | 2020-01-03T07:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | # -*- coding: utf-8 -*-
# @Time : 2019/12/16 15:55
# @Author : Mr.Lin
'''
用于分类的线性模型
线性模型也广泛应用于分类问题。我们首先来看二分类。这时可以利用下面的公式进行
预测:
ŷ = w[0] * x[0] + w[1] * x[1] + …+ w[p] * x[p] + b > 0
这个公式看起来与线性回归的公式非常相似,但我们没有返回特征的加权求和,而是为预
测设置了阈值(0)。如果函数值小于 0,我们就预测类别 -1;如果函数值大于 0,我们就
预测类别 +1。对于所有用于分类的线性模型,这个预测规则都是通用的。同样,有很多种
不同的方... | [
"2669093302@qq.com"
] | 2669093302@qq.com |
98e5d278e93ebbab8df9de68cc59178ebac7ddb8 | e04d81ee1b4b3f7b768677fa3c75d96e0188dd7a | /Delaunay_Triangulation/Old_Stuff/PointSet.py | f1d2197a634990a54c85b320c850d9e12d0e9344 | [] | no_license | tanneryilmaz/Numerical_Simulations | e82ce5b357c2701dc0c790a60ad04fb0e50332d1 | 5d79b3c6397e0d1877948144af5affc9c19cf95e | refs/heads/master | 2020-05-15T10:47:03.679806 | 2019-04-28T20:50:49 | 2019-04-28T20:50:49 | 168,756,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import numpy as np
def generate_rand_points(dimension_amplitudes, num_points):
num_dimensions = len(dimension_amplitudes)
points = np.random.rand(num_points, num_dimensions)
#this loop scales each dimension
for i in range(num_dimensions):
points[:, i] *= dimension_amplitudes[i]
... | [
"tannerisyilmaz@gmail.com"
] | tannerisyilmaz@gmail.com |
7ad47d35b8b6d618120876ea81cee10cd4498f0f | 329b48089c64ebefe78d52f1c71c73bdadadd4b4 | /ML/m02_3_xor.py | f054586220c6b7e9e2f5ec6da088dfde56b25a5d | [] | no_license | variablejun/keras__R | 7f854570952ed97c48715047015786d873e512cb | 9faf4814b46cda1ac0ddbf2a2f8236fa0394f144 | refs/heads/main | 2023-07-13T19:32:25.950500 | 2021-08-22T18:26:52 | 2021-08-22T18:26:52 | 398,870,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from sklearn.svm import LinearSVC
import numpy as np
from sklearn.metrics import accuracy_score
#1 data
x_data = [[0,0],[0,1],[1,0],[1,1]]
y_data = [0,1,1,0]
#2 model
model = LinearSVC()
#3 fit
model.fit(x_data,y_data)
#4 평가
y_predict = model.predict(x_data)
print(x_data,' 의 예측값 : ',y_predict)
results= model.s... | [
"crescendo0217@gmail.com"
] | crescendo0217@gmail.com |
8d17d63a7dd29b178320358d7e33a6579f81462f | 747008e6f3cc4c3a84f5324dcbe3bb633e2ad429 | /ticket_management/doctype/schedular_events/test_schedular_events.py | cb172b90641e14269427fa980fa740df6cc66621 | [] | no_license | anulakshmiv/ticket_management | f711301251bcdf5644dd3da3d33d2888cd671277 | 6f9f415151c3024aeb9b04819101911291c1fd0a | refs/heads/master | 2023-01-03T12:22:44.087365 | 2020-10-27T04:47:57 | 2020-10-27T04:47:57 | 306,605,397 | 0 | 0 | null | 2020-10-27T06:11:39 | 2020-10-23T10:39:20 | Python | UTF-8 | Python | false | false | 237 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Momscode Technologies Pvt.Ltd and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestSchedularEvents(unittest.TestCase):
pass
| [
"anulakshmiv123@gmail.com"
] | anulakshmiv123@gmail.com |
2660b0414dcfc91fedbe970131fbcd2163477d60 | 637baf7ba30ea3ee8f318163a784c46797d424e6 | /third_party/FasterRCNN/FasterRCNN/utils/box_ops.py | ecaa19e0ba82ee8f2eada2318a6783a351982165 | [
"Apache-2.0"
] | permissive | strongwolf/ssl_detection | 8ad9e32d389727a7e3d8e488fad2f01ad874a61b | c60809ab0bbfcf3c3695b0be44dd4c7ac36b2dc8 | refs/heads/master | 2022-11-03T17:30:52.495216 | 2020-06-17T09:41:38 | 2020-06-17T09:41:38 | 272,935,568 | 0 | 0 | Apache-2.0 | 2020-06-17T09:41:54 | 2020-06-17T09:41:54 | null | UTF-8 | Python | false | false | 1,952 | py | # -*- coding: utf-8 -*-
# File: box_ops.py
import tensorflow as tf
from tensorpack.tfutils.scope_utils import under_name_scope
"""This file is modified from https://github.com/tensorflow/models/blob/master/object_detection/core/box_list_ops.py"""
@under_name_scope()
def area(boxes):
"""
Args:
boxes: nx4... | [
"zizhaoz@google.com"
] | zizhaoz@google.com |
706738bb2921c057b3622f10b82c723cd8f877d7 | b69b69edcf3c2ef4ffed200d6982cfe0ce9678c8 | /1_elonvsjeff/resize.py | 6eef8a783a19a28709147fdf5366ee30946eaea3 | [] | no_license | Roboramv2/Python-games | a21525d10bdf0d7ac75fdc93b0dec5461114ca67 | c5c60ca2d331d4801f668a49a029092eaa0d14e9 | refs/heads/main | 2023-07-14T18:11:03.945349 | 2021-08-20T04:33:46 | 2021-08-20T04:33:46 | 381,820,187 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import cv2
name = './assets/desboss.png'
new = cv2.imread(name)
new = cv2.resize(new, (64, 64))
cv2.imwrite('./assets/desboss.png', new) | [
"sriramkraja@gmail.com"
] | sriramkraja@gmail.com |
2dbd988ce6fdc9cdd5bc1c7f8d948b0ac97b8516 | 469fad5f90e8d11c018fde9a7a6c44014a16f37e | /etl_part | 437d4060131923a1060058895e6280c5a894d828 | [] | no_license | andrewlin0/ETL_Pipeline_Part_DS3002 | bb59fc08a827f6b56801754375ca1e4e02f75d29 | 7dd7570a4f26afb30e842b0849c7a40b78cdb7fe | refs/heads/main | 2023-04-15T01:05:07.593146 | 2021-04-29T15:08:18 | 2021-04-29T15:08:18 | 356,676,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,031 | #!/usr/bin/python3
import sys
import getopt
import csv
import json
import requests
import pandas as pd
import kaggle
import os
# Operation 1: Fetching from remote
def fetch_from_kaggle(user, title, folder_name):
try:
# Authenticate to use Kaggle API
kaggle.api.authenticate()
# Download th... | [
"noreply@github.com"
] | noreply@github.com | |
e62d3fc22e691fd90a2e493aa90f107c9561d19d | 0d7d08cd2cfa8f3330c12d87e00eaba0563bbffc | /demo/yuanliang/facebook/fetchCampaign.py | f380fc31401509e17a9eb434dd1a98b423bf2240 | [] | no_license | tanmillet/py-ws | b1997f15a2f202dfcad04c8f6506c1754586bc19 | 177d4007abe26e63d1d58bbc624164fd86d382f9 | refs/heads/master | 2020-03-27T17:07:08.209291 | 2019-01-01T06:45:54 | 2019-01-01T06:45:54 | 146,829,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,634 | py | from facebook_business.adobjects.campaign import Campaign
from facebook_business.adobjects.adsinsights import AdsInsights
from datetime import datetime
from publicConfig import BasicConfig as cfg
class GetCampaigns():
def __init__(self, adaccount, model):
self.adaccount = adaccount
# self.dbconfig... | [
"tanchongtao@stosz.com"
] | tanchongtao@stosz.com |
e2f80ae63c842ab915e70054164ea7ef16f417b2 | 15fb62305a2fa0146cc84b289642cc01a8407aab | /Python/119-pascalTriangle2.py | ca82b9b5ce299755fd88d42d79285542b566e463 | [] | no_license | geniousisme/leetCode | ec9bc91864cbe7520b085bdab0db67539d3627bd | 6e12d67e4ab2d197d588b65c1ddb1f9c52a7e047 | refs/heads/master | 2016-09-09T23:34:03.522079 | 2015-09-23T16:15:05 | 2015-09-23T16:15:05 | 32,052,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from math import factorial
class Solution:
# @param {integer} rowIndex
# @return {integer[]}
def getRow(self, rowIndex):
res = []
f = factorial
n = rowIndex
for k in xrange(rowIndex + 1):
res.append(f(n) / f(k) / f(n - k))
return res
if __name__ ... | [
"chia-hao.hsu@aiesec.net"
] | chia-hao.hsu@aiesec.net |
9d79f133ae46df0a2a814949bc56bb9b67709332 | 92754bb891a128687f3fbc48a312aded752b6bcd | /Algorithms/Python3.x/836-Rectangle_Overlap.py | 109710852b3db1879f46f641e56714e64efbeca6 | [] | no_license | daidai21/Leetcode | ddecaf0ffbc66604a464c3c9751f35f3abe5e7e5 | eb726b3411ed11e2bd00fee02dc41b77f35f2632 | refs/heads/master | 2023-03-24T21:13:31.128127 | 2023-03-08T16:11:43 | 2023-03-08T16:11:43 | 167,968,602 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # Runtime: 32 ms, faster than 89.53% of Python3 online submissions for Rectangle Overlap.
# Memory Usage: 13.9 MB, less than 8.33% of Python3 online submissions for Rectangle Overlap.
class Solution:
def isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:
return rec1[0] < rec2[2] and rec... | [
"daidai4269@aliyun.com"
] | daidai4269@aliyun.com |
797df30fb9b58c8d6901190b1bb85519f459c80e | 7b85069a6088991ab15f558696bd008acb20364d | /plotting/ttbarCR_DataVsMC.py | 7e5d09da0efc2294e85c13e1124f95f6af0047c7 | [] | no_license | patrickbryant/XhhCommon | e6235f5ff09d3aa95137f22d556323b42061711b | 791b9964a20bfc05253810793c08b76d908e0046 | refs/heads/master | 2020-04-20T22:30:45.516683 | 2019-02-04T20:15:38 | 2019-02-04T20:15:38 | 169,142,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,886 | py | # Calculate e from different inputs
import ROOT
import array
binDict = {}
binDict["Pt"] = [125,150,175,200,225,250,300,400,700]
binDict["Eta"] = [-2.5,-1.5,-1.0,-0.5,0,0.5,1.0,1.5,2.5]
binDict["leadJet_Pt_m"] = [0,100,125,150,175,200,300,400]
binDict["sublJet_Pt_m"] = [0,40,60,80,100,150,400]
def parseOptions():
... | [
"patrickbryant@uchicago.edu"
] | patrickbryant@uchicago.edu |
51a4ec40ea713aa652fab9745f8e256f3a957ce0 | b2e342b8161a8ff02ab26b53ce42e3ca01118fad | /mathematics/combinatorics/ncr_table.py | 74eed4404a9b3663f17ab6bdf68a58f23e576d69 | [] | no_license | Eppie/hackerrank | b62541184ed919c80f647afbc89d6f428fdaed82 | d6e44170d1ec6668e5c00df5dd613295d8154d2e | refs/heads/master | 2020-06-12T10:42:53.672658 | 2016-12-12T04:28:34 | 2016-12-12T04:28:34 | 75,587,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | def choose(n, k):
if 0 <= k <= n:
ntok = 1
ktok = 1
for t in range(1, min(k, n - k) + 1):
ntok *= n
ktok *= t
n -= 1
return ntok // ktok
else:
return 0
for _ in range(int(input())):
n = int(input())
c = ' '.join([str(choose(n, ... | [
"aepstein@udel.edu"
] | aepstein@udel.edu |
bfb211f64cb26ced576000456975b8ac4e62ba43 | dab869acd10a3dc76e2a924e24b6a4dffe0a875f | /Laban/build/bdist.win32/winexe/temp/numpy.core.operand_flag_tests.py | abe53bfc427cda30a4fdef6d870c6ffe58b6c013 | [] | no_license | ranBernstein/Laban | d82aff9b0483dd007e03a06e51f7d635f62ed05d | 54c88afa9493deacbdd182904cc5d180ecb208b4 | refs/heads/master | 2021-01-23T13:17:51.777880 | 2017-02-14T09:02:54 | 2017-02-14T09:02:54 | 25,508,010 | 3 | 1 | null | 2017-02-14T09:02:55 | 2014-10-21T07:16:01 | Tcl | UTF-8 | Python | false | false | 379 | py |
def __load():
import imp, os, sys
try:
dirname = os.path.dirname(__loader__.archive)
except NameError:
dirname = sys.prefix
path = os.path.join(dirname, 'numpy.core.operand_flag_tests.pyd')
#print "py2exe extension module", __name__, "->", path
mod = imp.load_dynamic(__... | [
"bernstein.ran@gmail.com"
] | bernstein.ran@gmail.com |
187bd878dceba2676d7199c3b1f337090f34e18f | 883977455c283fad7786f828fa7267da0a03bedd | /src/helpers/errorHandler.py | 7b9d21d22a5997fb8bac2b15aa6179b581c29c38 | [] | no_license | DavEst91/IH-W6-Chat-Sentiment-Analysis-service | 3c8f143a2a2f0aa876bec2e3ae16cdf5b5f42205 | 77c14c3acb2d8be865550730da38a640c869f06c | refs/heads/master | 2022-05-26T12:42:53.088457 | 2020-05-04T09:21:24 | 2020-05-04T09:21:24 | 260,218,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class APIError(Exception):
statusCode = 500
class Error404(Exception):
statusCode = 404
def errorHandler(fn):
def wrapper(*args,**kwargs):
try:
return fn(*args,**kwargs)
except Exception as e:
print(e)
return {
"status":"error",
... | [
"davidestebanmendoza@gmail.com"
] | davidestebanmendoza@gmail.com |
6c1293f5580f3019be940ec4e5b0a47a4f2148e7 | 3581255131ff134fe77a11703b417623d6de1086 | /Undo_Redo-Stack.py | 065cfc0d192ebd8d14ad9fdb039fd1401dd8e37e | [] | no_license | hemant110800/Python-Data-structure-Applications-implementation- | 3452acb474ae80e35b8b7e89849978fb2f1f74fb | 59715ee599bcaffbd4adff2e3eff8e9eb3fabc23 | refs/heads/master | 2022-04-15T11:45:04.138165 | 2020-04-11T10:40:38 | 2020-04-11T10:40:38 | 254,845,052 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | class Stack:
def __init__(self,max_size):
self.__max_size=max_size
self.__elements=[None]*self.__max_size
self.__top=-1
def is_full(self):
if(self.__top==self.__max_size-1):
return True
return False
def is_empty(self):
if(self.__top==... | [
"noreply@github.com"
] | noreply@github.com |
b417569a701914b13050a450dfb4e9d8d98231f5 | 59cdb8b3995ee5938dc4710e32f29ac273410265 | /firing_analyses/unit_response_characterization/gather_psths.py | a170cd2c1a9f45a1da9d668f911611f166dfb215 | [] | no_license | abuzarmahmood/firing_space_plot | 15ff667fada8f4e985a6a6c6f31261b72b0f4b60 | 9fe925d9b443fda96d8e23d6d2d2d2aa60b08f15 | refs/heads/master | 2023-07-25T01:39:31.942434 | 2023-07-15T14:24:38 | 2023-07-15T14:24:38 | 139,602,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,390 | py | """
Go through all specified files and generate PSTHs
for GC and BLA neurons to save in a consolidated location
For each neuron, also calculate discriminability and palatability correlation
"""
########################################
# ___ _
#|_ _|_ __ ___ _ __ ___ _ __| |_
# | || '... | [
"abuzarmahmood@gmail.com"
] | abuzarmahmood@gmail.com |
a7556063e49aff2dda7e2b3cc964e43037048d34 | 6cb1d8f1416af7b7c5c83ab35cb6928ea9955aff | /ch07/rnnlm_gen.py | a30f1107227f403e0e15f919e3f9b09e39193409 | [] | no_license | lee-saint/practice-nlp | f68ccc3140f725f3edcd7048c324b847583b7f20 | 19003fcd5f55f4f110417a3950a32bb5fba1850c | refs/heads/master | 2020-12-01T20:05:15.014495 | 2020-01-21T09:22:18 | 2020-01-21T09:22:18 | 230,750,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | import numpy as np
from common.functions import softmax
from ch06.RNNLM import Rnnlm
from ch06.better_rnnlm import BetterRnnlm
from dataset import ptb
class RnnlmGen(Rnnlm):
def generate(self, start_id, skip_ids=None, sample_size=100):
word_ids = [start_id]
x = start_id
while len(word_ids... | [
"plutorian131@gmail.com"
] | plutorian131@gmail.com |
e2a87d9fe95c8083628a16c93827ac0004484eeb | 1aa6d82ed86b45ed6d890df806ba2d4856b5799c | /create_lambda_function.py | 69d3dc1ae37d31f052ab91d0b5803cebc2188c08 | [] | no_license | SCEDC/pds-lambda-example | e7dd959af27948003e2c3ca7da07b6581601df03 | e6b83e7fbb7194aa4de37919676c658d1e91d641 | refs/heads/master | 2020-07-21T13:08:32.420625 | 2019-12-20T23:50:57 | 2019-12-20T23:50:57 | 206,875,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # In this example, we have a file named `credentials` in a `.aws` directory.
# e.g.:
# $ cat ~/.aws/credentials
# [lambda-invoker]
# aws_access_key_id = EXAMPLEACCESSKEY
# aws_secret_access_key = EXAMPLESECRETACCESSKEY
import boto3
# Auth to create a Lambda function (credentials are picked up from above .aws/credenti... | [
"schen@gps.caltech.edu"
] | schen@gps.caltech.edu |
cde96ba8bed0f8a27d9a27fc09c79f90b37b0093 | 4781d9293b59a5072647bb179195b143c60621bd | /백준/3190_뱀/3190_뱀.py | 466985fd6c7408c5d7d548c56da8c4c1f93da5da | [] | no_license | chriskwon96/Algorithm_codes | bf98131f66ca9c091fe63db68b220527800069c9 | edb7b803370e87493dad4a38ee858bb7bb3fd31d | refs/heads/master | 2023-08-15T18:48:26.809864 | 2021-10-12T13:43:21 | 2021-10-12T13:43:21 | 387,803,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | di = [0, -1, 0, +1]
dj = [+1, 0, -1, 0]
N = int(input())
matrix = [[0]*N for _ in range(N)]
K = int(input())
for _ in range(K): #사과위치 1로 지정
i, j = map(int, input().split())
matrix[i-1][j-1] = 1
L = int(input())
q = [(0,0)] #뱀 몸
X1, k, cnt = 0, 0, 0
flag = 1
for _ in range(L):
X, C = input().split()
fo... | [
"chriskwon96@naver.com"
] | chriskwon96@naver.com |
2229b47fc55272836e95e04921e5b28ecd842fee | 793bf54af217556ec77a706fd018e74f8d642f71 | /Recurrence_relation.py | 66aedef715ad021f9df95280438399ff073b64bc | [] | no_license | EmmaTrann/Recurrence-Relations | bf28814f62aee8c3c88a2d1c6dbd39954703c915 | 456e42d748834cb73d6870e29581d4ac4d5d1b2f | refs/heads/main | 2023-05-31T19:41:16.971340 | 2021-06-10T09:14:49 | 2021-06-10T09:14:49 | 373,629,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | import numpy as np
import math
import matplotlib.pyplot as plt
#evaluateRecurrence
def evaluateRecurrence(myfunction, nvec):
value = myfunction(nvec)
return value
#Merge sort
def mergecost(n):
#Base case
if (n<2):
value = 0;
else:
value = 1 + 2*mergecost(n/2) +n
return valu... | [
"noreply@github.com"
] | noreply@github.com |
a25c1018a88e0e7ecb8fa25ef9b010dfaddd4a57 | 5baac75b696f83144df384d405871184b5c29ddb | /Python/MyTestApp/Display_des.py | 0937c6907ac54d67a834623078016c1c3a9ba052 | [] | no_license | xz2275/Chad2 | bc424a85a7b0da9e023d2d03687b7e4fe1758e4c | 42b7b620ba06e7238a2fceddef7c54220145b0bd | refs/heads/master | 2020-05-17T08:27:26.073105 | 2013-05-07T15:50:13 | 2013-05-07T15:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | # ===============================
seriesID = 'GDPC1'
des_file = seriesID + '_des.txt'
# ================================
with open(des_file, 'r') as fr_des:
for line in fr_des:
print line
fr_des.closed
| [
"carolz1207@gmail.com"
] | carolz1207@gmail.com |
f01a840f95bb39e07a686de1c1808c42acd6b7d6 | b277ca06cb0c33635e31928a3643c85f67623af4 | /buildenv/lib/python3.5/site-packages/sphinx/ext/graphviz.py | 54659484351c1a12cbe419b1d165e5f7cb9d8724 | [
"LicenseRef-scancode-public-domain",
"CC-BY-4.0"
] | permissive | angrycaptain19/container-camp | a3e5c9b9f130776c842032148fcdba094bc0da8f | b0b14fe30aee310cb3775c1491d5b6304173936b | refs/heads/master | 2023-03-12T18:04:13.700249 | 2021-03-01T23:02:30 | 2021-03-01T23:02:30 | 343,728,529 | 0 | 0 | NOASSERTION | 2021-03-02T10:30:35 | 2021-03-02T10:07:11 | null | UTF-8 | Python | false | false | 13,081 | py | # -*- coding: utf-8 -*-
"""
sphinx.ext.graphviz
~~~~~~~~~~~~~~~~~~~
Allow graphviz-formatted graphs to be included in Sphinx-generated
documents inline.
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
import codecs
import ... | [
"mmsprinkle@gmail.com"
] | mmsprinkle@gmail.com |
faa563cb2ff4a1d5e681f1747302a859b54b1a32 | 61a4d618f8b6b50863171fd52776ff6583ee5665 | /house lease/logic/temptest.py | 4c39c578687e988fd627c59e546cff5f7cd39e86 | [] | no_license | Dark-0-forest/house_lease_system | 231ce42678d3fd3620783c798301d5f79ec7f95a | b10fcd89f31deee84014990315d9db36b0aa3c94 | refs/heads/master | 2023-01-11T00:23:30.451356 | 2020-10-24T05:31:06 | 2020-10-24T05:31:06 | 306,812,969 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # 需求:生成电话号码
# 流程:中国电信号段
# 中国移动号段
# 中国联通号段
# 11位
# 第一位 1
# 第二位 3,4,5,7,8
# 第三位 根据第二位确定
# 后八位随机数字
# 分析需求,先找已知的条件,确定出不变规律和变化规律
import random
# 生成电话号码
def creat_phone():
# 第二位
second = [3, 4, 5, 7, 8][random.randint(0, 4)]
# 第三位的值根据第二位来确定
# 数组条件依赖可以用字典来产生对应关系进而取值
# 例外可以看成条件肯定否定,用if语句
... | [
"928774025@qq.com"
] | 928774025@qq.com |
0265fd3051bfb0f15f6c863117bc19a849af6ffb | 174b9087041b42f01098e9526ef813c4a4486dc7 | /time_stopwatch.py | 89094107d69c2947e722bc8212907d9b948faf68 | [] | no_license | Love-Kush-Tak/Automating-boring-stuff-with-python | ffe0512e92df3e225852a8f5a6ce412c4ddc2628 | 08d05888cdbe8f4c66f4ccd1d1f30ef23944861c | refs/heads/master | 2022-12-05T22:30:31.920297 | 2020-08-25T05:15:19 | 2020-08-25T05:15:19 | 290,118,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import time
#Display the program's instructions
print('Press Enter to begin. Afterwards, press wnter to "click" the stopwatch. Press CTRL-C to quit.')
input()
print('Started.')
startTime = time.time()
lastTime = startTime
lapNum=1
try:
while True:
input()
lapTime = round(time.time()-lastT... | [
"noreply@github.com"
] | noreply@github.com |
88cb5d3304c964483d4bd13dd17272dd10a0dfaf | 036079adc57dd3ae6aea3a4b9f5e495d0f6b58d8 | /assign2.py | 2163325f780a2272d0fa65485b5a603da071c4c1 | [] | no_license | Spongebob19/MVS-repo | 5951c8ab8a9dbfc4b12d49ebe67825563c185ca9 | 7ba7c459ac38a579c2d40aee4cf3ff4060e69a3e | refs/heads/master | 2020-03-19T05:06:16.167390 | 2018-06-03T12:01:42 | 2018-06-03T12:01:42 | 135,900,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import random
guessesTaken = 0
print('Hello! What is your name?')
myName = input()
number = random.randint(1,10)
print('Well '+myName+', I am thinking of a number between 1 and 10.')
while guessesTaken < 6:
print('Take a guess.')
guess = input()
guess = int(guess)
guessesTaken = gues... | [
"noreply@github.com"
] | noreply@github.com |
a27f0b2a1f277cfd24ad5fcbc93d846b911ddeab | fd97e31c33ce13a9f643378eed4a6f79858fddf4 | /classisapi/migrations/env.py | 27fedf22b8a5917bffa49994fe467ebe47fbb636 | [] | no_license | LearningData/classisapi | 493a653454883407bc872d94117f1af8f8a13bcc | 07cf6ccf7143dd488ea0c4080f9834ac49c0c6b2 | refs/heads/master | 2021-03-19T11:51:44.357876 | 2016-02-23T15:59:14 | 2016-02-23T15:59:14 | 50,593,452 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
import logging
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config ... | [
"marius@learningdata.ie"
] | marius@learningdata.ie |
e5c94008a3438e1f9390edaf8fb7f885ef853107 | ffaea12d7162fc24e5f4c944d0f41f8abaaa6968 | /COPD/train.py | e7dafcc31719dce1cc3be0b27ee10375bbe49d4b | [] | no_license | liiiiiiiiil/DL | c5fedb62bb89917f4b16d7edec7c3e95e7bcba95 | 2dcbb0774680301c9fcb99d29ac6da2317cba528 | refs/heads/master | 2020-03-11T03:01:23.415533 | 2018-04-29T12:10:42 | 2018-04-29T12:10:42 | 129,734,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | import torch
import time
from utils.run_utils import *
import torch.nn as nn
def train(opt,train_loader,model,criterion,optimizer,epoch,losslist):
batch_time=AverageMeter()
data_time=AverageMeter()
losses=AverageMeter()
top1=AverageMeter()
model.train()
end=time.time()
for i,sample in en... | [
"944642079@qq.com"
] | 944642079@qq.com |
118f0a5fdddc6b68612616b058763a3a0a82276c | 5bedffe3af7a200678ecd8adb9c89aec3a5a9fe2 | /rango/migrations/0009_category_slug.py | bf82d4e20ea98467978704a944724a91a0cf3a10 | [] | no_license | wongj5/tangowithdjango | 95b2309e112766281f9b1e58578a986d79481079 | 416adc90d52be669f5c5412222053d2db99d48f6 | refs/heads/master | 2016-09-05T13:42:21.344511 | 2015-05-20T05:31:16 | 2015-05-20T05:31:16 | 35,659,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rango', '0008_remove_category_slug'),
]
operations = [
migrations.AddField(
model_name='category',
n... | [
"wong.justin23@gmail.com"
] | wong.justin23@gmail.com |
dd7dd34d3c33d8d237f4413a2d98aab566ff7489 | 2b6a63dc91944c27d2e5a905516f8d6ab89bb487 | /pageobjects/productscreen.py | c5f43b4675881bc3d0c14b0d05df9bd53e4ac3a4 | [] | no_license | folajimia/Photonaijatestframework | 6f4474a7ee0f873c70b07e2eab02937f4f601138 | 95cce981f82b13a67d443bea89eba22213d30e9c | refs/heads/master | 2023-02-18T03:12:23.786997 | 2018-12-23T22:04:44 | 2018-12-23T22:04:44 | 150,261,253 | 0 | 0 | null | 2023-02-15T17:23:05 | 2018-09-25T12:25:31 | Python | UTF-8 | Python | false | false | 1,126 | py |
class ProductScreen:
def __init__(self, driver):
self.driver = driver
def test_services_screen_components(self):
home_screen = HomeScreen(self.driver)
home_screen.click_service_product_link()
product_screen = ProductScreen(self.driver)
product_screen.validate_tit... | [
"jimi.adekoya@mheducation.com"
] | jimi.adekoya@mheducation.com |
4f656683d5847a47be56020aafa35e0d7f97d5a3 | bab6527375935fd306f6fe984dc663e6eb67cc77 | /venv/bin/easy_install-3.7 | 6c9edf7e170260972e35f1095f2118f6226cfb95 | [] | no_license | HenryM975/Euler | 3660248312f2cb82e48e947a4a4bdf867fe9c666 | d241d139ce44a9407bd4afc0379f81a868297a70 | refs/heads/master | 2022-12-19T02:27:30.137950 | 2020-09-27T10:48:31 | 2020-09-27T10:48:31 | 271,604,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | 7 | #!/root/PycharmProjects/Euler/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"henry975@yandex.ru"
] | henry975@yandex.ru |
61b973875df000a76b6eefe5ee018440f143c300 | 95f99e20583cf636023a1d442cfaca2f9cab98a9 | /org/migrations/0008_auto_20200415_1449.py | 6b0a2c283c787a547dceae5ac407666dbe71b1d1 | [] | no_license | ashersuman/SECTEN | 7765b8bd3329242d8d7ae3af686842de2173fc79 | 847200987fee01ccde421c53246102eb423d2392 | refs/heads/master | 2023-07-30T11:32:25.509988 | 2020-08-29T15:54:04 | 2020-08-29T15:54:04 | 271,321,041 | 0 | 1 | null | 2021-09-22T19:13:42 | 2020-06-10T15:56:43 | Python | UTF-8 | Python | false | false | 1,076 | py | # Generated by Django 3.0.4 on 2020-04-15 09:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('org', '0007_auto_2020041... | [
"user11root@gmail.com"
] | user11root@gmail.com |
25a2dec7b926e52c47264c1c1fa15ae2af41e8e3 | 63718d9acba10c00f51d9f10b8f49cfd758da1af | /outputFiles/statistics/archives/ourIA/improved_closest_v2.py/0.7/3/player1.py | 00ceb1c294ff5ec03d105cd75a4d25e8bcc4e902 | [
"MIT"
] | permissive | dimtion/jml | 2d6760b8b7e12565989ddd5356b181b71a37df68 | dba4db760280cc5ed8c384e36e41d6c7a310fb4f | refs/heads/master | 2021-01-13T00:15:25.114150 | 2015-11-16T09:02:19 | 2015-11-16T09:02:19 | 43,818,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,253 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
####################################################################################################################################################################################################################################
############################################... | [
"lcarr@pc-df-303.priv.enst-bretagne.fr"
] | lcarr@pc-df-303.priv.enst-bretagne.fr |
4eb0afa5e2ecc14a86426d9c0720079e9b9536e2 | 2a06a81e9cb23b95375bb42343688db094d18bb3 | /PI/bin/pip3 | c1738126f883ba12ca04716decfb1a628244274e | [] | no_license | leonido1/RaspberryPiOCR | 5daee02ba7ccfb303bde2596004de9be3345dcbe | bdf502981580b64eab4681dd09cfdc7214bde502 | refs/heads/master | 2020-03-31T22:33:04.876954 | 2018-10-11T17:50:39 | 2018-10-11T17:50:39 | 152,622,394 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 226 | #!/home/pi/.virtualenvs/cv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"leonidvishniakov@gmail.com"
] | leonidvishniakov@gmail.com | |
976316936ff45669e030bb2675bd7ccf4f664609 | 86a3f9c934759bb796d80ee28d9d7d71233ccc50 | /exercises/chapter9/exercise_9_6.py | 9a5a5f7faa831f0e7862cd6e330ccecd20291812 | [
"MIT"
] | permissive | JapoDeveloper/think-python | f3c35b6eb5804f0665111f9ad40021d4fbe9900d | 1e6fc4fd635a5bdf1ea38eb93a1e67db9ad99587 | refs/heads/master | 2021-05-22T16:30:28.015119 | 2020-04-11T23:53:52 | 2020-04-11T23:53:52 | 253,004,165 | 0 | 0 | MIT | 2020-04-11T23:53:53 | 2020-04-04T13:29:19 | Python | UTF-8 | Python | false | false | 905 | py | """
Think Python, 2nd Edition
Chapter 9
Exercise 9.6
Description:
Write a function called is_abecedarian that returns True if the letters in a
word appear in alphabetical order (double letters are okay). How many
abecedarian words are there?
"""
from words import list_words
def is_abecedarian(word):
"""check ... | [
"julio_master_55@hotmail.com"
] | julio_master_55@hotmail.com |
d5d82d46758a40e1f5c1ca060e47303741b8a4da | 83e6bbff0fc96d819ebd15d52aa168760f3bbf1b | /contrib/seeds/generate-seeds.py | 0653ef45f8e6fe1f40d780da0b85cf6783ee36f8 | [
"MIT"
] | permissive | smart-pubgc/PUBGC-COIN | f2bed888e25d96ff419bc220f3c7deeebc39c811 | aad16372c070d790e181814bdf8c955365d23628 | refs/heads/main | 2023-08-17T15:39:45.465056 | 2021-09-20T22:26:20 | 2021-09-20T22:26:20 | 399,748,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,342 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... | [
"89513168+smart-pubgc@users.noreply.github.com"
] | 89513168+smart-pubgc@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.