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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2abf00043fb7fb143f8dbc2a4f2dd2048cedc296 | 259b4099658c878f24babcad1f3dd71b0bd06608 | /web_thrift/thrift_builder/thrift_application.py | 2952bf8c7fe8431ef116da882ce0726d29db935a | [] | no_license | wangleimvp/python-project-components | 42161a8b27456a071523e6622033d2b1f5be7e39 | bf1ff4fa5b82e6a34669a16f34f3aec5e9c4d09d | refs/heads/master | 2021-01-10T01:33:36.033476 | 2015-12-29T07:55:50 | 2015-12-29T07:55:50 | 48,683,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# thrift 服务注册 启动
#
import logging
import sys
import tornado
from thrift.TMultiplexedProcessor import TMultiplexedProcessor
from tornado.options import define
from web_thrift.gen_py.test import ThriftTestService
from web_thrift.thrift_builder.thrift_builder import Thrift... | [
"wanglei@eking.mobi"
] | wanglei@eking.mobi |
1ed2df321002914cdd3a4ee1a29fc9e886584572 | 0c2dd621ce1bfd21b0dccb9e189c1fbce1ac2457 | /autoclick.py | 94ce27343b0cf1ee939bb0102a3d515eb7a14887 | [] | no_license | andy94077/autoclick_zuvio | d82f698e512f6b3fa5bad7da52373dfbc003ff9d | aac166493fbb1db40bfe89cc59c254f54339f319 | refs/heads/master | 2021-12-15T15:00:10.709944 | 2021-12-08T03:53:52 | 2021-12-08T03:53:52 | 174,682,505 | 0 | 1 | null | 2021-12-08T03:53:53 | 2019-03-09T10:56:24 | Python | UTF-8 | Python | false | false | 7,496 | py | #!/usr/bin/env python3
import argparse
import getpass
import os
import random
import re
import signal
import time
from dotenv import load_dotenv
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from modules.mail import Mail
load_dotenv()
def sig_int(sig... | [
"andy94077@gmail.com"
] | andy94077@gmail.com |
ec7689f3217a4147f21ee420d07203c33fba89f7 | fe0d96234dc905010e0a6819c63a4d18e4468f80 | /bulk/migrations/0005_auto__del_field_customer_name__add_field_customer_firstname__add_field.py | a3ab50d84c21fe683c6dc5db0f0577f138a2be24 | [] | no_license | aiti-ghana-2012/AlertBunny | cf2e497b8525af683c4b69a595d1d5e3b5715622 | 02f56b5e541568d55efbede2facf6c1e2001bdb6 | refs/heads/master | 2021-01-22T18:28:16.133980 | 2012-08-14T22:17:11 | 2012-08-14T22:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,769 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Customer.name'
db.delete_column('bulk_customer', 'name')
# Adding field 'Customer... | [
"obeng@obeng-Presario-CQ62-Notebook-PC.(none)"
] | obeng@obeng-Presario-CQ62-Notebook-PC.(none) |
31356e0d99a19ee522cda865378a49b0ec1c5187 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1623.py | debc4e59f6ac2116d11df4140a57d981a774db94 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=60
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
8c760c82575c89117f1bb062fe648deb7598a7c1 | 8e54239a04dd382847bc7edf2fb1ec1a67e3052c | /venv/bin/sqlformat | c5176a45642a5ec0e192c7b45e4c10bdc02187e9 | [] | no_license | hadcode09/f112_cr | 4bed932435e28243f7f69241b55b259308b75e94 | 3a7e9c5b2c4e4d80366e91dee283029aa83f7aa4 | refs/heads/main | 2023-05-05T06:21:35.529103 | 2021-05-22T22:40:32 | 2021-05-22T22:40:32 | 366,224,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/mahadley/Code/SDGKU/blog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mark.hadley1@hotmail.com"
] | mark.hadley1@hotmail.com | |
843955a7354b5a25b939be660a5d92c0cb9dd070 | 9b85ff2bd80edb93e8d1919c80e80fc18cb1d35a | /src/acmpy/debug/debug_rwc_alam.py | 837de53048321a405d383d3b5d429c3414bdf0f1 | [
"MIT"
] | permissive | agryman/acmpy | 3cea318c50f2a65298654f5784da4e47e26c0368 | e94fdd7be99c645b3538a01102fb38791e3c7f95 | refs/heads/master | 2022-10-15T23:29:28.710777 | 2022-06-12T02:05:33 | 2022-06-12T02:05:33 | 214,318,038 | 0 | 0 | MIT | 2022-06-12T01:42:59 | 2019-10-11T01:34:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,515 | py | """This module debugs the RWC_alam() function."""
from sympy import S, Symbol, Expr, solveset, sqrt, Set, EmptySet, simplify, nsolve
def RWC_alam_simplified(B: float) -> None:
c1: float = -3.0
c2: float = 2.0
# set up the equation
A: Symbol = Symbol('A', real=True)
mu: Expr = sqrt(9 + (A * c1 /... | [
"arthur.ryman@gmail.com"
] | arthur.ryman@gmail.com |
804d443c38b24401f277f07d2be29ae31988630b | dd7924ddad83836811c39bc843785d08b7fe7697 | /stock/tests.py | eb9008571da1115b225b092141757737fef6e456 | [] | no_license | mainixfn/mainix_server | 537ba5428306205dc0cd6db6b4bc4451e89079c6 | 56ba4120a00a53cddd8eae47d6b1b510740254ce | refs/heads/master | 2022-12-11T00:25:54.662350 | 2019-12-09T11:33:01 | 2019-12-09T11:33:01 | 226,854,727 | 0 | 1 | null | 2022-12-08T03:16:58 | 2019-12-09T11:25:37 | Python | UTF-8 | Python | false | false | 1,307 | py | from django.test import TestCase
import requests
import pandas as pd
def read_stock_price(code,page_num):
url=('https://finance.naver.com/item/sise_day.nhn?code='+code+'&page='+str(page_num)+'')
data=pd.read_html(url)
data=data[0]
data.columns=['날짜','당일종가','전일비','시가','고가','저가','거래량']
price_data=... | [
"mainixfn@naver.com"
] | mainixfn@naver.com |
31015086cb3c4c905af5db3e7c2ca5c376ff75d5 | cc90f5bd11ef51ef7733c420d41a0aebde922278 | /HandleIt/Handle_It.py | 368a61ad02ee6124789dfcaf8be708af1a7a4eda | [] | no_license | Akavov/PythonDss | 1098fc89b0feec941968d96b9331b13ea7d43dd4 | 36b12e31f9fc02038822af33ad1c91adaa975c29 | refs/heads/master | 2021-04-27T17:54:03.930919 | 2018-03-20T16:55:26 | 2018-03-20T16:55:26 | 122,330,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #demonstrate handling exceptions
try:
num=float(input("Type the number:"))
except ValueError:
print("Seems like not a number!")
#handling different kinds of exceptions
print()
for value in (None,"Hello!"):
try:
print("Trying transform into the the number:",value,"-->",end="")
print(float(va... | [
"arsakavov@gmail.com"
] | arsakavov@gmail.com |
3659e3647c37d4571dcfa292ef3cc834f0566eee | 7b72a2caf389ac152dbd28d35d70b20bcd5a2ef4 | /misc/sets_Lesson.py | 49cd456a222b43e9964bf116ba1638fd4fcb56d3 | [] | no_license | benwilson96/group21 | ef6c1af9d7b98a6a36c186e27464f03bccd235f1 | 263df616378e75060dd96f12c64ac82c16edaa6b | refs/heads/master | 2021-01-10T14:11:35.679348 | 2016-04-15T00:30:29 | 2016-04-15T00:30:29 | 53,666,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py | from tkinter import*
class sets_Lesson(Frame):
def __init__(self, master):
Frame.__init__(self, master)
self.grid()
self.lTitle()
self.LessonDescription()
self.LOutline()
self.Content()
self.TakeTest()
self.Objectives()
self.GoToTest
def lTitle(self):
Title = Label(self, text='"Sets"', fon... | [
"benwilson96@hotmail.com"
] | benwilson96@hotmail.com |
24dfe7e4a657a00443f621c402db7ded1b87587f | fa19df33728779d9a662542a674be6554af1feba | /src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common_model_pb2.py | 506bee5f0858395bf327e368e4a0e6b70adfe651 | [
"Apache-2.0",
"MIT"
] | permissive | anthonyscheeres/Ipen5BackendGroep11 | 3abfe0e07ec1d240a8e0b2db79a4f8d2f26bd59f | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | refs/heads/master | 2022-11-15T07:08:22.619268 | 2020-06-23T09:10:33 | 2020-06-23T09:10:33 | 263,292,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 23,989 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common_model.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflecti... | [
"info@anthonyscheeres.nl"
] | info@anthonyscheeres.nl |
f448b03af30aed1ac228a52b4a9de7f7647dd612 | ef84f142ce3cbc9de8dad3bcdeb26c762e3dc824 | /modules/app/view.py | 8cf4d2110a246c864242b5044d1eb4c3b02914c8 | [] | no_license | johnbomba/lecture-nov-19 | eeca28202298c23a0f693b4654717af42ae878dc | 8e0875cf924f12aefaba9ec82f7bd0992b1e1e5d | refs/heads/master | 2020-09-13T13:07:10.970091 | 2019-11-19T21:17:21 | 2019-11-19T21:17:21 | 222,791,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | def sayhello():
print("Hello") | [
"bomba.john@gmail.com"
] | bomba.john@gmail.com |
dd4233f9877fc797e7015caf2f2eea6ec7f0105b | 149baa65329d0e13ae3189b8127d2eff5f5fdf77 | /bot_ws/build/ur5_pkg/ur5/catkin_generated/pkg.installspace.context.pc.py | 285472e4a9fe5b9bac59158a6b63e020bc6e13d7 | [] | no_license | mtbthebest/imitation_learning | 20b990aa7396fecbe5433c7703f353bf99fa5f2c | 4c08192e31062f69056cc36efffb7a2ce0264244 | refs/heads/master | 2020-05-21T17:05:26.567273 | 2019-09-16T12:20:19 | 2019-09-16T12:20:19 | 186,111,790 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ur5"
PROJECT_SPACE_DIR = "/home/mtb/s... | [
"mtbthebest11@gmail.com"
] | mtbthebest11@gmail.com |
95205781cf62e93ad3b0b25c8c12a11ba6a87ce3 | 462c56e7454c97e0541588b9be66a4e216ea20fd | /337.house-robber-iii.py | b7df910aa92e9bed203055651ced6ea30bbb2e43 | [] | no_license | LouisYLWang/leetcode_python | d5ac6289e33c5d027f248aa3e7dd66291354941c | 2ecaeed38178819480388b5742bc2ea12009ae16 | refs/heads/master | 2020-05-27T08:38:48.532000 | 2019-12-28T07:08:57 | 2019-12-28T07:08:57 | 188,549,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | #
# @lc app=leetcode id=337 lang=python3
#
# [337] House Robber III
#
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#
class Solution:
def rob(self, root: TreeNode) -> int:
def rob_sub(root):
... | [
"louis.yl.wang@outlook.com"
] | louis.yl.wang@outlook.com |
7693475115923f7a3fd879c679cf8a92b8bc1129 | d73bb501d0ea21e1d42e24bc1a2f79924ede664f | /PQueue.py | fd0b3ff4179d621a392e0d88f285ec38f85c50fe | [] | no_license | ahurka/UOttaHack-SmartLine | a5398e525a593786af8665427e0f32a005ba9324 | 7950e3b229f0bff80259456d261b1587a987b3a5 | refs/heads/master | 2021-09-07T06:13:07.708395 | 2018-02-18T16:59:36 | 2018-02-18T16:59:36 | 121,888,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | import numpy
class ArrayDeque:
def __init__(self):
self._buffer = numpy.array([None])
self._in_buf = 0
self._head = 0
self._tail = 0
def is_empty(self):
return self._in_buf == 0
def _set_length(self, length):
new_buf = []
for item in self:
... | [
"hurka.alex@gmail.com"
] | hurka.alex@gmail.com |
e91a03d34a7893b570c1523d246b152253033ba9 | 164b4271e6baeb2bd911c8e431c0b2be6fb363b2 | /euler/page1/problem12.py | 2635345ba2fd39010460462f11890cafdbb94519 | [] | no_license | mc4/algo | 89a8bde1fb1cb82ce17b45f7a9907dd75af186f8 | 3cdbc60e4bb4e6a07c5edab9451b6caee5d95470 | refs/heads/master | 2020-04-09T13:35:15.676416 | 2016-06-14T03:07:37 | 2016-06-14T03:07:37 | 20,665,235 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | i, s = 1, 0
while True:
s += i
c = 0
for j in xrange(1,s+1):
if s % j == 0:
c += 1
if c > 500:
break
i += 1
print s
# solution: 76576500 | [
"mark.conley@rutgers.edu"
] | mark.conley@rutgers.edu |
fd23ca198ff0aaae52acdb44f396bf645636ef2a | 996175acb3e414f804c2a59bd266d80e2f411cee | /Learning Django2.0/Blog/myblog_env/myblog/blog/migrations/0001_initial.py | b74033bfc3ea789ef43d1c90797dae82b8a25058 | [] | no_license | hanxuwu/Learning-Django | 4f0af30e4ad9e296f2c948c0c652e3d93b342e27 | dfd857e0c5f74e3cbb3d66c83022375779a41cb0 | refs/heads/master | 2022-11-12T18:18:38.554207 | 2018-08-07T01:47:24 | 2018-08-07T01:47:24 | 118,908,708 | 0 | 1 | null | 2022-10-29T19:47:56 | 2018-01-25T12:13:41 | Python | UTF-8 | Python | false | false | 1,426 | py | # Generated by Django 2.0 on 2018-01-27 04:00
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),
]
opera... | [
"skunder301@gmail.com"
] | skunder301@gmail.com |
5083c70b62155d28e238ca6bd714236ac7170634 | 3abc88ee3c20507c3739af5434b2099961bba388 | /posts/admin.py | 694a63d0cab2ff12564d02f7292ed8f200b5bf8b | [] | no_license | franky88/django_template | d13a2a727b673e28f229e5ed2e8ec96057dc6e1c | 451990d2c21a486d5d19dd9681f714104afda081 | refs/heads/master | 2021-07-09T22:46:56.696921 | 2017-10-05T13:39:15 | 2017-10-05T13:39:15 | 105,893,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.contrib import admin
from .models import Post
# Register your models here.
class PostAdmin(admin.ModelAdmin):
list_display=["title", "timestamp", "updated"]
list_filter=["timestamp", "updated"]
admin.site.register(Post, PostAdmin) | [
"ramosfp99@gmail.com"
] | ramosfp99@gmail.com |
3a96c152b3ca1dd953764453f657954fe4c7edb9 | c5ba1666e45d872bd431d30cc0698bb6ca515d09 | /vis/diagnostics/urls.py | dccda443db0b31aaaf031b6d3ce03d1097c4af9e | [] | no_license | ZokirPro/VIS-back | 21a167eb2c4c151c4c26ce3eed94e093cc457113 | 8e204cedd735ae5cc0d35283d6d1c99af04df884 | refs/heads/master | 2023-07-02T16:22:37.585808 | 2021-08-09T05:31:59 | 2021-08-09T05:31:59 | 386,545,281 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.contrib import admin
from django.urls import path,re_path,include
from . import views
app_name='diagnostics'
urlpatterns = [
path('registration_vaccinated_animals',views.registration_vaccinated_animalsIndex,name='registration_vaccinated_animals'),
path('test_results',views.test_resultsIndex,name='te... | [
"zuckerberg3771@gmail.com"
] | zuckerberg3771@gmail.com |
83a6953918467e65e32947f0f87d8400c47f4c5f | 8ebdad54d78966e8dce53b0724589eb0a511064b | /articles_metadata/src/journals/journals/spiders/abort_mission_jahrbuch_spider.py | 0b6b73182a3652e5cdcde0b3ee5d36cff2790d41 | [] | no_license | mangiafrangette/MAthesis | 2b6bea77a442ebf486ea642da0fdf9c92f0485ce | b3c9a66435337bb0582dc9e1ebc81770d19dba4d | refs/heads/master | 2023-03-18T12:42:28.139989 | 2021-03-13T12:14:17 | 2021-03-13T12:14:17 | 300,236,934 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | import scrapy
import csv
import os
import json
# abort mission...........
class ArticlesSpider(scrapy.Spider):
name = "jahrbuch"
def start_requests(self):
filename = "../../../../data/json_files/full_list_of_ids.json"
with open(filename, "r", encoding="utf-8") as f:
journals ... | [
"mangiafrangette@gmail.com"
] | mangiafrangette@gmail.com |
2bd53cdf3cf4e912f272d060d6e07a9650c5bf45 | 7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1 | /src/559.py | f063866e484fd03a1aa4d26b5e7b19a1d8e94cd2 | [] | no_license | ecurtin2/Project-Euler | 71f79ee90a9abd0943421677d78a6c087419e500 | 79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3 | refs/heads/master | 2021-03-19T14:52:57.045443 | 2018-04-12T22:05:37 | 2018-04-12T22:05:37 | 100,059,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | """
An ascent of a column j in a matrix occurs if the value of column j is smaller than the value of column j+1 in all rows.
Let P(k, r, n) be the number of r x n matrices with the following properties:
The rows are permutations of {1, 2, 3, ... , n}.
Numbering the first column as 1, a column ascent occurs at column... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
9928270eeb751942f12e0e14cd29f340028dcc49 | 60f4ec351660c484d5c729abeef1ab34c1d1272b | /Python scripts/K_CPM.py | 8ee4a8881e286e6537ae96fae801a5ac41c87c97 | [] | no_license | annatjohansson/complex_dynamics | b216edd01fbed9e24813543b265e156aabb27c33 | f6404fe155e8876379e639be15088e98e5fedab2 | refs/heads/main | 2023-03-29T02:44:48.287507 | 2021-04-05T21:31:01 | 2021-04-05T21:31:01 | 354,282,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | def K_Pot(x, y, cx, cy, max_it, R):
"""Computes the continuous potential of a point z = x + iy under p(z) = z^2 + c"""
"""Inputs:
z = x + iy: starting point
c = cx + cy: translation
max_it: maximum number of iterations
R: escape radius (squared)"""
x2 = 0.0
y2 = 0.0
it = 0
... | [
"anna.johansson1998@gmail.com"
] | anna.johansson1998@gmail.com |
2970d8227cccf50e65da0dda71c84de76531c099 | e510a82771967d8677ccb77be7d8fe199970ec39 | /setup.py | 94c41706ab048c6d1b4f753918410c242eff4509 | [] | no_license | mbr/ragstoriches | 4c1a7501a05f40aad13aa796105df5ce57beb9b9 | aa11405673dfd307915e38110145cede72892804 | refs/heads/master | 2023-06-06T20:49:07.700820 | 2015-12-23T10:53:40 | 2015-12-23T10:53:40 | 8,688,096 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='ragstoriches',
version='0.4.1dev',
description='Develop highly-concurrent web scrapers, easily.',
... | [
"git@marcbrinkmann.de"
] | git@marcbrinkmann.de |
448d240cac3a1caba7534ece90ad949bfc2df05b | 2342b8737b9ffeb9715158b8ec74a33c7a4947f6 | /koku/providers/test/azure/test_client.py | c77e19be39011df1ea5a3260c8323920ed3ce2e7 | [
"Apache-2.0"
] | permissive | project-koku/koku | 444d8df05da5416c9cee606c42481c99be45f13d | 0416e5216eb1ec4b41c8dd4999adde218b1ab2e1 | refs/heads/main | 2023-08-20T11:30:17.510182 | 2023-08-17T18:27:30 | 2023-08-17T18:27:30 | 126,496,611 | 225 | 94 | Apache-2.0 | 2023-09-14T17:38:08 | 2018-03-23T14:29:23 | Python | UTF-8 | Python | false | false | 5,298 | py | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Test Azure Client Class."""
import random
from unittest.mock import patch
from azure.identity import ClientSecretCredential
from azure.mgmt.costmanagement import CostManagementClient
from azure.mgmt.resource import ResourceManagementClient
from... | [
"noreply@github.com"
] | noreply@github.com |
541678af921c5cb3fd5445e9ad1687d86061f153 | 45703db7d8c7a93c3a75df5d1f70972ed00cd426 | /gen_pass_by_web.py | a99d590b0cd6854c47e9489a462ae018b5d55df5 | [] | no_license | junmoxiao/gen_pass_by_website | 748aae00c4652f8b2a5b7df07ef8ab477376a317 | b6308fe637ad322a272ad269c89f2b9df3ebcbd8 | refs/heads/master | 2021-01-11T18:48:32.340184 | 2017-01-21T07:53:32 | 2017-01-21T07:53:32 | 79,632,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# modified from gen_pass_by_web(author:Peter Kim)
# author:junmoxiao
import urllib2
import re
site_list_file = 'site_list.txt'
words_file_name = 'words.txt'
def _remove_html_tags(html):
text = html
rules = [
{r'>\s+': u'>'}, # Remove spaces after a tag opens... | [
"53991338@163.com"
] | 53991338@163.com |
eee60eb55dc363e9ec8a3d0a3995dffa2c16519d | 19bf98c843d54d0c173928fdb1db39be9bd88ed7 | /utils/util.py | fcdbdcce8a2277190467418623b6c00160d55c64 | [] | no_license | pomelyu/AnimateGAN | 6dbf438aa4ba4663ecfa928e36813ef491f0893f | faf692eb41a58bd3a69b4aa552fbf00c858ed857 | refs/heads/master | 2020-04-02T01:48:23.965145 | 2019-01-26T09:16:41 | 2019-01-26T09:16:41 | 153,875,975 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from pathlib import Path
def mkdirs(paths):
if isinstance(paths, list):
for path in paths:
mkdir(path)
else:
mkdir(paths)
def mkdir(path):
if isinstance(path, str):
path = Path(path)
path.mkdir(parents=True, exist_ok=True)
| [
"pomelyu5199@icloud.com"
] | pomelyu5199@icloud.com |
75aa6901d1a170000bddbec4f1128620ace9611a | 1e5026118b9777f2274dc4fe9e7ff459a61430c4 | /redit/wsgi.py | d77c2f2ca8fe7560f62bf5191d2f0e9c54e7d36f | [] | no_license | Rubyroy12/reddit | 70a50980d02f1b10e8bae3b034327f73ab38be94 | 4d0e29bfa813c5ee42cc8b38647b3c5538e3c376 | refs/heads/master | 2023-06-18T06:58:02.900692 | 2021-07-16T00:09:06 | 2021-07-16T00:09:06 | 386,455,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for redit project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"you@example.com"
] | you@example.com |
fc02d86f01110b65c7e2f2a1e7b809f2188ee4f3 | c603e00f13957e726f2e94a53a19b268ea0f60d7 | /dist/python2.7_plantool/plantool/Cont_FF.py | 8d9d3acbc839f739ebb094c8640abfb537961a2f | [] | no_license | xuanjianwu/plantool | 97015351670732297b5fbe742395c228b7e5ddba | 4fe56c6ff8897690cc2a3f185901dfe3faeb819a | refs/heads/master | 2021-01-21T20:39:03.688983 | 2017-05-30T00:57:44 | 2017-05-30T00:57:44 | 91,229,802 | 2 | 0 | null | 2017-05-14T08:24:03 | 2017-05-14T08:24:03 | null | UTF-8 | Python | false | false | 3,027 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swi... | [
"tianhan_4@aliyun.com"
] | tianhan_4@aliyun.com |
c2b7c3e83aa1a84d81e0f8c306cf2cbb399b517e | ec276a5c01968932d83df0b01bd4c9e013fdebe5 | /ass_week_2-3/assignment-week-02 day-3.py | 74d06b14135d7573d4fd22f8699952924a711cfb | [] | no_license | raj-sekhar-au9/assignments | 9751965551947ec4aea0ea293e41e5819a89fa00 | 3fa6544e8951f13aa030bb1b58a98aa8fe5dd292 | refs/heads/master | 2022-11-26T18:10:45.661209 | 2020-07-24T16:35:59 | 2020-07-24T16:35:59 | 278,550,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | number = int(input("Enter any number: "))
if number > 1:
for i in range(2, number):
if (number % i) == 0:
print(number, "is not a prime number")
break
else:
print(number, "is a prime number")
else:
print(number, "is not a prime number") | [
"noreply@github.com"
] | noreply@github.com |
ddb0ea53d2047cc45e356825542dfdf1c327117c | 2161fca83f91721c897545e5e102b75a965d7795 | /Raspberry-Pi/Python/Adafruit/rgbColor.py | 990f1f15446d8ab887621532710c3ae71dfbfa83 | [] | no_license | hybotics/SingleBoardComputers | d6b2761da0855b81ff5bd87dc1ca71400dc9ffcc | 6cbef3e460e45a3b939d97499040fc00f4aef774 | refs/heads/master | 2020-03-10T16:15:14.805129 | 2014-07-05T15:52:33 | 2014-07-05T15:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin//env python
from time import sleep
from Adafruit_TCS34725 import TCS34725
# ===========================================================================
# Example Code
# ===========================================================================
# Initialize the TCS34725 and use default integration time and... | [
"hybotics.pdx@gmail.com"
] | hybotics.pdx@gmail.com |
ac4def1bf86f27d9e8c5fe96696a99c2a864681d | cce0052a5fa943240ffb87aff5dfb83c448b42fa | /pythonBot/test-cli.py | 35cfb7e65398073e0e2835d1c0d6dedfd653c65c | [
"Apache-2.0"
] | permissive | tabacha/WoIstDerWagen | 58c8020bab85360e452b70ea272483b4e1be3120 | feddaedbde494e9e0983f6a2c34b6b5c65a6ed23 | refs/heads/master | 2021-01-17T11:40:56.516936 | 2016-11-08T13:10:13 | 2016-11-08T13:10:13 | 61,426,764 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import time, sys, pprint, config
from mysql.connector import (connection)
import msgParse
cnx = connection.MySQLConnection(user=config.MYSQL_USER, password=config.MYSQL_PASSWORD, host= config.MYSQL_HOST, database=config.MYSQL_DB)
inTxt=' '.join(sys.argv[1:])
outTxt= msgParse... | [
"sven@anders-hamburg.de"
] | sven@anders-hamburg.de |
20a734e7d5bf5bf82e3d2f6fe725cd58d825fd16 | 5aa10c1998594f31005eac56acb34f7a59cac58b | /mysite/hello/migrations/0001_initial.py | a35d740d75216791bb06221e9ab128a90875a6cc | [] | no_license | KeiyaTomizawa/wasepa | f784b1c9127a0ec77b9d7e349baf52f1238c3275 | 2ab33e2e8ba86bce2243db1124250cc4a570dc09 | refs/heads/master | 2021-01-01T05:06:53.397968 | 2016-06-09T08:44:20 | 2016-06-09T08:44:20 | 59,650,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-05-25 06:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hello',... | [
"k.tommy75.japan@gmail.com"
] | k.tommy75.japan@gmail.com |
92772226a0298308386e78d5dc309ea41c259473 | 53e0e35f58dc169d5b4e293ff073f46948fbe278 | /pytorch_projects/fine-grained-image-recognition/Mutual_channel_loss/CUB200.py | eade1d5ac5c44b65f44033420cc718eb966eda63 | [] | no_license | Hoodythree/DeepLearningCode | 25097227d512e80b233352ce2cc58b023591b165 | 3e2d30198956c9f01c5fc8f9df4667eef43c51e9 | refs/heads/master | 2022-08-30T09:08:09.760487 | 2020-05-17T13:35:05 | 2020-05-17T13:35:05 | 262,494,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import os
import pandas as pd
from torchvision.datasets.folder import default_loader
from torch.utils.data import Dataset
base_folder = '../../data/CUB_200_2011/'
class CUB200(Dataset):
def __init__(self, base_folder=base_folder, transform=None, train=True):
self.base_folder = base_folder
self.tr... | [
"luoqiuhongthree@gmail.com"
] | luoqiuhongthree@gmail.com |
c9482df517c604a1782931a4893bcbceaf7f3f8c | c247f36c7c249d7c108c9959a041a9e782d2a865 | /slack.py | 0aa797b466db078cf4d2098fb76b7cc2aef37d26 | [] | no_license | anirudhvarma12/refeed | a52eade5a0b0be5408726213ebb9b5b2b80db093 | 930c9950d362b5c3de3d3d3c8a07087b5ad9bbee | refs/heads/master | 2021-01-17T15:33:59.272763 | 2016-05-26T09:57:48 | 2016-05-26T09:57:48 | 50,859,938 | 9 | 3 | null | 2016-05-26T09:57:48 | 2016-02-01T18:14:37 | Python | UTF-8 | Python | false | false | 2,043 | py | from flask import jsonify
from urllib.parse import urlparse
import rss
import settings
import dbservice
def get_response(text):
return jsonify({'text': text})
def split(command):
return str(command).split()
def get_help():
text = "Your Re-Feed command was incomplete. Use `add <url> <title (optional)>`... | [
"varma93@hotmail.com"
] | varma93@hotmail.com |
600b5d49487605e376e745ff50c7047d387368b4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/288/105862/submittedfiles/testes.py | 2d998344bd13ef5f84800052822c63b3268d44ad | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,713 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
#from minha_bib import *
print
("7 | 8 | 9")
import random
def solicitaSimboloDoHumano():
simbolo=0
while (simbolo)!= 'X' and (simbolo)!='O':
print ("Escolha um simbolo para jogar [X:O]: ")
simbolo=input()
if simbolo=='O':
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
00713021a63ea87fa1fcab814c364976f6908e90 | afdd48bf12b7c0e0a70d8168f05f29bfc1b5ba82 | /cart/views.py | 6feb11e29727573cd4a90dc95ac68e7c1831f7b6 | [] | no_license | niceShuai/fruitWeb | c0ddab496f181ce211d5460db9629391e840cb99 | f6943b362d0d6eff4dc12728b1483bcf68de52e9 | refs/heads/master | 2020-04-02T04:02:50.444099 | 2018-11-11T01:02:38 | 2018-11-11T01:02:38 | 153,997,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | from django.shortcuts import render
from django.http.response import JsonResponse
from cart.models import *
from users.login_verify import *
from users.models import *
from goods.models import *
# Create your views here.
@verify
def cart(request):
u_id = int(request.session.get('u_id'))
carts = Cart.objects.f... | [
"nice_shuai@126.com"
] | nice_shuai@126.com |
5ceea86ad6d888dabfc108c51820cc086e861934 | 43f316b151bc5d7e66b3358ae5e64f5e717e5c72 | /bookstore/urls.py | b62a5441cebb9bf7de7872c85166b5e53cceb656 | [] | no_license | xfde/django-vue-bookapp | 357be3ae1c66b6f0c33bff94293d257f203c0230 | 9e168ea49cf32a62814207e9042a285c5f7ac5ec | refs/heads/main | 2023-04-04T22:58:42.738334 | 2021-04-07T10:26:51 | 2021-04-07T10:26:51 | 354,943,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # bookstore/urls.py
from django.urls import include, path
from rest_framework import routers
from django.conf.urls import url
from . import views
from django.views.static import serve
from .views import signup, isLoggedin, signout, signin, add_favourites, list_favourites, remove_favourite_book, add_book
router = router... | [
"alex.constantin432@gmail.com"
] | alex.constantin432@gmail.com |
f405a4a8a6d33020a95d9d66579464910c04057b | 5b385c1f8424fa1b6409aa9fdf38bf9de450b318 | /md5(v2).py | 1fd0d209e621aa0a94315a9184535fdc456e810d | [] | no_license | GuillermoBenitoBarrios/Comparar-archivos-con-python | 527d0240a642e77f5a776d95737eb432fed590fe | 9cd53cdb4a98c391c395ce770523d22d8ad7147f | refs/heads/master | 2020-08-29T12:02:35.359461 | 2019-10-28T10:59:34 | 2019-10-28T10:59:34 | 218,026,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # Comparar si dos archivos son iguales mediante MD5 Checksum
# librerias
#import hashlib
import hashlib, sys
# paso de ficheros por argumento de shell
files = [sys.argv[1], sys.argv[2]]
def md5(fname):
md5hash = hashlib.md5()
# Abriremos el fichero linea a linea, por cuestiones de memoria.
... | [
"noreply@github.com"
] | noreply@github.com |
847e7826459e7dffae6d5bcde0376c4b7086d6d5 | 186f694b65b43cd56e746ce8538e4f1edad6129e | /1on1/BFS/547-friendcircle.py | 373d30f3c54ec2cd1aa12674be315d70fc5f22f8 | [] | no_license | zionhjs/algorithm_repo | 287486e0173e68cfa9e535490004c952192a54db | 26b4a770d5335abd738ae26c68d91f6af7b13749 | refs/heads/master | 2022-12-17T15:59:17.932490 | 2020-09-23T04:12:38 | 2020-09-23T04:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | class Solution:
def findCircleNum(self, M: List[List[int]]) -> int:
if not M:
return 0
for i in range(len(M)):
for j in range(len(M):
if j > i:
| [
"hjszion@gmail.com"
] | hjszion@gmail.com |
c7be4262816647cfa7d7ac36d3376958dc21ac85 | 78d6f3ebf672f1e3f7fce700b10de04fd06308f5 | /test.py | 7d176256fb464bca0652bb10922652cf0907bb53 | [] | no_license | stirplate/tensor | 92d4d2282f0cca2a34bc5db9b12c2ea512378864 | f2c886a897bb254942fbbbe4a8eb34ec8116cd92 | refs/heads/master | 2021-01-01T20:21:26.061470 | 2017-07-30T21:37:08 | 2017-07-30T21:37:08 | 98,821,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import input_data
mnist = input_data.read_data_sets ("/temp/data", one_hot = True)
import tensorflow as tf
#set parameters
learning_rate =0.01
traning_iteration = 30
batch_size = 100
display_step =2
| [
"keith@anotherMacbook.local"
] | keith@anotherMacbook.local |
476fbc2a8701e9feb827bde916a033d1a6a6aa69 | 63046c0d0e89bf827bf01f7bfab0ae2cc3acebbf | /domain/Article/shared/command/__init__.py | f5dd65c37dca15f2033979addff8548e9ed074e9 | [] | no_license | ericgj/gws-noticeboard | 62db73ccb848645b8126f73a82cc83a1f6a7f5f9 | 9c20d9066566b7637601273018ef4c7de16052ac | refs/heads/master | 2022-12-11T15:56:26.348018 | 2019-09-12T15:49:12 | 2019-09-12T15:49:12 | 203,261,694 | 0 | 0 | null | 2022-12-08T06:07:23 | 2019-08-19T22:55:36 | Python | UTF-8 | Python | false | false | 329 | py | class UnknownCommandError(Exception):
def __init__(self, command):
self.command_type = (command.__class__.__name__,)
self.command = (
command.to_json() if hasattr(command, "to_json") else str(command)
)
def __str__(self):
return "Unknown command: '%s'" % (self.comman... | [
"ericgj72@gmail.com"
] | ericgj72@gmail.com |
9bda45fa9571930ab7604ce41b6b04af91b8a53e | 70e4aee0047702e332f0c2b1d352d512592aa39b | /posts/urls.py | a3ac076cd1528a95761959cd8c555173e62f8a2e | [] | no_license | xSebeq/messaging-app | 9be2a8cb5be53ad555eb0511817940c4ac8c0ce1 | 6ac9017277d8c2816314b0f87bee6073bb8fb6d2 | refs/heads/master | 2023-04-08T14:24:10.110062 | 2021-04-21T19:31:10 | 2021-04-21T19:31:10 | 360,276,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.PostListView.as_view(), name='posts'),
path('new/', views.PostCreateView.as_view(), name='post_new'),
path('<int:pk>/edit/', views.PostUpdateView.as_view(), name='post_edit'),
path('<int:pk>/', views.PostDetailView.as_view... | [
"sebeq245@interia.eu"
] | sebeq245@interia.eu |
faf5bb0942b68286cc73e7bd1b72726907278e27 | c7d5a74520d480c580d9ebfaf67ec14537001e06 | /yellowpages_ratings_crawler/yellowpages_ratings_crawler/settings.py | 899a204b195eee093e68125157934dd99189c93c | [] | no_license | saahyl-rafiq/Python_practices | dc88b109b6fb8ac844a9d82e8ae6c4df51c460ca | 1d69d44e91f0209a289e2439c96bda623fac308a | refs/heads/master | 2021-01-21T12:26:23.649233 | 2015-09-08T05:33:33 | 2015-09-08T05:33:33 | 38,415,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | # -*- coding: utf-8 -*-
# Scrapy settings for yellowpages_ratings_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readt... | [
"saahylrafiq@gmail.com"
] | saahylrafiq@gmail.com |
22b9ed14d8089221fb1ab337022db9069915973c | 2aa5d879e68434bf6f421fe04509025dfa454ec0 | /03_tblog/app.py | 3c1a0d79bee8a76d5d354b18e757f0d52b4a8547 | [] | no_license | vl-flask/mongoflask | 0c78c2b79648ac6a5412f76cb77982870b5acff9 | 79f10b58c72d0d2090b02e91b455d132a899e6ef | refs/heads/master | 2020-03-19T05:07:58.855123 | 2018-06-08T05:53:55 | 2018-06-08T05:53:55 | 135,903,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import pymongo
uri = "mongodb://127.0.0.1:27017"
client = pymongo.MongoClient(uri)
database = client['fullstack']
collection = database['students']
students = [(student['name'], student['mark']) for student in collection.find({}) if student['mark']==99.0]
print(students)
| [
"valasema@yahoo.com"
] | valasema@yahoo.com |
ff3c2ffcf3cc11d160de55a7272c549fcd6a7555 | 3b24e5edf37401dcb6749629927a906ea41ecae7 | /pyexocross/exomol/exomolpf.py | 31813748b889a46c453f626d8574b02d39d3b383 | [
"BSD-3-Clause"
] | permissive | ucl-exoplanets/pyexocross | e686743150116b23e93f07251d0874db4d6c553b | 703341cd0fddafcbb04e935c89ddc9d02dda9f59 | refs/heads/master | 2023-02-15T16:27:10.944504 | 2021-01-11T11:32:43 | 2021-01-11T11:32:43 | 296,402,473 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import numpy as np
from scipy.interpolate import interp1d
class ExomolPF:
def __init__(self, filename):
pfarray = np.loadtxt(filename)
self._f = interp1d(pfarray[:,0], pfarray[:,1])
def Q(self, temperature):
return self._f(temperature)[()]
| [
"ahmed.al-refaie.12@ucl.ac.uk"
] | ahmed.al-refaie.12@ucl.ac.uk |
1908871205bbf084240cf35244bd40fb118c1458 | f0c097b2ec557e2aede2ae986eedbc5ae808e0a2 | /FinalProject.py | 3c8c1af4b6a5d03ea389f8ed585a5244c82f30e8 | [] | no_license | seymatufekci/gaih-students-repo-example | 6f895c99fa662eb234913b60d3c4699d31ebc528 | db7f7793ab3eb851bf3e88f3496a26d5c5f6716b | refs/heads/main | 2023-02-28T06:24:01.469266 | 2021-02-07T15:24:50 | 2021-02-07T15:24:50 | 335,745,033 | 0 | 0 | null | 2021-02-03T20:23:27 | 2021-02-03T20:23:27 | null | UTF-8 | Python | false | false | 2,603 | py | #!/usr/bin/env python
# coding: utf-8
#Seyma Tufekci - @seymaatufekci
#Final Project
#I created 3 classes as Company, Employee and Manager
print("Company Management System")
print("")
class Company():
def __init__(self, name, age, language, job):
self.name = name
self.age = age
self.lang... | [
"noreply@github.com"
] | noreply@github.com |
84383ba4737b5d4a2ec4906a127e9f199b441298 | b3de29590c9433579a3310dbc29c5c53369921ac | /scripts/pose_controller.py | fe20561c15fac2606b3bf48ffa0830c273198112 | [] | no_license | TB3-playground/asl_turtlebot | 42c47038d67fb463abfc8cec0ac82670a8e1951c | 3b56b49180f542fa76994659388031ac4bf3eaf6 | refs/heads/master | 2021-04-06T11:19:27.078800 | 2018-02-22T11:34:01 | 2018-02-22T11:34:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | #!/usr/bin/env python
import rospy
from gazebo_msgs.msg import ModelStates
from geometry_msgs.msg import Twist, PoseArray, Pose2D
from std_msgs.msg import Float32MultiArray, String
import tf
import numpy as np
from numpy import linalg
from utils import wrapToPi
# control gains
K1 = 0.4
K2 = 0.8
K3 = 0.8
# tells the ... | [
"ben.acc.landry@gmail.com"
] | ben.acc.landry@gmail.com |
3987865d319df9ad8ec9e0131bb87d39978e72e9 | 23972e95e2fb39011731af7e5f9d0df47c7747bb | /etl.py | 894806c3da03c4f5d2aaabcad729b842b1541757 | [] | no_license | jasonwashburn/udacity-postgress-project | 4cf506ee182b043dbf6aaaf1eb552b0c3aace19a | 2cb32e7d0485aba44d26f5b07f18cdbcfa1bfe59 | refs/heads/master | 2022-11-23T23:33:01.094606 | 2020-07-14T23:24:17 | 2020-07-14T23:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,889 | py | import os
import glob
import psycopg2
import pandas as pd
from sql_queries import *
def process_song_file(cur, filepath):
"""Process song file for song and artists data.
INPUT:
cur : cursor object from psycopg2 connection to sparkifydb
filepath : String containing filepath to file for processing
... | [
"wburn@wburn.net"
] | wburn@wburn.net |
a5339d93afe6aefd103bdcdaf61e0cee6da3be9f | d7819d68d983d0ae7ab85416efa4ba4fef04c80c | /object-detection-in-keras/data_generators/__init__.py | 5c1877881429610a9fe8a368a3e6143fc99dae7f | [] | no_license | achanani98/SSD_keras_digit | 8b4a87aee71add4c71dda649f383adfca482296d | 8e1d14a1ec06f38c9f00c5a38f12cc2b1b05114d | refs/heads/main | 2023-03-22T09:13:41.554065 | 2021-03-18T06:44:07 | 2021-03-18T06:44:07 | 348,962,007 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from .ssd_data_generator import SSD_DATA_GENERATOR
from .tbpp_data_generator import TBPP_DATA_GENERATOR
| [
"noreply@github.com"
] | noreply@github.com |
496f476afaaa22132cae4cbdc1c98f4b5eb976b5 | 49b55363d7eb12cbc3e48132ea4da726747e70e4 | /tpandas_backend/urls.py | 32cafe6ef58bfc3935cea178e21b472e3234181d | [] | no_license | zgq346712481/TPandas-Platform-Backend | 8227499ed5e984b1df60b865083bf2068f5c7bfb | d4c25f62b69d8f822952c073c205aad3491c0f65 | refs/heads/master | 2023-08-23T18:53:15.861120 | 2020-05-01T09:30:18 | 2020-05-01T09:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | """tpandas_backend 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')
Cla... | [
"yangwf86@gmail.com"
] | yangwf86@gmail.com |
219305932842bb0a951cda0aab9e9783eb969379 | f361126ee099303113b5ed3cc0e838bd01a9e41b | /Semana3/pattern.py | ce21f32f68915c1c4ac487f6d46600d7fa9a86c0 | [] | no_license | ju-c-lopes/Univesp_Algoritmos_II | e1ce5557d342ea75fe929cf7b207e633f9aa89cd | 5d4eec368be91c18f0ae5c17d342e6eb0f1c79be | refs/heads/master | 2023-06-05T11:09:25.415719 | 2021-07-07T22:26:53 | 2021-07-07T22:26:53 | 383,600,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def pattern(n):
if n == 0:
print(n, end=' ')
else:
pattern(n-1)
print(n, end=' ')
pattern(n-1)
pattern(3)
| [
"juliano.co.lopes@gmail.com"
] | juliano.co.lopes@gmail.com |
1681cf3956952c3b2add6ceb0f3ae7b5d6d21f62 | dd31ec8f3f979b0339cf686ce9094def03ef003a | /myvenv/Lib/site-packages/pylint/reporters/json.py | be37b21102933ca7fe5d330945a71fcc8280180a | [
"MIT"
] | permissive | rvmoura96/projeto-almoxarifado | 872bb945b4057bdbf108776e2101e9966a23f4de | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | refs/heads/master | 2022-11-11T07:45:33.475443 | 2017-11-21T21:13:19 | 2017-11-21T21:13:19 | 106,044,249 | 1 | 1 | MIT | 2022-10-26T05:02:32 | 2017-10-06T19:48:08 | Python | UTF-8 | Python | false | false | 1,662 | py | # Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""JSON reporter"""
from __future__ import absolute_import, print_function
import cgi
import json
import s... | [
"rvmoura.96@gmail.com"
] | rvmoura.96@gmail.com |
a7c6f8636993116c7a66155ac7432348a4115dfa | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/date_and_time.py | 1ceb06b1195becb57c479f4372fe8044d6aba0a6 | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,479 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\date_and_time.py
# Compiled at: 2020-01-15 01:21:52
# Size of source mod 2**32: 19262 bytes
import m... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
cceb2d165e808602310d672c2ff13582894f9540 | 716449f3104bd4e349aa95459ddebfff4284d53f | /config.py | aa8a64a946afb588ed1252abc8a4be0942a821b8 | [] | no_license | faustofjunqueira/fast-cp | 30a6f934e78f4fef5d5a58970126acf2fd28ad6b | c44df25aab139a89f491ea3004a8ae5a70ac3be1 | refs/heads/master | 2021-01-22T13:37:11.226258 | 2014-03-14T22:52:58 | 2014-03-14T22:52:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | from sys import *
import time
import os
if __name__ == "__main__":
print("Esse arquivo não pode ser chamado na main")
exit()
def getPathProg():
pathProgram = str()
splited = argv[0].split("/")
for i in splited[:len(splited)-1]:
pathProgram += i+"/"
return pathProgram
def configProg():
pathProgram = getPath... | [
"faustoferjunqueira@gmail.com"
] | faustoferjunqueira@gmail.com |
987a17d914a736bfd5c9b0d9f1f189906277a58b | 1dab0e6655025530d9f22ae737d78615c8685b62 | /tests/test_parser_script.py | ce3022ec27a7da7399f76dc0a74266a64ebdd530 | [
"MIT"
] | permissive | Vhibli/kopyt | e5c9c3dc61ece27788174311f0c46d2847a4e10a | 48e59ed4196cb80c5498cca62ecffbcb27e6599b | refs/heads/main | 2023-06-21T21:11:55.129537 | 2021-07-21T09:25:19 | 2021-07-21T09:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | import unittest
from kopyt import node
from . import TestParserBase
class TestParserScript(TestParserBase):
def do_test(self, code: str, test_str: bool = True) -> node.Script:
return super().do_test("parse_script",
code,
node.Script,
... | [
"9150540+mvisat@users.noreply.github.com"
] | 9150540+mvisat@users.noreply.github.com |
3c6f54197ab39b3ca1970196846f097fa922e153 | 97e304a7297c4ed15980df3cbbb99338d5d9ba07 | /IBM/venv/bin/pip | f5df195e8f73d49d6aadbd6183181e9caa128eb3 | [] | no_license | stasg001/Video-Segmentation- | 0604d7b02a735b1b780ee927fd6b8e8bfbd903e4 | 5b621150149fc04f8c40fe9c58037f87ac7cb925 | refs/heads/master | 2023-06-26T21:53:19.201983 | 2021-07-26T15:39:01 | 2021-07-26T15:39:01 | 389,684,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/Users/stasgaonkar/suraksha/Python/SentimentAnalysis/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"stasg001@odu.edu"
] | stasg001@odu.edu | |
54d742fddbf23d6e37c5dd17dab58239532c1e02 | b1ef3379bd8a77c1760d04f9328487aea8934962 | /app/services/index.py | a8261775993b6d9163cfe16f4ed933ff9bf59b6f | [
"MIT"
] | permissive | sloppysid/faunadb-hipflask | c583fd5f03af655823b287f539d9709208398e98 | 554fb8d35a26d990ac1207af1d475a36720b102f | refs/heads/master | 2023-02-27T23:02:28.524039 | 2021-02-09T11:06:44 | 2021-02-09T11:06:44 | 337,372,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from flask import (
Blueprint, render_template, jsonify
)
bp = Blueprint('index', __name__, url_prefix='')
from app.functions import login_required
@bp.route('/')
def index_root():
return render_template("index.html")
@bp.route('/secured')
@login_required
def index_unsecured():
return render_template... | [
"sloppysid"
] | sloppysid |
ab07ae62ffddc1b029bb9d8dc00908892452f79a | 729958b2af793bffaec179cd40598990be491fea | /src/ftp_functions.py | 9dbad579268a6219da224b0af749c5180f6d8053 | [
"MIT"
] | permissive | psikon/pyBlastDB | 46d967f51a3968ecff68040f89ca5c6b34bf2cf4 | 3caa8456e31948cf942dc649abd0ed1ea392bef8 | refs/heads/master | 2016-09-05T08:57:43.858920 | 2014-02-25T14:55:26 | 2014-02-25T14:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,047 | py | import sys, os, tarfile
from ftplib import FTP
from src.utils import select_files, get_local_timestamp, get_remote_timestamp, \
update_progress, create_folder, is_compressed, is_tgz, is_gz, \
extract_gz, extract_tar
from src.exceptions import ConnectionException, FtpPathExcep... | [
"psikon86@gmail.com"
] | psikon86@gmail.com |
03b94fba005aef7a21da5b4fbd42ce546c053fa8 | c74c3eb45913edb2c50555c076bb76f1c4200cb3 | /tests/test_Bayes.py | eae520ef2adc22bda276ddb95798718629675875 | [
"MIT"
] | permissive | fepegar/Semiology-Visualisation-Tool | a6897d25d468607fe62af100e154694661e4572b | 990e0aec7f39d4063303a64aa1674c0aa6e16daf | refs/heads/master | 2022-02-26T16:05:52.736377 | 2021-12-05T19:30:29 | 2021-12-05T19:30:29 | 251,682,167 | 0 | 0 | MIT | 2020-03-31T17:37:44 | 2020-03-31T17:37:43 | null | UTF-8 | Python | false | false | 7,894 | py | import sys
import unittest
import pandas as pd
from pathlib import Path
from mega_analysis.Bayesian.Bayesian_marginals import p_GIFs, p_Semiology_and_Localisation
from mega_analysis.Bayesian.Posterior_only_cache import Bayes_posterior_GIF_only
from pandas.testing import assert_series_equal, assert_frame_equal
from meg... | [
"noreply@github.com"
] | noreply@github.com |
7a69ab34a801fce8a75eeeb26e27e918f0e19922 | 9b2ec64d2a1f72b2deb8a3a8f81592b3e21936e8 | /venv/Scripts/easy_install-3.7-script.py | c25b0954ffe1c7a1321a63bbd302222bfcfdab9b | [] | no_license | arshkalsi/databases_project_arshkalsi_gurlivleenkainth | c96107564d35c8865ca1ba7aaba841d8d6675e3a | 2acb78a73dea0a344d94f6b4b7941fc8de5f7ac8 | refs/heads/master | 2021-07-19T06:12:31.465313 | 2019-07-05T12:17:58 | 2019-07-05T12:17:58 | 195,403,606 | 0 | 1 | null | 2020-07-21T03:42:47 | 2019-07-05T12:11:38 | Python | UTF-8 | Python | false | false | 467 | py | #!"D:\python project\databases_project_arshkalsi\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"49651060+joshkainth@users.noreply.github.com"
] | 49651060+joshkainth@users.noreply.github.com |
5eea3e2662e9bdbad5bdec502510d98d17062249 | 78ccd7e47ab7e11893efd8f946ce0bdc3a471acd | /projects/kc_projects/creating autocorrect app.py | bcfb416db9e3a1c372c28a8f1eefd188f9c57403 | [
"MIT"
] | permissive | nduprincekc/python-mini-projects | 0a1cfe122343565b725e4ef96226478d04d4ed47 | 5501399694ca2361f251c6190a1e450011101477 | refs/heads/master | 2023-02-15T23:46:10.701754 | 2021-01-10T23:41:23 | 2021-01-10T23:41:23 | 290,812,385 | 0 | 0 | MIT | 2020-08-27T15:28:20 | 2020-08-27T15:28:19 | null | UTF-8 | Python | false | false | 218 | py | from textblob import TextBlob
# documentation
# the libary use is textblob .. you must first install textblob libray
words = TextBlob(input( 'enter the word to correct: ' ))
words = words.correct()
print(words)
| [
"nduagubaemma@gmail.com"
] | nduagubaemma@gmail.com |
d994de6b6f4cae81c2964710ea1fe0d545af8824 | 4be8901dbc5b9b41ef7080890f6e936e71db4121 | /stimpi/handlers.py | 3f106851f9ceafcc764ad8400fb98fe12554212e | [
"Apache-2.0"
] | permissive | skippyprime/stimpi | 93262e85e4a7a1c4492a3c4313e5feb3a07d1bad | 9ba99f1e261270925d8a5b8d7d7a06e57a1894a2 | refs/heads/master | 2021-06-25T20:48:41.746877 | 2017-01-03T20:49:47 | 2017-01-03T20:49:47 | 41,161,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | #
# Copyright 2015 Geoff MacGill
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"skippydev007@gmail.com"
] | skippydev007@gmail.com |
1ba907cea749adb5b9d3bd97299e2fddd8c9a2bd | 135b5f7f28f488e10dac5801f7a86ef2a72c0c41 | /HER/trajectory.py | b6a0e6f3168a3289aaa76d7fc142a82379f1de00 | [] | no_license | federicobergamin/DDPG-HER-PyTorch | 6cf050940fb99a085ec738cb404a9551ab27cb1e | 9ef2b025f8939e9ed2749a1aca41077813e5653b | refs/heads/master | 2022-04-01T06:21:21.797511 | 2020-02-03T22:33:56 | 2020-02-03T22:33:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | ''' In this file we implement a Trajectory class.
This would be a dictionary that store all the observation, actions, next_observation, and done.
In this way, when we sample a new goal, we have all the information here.
This idea is taken from https://github.com/vitchyr/rlkit
'''
import numpy as np
# TODO... | [
"bergamin.federico@gmail.com"
] | bergamin.federico@gmail.com |
bc8458174d943aa92afd84ab3a38cb97fffa9235 | 32f75193d8c11cb1e19e4aa2d19983f43a7bfd11 | /google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc_asyncio.py | 4af4514351d545909cc09e37c02f260c892fc0e4 | [
"Apache-2.0"
] | permissive | anooshrees/python-aiplatform | c4a1a69d3455985bb7c47031984fba1ddb34e5e6 | 1b28ce73c3b4af2c957377280d160f6112b322fe | refs/heads/master | 2023-07-28T15:21:27.903784 | 2021-07-27T16:32:32 | 2021-07-27T16:32:32 | 385,986,085 | 0 | 0 | Apache-2.0 | 2021-07-14T15:59:40 | 2021-07-14T15:22:28 | null | UTF-8 | Python | false | false | 43,614 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
cfc5e4ece94e9ce5014e5e908266654bb1dded98 | fd9ea3bf0d048fe40e635cde7414aa2a27e73b2a | /src/rbx1/rbx1_dynamixels/catkin_generated/pkg.develspace.context.pc.py | 62e3d495119da2a02c2a2709f2bc0a68f98c2b61 | [] | no_license | shydhryw/catkin_ws | 30428cec9290b85fe9412bb2e85d37594e3fa39b | 35a0d2cd089b71e2b11c72b3dc7256bb1d948c0d | refs/heads/master | 2020-04-15T17:13:45.339758 | 2019-01-09T13:18:51 | 2019-01-09T13:18:51 | 164,776,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rbx1_dynamixels"
PROJECT_SPACE_DIR = ... | [
"shydhryw@qq.com"
] | shydhryw@qq.com |
72617de8630073f33d203679e4c08daf96ade7dd | b3311cdcac67f47c7d90fbe899d1348a180fe1f1 | /onlymain.py | 80c4f066c5a035db12e92dedd80a5ba36000be3e | [] | no_license | ashnaj8/gitrepo2021oct | b4267cf6d76b86ff703cb0a4932f6c4e1cb25312 | 13cf78ef7b0dd4847a06b18e1490db14ce0074cb | refs/heads/main | 2023-08-29T18:13:08.945489 | 2021-10-21T06:50:01 | 2021-10-21T06:50:01 | 419,293,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | javascript with python
| [
"ashnaj@rps.in"
] | ashnaj@rps.in |
48e3040635a924031634c0454868718c0de33bf9 | f2fb33ec8901a2251cfb28b728f0bd19851b48bf | /app/api/api_routes/boards/get_boards.py | 32482f94ae7c45abf8279c7267199cf3467911be | [] | no_license | DebugProd-inc/restfull | 5c876f7ebbe351272b582003cc6b971969104ddb | 1c3c779ebf26f70beea411fd6dd444fab8f7cadd | refs/heads/master | 2022-11-29T14:53:36.171711 | 2020-08-02T07:07:34 | 2020-08-02T07:07:34 | 277,918,870 | 0 | 0 | null | 2020-08-02T07:07:35 | 2020-07-07T20:47:04 | Python | UTF-8 | Python | false | false | 476 | py | from flask import request, jsonify
from app.all_models import Board
from app.api import bp
from app.api.auth import token_auth
@bp.route('/boards', methods=['GET'])
@token_auth.login_required
def get_boards():
page = request.args.get('page', 1, type=int)
per_page = min(request.args.get('per_page', 10, type=i... | [
"maxim.v.filatov@outlook.com"
] | maxim.v.filatov@outlook.com |
2e365a0e3632fac19bb1b71f7416e71b337dfdfc | d5dbafb77d9cce05aee5a29eac7e2f6c37102a38 | /blog/views.py | 97919433f9ad91d66dc8ba55342fd58ef1f8ed1b | [] | no_license | orjack/my_first_blog | 81c8cdc26e0a076d28414cebc96290c1f2be0760 | 2cf5bc5d088af4dce8ea3d8c39cdae5eb9b04502 | refs/heads/master | 2020-03-09T03:45:41.728046 | 2018-04-11T02:39:04 | 2018-04-11T02:39:04 | 128,571,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | from django.shortcuts import render
from .models import Post
from django.utils import timezone
from django.shortcuts import render, get_object_or_404, redirect
from .forms import PostForm
# Create your views here.
def post_detail(request, pk):
post = get_object_or_404(Post, pk=pk)
return render(request, 'blog... | [
"thiago.almeida777@gmail.com"
] | thiago.almeida777@gmail.com |
7e5a0a4b2e4b83568dafc54541a561cc3404b48e | 04b71cef66a039196a2965dfab0ff56b0793fe32 | /python/run/brian_2_xgb.py | 231a8c822d29764c92ace11f0ede645217b21be4 | [] | no_license | gviejo/Prediction_xgb_head_direction | 69d57b7d7a2f366f2c96a6e6e933d0978592718f | 6fbe724f92c15afcc634c84383f57bbeedff7d24 | refs/heads/master | 2021-11-05T09:10:48.067439 | 2021-11-05T01:15:17 | 2021-11-05T01:15:17 | 93,687,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | import scipy.io
import sys,os
import numpy as np
from matplotlib.pyplot import *
import pandas as pd
import xgboost as xgb
store = pd.HDFStore("../data/spikes_brian.h5")
data = store['data']
store.close()
adn_neuron = [n for n in data.keys() if 'ADn' in n]
pos_neuron = [n for n in data.keys() if 'Pos' in n]
bi... | [
"guillaume.viejo@gmail.com"
] | guillaume.viejo@gmail.com |
b38a6e32dd6d94aff39e2eb86c3d430596662f91 | 92b086142798939a5d787c2a9667f13fb93d6849 | /DogeClassroom/DogeClassroom/urls.py | 632c8e935cf4dda86ff84576ffed61e4b408b559 | [] | no_license | sujaykonda/DogeClassroom | cebee8deec4c163dbd7a838bc6fdb949e55fb8da | 4cca97b135b404c09e21c40851514b509a92b3d1 | refs/heads/main | 2023-03-15T08:21:32.401603 | 2021-03-27T23:56:25 | 2021-03-27T23:56:25 | 343,014,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | """DogeClassroom URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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... | [
"kondasujay2@gmail.com"
] | kondasujay2@gmail.com |
db94b8be93caa79107404cc7be61680baea5d65f | 5ef08c6fd982c8754a51efb8331b7b657f01af8e | /server/main.py | 9d5d868873e3a2c65ab7e3bb479a4bdee6cb78dc | [] | no_license | idoazzz/memorizer | 41897766e27f95f6aa4a95b6c53ee85eddb2648e | 72e53eb9d4794d6aac22a0a663e4022f3e15eaae | refs/heads/master | 2023-04-08T10:19:28.218314 | 2021-04-17T17:03:31 | 2021-04-17T17:03:31 | 302,721,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | """Main memorize server entry point."""
from fastapi import FastAPI, HTTPException
from server.associations_manager.datamuse import get_closest_word
from server.associations_manager.associations import get_associations
from server.associations_manager.auto_splitter import \
get_auto_splits_associations
app = FastA... | [
"idoazzz@gmail.com"
] | idoazzz@gmail.com |
877e6eb6b48c890435f371b8421b1d2c2d709d9e | c5a0aa5b88c8bc776505fc4dab4d241f45866ba5 | /views/utils.py | f7f0598a2dd77b37bbb2d8f943f6c20c437be047 | [] | no_license | pixix4/PMines | 1965a4865570163e1543618d100ffc21b46880a6 | 85204e5b5d4115be2d90677fb4cf826e02bfb588 | refs/heads/master | 2021-04-26T03:48:51.577889 | 2018-12-28T18:19:48 | 2018-12-28T18:19:48 | 121,419,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from typing import Tuple
def get_size_from_screen(screen) -> Tuple[int, int]:
height, width = screen.getmaxyx()
if width % 2 == 0:
width -= 1
width = width // 2
return height, width
def game_pos_to_screen_pos(pos: Tuple[int, int]) -> Tuple[int, int]:
return pos[0], pos[1] * 2 + 1
def r... | [
"lars-westermann@live.de"
] | lars-westermann@live.de |
3531b0c301c98e93085d7fe47eef62615f433c47 | f6914f6e48124b786721036fe48a52ff6658e250 | /business/spiders/AStorageInnWeidman.py | bad3216185a799c69be26c46f07731c7378edc36 | [] | no_license | daveyman123/CompetitionScraper3 | 5bea482b9e93eeac42600bf97981821a0f6488dc | 9299e906689bcd6bb65abfd394ffe1a18f3edd9a | refs/heads/master | 2021-09-02T02:20:14.913049 | 2017-12-29T17:56:09 | 2017-12-29T17:56:09 | 115,743,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,534 | py |
import scrapy
from scrapy.selector import Selector
from business.items import TesttestItem
import datetime
from selenium import webdriver
from bs4 import BeautifulSoup
from HTMLParser import HTMLParser
import re
import time
from pyvirtualdisplay import Display
class AStorageInnLemay(scrapy.Spider):
name = "AStorag... | [
"djgraff1@cougars.ccis.edu"
] | djgraff1@cougars.ccis.edu |
73766be87c861a771f5ae7e6784f2aa71dfca856 | f954729a6941d5309f02865b5313b8524e9e6f53 | /resources/genomes.py | d4d95ae8aa3d7389867fd4d1f1a5fe88474820de | [] | no_license | bnbowman/NoAmpTools | 5f597adec6f49ab8422f443dfdd234b7a9a1dd8d | b59800c675c764ba8b5aee734c3ed79e4ac8e9a5 | refs/heads/master | 2018-12-18T18:58:27.201236 | 2018-09-14T19:33:04 | 2018-09-14T19:34:23 | 107,060,977 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | #! /usr/bin/env python
from collections import defaultdict
import matplotlib.cm as cm
class Genome(object):
def labels(self):
return self._labels
def sizes(self):
return self._sizes
def size(self, key):
return self._sizes[key]
def targets(self):
return self._target... | [
"bbowman@pacificbiosciences.com"
] | bbowman@pacificbiosciences.com |
5aac20a2aecbc256eece5a88b85506d574fd62b9 | b114b6a9a6a79407c3223d34bbdc8c99078b2771 | /oo_basic/static.py | c797a70959a8319d7c2b281dd844328177ddcee4 | [] | no_license | notaidea/python | ba584d047ad57cb743aaba140ed0dd6c2510d591 | 40f8d06aa4e91cc5e55c12b20152cc7ff2d6b7f1 | refs/heads/master | 2022-06-02T19:49:58.595105 | 2022-05-01T12:03:18 | 2022-05-01T12:03:18 | 143,007,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # -*- coding: utf-8 -*-
class Test(object):
@classmethod
def say(self):
print("saying......")
"""
@staticmethod,表示这是个静态方法,不会自动传入形参self
"""
@staticmethod
def go():
print("gogogo......")
obj1 = Test()
#Test.say()
Test.go() | [
"2423574112@qq.com"
] | 2423574112@qq.com |
8f379ad779593db29e48aae6fe21773644c6f09d | 02f9a3a6f4ab6c126761d6345d1711074365c48e | /Task 2(DataTypes&Sets)/13_Set_differnce().py | 2517ed5827fed9f4b76469950f45d640d4ec4fee | [] | no_license | Saquib472/Innomatics-Tasks | fb6829acb3821f7ea67ffecd3b9357c633fecf6c | facdb5a20e1c933888d0f43dfa679adea3d8b263 | refs/heads/main | 2023-08-19T14:46:54.031758 | 2021-10-24T18:24:24 | 2021-10-24T18:24:24 | 418,057,095 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # Task_2 Q_13:
# The students of District College have subscriptions to English and French newspapers. Some students have subscribed only to English, some have subscribed to only French and some have subscribed to both newspapers.
# You are given two sets of student roll numbers. One set has subscribed to the English n... | [
"saquibali472@gmail.com"
] | saquibali472@gmail.com |
20c7093180173bed8d1b460dc9ad16da229d5411 | 30c2b694f7443507ed666dfb3755236cb21fc8e4 | /EcalFlowNtp/python/ecalflowntp_cfi.py | f45151b26fbe0d7616425c90522675737d6688cd | [] | no_license | ravijanjam/Pi0Analysis | fcf2ca5bb2855b0648ffdb6771cfa4c7b51e4846 | 0498c12338045811e2abfbcd939a781ba468e957 | refs/heads/master | 2021-01-10T05:38:40.127206 | 2015-11-15T13:51:26 | 2015-11-15T13:51:26 | 43,605,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,039 | py | import FWCore.ParameterSet.Config as cms
EcalFlowNtp = cms.EDAnalyzer("EcalFlowNtp",
OutputFile = cms.untracked.string('EcalNtp.root'),
MCTruthCollection = cms.untracked.InputTag("source"),
nPhysSeeds = cms.untracked.int32(24),
myL1SeedName_0 = cms.untracked.string('L1_MinBias_HTT10'),
myL1SeedNam... | [
"ravi.k.janjam@vanderbilt.edu"
] | ravi.k.janjam@vanderbilt.edu |
d86242cd87dd8323bb6214deb9dacb2b9f552040 | 2b3817fb9e4078e912fe1df2e964a68dcd48d053 | /code/pgms/can-sum.py | 021e88ad56ffd0af0b5efa8652465910059432a6 | [
"MIT"
] | permissive | souradeepta/PythonPractice | 350a130b341efec7b22ebd061c3d89036603587f | fa956ca4b87a0eb92fee21fa78e59757ce665770 | refs/heads/master | 2023-08-08T03:46:01.238861 | 2021-09-23T02:37:13 | 2021-09-23T02:37:13 | 256,668,632 | 1 | 0 | MIT | 2021-09-22T18:54:17 | 2020-04-18T04:22:25 | Python | UTF-8 | Python | false | false | 1,810 | py | from typing import List
def canSumRepeat(target: int, input: List, memo: dict) -> bool:
"""Can the sum of input number lead to the target value
Args:
target (int): target
input (List): list of numbers
Returns:
bool: True or False
"""
if not input:
return None
... | [
"sdb.svnit@gmail.com"
] | sdb.svnit@gmail.com |
724bc39e279eec75839111aa9054d6038c556254 | 20dd027ef90f12069c896ccae2fe8b7354ee0ff5 | /01.FundamentalsCourse/Chap04/Challange02.py | c6e7cf17abcfcb75dd4a9e22219524b206455dff | [] | no_license | elsayed-hussein/ProgrammingFoundationsCourses | 34eee8f93bfa86097016134dc7acd8b4919115fc | dfb61b2ec8f973fa513ff995f51b8a4755220689 | refs/heads/main | 2023-08-05T01:15:59.076188 | 2021-09-27T16:21:40 | 2021-09-27T16:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | favFood = "chicken"
answer = input("What is your favourite food?(chicken, bashmel, rise or meat) ")
if answer == favFood:
print("Yeah!! You're RIGHT ='D , My favroute food is ", favFood)
elif answer == "idk":
print("My favroute food is ", favFood)
else:
print("Oops!! You're WRONG ='( , My favourite food is'n... | [
"mansourashraf173@gmail.com"
] | mansourashraf173@gmail.com |
dc42be6f6ec4a99923e28d0c384803650200edce | 06c670eb8f2899b7c99d3e1e3bbe60750baf3841 | /programs/py/quiz.py | acbe6daa8e54eff848e0d21cae0530892c9b17ac | [
"CC0-1.0"
] | permissive | ErikBoesen/ibhlcs | 8591e5263730cac09e0cd9a95fa4b09a1d71a96d | be34f54477f07647fa15a0671a806cce4e237b72 | refs/heads/master | 2021-06-11T19:16:20.596679 | 2019-09-04T15:21:52 | 2019-09-04T15:21:52 | 112,275,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | NUM_QUESTIONS = 5
questions = (
'Are Connor and Brendan the same person, moving between two positions so quickly as to trick the eye into believing there are two Fletchalls',
'Does James sleep with his 12-inch MacBook under the pillow',
'Are expletives more than 20% of Chris Deng\'s vocabulary',
'Is Ni... | [
"me@erikboesen.com"
] | me@erikboesen.com |
9c00b1032a314e8e825af25109a0962fa173603e | 3b28981d3f641f214442fe02d3ec59a34a408ecc | /crud.py | 8c29996de48c3998fd026df2c233d75417a7a4cf | [] | no_license | IMeinen/etl_geocode | 25f11d7112630c9e06d898ea09b69b68c6b36930 | fab150145ae98bb167ffc28c7758c228baeb0569 | refs/heads/master | 2020-06-14T08:54:07.358032 | 2019-07-03T03:22:11 | 2019-07-03T03:22:11 | 194,964,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | import mysql.connector
#Conexao com o banco de dados | parametros(host,usuario,senha,base de dados(se houver))
def conectBanco(mhost,muser,mpassword,mdbase = ''):
db = mysql.connector.connect(
host = mhost, #EX: "localhost"
user = muser, #EX: root"
passwd = mpassword, #EX: "... | [
"noreply@github.com"
] | noreply@github.com |
c4a5c53fe0c724283a79b58fa49d8c565719ac3a | 98a9d63356d7825e803ae620a687b7a966fc834a | /range.py | 803a78ecdd0ec0bedcce75a2805c9f4ef3fc9e19 | [] | no_license | jboc01234/ATOM-desktop-files | 08465d83dd55ecf52b6c205ee8f27ee0c7b1d8d5 | 855ae39a681fc6930751bb5dadff82123a289990 | refs/heads/master | 2020-04-04T08:08:12.443157 | 2018-11-01T20:37:45 | 2018-11-01T20:37:45 | 155,772,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | colors=["red", "green", "blue"]
#print out a list using a for
for colors in colors:
print("")
| [
"noreply@github.com"
] | noreply@github.com |
ed329fe829585a042a59d6c01959272c9d3ee31e | cdc48931cb3adb62c5e4963e43aeaf3cbc5080c4 | /Scripts/Read_omi_data.py | c977f0e3517d4bf8d1888816d3f96f6023bdb222 | [] | no_license | giovannilopez9808/SEDEMA_2000_2019 | ce8f1955b7d0f760485e2a984f36e72141867a0f | 857be19c0acd9587904107ecd470b94a6a7d93b3 | refs/heads/main | 2023-06-25T10:32:06.536548 | 2021-08-04T19:55:16 | 2021-08-04T19:55:16 | 382,178,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import matplotlib.pyplot as plt
import pandas as pd
def date_format(data):
data["Date"] = data["Datetime"].str[0:4]+"-" + \
data["Datetime"].str[4:6]+"-"+data["Datetime"].str[6:8]
data["Date"] = pd.to_datetime(data["Date"])
data.index = data["Date"]
data = data.drop(["Date", "Datetime... | [
"giovannilopez9808@gmail.com"
] | giovannilopez9808@gmail.com |
3e1ec13d9713698ea3b60235bc2652142e584fa8 | 693d045d08f4e0839e31362debbd40d196e3eb75 | /bot.py | 3f43ae572bfa420119467ce29b4d72046009a509 | [] | no_license | Debique/asyncbot | d5ee38c15aac866f7cecef4d2e98ce88d4ce4d10 | d5374a0fba2a09354fa7baab8d363b9c626ccc64 | refs/heads/main | 2023-01-30T22:03:18.897047 | 2020-12-09T21:04:15 | 2020-12-09T21:04:15 | 320,077,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,673 | py | import datetime
import time
from aiogram import Bot, Dispatcher
from aiogram.utils import executor
from aiogram import types
from bs4 import BeautifulSoup
import asyncio
import aiohttp
from src.config import TOKEN
from src.states import ArticleFinder
from aiogram.contrib.fsm_storage.memory import MemoryStorage
impor... | [
"sashuk.danila@gmail.com"
] | sashuk.danila@gmail.com |
3b493ccd44a350d419055556f1e3528d5ed650cb | 23db2e05d0106a2ebcb3955bf46f23dca8441ce8 | /action-log.py | 6bb1a901d2be775e6635d6b96167d63ce323526e | [] | no_license | balilarder/dengue-fever | 53f9ea8ac20f608127bb4f1e91a81669fdc38713 | f51604b022ef61541306b505e37dfec13c00cbef | refs/heads/master | 2021-01-17T09:52:44.821147 | 2016-05-24T10:21:16 | 2016-05-24T10:21:16 | 54,388,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,935 | py | """get area in time-space"""
f1=open("time-space.txt")
lines=f1.readlines()
#print lines[0]
A = 0
for ch in lines[0]:
if ch == "A":
A += 1
print "there are %d areas~" %A
areas = lines[0].split("\t") #areas is area in the time-space
del(areas[0]) #del first element
areas[len(areas) - 1] = areas[len(areas) - 1].rstrip... | [
"balilarder@yahoo.com.tw"
] | balilarder@yahoo.com.tw |
7d382bee63d4ab632c33c235b382848e1693243a | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Graph/733.py | 5ae87bd51e724a76ced10a0220dd9ab5401483da | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # 733. Flood Fill
# An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535).
# Given a coordinate (sr, sc) representing the starting pixel (row and column) of the flood fill, and a pixel value newColor, "flood fill" the image.
# To perform a "flood f... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
51c7bfc627e6b35c639541571b753e522484c521 | 9beeb26b6cbe9cd8df51bf8b5f99d58d20981680 | /pdb2pqr/hydrogens/__init__.py | e3e5c0e7f3453599bad31f0f602c573951ceb97d | [] | no_license | broadinstitute/pdb2pqr | ee32d222f3f28ae84dab55f2634457a61b40f882 | 0012ff25e565d13009e92393bd6ffbc0940ff7f5 | refs/heads/master | 2022-12-06T23:05:54.523551 | 2020-08-28T13:04:49 | 2020-08-28T13:04:49 | 287,517,171 | 0 | 0 | null | 2020-08-14T11:27:52 | 2020-08-14T11:27:51 | null | UTF-8 | Python | false | false | 32,205 | py | """Hydrogen optimization for PDB2PQR
This is an module for hydrogen optimization routines.
TODO - This module is insane... so many lines!
Authors: Todd Dolinsky, Jens Erik Nielsen, Yong Huang
"""
import logging
import math
from xml import sax
from .. import input_output as io
from .. import aa
from .. ... | [
"mattfeng@mit.edu"
] | mattfeng@mit.edu |
a887b527eb3bbae296743ac0b1dafd78fa4b2523 | 2e3c3b31576213b24d059b91e29be3ddcb4fe4cf | /build/line_follower/catkin_generated/generate_cached_setup.py | 3f13b03199d9f2c4075d54524dd65eb9f9837e25 | [] | no_license | AjayaDahal/ROS-Melodic-line-follower-raspberry-pi-simulation | fa9967b5706600b22a86cd3f8deec6736c2bef86 | c69fd9be20b083806d49499d723396154ffd7de4 | refs/heads/master | 2022-06-12T14:29:48.399389 | 2020-05-08T07:30:57 | 2020-05-08T07:30:57 | 262,224,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"ajayadahal1000@gmail.com"
] | ajayadahal1000@gmail.com |
d1faa4d1096e05a75abf9104689cfa3aa4924821 | a6fa6484e4f16b93cc162859701e0bc94a16e9ac | /issue_tracker/models.py | 6d3f1ea3be345e4c9bb86401cf10661b69bac5fa | [] | no_license | Code-Institute-Submissions/django-issue-tracker-1 | 81b588c521f7ef027041ce0e52ab250edfc9f848 | 839c8f8c70e3745f711cb68bd8454d77eae3d79c | refs/heads/master | 2020-04-24T11:29:49.316692 | 2019-02-21T18:40:28 | 2019-02-21T18:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.db import models
# Create your models here.
class Item(models.Model):
name = models.CharField(max_length=30, blank=False)
done = models.BooleanField(blank=False, default=False)
def __str__(self):
return self.name | [
"marcushornby@outlook.com"
] | marcushornby@outlook.com |
36c8aa5f1334f81fcdcf3cffaf6fe2f5836d7abe | 951fc0da7384b961726999e5451a10e2783462c4 | /script.module.exodusscrapers/lib/exodusscrapers/sources_placenta/en_placenta-1.7.8/ororo.py | da4be034f81d870663f7cf7dbc21eacd06fa0f60 | [
"Beerware"
] | permissive | vphuc81/MyRepository | eaf7b8531b2362f0e0de997a67b889bc114cd7c2 | 9bf8aca6de07fcd91bcec573f438f29e520eb87a | refs/heads/master | 2022-01-02T15:07:35.821826 | 2021-12-24T05:57:58 | 2021-12-24T05:57:58 | 37,680,232 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | [
"vinhphuc_81@yahoo.com"
] | vinhphuc_81@yahoo.com |
2eaddb865c3514499a6de7757d39c34e1ee61f2c | bc952d7c5dcf39876d5b1b1ad46a9ede8c84e1df | /model_zoo/official/nlp/bert_thor/src/lr_generator.py | c2416e9b81a522e622beec0810fb1e7af0a319dc | [
"Apache-2.0",
"Libpng",
"LGPL-2.1-only",
"MIT",
"IJG",
"Zlib",
"BSD-3-Clause-Open-MPI",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"MPL-1.0",
"MPL-1.1",
"MPL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Unlicense",
"LicenseRef-scancode-proprietary-lice... | permissive | dilingsong/mindspore | f69c88ebc773bb6eaf88162bd038e807f84633bc | 4276050f2494cfbf8682560a1647576f859991e8 | refs/heads/master | 2022-12-01T12:23:13.490558 | 2020-08-10T09:16:27 | 2020-08-10T09:16:27 | 286,463,866 | 1 | 0 | Apache-2.0 | 2020-08-10T12:06:08 | 2020-08-10T12:06:07 | null | UTF-8 | Python | false | false | 2,442 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"zhangzhongpeng1@huawei.com"
] | zhangzhongpeng1@huawei.com |
3b7dbaa8d490c3da4756ccad3b0ccf36d205d1c9 | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /C_LinkList/Swap/L2_24_Swap_Nodes_in_Pairs.py | 875e98e38bc4183aafaf3c32d8ccd3bd631735f4 | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 526 | py | """ https://leetcode.com/problems/swap-nodes-in-pairs/
from dba: https://leetcode.com/problems/swap-nodes-in-pairs/discuss/984392/Python-O(n)-solution-explained
"""
from header import *
class Solution:
def swapPairs(self, head: Optional[ListNode]) -> Optional[ListNode]:
ans = pre = ListNode(next=head)
... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
8de573b4952e92ee7d39ef3e50562e02b95dafb6 | 9df8ca72108d95f703d6839b67f71e3c185860a9 | /python/feature_selection/lib/_class/DFDuplicateThreshold.py | f40af7dd6a2397f9a0daaf902a5b1710916e34f4 | [] | no_license | Hann-THL/DATA_SCIENCE | d0010c9c77326f21a03d989faab61ccf1b53f3f1 | 7cda0a36d81e0d710704a1261521a3bb73e5c690 | refs/heads/master | 2022-11-21T11:21:41.568958 | 2020-07-27T11:09:10 | 2020-07-27T11:09:10 | 204,294,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.exceptions import NotFittedError
class DFDuplicateThreshold(BaseEstimator, TransformerMixin):
def __init__(self, columns=None):
self.columns = columns
self.transform_cols = None
self.stat_df = None
... | [
"hann_lim@hotmail.com"
] | hann_lim@hotmail.com |
f5fc84e84bee9b998c67a3bef1c772d4d876b1c0 | e0edaab6b189580bab8728a54e2f0d32dacb6bfd | /graph_search/kosaraju_two_pass_algo.py | 1037e172af14cd836895dad5b893b61d2079f39a | [] | no_license | tjfarringer/algo_practice | a4245ef975fd890c32f56ebb3f7d114d8a99be3b | 5204de458b600bd0e3083aa2af4b4190ef57fb8d | refs/heads/master | 2020-09-20T11:40:02.184021 | 2020-01-25T15:36:18 | 2020-01-25T15:36:18 | 224,465,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from collections import defaultdict
# # Import graph class
from depth_first_search import graph
# RUN TIME: O(m + n). More or less 2x DFS.
def reverse_graph(graph_to_reverse: dict) -> dict:
'''
This function reverses all the edges in a graph. Required for step 1 of this algo.
:param graph_to_reverse:... | [
"tjfarrin@gmail.com"
] | tjfarrin@gmail.com |
44a14915aa2c6e0f3c8c95683beb60f253d06b93 | adc543b467b0bf755806cb62bcdd95ef2849f38d | /Weather-server/venv/Scripts/easy_install-script.py | effd55cfe1a71dd419961dae3fe6153a1d32458c | [] | no_license | YTGhost/Weather-data-analysis | c2e3e564589ad18973307832fe0bcbd755bcafb0 | 33108e10d7e91badd010d9cc05b626648e25e3e3 | refs/heads/master | 2022-11-19T03:00:47.948196 | 2020-07-13T19:03:22 | 2020-07-13T19:03:22 | 275,761,761 | 1 | 0 | null | null | null | null | GB18030 | Python | false | false | 439 | py | #!D:\小学期\flask项目\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"283304489@qq.com"
] | 283304489@qq.com |
0d7619664281b61ade37dcb0adaaf4499acee6da | a6e3acd02d9040017e017627e70a79e9e77c5836 | /lbypl2/accounts/views.py | c5963ce05e87dd6b94dda04e61ea628481a97038 | [] | no_license | goldader/lbypl2 | 16e792b54dd19f643dc95f550ad44a098c7515a6 | b70be30850630c5a99bdb28b46e79a69ffb105e0 | refs/heads/master | 2021-04-26T22:26:10.794903 | 2018-05-25T11:27:38 | 2018-05-25T11:27:38 | 123,505,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | #from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
from django.shortcuts import HttpResponseRedirect
# Create your views here.
class SignUp(generic.CreateView):
form_class = UserCreationForm
#succes... | [
"goldader@gmail.com"
] | goldader@gmail.com |
a623adbefc27ed9eae53bfe2d00c5bce02281a82 | 74d7e42e58cc4ee2d4b2d8dc4fa040a3b99f1e06 | /src/nirvana/api/models.py | 209c338b505115a52009cdf06a625c09b57c8b4e | [] | no_license | tangrui9105/nirvana-old | d2ed3846805fd44bd8f314f68e69200bd8107a63 | e83466029ffa71702abb208bc4eaf90a9e656da5 | refs/heads/master | 2021-01-10T20:39:53.217668 | 2011-05-31T09:09:53 | 2011-05-31T09:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from google.appengine.ext import db
class Blogpost(db.Model):
title = db.StringProperty()
content = db.StringProperty()
author = db.UserProperty()
created_on = db.DateTimeProperty(auto_now_add = 1)
def __str__(self):
return '%s' %self.title
def get_absolute_url(self):
return '/helloworld/%s/' % self.key()
| [
"tangrui9105@gmail.com"
] | tangrui9105@gmail.com |
fa08c389387d3996a691d6d4338fcd25c63c4168 | cda86008a292ed5bc130dde5b0ce930226394460 | /django_intro_env/bin/django-admin.py | de7944e5974ad45a6622f5d1ba06cbea393e558c | [] | no_license | Luisttine/django_necto_fatec | 00492f451c3d5516777c10839e9f48f63d613821 | 39b7e0a2a852e4e01e38e9fa861b8f4b397e4f7e | refs/heads/main | 2023-08-04T01:29:00.491051 | 2021-07-27T16:22:29 | 2021-07-27T16:22:29 | 388,638,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | #!/home/luisouza/Workspace/django_necto_fatec/django_intro_env/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'djan... | [
"luisttine@gmail.com"
] | luisttine@gmail.com |
cc4eba6e3df71175e8bb9a8b7e93a16f03e105e8 | 21fb99baaaeaed674cd99fb1a5d39ea54a1db827 | /MNguyen/patMacrosForMC/makePatJets_ppHIReco_withPF_Escale.py | b8b6810328c06368109d9b56f27c02cd95e4dce1 | [] | no_license | kurtejung/PurdueForest | e413d4bc953df386a50d01ca09d1b648d07a926c | 9c7de9e7452b0837a872cfdd428244cb46b55322 | refs/heads/master | 2020-05-16T20:32:30.896495 | 2014-06-02T18:42:18 | 2014-06-02T18:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,521 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process('HIJETS')
#process.Timing = cms.Service("Timing")
#process.SimpleMemoryCheck = cms.Service('SimpleMemoryCheck',
# ignoreTotal=cms.untracked.int32(0),
# oncePerEventMode = cms.... | [
"kurtejung@gmail.com"
] | kurtejung@gmail.com |
f1959b64db655c3aea429bd8339ace3b6f161bff | 51dc1f3d5985b1937251077f424f1ebc0ab5d5b3 | /app/migrations/0012_imgdata_image_type.py | a34d074cfdb739525049ddbd27a6e525bed97e55 | [] | no_license | aryankul97/venueshub | 51ca6fcb4801f676cafbb234fe4efba3b02bcccc | 8adb7a2abe4c94896a956cd477d3dc95940b7288 | refs/heads/master | 2020-06-29T20:29:28.049619 | 2019-08-05T08:39:45 | 2019-08-05T08:39:45 | 200,616,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 2.2.2 on 2019-08-04 03:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0011_auto_20190804_0900'),
]
operations = [
migrations.AddField(
model_name='imgdata',
name='Image_Type',
... | [
"aryankul97@gmail.com"
] | aryankul97@gmail.com |
0fc48ee4ae9297fa1ee68ef96349fe8ae9f128f5 | b324669f1d320eefa7e891f778f93d3a7cb8c54d | /prediction/__init__.py | 65d9fdbc56dd0fded733fff5af9b665cd8546c0f | [] | no_license | lorey/find-underpriced-cars | 45bd452dce7452489e9fda0a7bb74f30c20011ce | a4a056fcc3c0d7f1eb3a1504e62f3c45a15855ce | refs/heads/master | 2020-12-03T00:18:04.502295 | 2017-07-29T13:45:50 | 2017-07-29T13:45:50 | 96,012,523 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,828 | py | import json
import logging
import os
import re
from datetime import datetime
from time import sleep
import numpy
import pandas
import requests
import sklearn
from graphviz import Source
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_selection import SelectKBest
from sklearn.feature_se... | [
"git@karllorey.com"
] | git@karllorey.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.