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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
437f4bed10a965bd4a4e33fdfb3de90c1faffc8d | 9c651d78fe2beb015e46f3cea556aaaab93ede2c | /boilerplates/airflow/files/docker/scripts/setup.py | 0a1629c000f707d78ebb4d5ff07aec9487aeb19c | [
"Apache-2.0"
] | permissive | SHoen/ods-project-quickstarters | c45d4f3843701058b9d18724ace8de7d843ee1b1 | f216bd430b50fdeafe05f6ef68905ef82bb60980 | refs/heads/master | 2021-06-30T15:01:27.002319 | 2020-10-16T07:48:02 | 2020-10-16T07:48:02 | 175,852,967 | 0 | 0 | Apache-2.0 | 2020-10-16T07:48:03 | 2019-03-15T16:12:11 | Shell | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/env python
import setuptools
setuptools.setup(name='airflow-dag-dependencies',
version='0.1',
description='DAG dependencies',
url='https://www.python.org/sigs/distutils-sig/',
packages=setuptools.find_packages(),
install_requires=[]
)
| [
"hugo.wruck_schneider@boehringer-ingelheim.com"
] | hugo.wruck_schneider@boehringer-ingelheim.com |
5fc8a8e462763bec2057c096836f914959a5c69f | 150b412c520cab07855bbce69d40ae35a2afd607 | /nlp_lib.py | 04c8e22892ff815e5f1de63549137d84ae317e4b | [] | no_license | nuthasid/Text_Classification | 781d181448efba3d1e0fe06ad316a5fc4774ad4c | 311b0a49f7af297c079b010132f9160c7be35a0b | refs/heads/master | 2020-03-19T05:52:53.362022 | 2018-07-13T09:32:01 | 2018-07-13T09:32:01 | 135,970,618 | 0 | 1 | null | 2018-06-07T06:55:53 | 2018-06-04T04:29:24 | Jupyter Notebook | UTF-8 | Python | false | false | 1,183 | py |
def levenshtein(word1, word2):
"""
Return minimum edit distance between word1 and word2.
"""
def call_counter(func):
def helper(*args, **kwargs):
helper.calls += 1
return func(*args, **kwargs)
helper.calls = 0
helper.__name__ = func.__name__
... | [
"nuthasid.r@outlook.com"
] | nuthasid.r@outlook.com |
e48e8a3d9f50dad1480843e7c35ea699a584238d | 4eeee51e8d8dd6e37971d199d200176221864a22 | /app/views.py | 2ee1b7213b9ab568ccb2c77112361d7507d23d92 | [] | no_license | perkinsashley26/info3180-p2 | 3395243dad517b6a164b2af562add58c4875252e | 163b1d3b6541c821354e8f183fab2870037981c3 | refs/heads/main | 2023-04-10T13:19:23.051496 | 2021-04-14T18:04:14 | 2021-04-14T18:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | """
Flask Documentation: http://flask.pocoo.org/docs/
Jinja2 Documentation: http://jinja.pocoo.org/2/documentation/
Werkzeug Documentation: http://werkzeug.pocoo.org/documentation/
This file creates your application.
"""
import os
from app import app, db
from flask import render_template, request, redirect, url... | [
"pambersam@gmail.com"
] | pambersam@gmail.com |
1ecd8e3da77d4553e91626692b959df595bb8228 | c8ab48ebc8fdc1e818b4ae0194de642a123eee7f | /Assessment_1/q2.py | f995307d9cab125e8986353bf0f04b386e64bde2 | [] | no_license | BaDMaN90/COM404 | 78c9a1bde65bc8c1696ad0cb50336276856fc2df | 9930c115f75473f99f67c07270efc3460067acaf | refs/heads/master | 2020-08-04T06:44:58.722478 | 2019-12-22T23:40:12 | 2019-12-22T23:40:12 | 212,043,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #prints message and ask for user response
print("Who is locked outside (Fred, Dino or the Cat)")
who = input()
#response based on user input
if who == "Fred":
print("Willma!!!")
elif who == "Dino":
print("Rarr! Rarr!")
else:
print("Meow!") | [
"4zdebf99@solent.ac.uk"
] | 4zdebf99@solent.ac.uk |
e0f5050286bc2b0176e7fcbbef3bbe11b152e869 | 397e109f024c264991f927b4788c8a005c67dc8d | /authors/apps/ratings/views.py | dfb185cc80d6db6ff87450585c0968597a19c886 | [
"BSD-3-Clause"
] | permissive | andela/ah-the-unsullied | 989b0ee4a22ae373dab3acf34353ff34ddca9df9 | 7821c96f16880fb5c3cbd2d51fbd43669c2ee7fd | refs/heads/develop | 2020-04-11T23:03:36.813936 | 2019-02-28T07:16:29 | 2019-02-28T07:16:29 | 162,156,016 | 7 | 2 | BSD-3-Clause | 2019-02-28T07:16:30 | 2018-12-17T16:02:34 | Python | UTF-8 | Python | false | false | 3,364 | py | from rest_framework import status
from rest_framework.exceptions import NotFound
from rest_framework.generics import (
GenericAPIView
)
from rest_framework.permissions import (
IsAuthenticatedOrReadOnly
)
from rest_framework.response import Response
from .responses import (
error_messages, successful_submi... | [
"allannelly690@gmail.com"
] | allannelly690@gmail.com |
0b0947020993479672eeb02266a80665dd70ff7d | 45fbfce97cf1d3f3c013d0332a6cd7b747d2f99e | /forest/generic_visitor.py | 9c89b8712b1fd3ca208e4cfba2344b980f8c290a | [
"Apache-2.0"
] | permissive | Marghrid/FOREST | f7d60de453f982973489a5d975c5d6ab9d902336 | 2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4 | refs/heads/master | 2023-02-15T23:42:27.268446 | 2021-01-18T19:10:30 | 2021-01-18T19:10:30 | 225,708,551 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import re
from abc import ABC, abstractmethod
first_cap_re = re.compile('(.)([A-Z][a-z]+)')
all_cap_re = re.compile('([a-z0-9])([A-Z])')
def camel_to_snake_case(name: str) -> str:
s1 = first_cap_re.sub(r'\1_\2', name)
return all_cap_re.sub(r'\1_\2', s1).lower()
class GenericVisitor(ABC):
@abstractmeth... | [
"marghrid@hotmail.com"
] | marghrid@hotmail.com |
96c027ad20e48b93bb0341a4e5dfff106817bbc9 | b2376f0cdb54a91e03a43e5eb945fffaaba96852 | /eventticketingserver/admin.py | e9883325aa2ce44ce9d8b48b9f0416ba2b4a1841 | [] | no_license | didietsuryadi/event-ticketing | 9bf83129034c57f2474ba674e1bb9b32cee2cd74 | f8e31c87ef5f5367618c857272ecf708bbdc0408 | refs/heads/master | 2020-03-23T04:17:54.023142 | 2018-07-19T05:27:04 | 2018-07-19T05:27:04 | 141,074,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.contrib import admin
from .apiv1.models import *
admin.site.register(Event)
admin.site.register(Customer)
admin.site.register(Transaction)
| [
"didietsuryadi@gmail.com"
] | didietsuryadi@gmail.com |
66c536ba9a3c636b67b6d1b208485d7038b48249 | 82c8626a0c48985ea53d22dd1665cbb6048c96bf | /project_dl/subjects/migrations/0003_student_parent_student_id.py | 9ce5485f3d5dd9475996d9a6c420c0d6e08c970a | [] | no_license | alishertleukenov/My-project | 50affe6091a3578fb1dd5a5d994dabab29498b20 | 31c1fd7bb8c28df2a297e670870cd005c10bb6b1 | refs/heads/master | 2020-11-23T18:47:44.752255 | 2019-12-13T07:12:26 | 2019-12-13T07:12:26 | 227,775,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # Generated by Django 2.2 on 2019-12-13 06:33
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('subjects', '0002_auto_20191213_1151'),
]
operations = [
migrations.AddField(
model_name='student',
... | [
"alishertleukenov@gmail.com"
] | alishertleukenov@gmail.com |
7258a56999d559da846963b4a487bde03ba0674a | 62be0a7264b1709f53c2d3a672c19ad254a44c6c | /cardiod .py | 0be021efaec72f07e0bfd1be22f1956d16a7d271 | [] | no_license | sathish-selvan/python-turtle- | 95d70bfde70d21f0c8e48884398e9b3b98fb03ac | 4a4b96b977207e9875aedd2c3ef44cff64e7f5d1 | refs/heads/master | 2023-01-07T17:53:31.321643 | 2020-10-26T22:29:19 | 2020-10-26T22:29:19 | 306,972,287 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py |
import turtle
sat = turtle.Turtle()
s =turtle.Screen()
sat.pencolor("black")
s.bgcolor("#72cc12")
sat.penup()
sat.speed(0)
sat.goto(0,-300)
sat.pendown()
table = 2
points = []
division = 200
def draw(division):
for i in range(division):
points.append(sat.pos())
sat.circle(300,360/division)
d... | [
"sathish.t2000@gmail.comm"
] | sathish.t2000@gmail.comm |
836db03763f356868cc4f33ccedd59f950e22ccb | 5260bdd8b6ccd8e54c1d616d166b462a509d56c1 | /clock.py | 554b387796e2aebd42dda7e3817c75b17d8b2c98 | [] | no_license | ankit96/flockathon-utility | f2f6a45ff3d5696afa8120a85c4f9ac28e6bbb91 | c71499588b5cff4f96a7f3f4ca687b7f8da8c28e | refs/heads/master | 2022-07-25T13:26:37.933335 | 2019-10-21T17:17:25 | 2019-10-21T17:17:25 | 216,624,518 | 1 | 0 | null | 2022-07-06T20:20:52 | 2019-10-21T17:19:55 | Python | UTF-8 | Python | false | false | 430 | py | from apscheduler.schedulers.blocking import BlockingScheduler
import os
import subprocess
import psycopg2
import urlparse
from deleteplaylist import deleteall
import logging
logging.basicConfig()
sched = BlockingScheduler()
@sched.scheduled_job('cron', day_of_week='mon-sun', hour=18, minute=31)
#@sched.scheduled_job('... | [
"Ankit.sa"
] | Ankit.sa |
ba3aca2ca5f17237e705f78170ba8e21b0c9ab3b | b61dfe7d7881241216a47f3f0f384731d91701e5 | /cart/urls.py | 0a52d9285b52b8bca10cac47fb042c93baf59793 | [] | no_license | hieudp/Nigiri-Falls | 4c6822222e550821384e1d4d788d695700d7dbb5 | 3845feb32e859750f40b74fefef5ce03bf2fc7b9 | refs/heads/master | 2021-06-28T22:37:22.980968 | 2020-01-31T16:04:18 | 2020-01-31T16:04:18 | 237,465,152 | 0 | 0 | null | 2021-06-10T22:32:15 | 2020-01-31T16:03:50 | HTML | UTF-8 | Python | false | false | 296 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.cart, name='cart'),
path('confirmation/', views.confirmation, name='confirmation'),
path('increase/', views.increase, name='increasecart'),
path('decrease/', views.decrease, name='decreasecart'),
]
| [
"hpham794@gmail.com"
] | hpham794@gmail.com |
19add0a7828b188a74b5e8c1a7a9bb8358b7a0b9 | b8dc2b323f74a9ece191e667598bfcac9fe16b12 | /calc.py | 1cf9ffcfda46fc67c30f254c220eb507b4e3b0eb | [] | no_license | SHowardGal/exerPythUnitTest | fa6484e365101b90c67c57d385d25c2c00c27fdb | b2fc6ae213aa42cc12ef201834b4817bc5340092 | refs/heads/master | 2023-08-11T11:38:42.008028 | 2021-10-06T01:10:44 | 2021-10-06T01:10:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py |
def add(x, y):
"""Add Function"""
return x + y
def subtract(x, y):
"""Subtract Function"""
return x - y
def multiply(x, y):
"""Multiply Function"""
return x * y
def divide(x, y):
"""Divide Function"""
if y == 0:
raise ValueError('Can not divide by zero!')
return x / y ... | [
"u0250173@utah.edu"
] | u0250173@utah.edu |
b59c437e9488ef3d05b937ed48797e71bc060614 | fe54d59a1a030a9c1395f4f4d3ef2e2b2ec48343 | /build/lib/nailgun/objects/serializers/node.py | a2db68ad18b2230ba9ca3569cf67682031e2d880 | [] | no_license | zbwzy/nailgun | 38a4198a0630a1608c14e55bee03b5ed04ded3e8 | 2eaeece03ebc53f48791db2aa8e7d24c010910f2 | refs/heads/master | 2022-09-25T09:03:33.296368 | 2016-02-23T09:32:55 | 2016-02-23T09:32:55 | 52,345,460 | 0 | 0 | null | 2022-09-16T17:45:43 | 2016-02-23T09:03:07 | Python | UTF-8 | Python | false | false | 2,488 | py | # -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, Inc.
#
# 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 requi... | [
"zhangbai2008@gmail.com"
] | zhangbai2008@gmail.com |
86475d131fa05abd008300fc90b31ad73c5238ce | e14eb7457d93f2c8090147f767e87fd75e17a8ac | /Code05-04 Event 01.py | c89b55d906cd0a07bd7e26f1106aa2f39d647363 | [] | no_license | leegj93/PythonProject | 6992653576451c7d398cabc7d4e8575b8f7f784a | 5accab4cf10fcadc1fbf5b0f39563cfdc8703484 | refs/heads/master | 2022-02-03T13:28:44.608943 | 2019-07-02T07:15:57 | 2019-07-02T07:15:57 | 194,589,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from tkinter import *
from tkinter import messagebox
def clickLeft(event):
txt =''
if event.num ==1:
txt +='왼쪽 버튼 : '
elif event.num ==2:
txt +='가운데 버튼 : '
else:
txt +='오른쪽 버트 : '
txt += str(event.x) + "," + str(event.y)
messagebox.showinfo('요기제목', txt)
def ... | [
"noreply@github.com"
] | noreply@github.com |
2f16eac975ec42c2015734ffd0e032fa1d33e9a5 | 415bb6c4d47972b19b5e59da5c93f579791184cf | /fibonacci.py | 0f180173efea3b8cd44519f301fa138a58a2d358 | [] | no_license | akshay007-eng/projectpygit | e22c629a45d86c329a0b40b63c5e0536321ac25e | 386db6e30466bc8f47e924ceaf187080a78ea7b2 | refs/heads/master | 2022-11-19T09:30:22.607854 | 2020-07-03T17:19:22 | 2020-07-03T17:19:22 | 276,948,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py |
# Fibonacci series:
# the sum of two elements defines the next
a, b = 0, 1
while b < 10:
print (b)
a, b = b, a+b
| [
"noreply@github.com"
] | noreply@github.com |
efdbbaf125546b22e79da1e189dd44d713d68223 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_jolley_Pancakes.py | 0f7c8e1f03d564dbbb9de3c313d22706fa0aea19 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 972 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 9 18:01:19 2016
@author: jo
"""
with open('input', 'r') as f:
cases = 0
case = 0
with open('outputPan', 'w') as fo:
for line in f:
if line[0].isdigit():
cases = int(line)
#print(line)
else:
ca... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
1e54a80cf532a812739ef90aab6c8f287c71d698 | 6a8ff478a3a9a9108b87a051e664f59557985fa5 | /example/tests/test_relations.py | b83bbef46887e42b0c866a98995d4e942d5cf476 | [
"BSD-2-Clause"
] | permissive | HumanExposure/MMDB | 445a650e834e38a6539863f1b4549de2e9653455 | 423a4d6484c13f5969ca44ddfc156808b1978b23 | refs/heads/dev | 2023-03-04T09:04:08.886345 | 2021-02-02T17:44:17 | 2021-02-02T17:44:17 | 315,435,637 | 1 | 0 | BSD-2-Clause | 2021-02-02T17:44:19 | 2020-11-23T20:41:51 | Python | UTF-8 | Python | false | false | 10,909 | py | from __future__ import absolute_import
from django.test.client import RequestFactory
from django.utils import timezone
from rest_framework import serializers
from rest_framework.fields import SkipField
from rest_framework.reverse import reverse
from rest_framework_json_api.exceptions import Conflict
from rest_framewo... | [
"noreply@github.com"
] | noreply@github.com |
faf1d1399fc87b802e63cef3024960af543e1e5d | a0b93f2723d13fefc224478729c08e4aac86266d | /test_query.py | 6aae8ba1a2d7d83ba446eb4c7f59ffbb70293e86 | [] | no_license | diegohwang/queryset | a4ef485d3f8149eb70e19b97f5e303c124d83720 | a4e05bb9daafb9bbe7e50381198712ca0b4b6b3d | refs/heads/master | 2021-01-21T14:48:02.318381 | 2016-06-14T03:18:48 | 2016-06-14T03:18:48 | 58,798,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,593 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from queryset.wsgi import *
from video.models import site, media
class QuerySetOperation():
#1. 创建对象(4种方法)
#1.1
def create_site1(self):
print '创建方法1'
site.objects.create(site_name='BT天堂', site_code='bttiantang', site_id=1)
#1.... | [
"huangjm@fun.tv"
] | huangjm@fun.tv |
19699e97e03bf4d6c752d7f7051767d2f6178dc2 | 0aaa183922f5304ea11509e62a5b4e73ffa58525 | /柏鹭杯/11.25/notepad.py | cc9e291beb0eb560a4325ed8eb0d7034a5fcda7c | [] | no_license | 0gur1/ctf | be07fbe0acf3a4de7afb078fe7cabc5c9d27822c | 66eb36c73ef18759a0a7639d4c4f67bf80796919 | refs/heads/master | 2021-06-28T01:58:18.763949 | 2019-01-30T04:26:39 | 2019-01-30T04:26:39 | 131,176,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from pwn import *
context.log_level = 'debug'
p=process('./notepad')
def new(data,size):
p.sendlineafter(">> ",'1')
p.sendlineafter("Size: ",str(size))
p.sendlineafter("Data: \n",data)
def edit(idx,data,size):
p.sendlineafter(">> ",'2')
p.sendlineafter("Index: ",str(idx))
p.sendlineafter("Size: ",str(size))
p.... | [
"904466829@qq.com"
] | 904466829@qq.com |
609760859820be1e68a6de0cb45de2de2a4b6eb9 | b77e464c1051dbec0dea6deaf63ccc393c17c84c | /tests/test_base.py | b49f58ee4e9aca182c4a93894ccbbe58618c0117 | [
"Unlicense"
] | permissive | victtorvpb/flask-cash-back-plataform | 63dad5677811df8d24999a6c4ad5e46d91d87dcd | 301bcad96662e7ba8f74b8e6896248f2ac2854d3 | refs/heads/main | 2023-07-12T02:46:23.526791 | 2021-08-16T23:01:11 | 2021-08-16T23:01:32 | 397,004,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import pytest
from flask_cash_back_plataform import BaseClass, base_function
given = pytest.mark.parametrize
@given("fn", [BaseClass(), base_function])
def test_parameterized(fn):
assert "hello from" in fn()
def test_base_function():
assert base_function() == "hello from base function"
def test_base_cla... | [
"actions@github.com"
] | actions@github.com |
4fc79439d5cdb7cacba4370b7e8d37f14b961c4a | ac32bac45df77083f4ef3115e747038a6753936c | /adapter-transformers-customs/adapter-transformers-attn/src/transformers/trainer-with-sub-model-list.py | 4c0c31f94fbf40ec2a6cf77be31c8626e614571d | [
"Apache-2.0"
] | permissive | Yujin-Yujin/rexpert | 13e1d5c4ca55664dd9fbb9a765ea5157a2e0893f | ed8628dc053194fee40e593b1cc5ec45a26c8073 | refs/heads/main | 2023-06-22T05:58:42.269923 | 2021-07-23T06:35:43 | 2021-07-23T06:35:43 | 373,423,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,655 | py | # coding=utf-8
# Copyright 2020-present the HuggingFace Inc. team.
#
# 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 ap... | [
"yujin000731@yonsei.ac.kr"
] | yujin000731@yonsei.ac.kr |
b21888d27fc947e69bc03554f871529283790509 | 202317110becaa376dd2779fbcfe26de045e4a2e | /01_spider/01_chinaCrop/2.py | 7330b15e53002b6af72cdcab4c6c6ca68921a6f3 | [] | no_license | xuming1985/python3 | a1aab2821ce16098f0e9526164947d97ea27f8f4 | 8cbe6ed7e63fbd3fefe6670d403ab2d907b2cb85 | refs/heads/master | 2020-03-27T14:58:22.595101 | 2018-08-31T01:49:48 | 2018-08-31T01:49:48 | 146,690,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | #coding=utf-8
import requests
import time, json, re
import math
import pymongo
url_root = 'http://www.cgris.net/query/do.php#粮食作物,小麦'
url_data = 'http://www.cgris.net/query/o.php'
session = requests.session()
response = session.get(url_root)
# 初始化请求, 请求作物类别的属性和下拉框的key value 对应关系
r1 = session.post(url_data, data={'act... | [
"m.b.xu@accenture.com"
] | m.b.xu@accenture.com |
df0e431f178b5abc7f31bb1d09dbf97beda0f30c | e077d71357cd5791c5eca950449a718f9f11a3a8 | /api_test/tf_example_test.py | 65c62447aaeb851a1339429b533001bdcfaeca13 | [] | no_license | smartlmy/tensorflow_project | c9ff22388c2360537a6640a5e1355a278b3c2a06 | 446a5bea35fd9f004ef7056a789f037f5fa34865 | refs/heads/master | 2023-04-22T03:08:01.476558 | 2021-05-08T07:32:30 | 2021-05-08T07:32:30 | 299,497,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,166 | py | import tensorflow as tf
import numpy as np
def _bytes_feature(value):
"""Returns a bytes_list from a string / byte."""
if isinstance(value, type(tf.constant(0))):
value = value.numpy() # BytesList won't unpack a string from an EagerTensor.
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])... | [
"smart_lmy@163.com"
] | smart_lmy@163.com |
5113f8bf9f0595543e85f6a8f9655e1f589b4282 | 6d724d9326ede63fd940cc5d39920f38d987e716 | /shop/migrations/0004_orders_orderupdate.py | 9b38da972769d22736faa52aba4630c6afddc452 | [] | no_license | Alan-thapa98/mac | 5dea8254276ce79fd7f11e20772b43e3a9943602 | a5317bcb1d6b1fde9b726dc2b0c99ddd85f18b45 | refs/heads/master | 2023-07-11T05:45:05.075152 | 2021-07-30T12:00:02 | 2021-07-30T12:00:02 | 391,047,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | # Generated by Django 3.1.2 on 2021-01-24 12:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_contact'),
]
operations = [
migrations.CreateModel(
name='Orders',
fields=[
('order_id'... | [
"alanthapa98.gmail.com"
] | alanthapa98.gmail.com |
de6131cb7460f4df0537d86258086f70cd965e4f | 73fbdbe4943cd4a8de371ba1af4b5cdfea3138d8 | /project4_lyrics/lyrics_project/main.py | 5b2eae2671200684d80d3cc5530e8486ab9cf16a | [] | no_license | GParolini/spiced_academy_projects | 74524d99842e7659a38371b6e697f9fd90a9e0fa | 64b9458c9294a767636211d59ae00e329fb527f5 | refs/heads/master | 2023-05-31T05:30:07.692702 | 2021-06-21T08:54:46 | 2021-06-21T08:54:46 | 363,920,518 | 0 | 0 | null | 2021-05-03T13:33:28 | 2021-05-03T12:22:05 | null | UTF-8 | Python | false | false | 4,865 | py | #!/usr/bin/env python
# coding: utf-8
# # Project 4: Web scraping and text classification
from colorama import init
from colorama import deinit
from colorama import Fore, Back, Style
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from skle... | [
"giudittaparolini@gmail.com"
] | giudittaparolini@gmail.com |
274b6ad75620e1e8b2f7f6dee9b845a4faf52bd9 | 29f6b48c49b19b4ca969ba4f8d9920882449cc95 | /mision1/mision1_3.py | e6490a7224ad582e70c385d2146e93b9ed9eb6b7 | [] | no_license | jgm88/PythonNXT | 627e9bcd2a061c349630da9d5e9f6516c51ec5f1 | 8f0e31dfa5893aa512f286d152d8217c8a58a2ad | refs/heads/master | 2020-05-29T12:30:53.832929 | 2015-05-18T10:22:55 | 2015-05-18T10:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | #!/usr/bin/env python
import nxt.bluesock
from nxt.motor import *
import time
import msvcrt
import math
def connect(mode, mac):
if(mode=="Usb"):
return nxt.locator.find_one_brick()
else:
return nxt.bluesock.BlueSock(mac).connect()
# brick = connect('00:16:53:09:46:3B')
class Robot:
def __... | [
"jgm79@outlook.com"
] | jgm79@outlook.com |
66f5cf44b3c273e4152b18e9b7b961b7398581b0 | 791710736f0f3a7d2ead79788abedc59fa5080c9 | /Python/Studys/15.py.datetime/py_datetime.py | 23559d264c1fcc4318b6663f7bb790655e54e2fd | [] | no_license | king2934/PL | d9afae606905c988be888dfab7e0485c64f3f69e | ce9d97152033a3709b61ffe2c5911f04e331bba8 | refs/heads/master | 2021-11-20T21:51:41.377540 | 2021-08-22T13:50:31 | 2021-08-22T13:50:31 | 135,822,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #!/usr/bin/python3
#coding=utf-8
import datetime
now=datetime.date.today()
print(now) | [
"king2934@gmail.com"
] | king2934@gmail.com |
b7cb33c3441b8bbf58564daf031e567443534a58 | bb1f21e32753e139500b70c7117be8b171e52399 | /EquipoB/asgi.py | a4bc6d6f80a063459a784d2d0c30c25422898ca2 | [] | no_license | AnFel024/EquipoB_Nodos | 2c2d206edc6b7a229384f45ec99f43e63c54e8b4 | 06e62b3b40836d8a0b482ac761d9604bc6b17c10 | refs/heads/master | 2023-05-11T19:57:54.578727 | 2021-06-03T22:59:32 | 2021-06-03T22:59:32 | 373,662,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for EquipoB project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"anfelpe.0200@gmail.com"
] | anfelpe.0200@gmail.com |
78f54828d3d74ae1fe1c8e49ce0b20a167f8193f | 31572f880424a2d18bdf0c4846f4d1cc4f0cebe9 | /Python_Challenge/PythonChallengeLevel_03.py | 1e0895774884d8faabbde4f3b397a0a798a259e5 | [] | no_license | fuxicoder/mepythonchallenge | e4ff3fb8d1dd14b75c1ba91ca4b8eaabfead6013 | ce65a68174e3b2c0f61c1ae29dc46aca08f120f2 | refs/heads/master | 2021-01-18T23:08:20.203504 | 2016-10-31T13:08:08 | 2016-10-31T13:08:08 | 12,640,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import urllib2
f = urllib2.urlopen('http://www.pythonchallenge.com/pc/def/equality.html')
data = f.read()
import re
reg = re.compile('[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]')
comtextReg = re.compile('<!--[\W\w]*-->')
s_str_01 = ''.join(comtextReg.findall(data))
print s_str_01
print ''.join(reg.findall(data))
print ''... | [
"fuxicoder@gmail.com"
] | fuxicoder@gmail.com |
98d48c1552f26fecce15de752b3f72278091020e | 81986e18b51064a9debca09822a62c7a28f267a7 | /bin/backupMint.py | 2aa17f2c496351b5721121f10ea219ea4bdfd37a | [
"BSD-2-Clause"
] | permissive | rpaditya/dotfiles | eaa02730c37d7e71d03fed0b4b58e06c7521aaee | 89af61c9c26a3e131578f5ec2a555b932cd0c9c5 | refs/heads/master | 2021-07-16T13:33:34.308627 | 2021-03-19T15:42:15 | 2021-03-19T15:42:15 | 29,360,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import os
import urllib
import urllib2
import cookielib
from optparse import OptionParser
import datetime
class mintlib():
def __init__(self):
self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor()) # need cookies for the JSESSION ID
urllib2.install_opener(self.opener)
... | [
"aditya@grot.org"
] | aditya@grot.org |
eeb5c32aeca4c54f2b5c6ffc35714485bb235f96 | 7174b27cd79cad398ffa1add9b59da6e9adbeae4 | /python-100days/day0-15/day13/more_thread2.py | 35152bd4993d043a4da4ce465dc7221aa7d7ba44 | [] | no_license | UULIN/py | ddf037021afce04e46d51c133bfa06257ef7200a | a5d32597fc91fbd5ec41f54fb942c82300766299 | refs/heads/master | 2021-07-18T08:20:49.342072 | 2020-10-21T14:41:42 | 2020-10-21T14:41:42 | 222,977,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | from time import sleep
from threading import Thread, Lock
class Account(object):
def __init__(self):
self._balance = 0
self._lock = Lock()
def deposit(self, money):
self._lock.acquire()
try:
# 计算存款后的余额
new_balance = self._balance + money
# ... | [
"1036190402@qq.com"
] | 1036190402@qq.com |
d8bc2a7d55e802336c23e9acc4309910981c7989 | 220c1eb4af7b37af9574fa3765e450d3ee0a76a8 | /timeclock/migrations/0004_clockinout_options.py | 94400299136aa286fa152f8432feeff9a0bf6ecf | [] | no_license | jacobbexten/EmployeeTimeclock | 4e63fd2e709a90dcfccc56779415f688b75b344a | a4ed6a109335bb55b2b53b4c77ffc3468339c12c | refs/heads/master | 2023-01-19T11:10:08.393533 | 2020-11-18T05:34:12 | 2020-11-18T05:34:12 | 302,791,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 3.0.1 on 2020-11-17 01:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timeclock', '0003_calendar'),
]
operations = [
migrations.AddField(
model_name='clockinout',
name='options',
... | [
"jacob.bexten@umontana.edu"
] | jacob.bexten@umontana.edu |
0ca6f7dc8897396924cab918e4684a7be3e0bca5 | 687a2e9ba9f7e053acaff3c6bf1ad4604894c9d6 | /molecule/update/tests/test_default.py | c6fd0a056e6320ace8cffbf4f9da98f93602e9eb | [
"BSD-2-Clause"
] | permissive | hostwithquantum/ansible-loki | 2a823d5cae48a6d6c3640466c95823f656f9600d | c4ac5c80526b04bebe71f4293b9da257723e1aa9 | refs/heads/main | 2023-03-06T00:57:54.650872 | 2021-02-13T17:46:38 | 2021-02-13T17:46:38 | 276,343,767 | 17 | 8 | BSD-2-Clause | 2021-02-13T17:46:39 | 2020-07-01T10:09:12 | HTML | UTF-8 | Python | false | false | 988 | py | import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']
).get_hosts('all')
def test_hosts_file(host):
f = host.file('/etc/hosts')
assert f.exists
assert f.user == 'root'
assert f.group == ... | [
"till@php.net"
] | till@php.net |
113948ea9a60280b3b5d22a0ab0b747f6dcf0ec6 | 510cd20ec65c92a87822921bf3176ddc35a51eb0 | /knackpostgres/fields/concatenation_field.py | 561ce13e3dca7690d67120184774d874c5eb8a3d | [] | no_license | iskandari/knackpostgres | 1fe73e07f2365e475e12f00d8f4ad5eca0b633cd | 2a732b28a877e5717560fad97b34f5009510ebbd | refs/heads/master | 2023-05-05T17:17:52.115910 | 2020-05-26T00:35:30 | 2020-05-26T00:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,372 | py | import re
from ._knack_field import KnackField
from knackpostgres.utils.parsers import get_parser
from knackpostgres.utils.method_handler import MethodHandler
# todo: handle many-to-many connections :/
# todo: reference views instead of tables and create "alter view" statements
# Regex search expressions
# match: f... | [
"john.clary@austintexas.gov"
] | john.clary@austintexas.gov |
8902f287b0da03aff4ae434389d184bc105712de | c188c831f7577a143d5c7b876a061b383967dc73 | /apps/courses/migrations/0005_lesson_url.py | ac7dab6144590139bf2f46e28363ae0c0ecb920a | [] | no_license | ksino/Gmooc | 516eab67c7e350d3472c9b2ac0bf21e426c56377 | fc2d06fd3f74c2131c6782375d23f13ea6ff79f9 | refs/heads/master | 2021-04-18T15:22:13.582561 | 2018-03-29T04:33:54 | 2018-03-29T04:33:54 | 126,559,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-10-30 15:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0004_course_tag'),
]
operations = [
migrations.AddField(
... | [
"flycat86@163.com"
] | flycat86@163.com |
644d4865c9256997bf606c9d5663f84329073618 | 81f23f48f32b8680a861bb1a8117d0b265aa133f | /apps/code_coverage/views.py | 07f6d682f6354be3071ae5460f1fa9bb38f11efe | [] | no_license | Dearin/auto_test_api | d8d63f55e64d8335b2f21fc506cc59d0252a2c72 | 390377fed202a17dd1accc9be0afaca9d38bfb44 | refs/heads/master | 2023-07-12T02:46:44.099695 | 2021-08-02T03:23:33 | 2021-08-02T03:23:33 | 391,800,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,033 | py | import os
import json
import time, datetime
from django.http.response import HttpResponse
from libs.tool import timestamp_to_str, json_response
import logging
from libs.ssh import SSH
from conf.ENV_CONF import CODE_COVERAGE_SERVER
# Create your views here.
logging.basicConfig(level=logging.DEBUG,filename='/root/dhcp.l... | [
"dengshuyue@zdns.cn"
] | dengshuyue@zdns.cn |
da8a0a603298464ec6e44b46874ac0ad6c5ed880 | 8669415c4d5b8019d0f50c6ea727192c23b937c2 | /test/functional/sendheaders.py | 8af0d435985cc45559f2606f4e4b67787aa8cc70 | [
"MIT"
] | permissive | Palem1988/ion_old | 48a4d8e436691d9e05ebe44fc8811b0291093b83 | 2c2b532abf61e2a06231c1d3b4d9b2bd0cdb469a | refs/heads/master | 2020-08-05T07:51:35.440658 | 2017-06-25T21:47:57 | 2017-06-25T21:47:57 | 212,453,442 | 0 | 0 | NOASSERTION | 2019-10-02T22:32:26 | 2019-10-02T22:32:19 | null | UTF-8 | Python | false | false | 24,113 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test behavior of headers messages to announce blocks.
Setup:
- Two nodes, two p2p connections to nod... | [
"richard@ionomy.com"
] | richard@ionomy.com |
85ae61cc05563eee47e7f771d1f64d635a86292e | 192dec1ea734fd67a3c3720228826cf754b2da5a | /valeo/vr/apps.py | b88f93e9775d8048cb831c38beadcdde6919dbff | [] | no_license | fafaschiavo/cpi_valeo | a4df4e64161e58e44ade276f0b6284abfb5af6d2 | 777ef6173bbc4bf5941098cb2ea3b13fccf490c1 | refs/heads/master | 2020-04-06T04:14:59.226013 | 2017-05-02T22:39:00 | 2017-05-02T22:39:00 | 82,980,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class VrConfig(AppConfig):
name = 'vr'
| [
"fayschiavo@gmail.com"
] | fayschiavo@gmail.com |
eccf709bc85d1da00c645964d906df42ca0dd0af | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/reverseA_20200714202827.py | c8528cea3532a5e29a64703e1b1f20412489e57a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | '''
Given array A consisting of N integers, return the reversed array
'''
def array(arr):
i = 0
j = len(arr)-1
while i < len(arr)-2 and j > 0:
temp = arr[i]
arr[i] = arr[j]
arr[j] = temp
i +=1
j -=1
arr([1, 2, 3, 4, 5, 6])
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ed1db940ecdaeaba4082db5a0a4be025dab832ab | 43d322687c22743bed050a7e0096815dd28d8319 | /utils/kill_job.py | 7a1cf36efacc261ea4a2625e9d18fd37815e6e8e | [] | no_license | dongli/gsi-scripts | 1f41af0dd5148631ee1d533460418dfa71879332 | 4198667c87c9ca4f0a66e2a1ca0b5a6134caf5c1 | refs/heads/master | 2022-06-11T01:42:55.092954 | 2020-05-01T13:17:40 | 2020-05-01T13:17:40 | 260,460,546 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from job_running import job_running
import cli
from run import run
def kill_job(args, job_id):
if job_running(args, job_id):
cli.warning(f'Kill job {job_id}.')
if args.slurm:
run(f'scancel {job_id}')
elif args.pbs:
run(f'qdel {job_id}')
| [
"dongli@lasg.iap.ac.cn"
] | dongli@lasg.iap.ac.cn |
d29de614e9a8d0a96f901684004e73b06d75f9f3 | 4123e93b12fb8a179cc04536c2935239d5905dd9 | /src/iterative_sorting/insertion_sort.py | 622c5291f9489336d3f44c4a07ad70e588d34969 | [] | no_license | MicahJank/cs-module-project-iterative-sorting | 82764ee55def4413de6943ba8d6392789152d514 | 0786d2db5ba3e02ad51f689d7a666a557cc5edf5 | refs/heads/master | 2022-11-05T16:40:28.726000 | 2020-06-08T16:51:41 | 2020-06-08T16:51:41 | 269,215,896 | 0 | 0 | null | 2020-06-08T16:51:43 | 2020-06-03T23:28:25 | null | UTF-8 | Python | false | false | 1,220 | py | def simple_implementation(arr):
# loop from 1 to end of array
for i in range(1, len(arr)):
temp = arr[i]
j = i
while j > 0 and temp < arr[j - 1]:
# copy element to left to this position
arr[j] = arr[j - 1]
j -= 1
arr[j] = temp
ret... | [
"MicahJank@users.noreply.github.com"
] | MicahJank@users.noreply.github.com |
1898f53db1e53665c6f69f9ef8b54411b060dd23 | 75983ccc6e1eba55890429baace2bf716ac4cf33 | /python/tvm/relay/ir_pass.py | 84189c840d71a5dccdc08b92a22eb837b2fb5405 | [
"Apache-2.0"
] | permissive | clhne/tvm | 49c8be30c87791d5e8f13eea477620a829573d1c | d59320c764bd09474775e1b292f3c05c27743d24 | refs/heads/master | 2020-03-29T21:16:30.061742 | 2018-09-25T19:15:15 | 2018-09-25T19:15:15 | 150,358,639 | 1 | 0 | Apache-2.0 | 2018-09-26T02:41:46 | 2018-09-26T02:41:45 | null | UTF-8 | Python | false | false | 372 | py | # pylint: disable=no-else-return,
# pylint: disable=unidiomatic-typecheck
"""The set of passes for Relay.
Exposes an interface for configuring the passes and scripting
them in Python.
"""
from . import _ir_pass
# Expose checking expression, should rename to infer_type.
# pylint: disable=invalid-name
check_expr = _ir_... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
d7bd3622606e45ed5e769ce1df0a83d3c78fd893 | ca74ab5f803f207a70fd67d3e74b896033fc6bd0 | /lib/roi_data_layer/layer.py | a8b188624d895e430b00dd380ed8ac36ef1929df | [
"LicenseRef-scancode-generic-cla",
"MIT",
"BSD-2-Clause"
] | permissive | ShuangLI59/person_search | aae00ca2430b1d6507bbbdc656e9c2afa61fac7d | 007fa6ea4aedaad6f510772d8c65c47a58ce9e63 | refs/heads/master | 2022-11-18T04:27:05.390110 | 2022-11-06T15:55:01 | 2022-11-06T15:55:01 | 55,614,709 | 807 | 271 | null | 2016-10-25T06:18:28 | 2016-04-06T14:51:39 | Jupyter Notebook | UTF-8 | Python | false | false | 7,522 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""The data layer used during training to train a Fast R-CNN network.
... | [
"st.cysu@gmail.com"
] | st.cysu@gmail.com |
ae02b14171429a5182162ab7f4da4271b917afb0 | 5f6c16e89cf58304c2e70f1e34f14110fcec636c | /python-swagger-sdk/swagger_client/models/inline_response2006.py | 07fbec9fdc5ad9c1c909603b3c658606843c2559 | [] | no_license | mohammedpatla/secretapi | 481c97901a5e92ca02e29470ab683df80ea0f26a | df420498bd0ae37fd1a152c3877a1342275a8f43 | refs/heads/master | 2022-12-25T01:55:18.038954 | 2020-10-04T23:13:54 | 2020-10-04T23:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,041 | py | # coding: utf-8
"""
API for Secret Network by ChainofSecrets.org
A REST interface for state queries, transaction generation and broadcasting. # noqa: E501
OpenAPI spec version: 3.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
impo... | [
"lauraweindorf@gmail.com"
] | lauraweindorf@gmail.com |
c2901094b0c4b4a53907e0010cd8c43666a720bb | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/get_url/unit_test/test_get_file.py | 1b7ecf108a88e562d02711af4289979fc0778ff2 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 37,536 | py | import os
import sys
from unit_test.util import Util
sys.path.append(os.path.abspath("../"))
from unittest import TestCase
from komand_get_url.actions.get_file import GetFile
from komand_get_url.actions.get_file.schema import Input
from unittest.mock import patch
from insightconnect_plugin_runtime.exceptions import ... | [
"noreply@github.com"
] | noreply@github.com |
224de5824678703e1aca1afb898f6e2a2f618dd5 | c463d53ad1c0e345dd2f2704bbc55a9c02c1ae3b | /TLR_lidar/xml_to_csv_txt_all_class.py | 4989376cfb464594a11ff6ba5a2c221844dca9a6 | [] | no_license | Rsysz/TLR | ffa254ddd946ac275c068c15cb2a99aed5c19f84 | e2a9c35c72108d09ea2fb31fc5b1da321f1d7605 | refs/heads/master | 2020-07-04T04:51:12.271793 | 2019-08-13T18:06:02 | 2019-08-13T18:06:02 | 202,161,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | import os
import glob
import pandas as pd
import xml.etree.ElementTree as ET
def transfer_class(name):
if (name == "Traffic Light"):
return 0
elif (name == "Red"):
return 1
elif (name == "Yellow"):
return 2
elif (name == "Green"):
return 3
elif (name == "Straig... | [
"noreply@github.com"
] | noreply@github.com |
9f269a4fff9077b960987f031b39e54d5b25bf32 | 62b773144075571e53c18ba362a15cd098ed589f | /data/category.py | bb0adb8fdb61311d1c4b6f781c112f9fbcd0610e | [] | no_license | Viktorrya/web_progect | a0c884cb5fab4c13aaf550a62cad13528f765d92 | 750d0e3ab82a5121eefda6758ce86b415f616aad | refs/heads/master | 2023-04-15T01:37:39.917568 | 2021-04-21T20:23:41 | 2021-04-21T20:23:41 | 356,915,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | import sqlalchemy
from .db_session import SqlAlchemyBase
association_table = sqlalchemy.Table(
'association',
SqlAlchemyBase.metadata,
sqlalchemy.Column('news', sqlalchemy.Integer,
sqlalchemy.ForeignKey('news.id')),
sqlalchemy.Column('category', sqlalchemy.Integer,
... | [
"vika_nazarova_05@inbox.ru"
] | vika_nazarova_05@inbox.ru |
d3a903414652662f91ef2a9f09ed1a87342d49bf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/436.py | 78e4a99556ff805c431b31596155fa8617440523 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | f = open('C:\\Users\\djspence\\Downloads\\C-large.in', 'r')
tries = int(f.readline())
for case in range(0, tries):
lengths = {}
vals = f.readline().strip().split(' ')
n = int(vals[0])
remaining = int(vals[1])
lengths[n] = 1
small = 0
large = 0
while remaining > 0:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
801d1fa1debdb15ffa16da844379ec376718c842 | ac157f9f17356b6ff1fa31ae3051b2622f1e2365 | /main/views.py | ddbe75a155bb6f0be5b6cb35d92306e5d7d2e81a | [] | no_license | Charu-mathi-N/Django | 6b8bf0c0ce9a1acf8c14a5850499fe9c2f665e3b | 5b9898d3caead1ab1d5b310904f4a6643cf95c8d | refs/heads/main | 2022-12-26T13:33:19.973416 | 2020-10-11T15:29:07 | 2020-10-11T15:29:07 | 291,931,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.shortcuts import render
from .models import tutorial
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import login, logout, authenticate
from django.contrib import messages
f... | [
"70507486+Charu-mathi-N@users.noreply.github.com"
] | 70507486+Charu-mathi-N@users.noreply.github.com |
d43bf3fb05aa60d9b398ff7d573dab52da0c20d0 | 0fdbd907e952abbec7dfb20a4c3fd14587856067 | /Que1.py | 1c60c7fe539a1e10ec527c6c1eb5436370744a3b | [] | no_license | BYEONGSEOKKIM/algorithm | 3de3cf76d746b728a398303cfaa54c2cf3195175 | bd42475306f6e6e6600ded3817009157bf58b863 | refs/heads/master | 2023-07-07T10:13:52.377212 | 2021-08-09T08:54:17 | 2021-08-09T08:54:17 | 388,131,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | ## 큐
# def isQueueFull() :
# global SIZE, queue, front, rear
# if (rear >= SIZE-1) :
# return True
# else:
# return False
def isQueueFull() :
global SIZE, queue, front, rear
if (rear != SIZE -1) :
return False
elif (rear == SIZE-1) and (front == -1) :
return True... | [
"kqw38598@gmail.com"
] | kqw38598@gmail.com |
493a6991de254cce82c5fe80d81477fc8f7d330c | 8d5c0a7c33b4ba6cfb34199a5f3bc3dafebc5068 | /sistema/bu/migrations/0046_gallery.py | 11067b7e097fabe3ceb93f45bcad881c92b3e1aa | [] | no_license | MauMaster/Pet-Aqui | b50ce6517c49eea20944f9aa3f2b41b837fa391e | e87efca8becc65a65c2a85fe3cc666aa5ba6652d | refs/heads/master | 2022-12-19T08:12:54.980563 | 2019-06-23T16:42:17 | 2019-06-23T16:42:17 | 162,726,760 | 0 | 1 | null | 2022-11-22T02:23:44 | 2018-12-21T15:01:30 | Python | UTF-8 | Python | false | false | 764 | py | # Generated by Django 2.1.7 on 2019-03-09 23:16
from django.db import migrations, models
import django.db.models.deletion
import stdimage.models
class Migration(migrations.Migration):
dependencies = [
('sistema', '0045_auto_20190308_1912'),
]
operations = [
migrations.CreateModel(
... | [
"mauvirtual@gmail.com"
] | mauvirtual@gmail.com |
8377094d248757f5f3f93eae38600898a3c2c105 | 3a4c1f2ca351b08608fcf9760dca996fd6a913bb | /ejemplo1.py | c3dc60717adef36c08710669265e48258f1329d0 | [] | no_license | doppelsito/Octubre1-001 | dace87bb1d32c2328d66d304b8166cec9e10f5e5 | c83d090c81ac3ed70aeb59354002e2def37d057b | refs/heads/master | 2022-12-28T23:20:15.223350 | 2020-10-05T13:02:16 | 2020-10-05T13:02:16 | 300,278,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | a=int(input("Ingrese un numero: "))
b=int(input("Ingrese otro numero: "))
#Operaciones Matematicas
suma= a+b
multi= a*b
print("La suma de "+ str(a) + " con el numero "+ str(b) +" es igual a:" +str(suma))
print("La Multiplicacion de "+ str(a) + " con el numero "+ str(b) +" es igual a:" +str(multi))
#creamos una condic... | [
"maur.barriga@alumnos.duoc.cl"
] | maur.barriga@alumnos.duoc.cl |
0514757ebf52548a774661c0e89dd759fca5ad93 | ec221df89ecddfb38a3a1887152f3b4acdfdf259 | /comments/views.py | c728e5e3d884a4ec8bbfe5880844a493699da617 | [] | no_license | ThinkHao/Django-Blog | caedd39db70515a6256dea43b85351fea1906fbb | a58a19731e0048efa2c04ba0fd8aef2a6f4e7b6e | refs/heads/master | 2020-04-25T14:48:25.498667 | 2019-02-27T08:34:12 | 2019-02-27T08:34:12 | 172,854,967 | 0 | 0 | null | 2019-02-27T08:34:13 | 2019-02-27T06:13:37 | CSS | UTF-8 | Python | false | false | 799 | py | from django.shortcuts import render, get_object_or_404, redirect
from blog.models import Post
from .models import Comment
from .forms import CommentForm
def post_comment(request, post_pk):
post = get_object_or_404(Post, pk = post_pk)
if request.method =='POST':
form = CommentForm(request.POST)
... | [
"qianqi611x@hotmail.com"
] | qianqi611x@hotmail.com |
db166c5dcc339e356cf775d43a928a65440502ce | 7130a96ef7c2199cdb52406069fdc5e015760d70 | /components/docker/block/SPResnetBlockV2.py | 858733a371f31bb60c735dd0184b8db52d6b793f | [] | no_license | yanqinghao/AiLab-Pytorch | c37e8f47241d7f1a003226b2a19b9406ff7f6f9b | ceea8a1196dca4d219a099cbaedcecf7c3f96564 | refs/heads/master | 2021-07-08T07:15:29.801492 | 2020-10-23T06:14:34 | 2020-10-23T06:14:34 | 198,990,470 | 0 | 0 | null | 2019-08-14T09:23:00 | 2019-07-26T09:40:58 | Python | UTF-8 | Python | false | false | 734 | py | # coding=utf-8
from __future__ import absolute_import, print_function
import suanpan
from suanpan.app.arguments import Int
from suanpan.app import app
from args import PytorchLayersModel
from utils import getLayerName, net
@app.input(PytorchLayersModel(key="inputModel"))
@app.param(Int(key="inplanes", default=64))
@... | [
"woshiyanqinghao@gmail.com"
] | woshiyanqinghao@gmail.com |
2461531d4bea637f7d5827743cb3e450faf361d6 | d310b6c5f3cfa1fd26cea3a4c257e5c1f8fa7f5d | /testDjango/urls.py | c70dcdb06772ecb03bb0deec39607499428a9bab | [
"MIT"
] | permissive | yxys01/testDjango | fe42c9368b2822e5b5571e7afe7c8127f67fea03 | 4facfa3b5958bf9f7276237dedeea2382de0a6e8 | refs/heads/master | 2022-04-24T03:06:22.592524 | 2020-04-25T03:46:45 | 2020-04-25T03:46:45 | 258,681,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | """testDjango URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"420393969@qq.com"
] | 420393969@qq.com |
95b7481abd5da44b653139b6e671965a8b6bc81e | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_24692.py | 165e8518e2ba9cad5538a7ef480b9d654979df4a | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | # Python NameError: name 'self' is not defined Why?
python -tt
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
d66bf0bdc8c0d57ac20c68440808e207cb9dde0e | 37072be52ef0235667ad39b0fc732c4735a95a10 | /supervisor/app/Require_value.py | 295f7210ecee1ebc8d108eb01f0b150a51636e63 | [] | no_license | zyt325/DailyDocker | 6af8b50f19b8eb957d6214f52e1b408446afdfd2 | a54038f3dbdeec2eb9bc746d77b0215dd7fd3781 | refs/heads/master | 2023-04-25T03:26:32.973288 | 2021-05-20T01:23:28 | 2021-05-20T01:23:28 | 369,043,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,982 | py | # -*- encoding:utf-8 -*-
def Credentials(class_type='type', class_host='host', class_key='key'):
credentials = {}
# class_type: class_host: class_key: class_value:;
credentials.setdefault('DB_z', {}).setdefault('test', {}).update(
{'host': '127.0.0.1', 'user': 'zyt', 'passwd': '325', 'dbase': 'mysq... | [
"zhangyt@base-fx.com"
] | zhangyt@base-fx.com |
f98db3544d549e03a0ff413e118f2bd620ddf2ee | cb38b170cc716d812822c8fdf64da99e154e7e77 | /Daily Coding Problem/venv/Scripts/pip3-script.py | feb8e8c5c62025fbba1729354a447c379ef50e7d | [] | no_license | ayush-sah/Python | 9227b2819083d0c1fce4fa60a62b167c74a14172 | e17b43d2f4d53f4490630fc13a7defaafcf9ea28 | refs/heads/master | 2021-07-08T21:29:35.031374 | 2021-04-21T07:59:17 | 2021-04-21T07:59:17 | 228,924,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!"C:\Users\Ayush\PycharmProjects\Daily Coding Problem\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'... | [
"ayush.sah@spit.ac.in"
] | ayush.sah@spit.ac.in |
aa76333dce449dddad0902a8573b49da71de2bc9 | fa1810962cdb5304f32fbb869731638c02974f5d | /pattern_count.py | a0e57f9cf4bafd85bbd980cfbeb1c2287c126b1c | [] | no_license | ahishsujay/Biology_Meets_Programming_Bioinformatics_for_Beginners | f347df646d9e8b943ff486a7a5b1bcf02833f29d | c99c3660a41327670df1c717db202974462c13be | refs/heads/master | 2022-04-01T16:04:10.009108 | 2019-12-30T05:28:16 | 2019-12-30T05:28:16 | 230,821,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | def PatternCount(Text,Pattern):
'''Function to calculate the occurence of Pattern in Text'''
count = 0
for i in range(0,len(Text)-len(Pattern)+1): #+1 is added due to inclusiveness
if Text[i:i+len(Pattern)] == Pattern:
count += 1
return(count)
| [
"ahish278@gmail.com"
] | ahish278@gmail.com |
2a04c078859847f83b2a810252c0bd0a2a0367e9 | da052c0bbf811dc4c29a83d1b1bffffd41becaab | /core/web_debranding/__manifest__.py | 2626a321be85b590c2375e95e0b69f7ad52c0bfc | [] | no_license | Muhammad-SF/Test | ef76a45ad28ac8054a4844f5b3826040a222fb6e | 46e15330b5d642053da61754247f3fbf9d02717e | refs/heads/main | 2023-03-13T10:03:50.146152 | 2021-03-07T20:28:36 | 2021-03-07T20:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # -*- coding: utf-8 -*-
{
'name': "Backend debranding",
'version': '1.1.1',
'author': 'IT-Projects LLC, Ivan Yelizariev',
'license': 'LGPL-3',
'category': 'Debranding',
'images': ['images/web_debranding.png'],
'website': 'https://twitter.com/yelizariev',
'price': 150.00,
'currency': ... | [
"jbalu2801@gmail.com"
] | jbalu2801@gmail.com |
08dfdc25dd5b6e725862d224f73a2f026bbb10bd | 8da2a3f13cf5051275c38ecf2c5a22f71e8a7ebf | /Yield Curve Animation/yield_curve.py | 702fb7937c78d0e668578526086efc6518913dda | [] | no_license | letsgoexploring/fredclass | fa615e84edae13cb36f73e73dd166f0d8afa6ca3 | 4fb9657c8909224d088c194e77560cda8e1b11c9 | refs/heads/master | 2020-12-12T21:00:53.353516 | 2015-06-23T20:58:12 | 2015-06-23T20:58:12 | 23,480,045 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import fredclass, urllib, dateutil
import matplotlib.pyplot as plt
import matplotlib.dates as dts
import numpy as np
# date example: '1981-01-14'
def yc(date,all_yields=None):
yields=[]
if all_yields == None:
y1m= fredclass.fred('DTB4WK')
y3m= fredclass.fred('DTB3')
y6m= fredclass.fred('DTB6')
y1 = fredcla... | [
"letsgoexploring@gmail.com"
] | letsgoexploring@gmail.com |
6997ba18d8ad2fb05c77cb9cbd2942726bf65798 | fd4aba49cbd4042a95e7376eac245df0e95b72d3 | /auto-generated/python/test/test_margin.py | a5287ac7cde2c798af31194cd8a629e51b3cef2c | [] | no_license | bretton/api-connectors | 47755e7ec4701a600b3bf6a541c618573e97e365 | e8b9de34ff941c3edae2b094f6ab0eb1c24bf8bb | refs/heads/master | 2020-04-14T20:01:38.746415 | 2019-12-20T11:43:05 | 2019-12-20T11:43:05 | 164,079,343 | 2 | 2 | null | 2019-12-20T11:43:06 | 2019-01-04T08:21:45 | C++ | UTF-8 | Python | false | false | 2,277 | py | # coding: utf-8
"""
BitMEX API
## REST API for the BitMEX Trading Platform [View Changelog](/app/apiChangelog) #### Getting Started Base URI: [https://www.bitmex.com/api/v1](/api/v1) ##### Fetching Data All REST endpoints are documented below. You can try out any query right from this interface. Most ... | [
"samuel.trace.reed@gmail.com"
] | samuel.trace.reed@gmail.com |
222c27fed7d206044563f38816d6d87261e0f34b | aeb69456c4e6f2238c947ae426d346aad033d598 | /python/268.缺失数字.py | 782b23d882a2f414dfc1c490783634a33db502ec | [] | no_license | ElonXie/LeetCode-Practice | f2c345cadce8d60515343ee94f52de5f34477d81 | 7a54fc8f85e3e7f937bb504a8f4c6de6dd7da3e2 | refs/heads/master | 2021-05-16T21:09:11.231951 | 2020-06-21T03:39:12 | 2020-06-21T03:39:12 | 250,470,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #
# @lc app=leetcode.cn id=268 lang=python3
#
# [268] 缺失数字
#
# https://leetcode-cn.com/problems/missing-number/description/
#
# algorithms
# Easy (54.29%)
# Likes: 219
# Dislikes: 0
# Total Accepted: 50.8K
# Total Submissions: 93.6K
# Testcase Example: '[3,0,1]'
#
# 给定一个包含 0, 1, 2, ..., n 中 n 个数的序列,找出 0 .. n 中没有... | [
"sdaxdh@163.com"
] | sdaxdh@163.com |
60356fe0fc529813a65d6b737ae74b0c6145361b | 973207c11590e932d0868a2b6dbe8c081efaa452 | /ejemplo4.py | a93731b89eda7af364bbbcb616e1051f39e105e8 | [] | no_license | samfiner/ejemplopython | 41bd7af4d600f55970cf351c40eb6c81c1eafdd6 | 18bba74c51603b9235d796132803a5658110fd9b | refs/heads/master | 2020-06-23T19:13:20.425216 | 2019-08-08T22:39:53 | 2019-08-08T22:39:53 | 198,728,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | num1=int(input("dijite el primer numero: "))
num2=int(input("dijite el segundo numero: "))
operacion=int(input("dijite 1 para suma, 2 para resta, 3 para multiplicacion y 4 para division: "))
if operacion==1:
print(" la suma es:", (num1+num2))
elif operacion==2:
print(" la resta es:", (num1-num2))
eli... | [
"juanmc32145@gmail.com"
] | juanmc32145@gmail.com |
3c4576f5ddbaa3c48af78c475ce38b2bd8b8f920 | 9561e483f18e1c42f1e6d53c3f3e9634ae6010fd | /ChapterV/Quiz/V.3-1-Random-Code.py | 45cd508576e9ecf29563d1fc3b177b85bd93936f | [] | no_license | china-university-mooc/Python-Basics | e90f0bbf20e448e29264883ca50b32d1ef388514 | 60b47d8e60788c798593e5cbbdcf5bb8931bc3b8 | refs/heads/master | 2021-03-14T00:00:51.804219 | 2020-04-24T16:15:36 | 2020-04-24T16:15:36 | 246,722,336 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import random
def genpwd(length):
start = pow(10, length - 1)
end = pow(10, length) - 1
num = random.randint(start, end)
return str(num)
length = eval(input())
random.seed(17)
for i in range(3):
print(genpwd(length))
| [
"zhaozhang@thoughtworks.com"
] | zhaozhang@thoughtworks.com |
92bcfa6ce67739e1cc047aaee172267236b38d3e | 40aa9e67ca10c39b7d2646c28b7dc1ec31da8f3e | /VCAnalytics/bin/wheel | 0d146325f0acc7177dff192cbb11e73255ac5fef | [] | no_license | christopdr/venture_capital | 096daed052d54293fbc55a0aa5f9bc7094e45f44 | 3d7412153a9849c4e647d04260d15775eb0ba126 | refs/heads/master | 2020-05-04T19:43:32.775771 | 2019-05-18T06:29:19 | 2019-05-18T06:29:19 | 179,405,280 | 0 | 2 | null | 2019-05-18T06:29:20 | 2019-04-04T02:18:29 | Python | UTF-8 | Python | false | false | 277 | #!/Users/Christopher/Documents/GitHub/venture_capital/venture_capital_app/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"christopdr@users.noreply.github.com"
] | christopdr@users.noreply.github.com | |
f820276f18fc4c046f94b5b1dc6f7996facd91e2 | 0380b8b08838128f57e2eed713a7e67578538d27 | /1.Flexible movement policy/4.Corr_random_50a/1.Corr_rand_50a_30cm/funct_30cm_full_mov_50a.py | 5340de3b68dfb5b18a392bd953bfa20ec29822bd | [
"MIT"
] | permissive | GustavoHdezM/Supermarket-environment-for-COVID-19-mitigation | edf3291a7f6dba8c66a89712b941fb14aa968300 | 61d08151d4d6522eeab327b76b693dcd0f0e70c7 | refs/heads/master | 2022-11-30T04:42:46.296290 | 2020-08-06T07:55:24 | 2020-08-06T07:55:24 | 279,936,577 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 64,704 | py | # -*- coding: utf-8 -*-
"""
Functions Code
Platform for testing potential COVID-19 spread in Supermarkets
@author: Gustavo Hernandez Mejia
"""
import matplotlib.pyplot as plt
import math
import random
prop_cycle = plt.rcParams['axes.prop_cycle'] #Colors
colors = prop_cycle.b... | [
"noreply@github.com"
] | noreply@github.com |
bf9b4c55e0e0b67ded0e6452ab8893a773b3fb88 | d469de9070628b7c56e283066d9122eb73c42dd2 | /algorithms/data_structures/binary_tree.py | 7dad06d856241373ca5e8bfd012d65a0b853afdc | [] | no_license | Rowing0914/Interview_Prep_Python | af26369ccb92c623fc2ac44e62d3f61e94046df6 | a77a9b2342fbc9fc87b9f3670b0f3ab36f47eac7 | refs/heads/master | 2022-11-26T10:22:44.564728 | 2020-08-07T12:06:54 | 2020-08-07T12:06:54 | 269,878,434 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py |
class Node:
def __init__(self, value):
self.l = None
self.r = None
self.v = value
class BinaryTree:
def __init__(self):
self.root = None
def add(self, item):
if self.root == None:
self.root = Node(value=item)
else:
self._add(item, self.root)
def _add(self, item, node):
if item > node.v:
... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
d531ac6b14b28efdbcaa7dbcc9edad4029ab4ccf | 0ff562277646000e7f05c68e18133466effeb962 | /seq2seq/evaluate.py | 9356c281bfea4c511ab9d95e5d84048c069e162c | [] | no_license | zyxue/bio-seq2seq-attention | 708fd8a73f69c8564d488c185dba792e3570cbed | 692614f4d025c78800ecd6c104c430e2bff11edf | refs/heads/master | 2020-04-16T21:34:59.626246 | 2019-02-22T00:42:40 | 2019-02-22T00:42:40 | 165,930,778 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | import random
import torch
from seq2seq.plot import plot_attn
# from seq2seq.utils import tensor_from_sentence, get_device
def evaluate(src_lang, tgt_lang, enc, dec, tgt_sos_index, src_seq, seq_len):
with torch.no_grad():
# shape: S X B X 1
src_tensor = tensor_from_sentence(src_lang, src_seq).vie... | [
"alfred532008@gmail.com"
] | alfred532008@gmail.com |
87503f32f0ebd1aa3c6acc09980ebdaeb4ed6a34 | 0438cb6726cd47f17b75cc960d457e433beeed95 | /tests/test_cli.py | 7e6cc9f4c08378936ae125b5e9812674ea17fbb7 | [
"MIT"
] | permissive | boydgreenfield/metasort | 3071aa4600f6b5f0ba9eeb431b1cbcc7c1399102 | 27622d75f36b1dde959c269cb90b57f4110d813b | refs/heads/master | 2021-01-22T20:39:08.266721 | 2015-04-10T18:57:12 | 2015-04-10T18:57:12 | 33,745,227 | 0 | 0 | null | 2015-04-10T18:53:23 | 2015-04-10T18:53:23 | null | UTF-8 | Python | false | false | 49 | py | from nose.tools import *
def test_base():
pass | [
"wave@phel.im"
] | wave@phel.im |
1dbec0cd8d756ebeae9a779507e72fa0e3c38631 | 3d06eeebdd598efba25d29d7e3d03d90ede1bfbd | /18_lesson(django)/video-shop/videostore/courses/forms.py | 25df6a10b202d97a7c1598c18ec17325dee5ec84 | [] | no_license | duk1edev/itproger | 58bdd16088dec7864585d318935b118ce584874d | 786f94fff6d816f3f978bd8c24c3d985ffd5ffb2 | refs/heads/master | 2021-01-02T02:43:32.684100 | 2020-03-28T18:10:25 | 2020-03-28T18:10:25 | 239,443,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from django import forms
from .models import Course
class CreateCourseForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(CreateCourseForm, self).__init__(*args, **kwargs)
self.fields['slug'].label = 'Название URL'
self.fields['title'].label = 'Название курса'
self.fi... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
8af6656adc1248aaec6594d9ca08c2d83462f6ee | bd03fd4503b9249ca93dcae8b4e6d392039affff | /Desafios/desafio51.py | a5c3afb0130abda8898a0192219f1ecbc7101b78 | [
"MIT"
] | permissive | ArthurBrito1/MY-SCRIPTS-PYTHON | f40e81cada60fb498249c65a444e8d8ca9be6c0a | 86967fe293715a705ac50e908d3369fa3257b5a2 | refs/heads/master | 2020-09-14T07:18:33.061121 | 2020-08-05T18:00:33 | 2020-08-05T18:00:33 | 223,062,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | print('='*20)
print('10 TERMOS DE UMA PA')
print('='*20)
pt = int(input('Primeiro termo:'))
r = int(input('Razão:'))
dec = pt + (10-1)*r
for c in range(pt, dec+1, r):
print('{}'.format(c), end=' >> ')
print('ACABOU') | [
"noreply@github.com"
] | noreply@github.com |
647577be7019d95438e3a5c1aa3b2dcbafb93134 | c6053ad14e9a9161128ab43ced5604d801ba616d | /Public/Public_zqxt_99/__init__.py | 4f5ee4f58760d9dfb875cffb3773d9d9dbf5771b | [] | no_license | HesterXu/Home | 0f6bdace39f15e8be26031f88248f2febf33954d | ef8fa0becb687b7b6f73a7167bdde562b8c539be | refs/heads/master | 2020-04-04T00:56:35.183580 | 2018-12-25T02:48:51 | 2018-12-25T02:49:05 | 155,662,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/11/10:55
# @Author : Hester Xu
# Email : xuruizhu@yeah.net
# @File : __init__.py.py
# @Software : PyCharm
| [
"xuruizhu@yeah.net"
] | xuruizhu@yeah.net |
27577e7db85523739cc0108bcaeaa2e2bcf01f28 | f1fb0181fe5b3d1ea7445f532cb5cce5e20a0f70 | /ecomplexity/ComplexityData.py | 9f249d33754bba6d68ee417b7e73ae955759134a | [
"MIT"
] | permissive | complexly/py-ecomplexity | bb8a0775415d70f5305645d2e29af5b7db206e6b | 772fbae9eaa4f995be725d05eed9a6fa6a7c7156 | refs/heads/master | 2022-04-17T01:03:26.217566 | 2020-04-17T12:50:43 | 2020-04-17T12:50:43 | 256,500,518 | 0 | 0 | MIT | 2020-04-17T12:45:23 | 2020-04-17T12:45:22 | null | UTF-8 | Python | false | false | 6,481 | py | # Complexity calculations
import numpy as np
import pandas as pd
import warnings
import sys
from functools import wraps
import time
import datetime
class ComplexityData(object):
"""Calculate complexity and other related results
Args:
data: pandas dataframe containing production / trade data.
... | [
"shreyas.gm61@gmail.com"
] | shreyas.gm61@gmail.com |
d6d72188452f31c22020a56e6b82f84f7b7910e4 | 041d242a0eb55495cf657c6832b5ed23628c1548 | /step/최단경로/9370_미확인 도착지/지언.py | eb2fac63e7f1071bfc42bd393a9f964de72d9441 | [] | no_license | easyearn77/Algorithm_baekjoon | 4ba17f8435f116ee83be70edb93f3cb8f555361b | 3d4d1f60c7564865683ac09624e2381611124ebc | refs/heads/main | 2023-07-20T02:16:46.972552 | 2021-08-28T15:02:27 | 2021-08-28T15:02:27 | 362,725,267 | 0 | 1 | null | 2021-06-12T15:38:45 | 2021-04-29T07:17:31 | Jupyter Notebook | UTF-8 | Python | false | false | 1,136 | py | import sys
from heapq import heappush,heappop
input = sys.stdin.readline
INF=100000000
def dijkstra(start):
heap = []
dist = [INF for _ in range(n+1)]
dist[start]=0
heappush(heap, [0, start])
while heap:
distance, node = heappop(heap)
for cn in graph[node]:
i_cn_d = d... | [
"noreply@github.com"
] | noreply@github.com |
125eac8a5e1310b4e67608eba3a5b4ceb227c24f | b8dd5bc2231d692cbfd647ab4b22258a220af2dd | /test/test_integration.py | 5eeebfd39535acccc8712ad4de49e37ce400bfe7 | [] | no_license | federicorenda/ctr-design-and-path-plan | 94d5c2873b3eb0cec2a1b60beef508c5c0055d7b | 12a573a93334038699c164d84dee02eb5dbcd0c1 | refs/heads/master | 2022-04-19T20:00:10.270571 | 2020-03-30T23:43:52 | 2020-03-30T23:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | import pathlib
import unittest
import pyvista as pv
from ctrdapp.config.parse_config import parse_config
from ctrdapp.model.model import create_model
from ctrdapp.solve.visualize_utils import visualize_curve_single, add_single_curve, add_objects
from ctrdapp.heuristic.heuristic_factory import create_heuristic_factory
... | [
"conorsmesser@gmail.com"
] | conorsmesser@gmail.com |
2e3830270c2f597bdc8eabd24a620e474ff45bf7 | ed76db3a268a9253837e85130c0f221bd904bff0 | /BFS DFS Tree Trie/[x] 951. Flip Equivalent Binary Trees.py | 977dc67a611809853b31324c4280f92d03a16f05 | [] | no_license | jay-joo-code/leetcode | f54db01f195f35d436e524d6e257ad755525eb69 | 349bd6d54a3f463499b9f59d7aec01c9dd1fc9d0 | refs/heads/master | 2022-11-30T21:17:34.602100 | 2020-08-09T05:55:37 | 2020-08-09T05:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py |
# attempt (AC) after mistakes
# misunderstood question at first
def flipEquiv(self, root1: TreeNode, root2: TreeNode) -> bool:
if not root1 and not root2:
return True
if not root1 or not root2:
return False
flip = self.flipEquiv(root1.left, root2.right)... | [
"jj534@cornell.edu"
] | jj534@cornell.edu |
843d02469e85866f10c030b14a8b34b1ddb154ba | cfcd117378664e4bea080b3c1011a25a575b3d51 | /hawc/apps/vocab/migrations/0004_term_uid.py | f894ab0af5c902c93c900e051fb9821419084ebb | [
"MIT"
] | permissive | shapiromatron/hawc | 9d3a625da54d336334da4576bd5dac6915c18d4f | 51177c6fb9354cd028f7099fc10d83b1051fd50d | refs/heads/main | 2023-08-03T13:04:23.836537 | 2023-08-01T18:39:16 | 2023-08-01T18:39:16 | 25,273,569 | 25 | 15 | NOASSERTION | 2023-09-14T17:03:48 | 2014-10-15T21:06:33 | Python | UTF-8 | Python | false | false | 348 | py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("vocab", "0003_load_v1"),
]
operations = [
migrations.AddField(
model_name="term",
name="uid",
field=models.PositiveIntegerField(blank=True, null=True, uni... | [
"noreply@github.com"
] | noreply@github.com |
c8cfb5d4514a6c437d9a1641968d93669810379e | 7cd0848c38bfc8edabdd4ea71311ba62dde6920a | /DL_ICP1/Source/basicOP.py | 768bc7b4561be5d325a5ca0e44591ea25d8ac518 | [] | no_license | koushikkatakam1995/Python-DeepLearning_ICP | e500c717d754a4c337bc4562716c9520d3c1a35e | 0cffb30d30e0fc13fb3ff8a173eabefe502a3e7e | refs/heads/master | 2020-06-02T05:14:53.284445 | 2019-07-24T03:10:43 | 2019-07-24T03:10:43 | 191,043,773 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import pandas
from keras.models import Sequential
from keras.layers.core import Dense, Activation
# load dataset
from sklearn.model_selection import train_test_split
import pandas as pd
dataset = pd.read_csv("diabetes.csv", header=None).values
# print(dataset)
import numpy as np
X_train, X_test, Y_train, Y_test = trai... | [
"koushik.katakam@gmail.com"
] | koushik.katakam@gmail.com |
607b6c4c1e427642a1161ae9205245f6d6679a3a | bf1275ed5aaac8635acbdbe65ac90b9158c88b22 | /src/candles.py | 811e79e3ba98f21499fefc2b899077a2b75d26d8 | [] | no_license | SpearVFX/Paramaker | e07c7371499e9794db94c3dd3949f21d2657eb81 | 15a981ae159c1df5b800ecd43a91d4d5df5510bb | refs/heads/master | 2023-04-18T01:48:04.855565 | 2021-05-07T13:16:22 | 2021-05-07T13:16:22 | 339,559,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,180 | py | import cryptowatch as cw
from termcolor import colored
from datetime import datetime
import colorama
colorama.init()
# Simple candle used for easier code readability
class Candle:
def __init__(self, timestamp, opened, high, low, closed, volume, volume_quote):
self.timestamp = timestamp
self.opened ... | [
"alexander.kostov37@gmail.com"
] | alexander.kostov37@gmail.com |
c0feccb9c2fb708155fac9d7ec92d68d6dfbe30c | 65a6dc575655fbd668066b78b24f4a2c95c161b0 | /World.py | 4c63e1cb7b49d15f887f2628b9aa55b7afeb0a7a | [] | no_license | Coaaal/MechWarrior_Game | 13965d26d5a29e0c94452ca57bda77dc60f4b3e6 | 9e22c0ce6a13d2671d4df15f53956313b07e9175 | refs/heads/master | 2020-07-14T15:48:58.188644 | 2017-05-26T05:23:44 | 2017-05-26T05:23:44 | 73,873,580 | 0 | 0 | null | 2017-05-26T05:23:45 | 2016-11-16T02:00:07 | Python | UTF-8 | Python | false | false | 4,366 | py | from Pawns import *
from Entity import *
vec = pg.math.Vector2
class World:
def __init__(self):
self.world_coords_origin = SCREEN_WIDTH/2, SCREEN_HEIGHT/2
self.world_coords_offset = (0, 0)
self.player_1 = None
self.player_sprite = None
self.sprite_sheet = None
self.... | [
"coaaal@gmail.com"
] | coaaal@gmail.com |
4e995985f87985f9f0b38c60bb6d5e64cebe60d5 | f867688397d14ed17d7bdf36a3333f7ecb7515a7 | /ncaambb/teamtwitters.py | 0661e172499b299b823cc5bd215a55cc551c733e | [] | no_license | jlweichen/sportstwitter | 9204710fbc0b5f3b4af6f9011b413d13d42e7877 | f4fb77d3fd79830bad5573aacd1504d95d58c5fe | refs/heads/master | 2021-05-14T03:52:40.200876 | 2020-03-01T21:09:51 | 2020-03-01T21:09:51 | 116,629,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,178 | py | teams = {
'Gonzaga':'@ZagMBB',
'Auburn': '@AuburnMBB',
'Kentucky':'@KentuckyMBB',
'Colorado':'@CUBuffsMBB',
'Oregon':'@OregonMBB',
'LSU':'@LSUBasketball',
'BYU':'@BYUbasketball',
'Arizona':'@APlayersProgram',
'SFA':'@SFA_MBB',
'ETSU':'@ETSU_MBB',
... | [
"noreply@github.com"
] | noreply@github.com |
3ef46392ca1c5bbd793009df1348cd98028e338a | 26ec21923453fd402dff7c209723ec5a429c9639 | /variation/sql.py | b0113b64978f8f616d59962cf9f879a5af5c7d99 | [] | no_license | xiar/vpduserv | df5346f59fe582457197e34cc4140e8eb44ecaa7 | 9d985aaf48c3b140b0bd1b1589dac1c21a6c1982 | refs/heads/master | 2021-01-15T09:09:18.731127 | 2016-07-04T02:17:25 | 2016-07-04T02:17:25 | 57,357,403 | 1 | 0 | null | 2016-04-29T05:40:22 | 2016-04-29T05:40:22 | null | UTF-8 | Python | false | false | 7,898 | py | #
# SNMP Simulator, http://snmpsim.sourceforge.net
#
# Managed value variation module: simulate a writable Agent using
# SQL backend for storing Managed Objects
#
# Module initialization parameters are dbtype:<dbms>,dboptions:<options>
#
# Expects to work a table of the following layout:
# CREATE TABLE <tablename> (oid... | [
"helloarys@gmail.com"
] | helloarys@gmail.com |
97ef40139203515bd0014bc3608ad7be519a4032 | 39ca327035771b6b80e0eb18e5712f9a56e5d9e6 | /ipUtils/ipUtil.py | 26522f42cdd8ccbf685a1063286371747176e786 | [] | no_license | D5quar3/Code | fe7bf9396b4f53243837ca9b523ce0ca012a6b85 | 5f2328f91f7c3c2f96fae894cfb2f1cff3c78c74 | refs/heads/master | 2016-09-10T15:37:00.948363 | 2015-04-03T18:01:59 | 2015-04-03T18:01:59 | 33,375,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | #! /usr/bin/python2.7
import os
import re
class ipUtil:
def __init__(self, ip):
self.ip = ip
def scan(self):
open('pingResults.txt', 'w').close
os.system('nmap -sn -oG pingResults.txt '+ self.ip)
def connected(self):
pat = re.compile('Status: Up')
... | [
"builderofrobots@yahoo.com"
] | builderofrobots@yahoo.com |
e89461a51e52313d597915885da1df109637baae | ae288b9604ee86b471d698023fce03738b578544 | /lib/system/__init__.py | d3474854c5d8888f77545f1a7a11a08f805ffc55 | [] | no_license | snaress/studio | a8421a0772600494859ba86daace4bf499f8e055 | 90f4fc50ca9541c0d70cb381c8002ef8a3ce8087 | refs/heads/master | 2021-01-17T05:49:57.193795 | 2016-02-07T13:57:24 | 2016-02-07T13:57:24 | 25,691,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import os
#-- Package Var --#
toolPath = os.path.normpath(os.path.dirname(__file__))
toolName = toolPath.split(os.sep)[-1]
toolPack = __package__
| [
"jln.buisseret@gmail.com"
] | jln.buisseret@gmail.com |
bd1ab995c82446f03ced54cf6ec76668c26fe90c | 25270c94477bb0e00cbd5d070ed1e7bbea04f9c2 | /retina/efnet.py | 01ccc169d402197a7e9ad7260135802ecf790e6f | [] | no_license | nvvaulin/icevision2019 | 610ff095bb247663b07dd00dfc46c690e3aa9f19 | 5eeb5122b1faab96ee7f3e7ff2ec871d9f3923b4 | refs/heads/master | 2022-10-30T21:41:05.681326 | 2019-07-15T13:52:01 | 2019-07-15T13:55:42 | 207,381,303 | 0 | 1 | null | 2022-10-21T10:50:28 | 2019-09-09T18:50:14 | Jupyter Notebook | UTF-8 | Python | false | false | 11,129 | py | # from collections import namedtuple
# from maskrcnn_benchmark.utils.registry import Registry
# from maskrcnn_benchmark.modeling.make_layers import group_norm
# from maskrcnn_benchmark.layers import FrozenBatchNorm2d
from torch import nn
import torch
from torch import nn
from torch.nn import functional as F
from effic... | [
"itisgrisha@gmail.com"
] | itisgrisha@gmail.com |
8d330fc84abbde5b8b43600d100dc19c4363f696 | f18beb468016da1d4360773c55b7313a97c9a057 | /document_similarity/views.py | abd6dc5ca178def4e80d1499f9a1f6f370128fce | [] | no_license | BilgiAILAB/bilgi-ai | e40e6126c562812457478960308e40e07a3e510e | fdb1c4b2568e657c38c2a288b1ade217e1bc628b | refs/heads/main | 2022-12-30T06:12:27.942876 | 2020-09-17T09:09:34 | 2020-09-17T09:09:34 | 305,128,543 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,858 | py | import json
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404, redirect
from django.urls import reverse
from document_similarity.algorithms.similarity import TFIDFCosineSimilarity, TFIDFEuclideanDistance, \
TFIDFManhattanDistance, word2VecCosineSimilarity, word2Ve... | [
"ibrahimmdogann@gmail.com"
] | ibrahimmdogann@gmail.com |
f9fff565d665aa7af67ad9802ff07e6822d6c84a | 2647bf05a6ab9a84fe75e6697c45603f41066bce | /venv/bin/iptest3 | a84d26d195cdf4a5f00190636d75eb0c2004b479 | [] | no_license | angelaaaateng/Covertype_Analysis | 425be5c762313ba808859f3901f65c49fbfef89f | 12c689af7cf7035126f46f60c63547c4ad75c562 | refs/heads/master | 2022-10-11T09:08:13.267225 | 2019-09-06T14:53:03 | 2019-09-06T14:53:03 | 203,034,657 | 3 | 4 | null | 2022-09-30T18:35:19 | 2019-08-18T17:16:00 | Python | UTF-8 | Python | false | false | 287 | #!/Users/angelateng/Documents/GitHub/Covertype_Analysis/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython.testing.iptestcontroller import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"angela_teng@alumni.brown.edu"
] | angela_teng@alumni.brown.edu | |
d897796ac05564cb9b593c41d1298cdd32285979 | 746a24367e2cc1804314e841003636268f2b8899 | /learning_user/Contact_Info_Adminstration/migrations/0001_initial.py | d0b3232d8acbb2d2ca6c1ed979b91e462c139f16 | [] | no_license | boudouara/MAKANI-cf | e2f8904e8c78d6e653a1f8b185659d0b82c8ebc6 | 32d33e8934d50c76c4df595b575716c03e6adee5 | refs/heads/master | 2021-05-17T00:52:23.997959 | 2020-06-01T22:48:06 | 2020-06-01T22:48:06 | 250,543,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | # Generated by Django 2.2.5 on 2020-05-13 12:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"n.boudouara@esi-sba.dz"
] | n.boudouara@esi-sba.dz |
c7049fd951803d6bc6f19109023f9ea5c5d783c2 | a3e4cc590667c444460d3a1f659f53f907da1783 | /azure/mgmt/blueprint/models/assignment_deployment_job_result_py3.py | 52b07be3a07c2f65071a62d8c0a9f5ad292585ef | [] | no_license | eduardomourar/azure-mgmt-blueprint | 729d9c08915caab9e8029278da6dc87c4eaa44d6 | 153c3c63cb519350cb68752e07251e1e8ff26510 | refs/heads/master | 2020-05-27T02:26:42.436079 | 2019-11-11T11:52:14 | 2019-11-11T11:52:14 | 188,451,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"eduardo.rodrigues@sentia.com"
] | eduardo.rodrigues@sentia.com |
e10b64e55faa704d71c38e5a32ab6cc065fcaf0b | fb7439e3a0663444660cd56e27e2d30ce94374ef | /WfaUWTSCore/src/setup.py | e8b89d0139f4de2885cf2d23257916f7c5cd66ec | [
"ISC"
] | permissive | wit732-fan/Wi-Fi-Wi-FiTestSuite10.0.0beta | 54906cc65f95d7a35bc3964f2be67cd5ffa2e3f7 | 06fe5ec068cf24e3b202f7eb76ddc2b0249eb112 | refs/heads/master | 2023-03-16T06:02:31.651981 | 2016-07-08T17:22:48 | 2016-07-08T17:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # Script to convert python source to EXE
from distutils.core import setup
import py2exe
import sys
import os
pkg='wts.py'
setup(console=[pkg])
| [
"kdhara@wi-fi.org"
] | kdhara@wi-fi.org |
ce9066f317bacb0738c785c8dd9f205f191c6c76 | 875c080f965dc8ecb41a522f9a021f31e38a791d | /ingestion/urls.py | 8d5ecddec20f6ef93d185d1c7a185c89cee02aca | [] | no_license | cazino/Ingestion | bfee27fdd26363c590b540bc9321020f8190e876 | d71688aa649093fa357bc8f88a3358f06fce2b43 | refs/heads/master | 2016-08-07T11:22:31.424104 | 2010-05-10T16:03:15 | 2010-05-10T16:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from django.conf.urls.defaults import *
from mp3.main.models import Artist
urlpatterns = patterns('',
(r'^batch-view/$', 'mp3.ingestion.views.batch_view'), # Home page
(r'^artist-lookup/$', 'mp3.ingestion.views.artist_lookup'),
(r'^label-lookup/$', 'mp3.ingestion.views.label_lookup'),
(r'^u... | [
"emmanuel.cazenave@mondomix.net"
] | emmanuel.cazenave@mondomix.net |
0542fdbf2773a0eff4356a8d9134630034300b1e | 92a93729e82deceb6c8e96fe940a9910e05d604f | /week_6/8_6/likelion_flaskr_init/likelion_flaskr_init/migrations/versions/54185e9c8c99_.py | 396146d26c9e60e3a251aadd97a073eda9941ee1 | [] | no_license | mylovenr/homework | e2dbbdab7880030e39352daff92e508603059227 | d0887361eb65c9cf954e68108cb4f929dd5e8ba3 | refs/heads/master | 2020-05-26T09:20:58.538100 | 2014-08-22T08:55:41 | 2014-08-22T08:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | """empty message
Revision ID: 54185e9c8c99
Revises: 3262a3aa37b2
Create Date: 2014-08-06 19:55:26.214000
"""
# revision identifiers, used by Alembic.
revision = '54185e9c8c99'
down_revision = '3262a3aa37b2'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"yangdayoung11@hanmail.net"
] | yangdayoung11@hanmail.net |
1118dd6314a13fd14c81d69b52640f18ac825cfc | f995e2afc7ec7ba80aa44384036f087b192e8036 | /process_data.py | 2d6173e0077b0341abf30a141011bb244498d20a | [] | no_license | kevin2018pg/SentimentClassification | 62fd80578e3789e78174a8a7bdeccba16fb9e794 | b0802e41dcf40e4c317c6b749be5816055e7e145 | refs/heads/master | 2023-04-19T06:24:35.471842 | 2021-04-30T06:46:00 | 2021-04-30T06:46:00 | 357,917,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | # -*- coding: utf-8 -*-
# @Time : 2020/4/1 22:24
# @Author : Kevin
# @File : process_data.py
# @Version : python 3.6
# @Desc : 脏数据清洗
from tqdm import trange
from harvesttext import HarvestText
import pyhanlp
import json
import re
import os
def read_json(file):
with open(file, 'r', enc... | [
"noreply@github.com"
] | noreply@github.com |
d0e245f285f7028136bf38a0f29d170d8c9f4d5a | 8bb4a472344fda15985ac322d14e8f4ad79c7553 | /Python3-Core/src/test/prompto/translate/eme/TestCss.py | 801cb78f8fe015a3e6257711209c57258ee542a1 | [] | no_license | prompto/prompto-python3 | c6b356f5af30c6826730ba7f2ad869f341983a2d | 64bd3d97d4702cc912097d41d961f7ab3fd82bee | refs/heads/master | 2022-12-24T12:33:16.251468 | 2022-11-27T17:37:56 | 2022-11-27T17:37:56 | 32,623,633 | 4 | 0 | null | 2019-05-04T11:06:05 | 2015-03-21T07:17:25 | Python | UTF-8 | Python | false | false | 767 | py | from prompto.parser.e.BaseEParserTest import BaseEParserTest
class TestCss(BaseEParserTest):
def setUp(self):
super(type(self), self).setUp()
def testCodeValue(self):
self.compareResourceEME("css/codeValue.pec")
def testCompositeValue(self):
self.compareResourceEME("css/c... | [
"eric.vergnaud@wanadoo.fr"
] | eric.vergnaud@wanadoo.fr |
07260035fae3775eccc23a0180c11509e81f5968 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /algorithms/tracker/transt/builder.py | f300dc026d1df2f2ed64f5f4be27d71f5490de44 | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | import torch
from models.TransT.builder import build_transt
from algorithms.tracker.transt.tracker import TransTTracker
from data.tracking.methods.TransT.evaluation.builder import build_evaluation_data_processors
def build_transt_tracker(network_config, evaluation_config, weight_path, device):
device = torch.devi... | [
"linliting06@live.com"
] | linliting06@live.com |
70d103be4cf7033045a7bfe4abce7325e7410269 | e0980f704a573894350e285f66f4cf390837238e | /.history/rocketman/settings/dev_20210104181322.py | 6b33f05fcfb179db48a0b11ba3e3a32f5bde8bef | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '0qjdxh8nibnbihjuj9*-%$#kx!i8y^wk6wt(h)@27m1g-9g$)v'
# SECURITY WARNING: define the correct hosts in production!
ALLOWED_HOSTS = ['localho... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
0d9dbb80048235a39c05ba7bae2ad9409f44e688 | 1a4c0183180c4a03528814ec2cbafcf32aaf7981 | /wine-reviews/wine3.py | fdc4a19b3628f2d5b9ac7b0ae434b9bc0d332782 | [] | no_license | Zaljun/CSC291-Text-Mining | 3234d7bf5275fa09f6eaaa43018810c61a182adb | 4dcc8feb5ccb3e9bae889e892bfc8ee4e0e2c255 | refs/heads/master | 2022-10-12T19:56:54.407165 | 2020-06-08T03:54:50 | 2020-06-08T03:54:50 | 270,258,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,140 | py | from nltk import word_tokenize
from nltk import pos_tag
from nltk.stem import PorterStemmer
from nltk.corpus import stopwords
import re
import numpy as np
import pandas as pd
import gensim
import gensim.corpora as corpora
from gensim.utils import simple_preprocess
from gensim.models import CoherenceModel
... | [
"noreply@github.com"
] | noreply@github.com |
aa9180de291add55eec12d959476791d748a2f23 | c49261d13dda2c4aa8219a9cc6c09a7bd2fde395 | /day08/day08.py | adfbdf7fd86c08daddbd3f71db892282ed35412b | [] | no_license | endy-imam/advent-of-code-2020 | 39a3646642ae72283db1ed6f0ff14a148dc8e7a6 | 26180c2835c9332c4a3cd294186aae8ca9449cf4 | refs/heads/main | 2023-02-07T20:04:30.334144 | 2020-12-25T09:50:48 | 2020-12-25T09:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | import os
from utils import get_data, run, map_list
# INPUT HELPERS
def get_op(line):
op, arg = line.split()
return [op, int(arg)]
# INPUT SECTION
DIR_ROOT = os.path.dirname(__file__)
instructions = map_list(get_op, get_data(DIR_ROOT).split('\n'))
# HELPER FUNCTIONS
def run_op(line, val):
op, arg = in... | [
"imam.endy@gmail.com"
] | imam.endy@gmail.com |
264216662e2222d193824bf147504092fba75191 | 2839ac802d1094976fdeaf603c15808de6f539e7 | /venv/bin/pip | 97a7a2f1f271a652a18167ef01ec8a9dec7140fb | [] | no_license | alishalabi/songs-i-know | 9f38b063355d061720d53d65c96a41bf373606b8 | a9cd6e94662154560e2f84a75a7f32c6fa18e639 | refs/heads/master | 2020-06-05T11:24:04.274007 | 2019-07-03T04:06:35 | 2019-07-03T04:06:35 | 192,421,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/Users/alishalabi/Desktop/dev/BEW1.3/songs-i-know/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"alishalabi@Alis-MacBook-Pro-2.local"
] | alishalabi@Alis-MacBook-Pro-2.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.