blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b264e84c815a0a97ad9b274543b9297d9fc6fbe | 3bf1480a1a00209bc8ef8a66e1995549987ae70e | /utils/scripts/OOOlevelGen/src/sprites/Alert.py | 130ac296aa9ea69dea9f1d910487db975a93b603 | [
"MIT"
] | permissive | fullscreennl/bullettime | 284a8ea320fb4adabc07c3639731a80fc4db5634 | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | refs/heads/master | 2020-03-29T01:56:26.627283 | 2018-10-11T19:09:48 | 2018-10-11T19:09:48 | 149,414,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | import PhysicsMixin
import ID
BODIES = """
<dict>
<key>body</key>
<dict>
<key>x</key>
<integer>%(x)s</integer>
<key>y</key>
<integer>%(y)s</integer>
<key>width</key>
<integer>%(width)s</integer>
<key>height</key>
<integer>%(height)s</integer>
<key>sheet_id</key>
... | [
"github@fotoboer.nl"
] | github@fotoboer.nl |
de93f365f175befa5f976bbd2d90d98324e9afdd | 3e29cc4e932bc23cab001a30102ad00701ebe1fa | /venv/bin/ipdb3 | fe6ce6dca3aac4d9381bbcf17a86b3105a502ea3 | [] | no_license | youarefree/wedding_project | 0094201a251328db1687cd416f3830d532148412 | d662c83c29ce316d7339a24df785a8c0cf07a1a1 | refs/heads/master | 2020-05-27T14:51:41.040334 | 2017-02-24T15:32:04 | 2017-02-24T15:32:04 | 82,559,369 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 319 | #!/home/dimitar/101/hackaton/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'ipdb==0.10.2','console_scripts','ipdb3'
__requires__ = 'ipdb==0.10.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('ipdb==0.10.2', 'console_scripts', 'ipdb3')()
)
| [
"dbyordanow@gmail.com"
] | dbyordanow@gmail.com | |
ad3fc34e434f57f06f36860bfa40e98831eb7372 | 7ece94f0313b37ab44a295c06d04860a1f308a30 | /MovieFolderRenamer.py | 8db40d97e8e22531b551510885e2f0012662ff81 | [] | no_license | elgar-groot/movie-renamer | 227eef7716d9f53228fd36b58e50377d6bb4ffbd | 9a3675917ebcf71bdd3459300f1a3c521a2f86c3 | refs/heads/master | 2016-08-03T18:11:45.737632 | 2014-02-28T16:53:14 | 2014-02-28T16:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | #!/usr/bin/python
import os
from glob import *
from shutil import *
import sys
from re import *
from httplib import *
import json
class MovieFolderRenamer:
'''A class that can update all movie folder names in a specified folder
to include the year, so Couchpotato will recognize them.
Makes use of omdbapi.com'''
... | [
"elgar.groot@gmail.com"
] | elgar.groot@gmail.com |
04bcdaacff968603d6ef72fc8894e662f8836a1d | 8a0db63a5f267583214a6bde2ce40b471f7e92c1 | /loja/urls.py | e1542294e417109e26f3a34e3aa9e7a02600599d | [] | no_license | brendonlucas/Shopping-API | fea28195f08ab72f802b5f64992cb06376b35caa | ef671400197e3378f5c12883af3dd038ec1ffe03 | refs/heads/master | 2020-09-13T17:09:50.155084 | 2019-12-05T01:03:21 | 2019-12-05T01:03:21 | 222,849,306 | 0 | 0 | null | 2019-12-05T01:10:14 | 2019-11-20T04:17:35 | Python | UTF-8 | Python | false | false | 1,095 | py | from django.urls import path
from loja import views
from loja.views import *
urlpatterns = [
# path('lojas/', views.lojas_list, name='list_lojas'),
path('lojas/', LojasList.as_view(), name='list_lojas'),
path('lojas/<int:id_loja>/', LojaDetalhes.as_view(), name='Detalhes_lojas'),
# path('lojas/<int:i... | [
"brendonplay007@gmail.com"
] | brendonplay007@gmail.com |
351f10db84028c7b90967a57fd7c5947cf1c2ff1 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/트리/00_트리.py | bc90198b1bcad51c6c1ca207c0bc74de3b890221 | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | import sys
sys.stdin = open('input_00.txt', 'r')
def preorder(n):
if n: # 트리가 존재하면, 0이 아니면.
print(n, end=' ')
preorder(tree[n][0])
preorder(tree[n][1])
def inorder(n):
if n: # 트리가 존재하면, 0이 아니면.
preorder(tree[n][0])
print(n, end=' ')
preorder(tree[n][1])
def... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
1894e6547d9c63f56c0ebfdae27f4f7767c8f13f | ddbddc6c1c1689ebb9430d4a495466763a231749 | /Python_Learning/Python_fundementals/05_data_types_booleans.py | 394aeb2899319f69ef94c1d5410bdddac587d33d | [] | no_license | adamkoy/Learning_Python | bd1e4d69f0bc05a2a0f8ffc05c0067081f58a225 | 2216fa211bdf21564871893ad01fed0566bf5fa7 | refs/heads/master | 2020-06-20T15:10:53.124722 | 2019-07-26T11:00:03 | 2019-07-26T11:00:03 | 197,160,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # Booleans
#Boolean is a data type that is either true and false
#Syntax is capital letter
var_true = True
var_false= False
print(type(var_true))
print(type(var_false))
# When we equate /evaluate something we get a boolean as a response
#Logical operators return boolean
#== / != / <> />= /<=
weather = 'Rainy'
print... | [
"adam.koyuncu@live.com"
] | adam.koyuncu@live.com |
5b9672e6cef01ce06379b6507bf9ca3a29c00902 | cb68603da2af46ac4841be9a5479c08186efafb2 | /hw1/kaplanmeiertest.py | a20770b53c443bc96b389b4bb696543e1f24c6dc | [] | no_license | kingledion/stat778 | 00d4125e3ebf5b7b862a0f01fc8737d659cb1749 | 62ae92dd151f96ca4658d81e5d99a744a20730bd | refs/heads/master | 2021-05-05T02:52:47.341901 | 2018-05-09T22:27:35 | 2018-05-09T22:27:35 | 119,771,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 12 17:02:54 2018
@author: dhartig
"""
from lifelines import KaplanMeierFitter
import csv
times = []
events = []
with open("/opt/school/stat778/hw1/HW1.dat") as csvin:
rdr = csv.reader(csvin, delimiter=' ')
for time, flag in rdr:
... | [
"kingledion@gmail.com"
] | kingledion@gmail.com |
042558fd36b61b423dc4cefd58f98f19f15d08c8 | f6bb211338114cc9cc66fbec0e0e17ad5b7eaf85 | /School.py | 9d76b59ce61af2a05b3fb300f795c019f9223193 | [] | no_license | sajjad0927/MySchoolProject | 4cc6a05741c532866d47b0677349a6a97a881e4c | 43ced6b5ba8adff6700d372dadb6047e2fc89f52 | refs/heads/master | 2020-03-30T07:13:30.227057 | 2018-09-30T02:57:36 | 2018-09-30T02:57:36 | 150,916,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py |
class School:
'Class To store and get the school information'
__Name='';__Id=0;__Address='';__State='';__City='';__Pin=0
def __init__(self,name,id,address,state,city,pin):
self.__Name=name
self.__Address=address
self.__Id=id
self.__City=city
self.__State=state
... | [
"sajjad0927@gmail.com"
] | sajjad0927@gmail.com |
cde1e0b1edac266be25950e13a23ca56ae2abe8e | 5d65d7bc282ae86ad9ed305117273601a0b7e0e4 | /reminder.py | 68896b32767ce5dec7f2a4b2152d5fb69a095c23 | [] | no_license | JanLetovanec/jane_bot | d37b09f238409374e7d326242137268fab70243e | cff42c4e4e737ddb9f2e9fd5e92ba9a7e00bb795 | refs/heads/master | 2020-09-13T09:10:10.136939 | 2020-03-11T14:46:56 | 2020-03-11T14:46:56 | 222,719,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | """ Helper library for remind function """
from pprint import pprint
import time
possible_replies = [
"Hi {target}, sorry to interupt you, but {author} wanted me to remind you: {text}",
"{target}! {author} wanted me to tell you this: {text}",
"{target}, hope I am not interupting you, but : {text} . Just th... | [
"janko.let@gmail.com"
] | janko.let@gmail.com |
4630ece4573f31077a86cd7a0e42b372f2fd486b | 8b373323e8ab2792e650c3d779770cf5cf89f22e | /filemanager/urls.py | 8cbbff786ac468dadc3234d77d29347bc5b5fd2a | [] | no_license | Bohloko/filemanager | ec0d5b650a70b9ce44bd4b4e2f34c6fb33116a6c | 44762e4a94306d159c12ef249de4d24e613c4e96 | refs/heads/master | 2023-06-17T16:55:05.109552 | 2021-07-15T09:37:24 | 2021-07-15T09:37:24 | 385,739,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django.urls import path, include
from rest_framework.routers import SimpleRouter
from .views import ApplicationFileViewSet, FileUploadViewSet, UserViewSet, FileSearchView
router = SimpleRouter()
router.register('users', UserViewSet, basename = 'users' )
router.register('files', ApplicationFileViewSet, basename =... | [
"taubohloko@gmail.com"
] | taubohloko@gmail.com |
a304eeea8ec9fb9ef6778dda33ad0fb333e0f628 | 7b05844959a00ac74066c5707438ef8809d25e85 | /scripts/python_module_to_matlab_import_str | f048a397677f7f6a829b77141a3f6fc6f1385bac | [] | no_license | jkwasnio/ML-X-assist | d7d47daef05392d154db13de27389fb9d25b86df | 6501674ce24b9f7250c33c44ec97bd9b8700a8fd | refs/heads/master | 2020-09-01T12:01:52.863691 | 2020-02-26T19:30:00 | 2020-02-26T19:30:00 | 218,954,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | #!/usr/bin/env python
# SYNTAX: python python_module_to_matlab_import_str.py PYTHON_MODULE_NAME
# Converts a python module (.py) into a string ready to be imported into a
# matlab environment. (Useful to 'convert' a .py into a .mat)
# NOTE: Supports int, float and str only!
import sys
import numpy as np
module_na... | [
"57213062+jkwasnio@users.noreply.github.com"
] | 57213062+jkwasnio@users.noreply.github.com | |
71d9e46ae01ebb5722197a65552fcc1e69c6a89e | 5f1f5b85be3e70fb199a28ff8673b634e6e3cb52 | /app.py | ce2f6d118c920447ddf35003b541a2eee152a16a | [] | no_license | BishnoiJitender/Fake-News-Detection | 9dc33de88a54783d743b240ce5d507525005d78b | 6727741b762b4e077a221beed41224925e58b98d | refs/heads/main | 2023-06-26T16:27:34.359321 | 2021-07-15T05:33:56 | 2021-07-15T05:33:56 | 385,855,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 2 20:38:00 2021
@author: Jitender Bishnoi Rahar
"""
import sys
sys.path.append(r'c:\users\dell\appdata\local\programs\python\python39\lib\site-packages')
import numpy as np
import sklearn
from flask import Flask, request, render_template
from flask_cors import CORS
impo... | [
"jitenderbishnoi37@gmail.com"
] | jitenderbishnoi37@gmail.com |
25e20a95bf29f57e63196d06f51219f3ec9e2f12 | 5a262566fcbba36e7f41283b886c4a492762a0a9 | /wdapp/management/UserFactory.py | d15c8b7353169ac22711bba7b8955828c428ba35 | [
"MIT"
] | permissive | Engineermar/WisdomDriven | a03705f660c407b2aac1f80ee9c0131cd9f9daa2 | eeda8a759098a16e67ad7b13ed120b30dbc8b618 | refs/heads/master | 2020-04-03T03:30:35.167084 | 2019-05-22T05:08:50 | 2019-05-22T05:08:50 | 154,987,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | from django.contrib.auth.models import User
from wdapp.models import Company,Business,Driver
from faker import Factory
import factory.fuzzy
class UserFactory(factory.django.DjangoModelFactory):
FACTORY_FOR = User
username = factory.Sequence(lambda n : "bobCaptain {}".format(n))
account = factory.RelatedFa... | [
"noreply@github.com"
] | Engineermar.noreply@github.com |
444c29a2b44228ef93f4c336d14eb3ba9a77dba4 | 358f7f248cee5069ccbca9ae6dc463bbd9de4ac6 | /window.py | 2a9f6acbb9b9332d5cff82f6a7aa64cf07e5840e | [] | no_license | zaharko/zebra | 1a255456034c3840b6720f144b27c5a8d41b1297 | bf846b38ff6948234a0dffc2ae14963c758f3e4f | refs/heads/master | 2020-07-13T00:59:49.972420 | 2019-08-28T14:50:22 | 2019-08-28T14:50:22 | 204,953,603 | 0 | 0 | null | 2019-08-28T16:38:06 | 2019-08-28T14:38:05 | null | UTF-8 | Python | false | false | 5,572 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMainWindow, QGridLayout, QLabel, QSpacerItem, QSizePolicy, QComboBox, QFileDialog
from plot_canvas import PlotCanvas
class Window(QMainWindow):
'''
How it works:
First a window is created.
Then all the widgets (buttons, slider... | [
"ivan@olexyn.com"
] | ivan@olexyn.com |
3b89389daeeefbd5bfb316297767be67e33037ad | aef5c3a8fc1a0849e8ed7dcdf4ea0446f64c342c | /zapd/admin.py | 11cffccef493d84b52ed6a47db8f4850407810cd | [] | no_license | eoliveros/zapd | c21e05dde1b318870483a2a34799fffdd1fcbd69 | b17afbc5b05fcbd27370d9ea9e6c2e6fc6bed7d6 | refs/heads/master | 2022-10-16T02:01:49.969941 | 2020-06-16T00:36:15 | 2020-06-16T00:36:15 | 171,779,747 | 0 | 0 | null | 2019-02-21T01:43:15 | 2019-02-21T01:43:14 | null | UTF-8 | Python | false | false | 1,402 | py | from flask import url_for
import flask_admin
from flask_admin import helpers as admin_helpers
from app_core import app, db
from models import security, RestrictedModelView, ProposalModelView, UserModelView, TransactionRestrictedModelView, AMWalletRestrictedModelView, \
Role, User, Category, Proposal, Transaction, ... | [
"djpnewton@gmail.com"
] | djpnewton@gmail.com |
ebc524685706f7301bb2ed5171e45241996284a5 | c9d9f17f4e3021a19e5450934a8a59764cb74e85 | /swig/python/test/main.py | 3017dbcf2fb4418a7d39e21727f57e225e9664d1 | [
"MIT"
] | permissive | longlongwaytogo/Learning.test | bfdb5c66ea127b867c73fd2f33d0fe7e962fdb81 | b2a2d95c0e1195679a9950c1a24cca071005ef6e | refs/heads/master | 2023-08-09T06:47:42.572746 | 2023-07-29T10:19:02 | 2023-07-29T10:19:02 | 92,352,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.33
#
# 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
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path im... | [
"longlongway2012@hotmail.com"
] | longlongway2012@hotmail.com |
f3f99dc39371b1d6677cd7be07c263496a984d3a | 1cc726e5c483db05d8f9f31674d424b60824f597 | /tests/__init__.py | 8872496718b43efe4f6612ca1936404574038c2a | [] | no_license | patry-jh/empresa-0.3 | ac3415744fe172591b2d8f867bf8eb99ba789024 | c8ecbcece14cbb83082bed862909f97ae1ecfcb4 | refs/heads/master | 2021-01-21T00:16:24.035031 | 2014-12-05T16:52:48 | 2014-12-05T16:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | __author__ = 'Patry'
| [
"patricia_j_h@hotmail.com"
] | patricia_j_h@hotmail.com |
ea699af4008afcb9c81e4e18774c8e0a4bb71e09 | 49c4597a93a3208c70b33464ac926a0594d4965f | /src/python/setup.py | 40f41b1d10bdb8f5b289328b725784db2d53fabb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | victor8733/phyre | 690b6e7c13365f54d580e6ca9a0440f781b26b43 | 1787b546b37ab838934165fec42e9567fbe1e301 | refs/heads/master | 2020-07-05T16:19:02.317709 | 2019-08-15T15:41:10 | 2019-08-15T15:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
#
# 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... | [
"7470747+akhti@users.noreply.github.com"
] | 7470747+akhti@users.noreply.github.com |
253157c4d42b5b0854fff32b8673309796a5ba90 | be29b355371816a74f023df3a5ecbe812f2b499b | /hummingbot/market/radar_relay/radar_relay_order_book_tracker_entry.py | 56fe64cc63b7bafb619e88fa1c14bca2280cb2d0 | [
"Apache-2.0"
] | permissive | OceanEx/hummingbot | 324e6b59d111bc611d83baf1a87352044cef84d5 | f3dc27b9482093ea2c8d1fa603d0116de1e2fa05 | refs/heads/master | 2021-07-12T18:42:32.496606 | 2021-03-04T03:46:17 | 2021-03-04T03:46:17 | 236,079,080 | 2 | 2 | Apache-2.0 | 2021-03-04T03:44:35 | 2020-01-24T20:35:41 | Python | UTF-8 | Python | false | false | 1,021 | py | from hummingbot.core.data_type.order_book import OrderBook
from hummingbot.core.data_type.order_book_tracker_entry import OrderBookTrackerEntry
from hummingbot.market.radar_relay.radar_relay_active_order_tracker import RadarRelayActiveOrderTracker
class RadarRelayOrderBookTrackerEntry(OrderBookTrackerEntry):
def ... | [
"yzhang1994@Gmail.com"
] | yzhang1994@Gmail.com |
02ce6a6dc210e59843e1b6067deefc5a2b0e3d32 | ac9ae2035fee25ebe989d1a7482fbfc416493870 | /impCheck.py | 0b62776da2c1b63eb8924f568bfd74fe95ff0b98 | [] | no_license | namanitta/PE-JsonParser | b827f86a11253b366d0af8257c68c9ef28e59a06 | 367a0ea19d0e5bc17ef5489a805118563d4beb70 | refs/heads/master | 2022-01-16T15:47:23.977719 | 2019-07-21T22:27:45 | 2019-07-21T22:27:45 | 198,111,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import os
fp = "/home/cuckoo/Desktop/scripts/PE-Attributes/PE_Jsonparser/results/maldb/txt_files/"
for r, d, f in os.walk(fp):
for files in f:
mal = fp+files
fi = open (mal)
lines = fi.readlines()
for line in lines:
if "Imphash" in line:
en = line.rfind(":")
v = line[en+1:].strip().rstrip()
if v... | [
"noreply@github.com"
] | namanitta.noreply@github.com |
a18a50416d57b4791dde890213ed60f4153bf41c | 2e917d5d889baca195865d8d7330a558aef05870 | /simulationWithBurnoutPrediction/simulationWithBurnoutPrediction/PopulationCaregiver.py | e5de0583d9dd98fc13d950512cfe8fb8abe6f552 | [] | no_license | Obatata/SimulationAndPrediction | 4984b2af1dcffa87ba83e35fc944660d9134e590 | 74e8e81f8b182fb15c88e01685557f4856d73f61 | refs/heads/master | 2020-04-29T11:16:09.863197 | 2019-03-17T11:25:27 | 2019-03-17T11:25:27 | 176,091,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,695 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 16 15:35:49 2018
@author: Oussama BATATA
"""
# import library .........
import numpy as np
import InputData
import Caregiver
import ServiceOfRespite
class PopulationCaregiver:
"""Classe définiss un aidant (caregiver) caractérisée par :
- nbCluster = Nbr de c... | [
"batata.oussama@gmail.com"
] | batata.oussama@gmail.com |
b8405ccbf1b037622cfb344604a81fcef9306518 | 1f5f8f95530003c6c66419519d78cb52d21f65c0 | /projects/golem_gui/tests/users/create_user/add_project_permission.py | 5ac16e37d8543470a90751eb0751b5bc624ee3b4 | [] | no_license | golemhq/golem-tests | c5d3ab04b1ea3755d8b812229feb60f513d039ac | dff8fd3a606c3d1ef8667aece6fddef8ac441230 | refs/heads/master | 2023-08-17T23:05:26.286718 | 2021-10-04T20:34:17 | 2021-10-04T20:34:17 | 105,579,436 | 4 | 1 | null | 2018-11-19T00:14:24 | 2017-10-02T20:05:55 | Python | UTF-8 | Python | false | false | 513 | py | from golem import actions
from projects.golem_gui.pages import common
from projects.golem_gui.pages.users import create_user
def setup(data):
common.access_golem(data.env.url, data.env.admin)
create_user.navigate_to_page()
def test(data):
project = 'project1'
permission = 'admin'
create_user.se... | [
"luciano@lucianorenzi.com"
] | luciano@lucianorenzi.com |
8d9fd56181d25fbff2f7f82a19a948a12105bc70 | 849e8fb216a130ef1c438f46f3a63592537368c5 | /zhaopin/zhaopin.py | ea8067c3ad9188815f33f97a0ab144b647305142 | [] | no_license | xyls2011/python | 978db70a735fe2e2168ca7cf50a4e6aa07e04888 | 63ef2b3f4cb00ef23b16aa72785bcda1a2b7b756 | refs/heads/master | 2020-06-01T07:59:54.796530 | 2019-06-21T12:35:50 | 2019-06-21T12:35:50 | 190,709,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | from requests_html import HTMLSession
import re
from matplotlib import pyplot as plt
salary_element = '<p.*>(\d+)K-(\d+)K</p>'
salary = []
disabled_button_element = '<button.* disabled="disabled">下一页</button>'
disabled_button = None
p=1
while not disabled_button:
print('crawling page ' + str(p))
link = 'https://sou... | [
"1104869984@qq.com"
] | 1104869984@qq.com |
a976c47dc9b2b9ea9159315a66f28ffebac319cd | 05fd81538aa32c0c3fa3e8762a5146342478421b | /NN_skin_cancer/cfgs/2020/ham_effb1_meta_nl.py | c913d659d2cd0126b43f716e7e0d327c2ecd9c0f | [
"MIT"
] | permissive | GavinHU66/DebugEntity | b0a23b51b339a4f70dcb98f6cc419e151cc94420 | 21f38f01bdfbbc363a73f640331c6f04a121cf82 | refs/heads/master | 2023-04-11T10:25:20.543185 | 2021-04-14T05:20:25 | 2021-04-14T05:20:25 | 300,828,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | import numpy as np
def init(mdlParams_):
mdlParams = {}
# Save summaries and model here
mdlParams['saveDir'] = './models/model_ham_effb1_meta_nl'
mdlParams['model_load_path'] = './models/model_ham_effb1'
# Data is loaded from here
mdlParams['dataDir'] = './Data'
mdlParams['with_m... | [
"ec2-user@ip-172-31-16-196.us-east-2.compute.internal"
] | ec2-user@ip-172-31-16-196.us-east-2.compute.internal |
4479613cc55c0bb5cd58770d3eb6318b6b0d2451 | 69c4313b5339243847dfae1658b04652ce59bda8 | /Naive-Bayes Classifier/prediction of movie reviews.py | 28999127fd4c1e862da79cff33359ed8bac41202 | [] | no_license | Ritik-Arora-576/DATA-SCIENCE | 667cd25bf01445572fe6ff823de8f4164ff6f412 | 8ef0bea6dcc6c06bfb5b2dd1266722fff1de435b | refs/heads/master | 2023-02-08T08:07:03.506197 | 2020-12-19T14:40:54 | 2020-12-19T14:40:54 | 280,922,746 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | #!/usr/bin/env python
# coding: utf-8
# # Training Dataset :
# In[1]:
train_data=[
'This was an awesome movie',
'Great movie ! I liked it alot',
'Happy Ending ! awesome acting by the hero',
'Loved it ! Truly great',
'bad not upto the mark',
'Surely a dissapointing movie'
]
y=[1,1,1,1,0,0]
... | [
"ritikarora656@gmail.com"
] | ritikarora656@gmail.com |
cc7b250a3c9f0394d2b4a95cc17b250ac8fc17f7 | bd2a975f5f6cd771393f994ebd428e43142ee869 | /new_render_data/input/p/script/abort/back20180419/CG/C4d/process/AnalyzeC4d.py | 8701fce3cb9979a4512eb94493a2858b24657c12 | [] | no_license | sol87/Pycharm_python36 | 1a297c9432462fc0d3189a1dc7393fdce26cb501 | fa7d53990040d888309a349cfa458a537b8d5f04 | refs/heads/master | 2023-03-16T10:35:55.697402 | 2018-11-08T09:52:14 | 2018-11-08T09:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
# Author: kaname
# QQ: 1394041054
""" C4d analyzer """
# RUN:
# 1. From C4Dloader.py to loading RBAnalzer.py to do it.
# 2. AnalyzeC4d.py loading C4Dloader.py to do it.
import os
import sys
import subprocess
import string
import logging
import time
import shutil
... | [
"superdkk@gmail.com"
] | superdkk@gmail.com |
c1c0b55b76c86f1b101dd1186d123430cec8cf5f | b9f8af3f56577c2e15b7c4a91901b831ec39b1d9 | /Fortisw_Class.py | 70806594d1d6b4cc0d3886fc51172fae3bbabaff | [] | no_license | haobinzheng/ixia_automation | 3d9efef9e63d4c93598eeeffd39a0822a8f9b3fb | 7a0aeebb6b89d014cd8b4406f54459d57d87a2c1 | refs/heads/master | 2023-05-25T00:44:13.054388 | 2023-05-23T20:20:07 | 2023-05-23T20:20:07 | 213,509,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,642 | py | from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
import telnetlib
import sys
import time
import logging
import traceback
import paramiko
import time
from time import sleep
import re
import os
from datetime import datetime
import pdb
# import xlsxwriter
# from exc... | [
"mike.zheng2008@Mikes-MacBook-Pro-2.local"
] | mike.zheng2008@Mikes-MacBook-Pro-2.local |
2e1b14b5791d705897342227ca9a919f4399bccf | 73f1075c99338984795f4bd7bd7b9563ecc36d87 | /Binary_Search/74.Search_a_2D_Matrix.py | 033d554ced3b5db33c3e0b08155a2a7e62fb0138 | [] | no_license | grg909/LCtrip | 314bd173f87ec98ff13234bdd148c76482db2df7 | 96836da905526b47f0cdee8c0bb4790c4cdd6c79 | refs/heads/master | 2020-09-12T13:38:52.486189 | 2020-08-28T14:22:50 | 2020-08-28T14:22:50 | 222,442,472 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # -*- coding: UTF-8 -*-
# @Date : 2019/12/11
# @Author : WANG JINGE
# @Email : wang.j.au@m.titech.ac.jp
# @Language: python 3.7
"""
"""
# 思路1,把二维数组扁平化
class Solution:
def searchMatrix(self, matrix, target):
try:
n, m = len(matrix), len(matrix[0])
except:
return False... | [
"grg909@foxmail.com"
] | grg909@foxmail.com |
490cc5c17c7b44c4c6e43f0bad18fa2d38711e6e | bc8cd08c03e22625da04357fa95ca93f7f3dee26 | /backend/app/demo/__init__.py | a8e508d8ce4b43ad669d14edb367970e4f72289f | [] | no_license | huanglesi0605/room-seeker | 182149d2df725965d1e08ca007e73cf9bf56d556 | 9b004dba24f0ec9216d4fb0fa9ede2fe626f9f0e | refs/heads/master | 2023-02-06T04:07:24.623518 | 2019-12-08T13:24:33 | 2019-12-08T13:24:33 | 226,670,464 | 0 | 1 | null | 2023-02-02T05:11:20 | 2019-12-08T13:17:11 | JavaScript | UTF-8 | Python | false | false | 356 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Flask
from flask_cors import CORS
import v1
def create_app():
app = Flask(__name__, static_folder='static')
CORS(app)
app.register_blueprint(
v1.bp,
url_prefix='/v1')
return app
if __name__ == '__main__... | [
"huanglesi0605@gmail.com"
] | huanglesi0605@gmail.com |
41363247c358198e8cecea4460b8076fd9c34398 | 01301e5f486883865e3696f38ef913a232958343 | /antlir/compiler/test_images/print_ok.py | a38dabfa12fe5a4e77e3b8b8fd720897c11764b0 | [
"MIT"
] | permissive | SaurabhAgarwala/antlir | 85fb09c87dafde56622b4107224b41f873f66442 | d9513d35d3eaa9d28717a40057a14d099c6ec775 | refs/heads/main | 2023-06-25T09:05:30.619684 | 2021-07-01T23:04:57 | 2021-07-01T23:06:11 | 382,355,446 | 0 | 0 | MIT | 2021-07-02T13:30:39 | 2021-07-02T13:30:39 | null | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
'Prints the unicode string "ok" via the `print` function to `stdout`, on 1 line'
print("ok")
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
dcd129a74603a0715965552c23d7abc56eb7e6da | 484d73935f057756df8bc6556fc5704327443108 | /234ICPC/D_test.py | 7711282531746f22a74f0eb79cc78163db4c7043 | [] | no_license | kazuya030/CodeForces | 5d93d25f456589ad6343e1140ca27c5ecbd0d652 | 8d859c7680c7dd1c40943bb05116bf032ea5f9bd | refs/heads/master | 2021-03-12T23:45:53.592799 | 2012-12-02T06:57:30 | 2012-12-02T06:57:30 | 6,964,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | #coding: utf8
import sys
import StringIO
__date__ = '2012/10/20'
from D import solve
def test(input, ans):
ans = str(ans)
s_in = StringIO.StringIO(input)
s_out = StringIO.StringIO()
sys.stdin = s_in; sys.stdout = s_out
str(solve())
sys.stdin = sys.__stdin__; sys.stdout = sys.__stdout__
s... | [
"minami@Retinan.local"
] | minami@Retinan.local |
e58160be043c25f1567117706578c6627e844ccb | bf72636241a871d9a7519a577395f9d1fd7b38c2 | /tools_box/_selling/doctype/daily_route_activity/daily_route_activity.py | cfad18b8a1834abd2997ab43008e8996ba9faa94 | [
"MIT"
] | permissive | Athenolabs/Tools-Box | fc6400d9d88cc8ba0a3d48e38a0918f0022ce914 | c4e4e368a0bec115f84bc33ae011d7e0fd02932f | refs/heads/master | 2021-01-23T10:58:36.243182 | 2017-05-30T13:44:04 | 2017-05-30T13:44:04 | 93,116,515 | 2 | 1 | null | 2017-06-02T01:58:32 | 2017-06-02T01:58:31 | null | UTF-8 | Python | false | false | 284 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class DailyRouteActivity(Document):
pass
| [
"masonarmani38@gmail.com"
] | masonarmani38@gmail.com |
15f753d76464d7abfd4fcf2a4b8dd8743d72fd97 | 462a30862d0303d1d1beeebb2d33bb2a625d5336 | /catchpy/settings/local.py | 995d6763bc4efc46baa39e79fbf3ac479732de8e | [] | no_license | nmaekawa/catchpy | 5eca9715c23e71ce4f6ef489607da0b0e46a14a3 | 50783648804e5b6ce57dcb7d00ba1038fd23ffdc | refs/heads/master | 2023-08-03T09:25:44.838480 | 2023-04-18T19:05:20 | 2023-04-18T19:05:20 | 98,905,832 | 10 | 3 | null | 2023-08-14T18:47:50 | 2017-07-31T15:50:19 | Python | UTF-8 | Python | false | false | 506 | py | from .dev import *
DEBUG = True
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
try:
import django_extensions
INSTALLED_APPS += ['django_extensions']
except ImportError:
pass
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
try:
import debug_to... | [
"nmaekawa@g.harvard.edu"
] | nmaekawa@g.harvard.edu |
dba40b9bb798424bbf69d92708c6cfa4e6a370f6 | 3a0464e991ecb173bc4582892a8079e6312a82c8 | /app.py | 8da2a40496d28db0bf9e519e48a1895af6e072e4 | [] | no_license | noorbakerally/sparql-server-wrapper | d3003503b2d1892f0007114992372ac9cf8634ba | a7c6612cc20295871f4371c4a32c6c5cb64f5c92 | refs/heads/master | 2021-01-10T05:41:55.952301 | 2016-03-19T20:12:59 | 2016-03-19T20:12:59 | 54,285,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from flask import Flask,request
from easyprocess import EasyProcess
from flask.ext.cors import CORS
app = Flask(__name__)
CORS(app)
@app.route("/generate", methods=['GET', 'POST'])
def generate():
#get the query
if request.method == 'POST':
query = request.form['query']
else:
query = request.args.get('query'... | [
"noorani.bakerally@gmail.com"
] | noorani.bakerally@gmail.com |
e2616b15545ff9e24f76b4fa5ffbd27b156aac2b | 8e0567b913653c6d978b8f69a297449fa475cd74 | /opt_classifier/opt_classifier.py | dd9dd34e020b9f44d24b7f9259814bdbab1b9fc7 | [] | no_license | ercarpio/SG_CNN | 0521cadc13180f6886fe945a0a4763d1c19655c2 | 77f519f3b0f4cd3d2bdfad611a833c061767ee68 | refs/heads/master | 2021-09-19T10:29:30.593422 | 2018-07-27T00:08:38 | 2018-07-27T00:08:38 | 113,371,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,667 | py | import tensorflow as tf
# contains information relating to input data size
from common.constants import *
# network layer information for P_CNN
layer_elements = [-1, 16, 32, 128, OPT_CLASSES]
output_sizes = [32, 16, 4]
filter_sizes = [4, 4, 8]
stride_sizes = [2, 2, 4]
padding_size = [1, 1, 2]
'''
ClassifierModel gen... | [
"eccarpio@hotmail.com"
] | eccarpio@hotmail.com |
f36d77833c5ad2f75fe439282ecc35502d0153ca | 2ff5cf209663c660b38092e2c02f82b8114062fa | /api/utils/htmlreport.py | a160de4e2fb0f41a418318c879133edd4ab4770c | [] | no_license | wuchf/shuangshi-api-test | c48791c1e0a5e18c0fb4a252178514a19e2678ee | 473e933a751ee6485bfb7dc3455c91eaf8471ff5 | refs/heads/master | 2020-05-04T15:34:25.973665 | 2019-04-03T08:54:55 | 2019-04-03T08:54:55 | 179,246,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,320 | py | import sys
HTML_TMP='''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="../../static/css/bootstrap.min.css" rel="stylesheet">
<script src="../../static/js/jquery-3.2.1.min.js"></script>
<script src="../../static/js/bootstrap.min.js"></script>
<script src="http... | [
"noreply@github.com"
] | wuchf.noreply@github.com |
0f276a9b40c35cb921b2f49748656afb5c5442d9 | 0f0a7adfae45e07a896c5cd5648ae081d4ef7790 | /python数据结构/慕课测试题/打印实心矩形.py | f31f5eb66436884a6fbfd6372e3042c933196836 | [] | no_license | renlei-great/git_window- | e2c578544c7a8bdd97a7a9da7be0464d6955186f | 8bff20a18d7bbeeaf714aa49bf15ab706153cc28 | refs/heads/master | 2021-07-19T13:09:01.075494 | 2020-06-13T06:14:37 | 2020-06-13T06:14:37 | 227,722,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | args = input().split()
alist = [int(i) for i in args]
# min_number = min(alist)
min_number = alist[0]
for i in alist:
if min_number > i:
min_number = i
print(min_number)
| [
"1415977534@qq.com"
] | 1415977534@qq.com |
c126f0f06bc1013db451d75b242298742e2ec9e8 | 389e5408ee9846219b52c68381a32f23deff6c68 | /app/core/migrations/0003_ingredient.py | 1f421c7b1e2b77927ddc2fafe9fcdd9365ec8969 | [
"MIT"
] | permissive | derwinterence04/recipe-app-api | 63703abb7b7d5e9c33a4ed5010927aee1c674ba4 | fee862987885d4dcd4878c48cb9cffa11d015ae1 | refs/heads/master | 2022-11-23T11:32:56.908589 | 2020-07-29T02:08:06 | 2020-07-29T02:08:06 | 282,761,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.0.8 on 2020-07-28 02:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_tag'),
]
operations = [
migrations.CreateModel(
n... | [
"dtcastro@ph.indra.com"
] | dtcastro@ph.indra.com |
54f5e3cdf45372380069c8efe4a8c3f74a44ee5b | 637ad73004c056397e1f7ecd039c9c0ece9a1114 | /ScrapingCongress/cget.py | e830f32de64f7bef673b60a03070a049ec5f8be8 | [
"MIT"
] | permissive | Krewn/bukeVote | cf07c26dfb91e9c750b4cf7ea6435531c3cf3159 | 646ff194957cd6e4dd642ee1f61021c3be01a0d4 | refs/heads/master | 2016-09-13T17:11:01.576846 | 2016-06-07T07:25:25 | 2016-06-07T07:25:25 | 58,336,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # $$$$$$$\ $$\
# $$ __$$\ |$$| |$$|
# $$ | $$ | |$$\ $$| $$| $$$$$$$\
# $$$$$$$\ | $$| $$| $$| $$ _____|
# ... | [
"kpie314@gmail.com"
] | kpie314@gmail.com |
59dd09fa952c05fb2664214cd30c0473025458e0 | 43e53df2f2bc1779c2896541940a235e66a02b02 | /day18/qq发送消息.py | ab63f8dfee03cb49856868ecbdb35ef1e150b795 | [] | no_license | songdanlee/python_code_basic | ddb3276b0473a261423c43d5d8e7a1ff038d5c51 | f32cd4dc9670e55ffa6abe04c9184bfa5d8bbc41 | refs/heads/master | 2020-07-14T21:05:30.471486 | 2019-08-30T14:55:51 | 2019-08-30T14:55:51 | 205,402,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import os
Name = input('Name of the Receiver: ')
Name = '穆梓'
clientDict = {'lz':'513278236',
'穆梓':'318750798'
} # 人名 和对应的 qq号
os.system('start tencent://message/?uin=' + clientDict[Name]) | [
"2533636371@qq.com"
] | 2533636371@qq.com |
3f49e0b87034d1facf0d85d5bd8aa7183250ef3e | fa00de856cea27b4425474dcdc6cb8b4654b0278 | /seprjmvp/accounts/forms.py | c44674114929a9c92fa9641d962f19de5d609e75 | [] | no_license | faryabimm/se_prj_mvp | 03a7f90e12ea6d4c12dcb6304904b24e409ba0b5 | 092fccc9f62b4faa97e717d1d27ffae6184aa251 | refs/heads/master | 2020-03-19T18:41:27.915541 | 2018-06-10T15:24:25 | 2018-06-10T15:24:25 | 136,820,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class SignUpForm(UserCreationForm):
name = forms.CharField(max_length=50, required=True, help_text='required')
email = forms.EmailField(max_length=254, required=True, help_text='required... | [
"faryabimohammadmahdi@gmail.com"
] | faryabimohammadmahdi@gmail.com |
cf4860def85e20d2a28057aaa8e43165421b30f5 | abe88d197c288a553645a0add7ccc50f34ceb858 | /02_streamciphers/truthtable_to_anf.py | 09929b32eaaad66864d5afa71f15a82d803b1682 | [
"Unlicense"
] | permissive | StoneSwine/IMT4124-cryptology_software | eea3d8fe69c9c22929fdaa6e76cac1535f68effa | f480ad40a02802d82fdf2a3b35bc2251d5241f89 | refs/heads/main | 2023-01-24T03:13:25.562324 | 2020-11-19T07:55:35 | 2020-11-19T07:55:35 | 314,175,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/env python3
import math
# CHANGEME:
#g = 0xE7
g = int("0b11010001", 2)
g = str(bin(g)[2:])
varnum = int(math.log2(len(g)))
n_rows = int("0b" + "1" * varnum, 2)
def find(s, ch):
return [x for x, ltr in enumerate(s) if ltr == ch]
def get_multiple_characters(s, indexes):
for i in indexes:
if s[i]... | [
"StoneSwine@users.noreply.github.com"
] | StoneSwine@users.noreply.github.com |
ef9dd66a281bd4a8cfff524ae8a983149449e1cd | ca17bd80ac1d02c711423ac4093330172002a513 | /binary_tree_longest_consecutive_sequence/LongestSequence_better.py | 3413f0a627ca955427b2a27755e726678c29a746 | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def helper(self, root):
if not root: return 0, 0
leftG, leftL = self.helper(root.left)
rightG, ri... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
87b9509ca6d5640d6e420dda4d191a0168607c51 | 45a917403e0865dcf161b24d2742f9cb766c1d69 | /floyd.py | 2021118f5f3f7e57549db3d5a4009445f37dbadc | [] | no_license | wkentdag/algorithms | 47daefa91ff0d0f39f8f885711ca667b9ee6a01b | a80d5d2df2906b82e4d2f916cfddcb8fddd82b02 | refs/heads/master | 2021-01-10T19:44:25.910009 | 2015-03-06T17:46:00 | 2015-03-06T17:46:00 | 31,781,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | # Will Kent-Daggett + Scott Hurlow
# COMP-221 Algorithms
# Programming 5, Question 4 (Floyd's Algorithm)
###################################################
import random
import timeit
def floyd(a, p):
"""Takes in an adjacency matrix a, and performs floyd's
algorithm for shortest pairs, returning time elapsed.
A... | [
"willkentdaggett@gmail.com"
] | willkentdaggett@gmail.com |
129c7d6dade54a4eac44f6e25e6a1cf9bb3f35cd | 3d915fe47b258a6833cb332c5b9d807ae9b55375 | /test_appium/po/page/app.py | 906f9e1c283b1d2697a9578316e6ddf202204c45 | [] | no_license | liuzhiyang123/hogwarts | 73080468c75072501d66d81b75565d80d231c776 | 2761306060bf5898991e282d15d4b24dadb6bcf7 | refs/heads/master | 2023-07-05T13:39:37.572188 | 2021-08-14T02:07:47 | 2021-08-14T02:07:47 | 319,951,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | from appium import webdriver
from test_appium.po.page.base_page import BasePage
from test_appium.po.page.main_page import MainPage
class App(BasePage):
def start(self):
caps = {
'platformName': "Android",
'platformVersion': "6",
'deviceName': "vivo x5",
# ... | [
"liuzy@liuzydeMacBook-Pro.local"
] | liuzy@liuzydeMacBook-Pro.local |
139d90a724afb570f73766dcec13eb22481baa23 | e8bfb4565c63538b14a68b798093b79bcc934723 | /labs/lab4.py | 2edb40ca16e7d65c0d28b14f703e770d9fd217e6 | [] | no_license | ameru/cs-fundamentals-101 | 630230c1c384792da4d563dbe1990f888861cace | 2d3841e1bc21885f1f274fe70b4071152520c53e | refs/heads/main | 2023-02-03T19:32:15.527283 | 2020-12-21T07:25:00 | 2020-12-21T07:25:00 | 303,852,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # no docstrings needed for __eq__ and __repr__
import turtle
def euclid_distance (point1, point2) -> float:
""" computes Euclidean distance
Arguments:
a (Point): a point
b (point): another point
Returns:
float: the euclidean distance between the points
"""
result = return ((a.x - b.x)**2) + (a.y - b.y)... | [
"noreply@github.com"
] | ameru.noreply@github.com |
166d339829928c03eae087789acaafe7f5329a46 | 267f2c09420436e97275986f825045cbe81fd3ec | /buy & sell vinyl records 3.5.3.py | 5215d6374e530fd31aa37d163087968486904c55 | [] | no_license | aiqbal-hhs/91906-7 | f1ddc21846bee6dd9dcf4f75bdabe68989390769 | 8d6aadedff8c6585c204a256b5bd3ad8294a815f | refs/heads/main | 2023-05-15T00:17:41.407536 | 2021-06-04T10:32:21 | 2021-06-04T10:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | from functools import partial
from tkinter import *
import random
root = Tk()
stock_list = ["Igor - Tyler The Creator",
"Good Kid Maad City - Kendrick Lamar",
"Demon Days - Gorillaz"]
class stock:
def __init__(self, name, amount):
self.name = name
self.amount
s... | [
"noreply@github.com"
] | aiqbal-hhs.noreply@github.com |
aea3f3887f24cd7bd8e675548e6a6e5ed1ffd007 | ee795e3a8841fe69866d1fd7cbe808e3e9889a5e | /config/models.py | a326e0485ed425df64bd8890e2965b61ba27f99e | [] | no_license | godlike1215/mysite_3 | 94115ab8b08f2afa37e7f7fd4516ecf5522dcb0a | 7a4c3522a60a49769ff5885fce012acdc3f81dee | refs/heads/master | 2022-11-30T14:15:55.459105 | 2019-09-23T09:35:46 | 2019-09-23T09:35:46 | 202,091,447 | 0 | 0 | null | 2022-11-22T02:10:11 | 2019-08-13T07:43:10 | Python | UTF-8 | Python | false | false | 2,823 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from django.template.loader import render_to_string
class Link(models.Model):
STATUS_NORMAL = 1
STATUS_DELETE = 0
STATUS_ITEMS = (
(STATUS_NORMAL, '正常'),
(STATUS_DELETE, '删除'),
)
title = models.CharField(max_... | [
"568726669@qq.com"
] | 568726669@qq.com |
f3a26154b540ac62dd14a20038162772e7a58a16 | 487758b0f371df3233c0651a042c26e7fc6b0765 | /tools/cbmc/patches/compute_patch.py | 7dcfcefcd401b058936944e6fecf3c40e3c6fa6d | [] | no_license | redpinesignalsinc/amazon-freertos | bcd30d43d759b905f4e47973d53db777e57b7117 | 22f470e30ee8c3cfe7861551dff4849212668f87 | refs/heads/master | 2020-12-22T04:54:16.742019 | 2020-01-28T07:39:15 | 2020-01-28T07:39:15 | 235,995,037 | 0 | 0 | null | 2020-01-27T10:45:52 | 2020-01-24T12:00:47 | null | UTF-8 | Python | false | false | 9,232 | py | #!/usr/bin/env python3
#
# Generation of patches for CBMC proofs.
#
# Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in... | [
"vinod.alibade@redpinesignals.com"
] | vinod.alibade@redpinesignals.com |
40e657c8fd6cc4159d8d1aab9bd7146e9cb84561 | 7f8c9a91abfd776576edbefd9929b55ab249523e | /node_modules/uws/build/config.gypi | f29e879b0304e4bd03f5d2ec4d83ef0059b439f4 | [
"Zlib"
] | permissive | sam735/Direct_messaging | 6e854b195fe964c615501604ef4fc505e1968236 | e83b8cadcd29faa2fbb733250b76e8e0efe91996 | refs/heads/master | 2021-10-22T22:42:53.651443 | 2019-03-13T07:36:09 | 2019-03-13T07:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,235 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"ksanjeev@zeomega.com"
] | ksanjeev@zeomega.com |
ac0e7dab7b113ef703d686513e93015258211bce | aae2f576442eca943a3c3c73f9ae65075419e503 | /tests/test_api.py | 7c607f1502e5bb6ec421962a680e26403d8a386f | [] | no_license | joaquin-diaz/coding-challenge-backend | 38c6fa8d8d75f642ea3580a957e9c61871d7023d | f97b8ec6041525127794af4c00bf423af4f365bd | refs/heads/master | 2023-01-28T14:11:51.786278 | 2019-09-02T00:04:40 | 2019-09-02T00:04:40 | 205,566,615 | 0 | 0 | null | 2023-01-24T00:37:30 | 2019-08-31T16:06:40 | Python | UTF-8 | Python | false | false | 1,880 | py | import unittest
from unittest.mock import patch, MagicMock
from api import FilmLocationsAPI
from .common import mock_response
class TestAPI(unittest.TestCase):
def test_init_empty_api_key(self):
with self.assertRaises(Exception) as e:
FilmLocationsAPI(api_token=None)
self.assertEqual(
"Pleas... | [
"joaquin_fdv@goshippo.com"
] | joaquin_fdv@goshippo.com |
53a0c5631fbc7d5df21cab0051bc053183e747e3 | a6df1449b52ab0bf393b2eaabf859e89f07377e3 | /article/migrations/0003_auto_20191127_1549.py | f7de0863968eb1ec983749b2f0538bbc5d0281af | [] | no_license | adwinugroho/cryppy_blog_django | 3ddaacb0389a17e8cba4120340c33e72226a0bca | 723974469613301af7a6f7add5e67c1de4656f43 | refs/heads/master | 2021-06-30T14:08:29.771672 | 2019-12-14T08:42:14 | 2019-12-14T08:42:14 | 227,990,314 | 0 | 0 | null | 2019-12-14T08:35:19 | 2019-12-14T08:27:59 | HTML | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.2.7 on 2019-11-27 15:49
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0002_article_slug'),
]
operations = [
migrations.AlterField(
model_name='article',
name='o... | [
"adwinnugroho16@gmail.com"
] | adwinnugroho16@gmail.com |
1221006e69505d6b9673acda6b899b46957c5ac5 | 9873c0b05522ea0ce574944712e6d5c6f829de2f | /diarrheapiechart.py | 1c3fe9d5dd80f77fee6f6c6035d6259251e67cab | [] | no_license | jiankaiwang/tcdc_opendata_visualization_data | 972f64606ede14355a65f8ea88b218dd1fed1978 | 2de3346ea8950d7027d6123169219d39802f09cb | refs/heads/master | 2021-05-04T16:09:56.239403 | 2018-02-05T02:45:41 | 2018-02-05T02:45:41 | 120,245,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,366 | py | # -*- coding: utf-8 -*-
"""
#
# author : jiankaiwang (https://jiankaiwang.no-ip.biz/)
# project : CKAN Visualization
# service : diarrheapiechart
#
"""
import csv
import urllib
import urllib2
import py2mysql
import json
import general
import sys
# service name (must be noticed if it is going to change)
serviceName =... | [
"s0973078@mail.ncyu.edu.tw"
] | s0973078@mail.ncyu.edu.tw |
f17adc2a15a876ed0c7c3c479bb7aa490936b59d | 3cc112b83216e39c15fe86ec067118a730a16706 | /neural_networks/python/cifar-100.py | 0d7788e2e2528e81e1e5c4d04d4ed5647bd3eb08 | [] | no_license | pixarninja/machine_learning | 1af40c7728241505ecc0cc3840ea86dc5f8e0aea | 241a52114314dfb580870622c143bd7c3492a53d | refs/heads/master | 2020-12-02T04:11:01.959313 | 2020-01-02T18:56:11 | 2020-01-02T18:56:11 | 230,883,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # Modeled off of "The Sequential model API" (Keras Documentation)
# Source: https://keras.io/models/sequential/
from keras.models import Sequential
from keras.layers import Dense, Conv2D, Dropout, Flatten, MaxPooling2D
import matplotlib.pyplot as plt
import tensorflow as tf
import utils as utils
# Import training and ... | [
"wesharris505@gmail.com"
] | wesharris505@gmail.com |
2668f757293e1c34a37a46665c3e67873ae603b9 | 9e2e70257f707751fdff54f3322fad09a4029118 | /graphing.py | e909d13d3ea132022069e91b5d9e7f5f33190375 | [] | no_license | danielchen09/CS448-Project3 | eb254c848ea9aff73ddd60c4e814a05cb4150b3b | 37212dacc9696f7504117ce21f2073a1bc20ec57 | refs/heads/master | 2023-04-13T02:01:28.281860 | 2021-04-22T09:18:28 | 2021-04-22T09:18:28 | 357,829,794 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
x = []
y_min = []
y_avg = []
y_max = []
ys = []
with open('part1test1-out/time.txt') as f:
while (True):
line = f.readline()
if not line:
break
x.append(line)
for i in range(4):
ys += f.r... | [
"chen3189@purdue.edu"
] | chen3189@purdue.edu |
4323d06509935ec626872716a0a5d1a8c8366b41 | 8feb5a91bfc7ffd267da5635a8c450f4db2da8dd | /Python Scripts/app_extractor_lib_based.py | dd70130260696bb9e07254d007e909a4396ddc4d | [] | no_license | jabhinav/Educational-Content-Enrichment | a8d8e62aed8c5a0cfa85fab1c8e26305cbe1426d | a73a466430142074e581f86ef91a5d35e22c6e76 | refs/heads/master | 2022-12-06T03:56:46.280482 | 2020-08-24T20:18:27 | 2020-08-24T20:18:27 | 213,155,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import nltk
import wikipedia
import os
all_wiki_titles = "/home/abhinavj/video_enrichment/"
with open(os.path.join(all_wiki_titles,"wiki_all_titles.txt"),'r') as f:
titles = f.readlines()
# warning:: Calling `section` on a section that has subheadings will NOT return
# the full text of all of the sub... | [
"noreply@github.com"
] | jabhinav.noreply@github.com |
43aba86defd8b4fc8685a46d9e5ee312c9c10898 | 7e0b93b996c7eb89c450a65ea7c69b48780cbbc3 | /dingomata/cogs/bedtime/commands.py | d993e424754d7d0bc39e3c75a91253a3d41bce45 | [
"MIT"
] | permissive | KaiSkiFox/discord-dingomata | fcff446d26052abd0d21e8f69d0773f6e15f6357 | 79ffba2eff8a711c7bb6cf417d0ef7848d230738 | refs/heads/main | 2023-08-23T19:38:33.011227 | 2021-10-07T15:33:59 | 2021-10-07T15:33:59 | 410,990,784 | 0 | 0 | MIT | 2021-09-27T18:01:59 | 2021-09-27T18:01:58 | null | UTF-8 | Python | false | false | 8,882 | py | import logging
from datetime import datetime, timedelta
from random import choice
from typing import Optional, Dict
import pytz
import parsedatetime
from discord import Message, Forbidden
from discord.ext.commands import Bot, Cog
from discord_slash import SlashContext
from discord_slash.utils.manage_commands import cr... | [
"12706268+snazzyfox@users.noreply.github.com"
] | 12706268+snazzyfox@users.noreply.github.com |
577b3103f6d545706880b49e0ca68d04a83bb05f | 25764226e0dcad2e4f8fccf712a01a29c64eba23 | /api_save_csv.py | 0b9fa15149a00e2bfbb58313504c07d538bbe126 | [] | no_license | 19-2-oss/19-2-oss-project | 24d9b1680c72aff9432fe8a85465bb7e0e5ead68 | a47330cc7a9493a0f615c9d61572d5ea0f2d4a8d | refs/heads/master | 2023-01-12T12:55:23.388124 | 2019-12-19T11:33:08 | 2019-12-19T11:33:08 | 226,592,289 | 0 | 4 | null | 2022-12-11T16:30:03 | 2019-12-08T00:06:47 | CSS | UTF-8 | Python | false | false | 980 | py | import urllib.request
import json
import pandas
name = urllib.parse.quote(input("경기도 시/군 명을 입력해주세요 : "))
url = 'https://openapi.gg.go.kr/PlaceThatDoATasteyFoodSt?KEY=30c8bab88c6249babce184a75ce9be0f&Type=json&SIGUN_NM='+name
request = urllib.request.Request(url)
response = urllib.request.urlopen(request)
rescode = res... | [
"wogus2838@naver.com"
] | wogus2838@naver.com |
6f845db5411f67f682b1111722d978af04ad23c4 | 8d9d88743c9fdbc1115e652b114de3038ed5f5cc | /keyboards.py | b785a3bd64e1a0dc67b6b869650a06e70dea1dc8 | [] | no_license | yarosha/meeting_in_restaurant_project | c2d182b776146087fe6c1b9d371ed70109add2ec | 670a3a6f1394894780aa99569f55a24c59928840 | refs/heads/master | 2020-09-21T01:44:56.670731 | 2019-12-22T08:03:26 | 2019-12-22T08:03:26 | 224,643,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | from vk_api.keyboard import VkKeyboard, VkKeyboardColor
import vk_api
vk = vk_api.VkApi(token='cb6145a957442835528d14699d5601685ccd389d585ab3f55786b6ec56d0600436670449ef71f0fc70f59')
vk._auth_token()
def main_keyboard():
keyboard = VkKeyboard(one_time=True)
keyboard.add_button('Хочу выпить кофе', color=VkKe... | [
"yarosha_ponomar@mail.ru"
] | yarosha_ponomar@mail.ru |
43987897857cb1721c0c822bde781613f26eea07 | 6bada87a5c36d1c711bf10d6a74fbb009aa6258c | /dumbpm/shared/shared.py | 7aed571d98d2badc46a66d2231dbab8ad3e75c48 | [
"Apache-2.0"
] | permissive | poros/dumbpm | 763e6d32645fe95af846ea4d3dc38a8714c8867f | 648d73caf4e8246fe2981907959fe8cae15bc98c | refs/heads/master | 2023-02-24T18:26:47.709512 | 2022-01-24T11:23:11 | 2022-01-24T11:23:11 | 162,490,710 | 7 | 0 | Apache-2.0 | 2023-02-11T00:31:53 | 2018-12-19T21:05:38 | Python | UTF-8 | Python | false | false | 275 | py | from pandas import DataFrame
def compute_stats(duration: list[int]) -> DataFrame:
"""Statistics to visualize for the result of a Monte Carlo simulation."""
return DataFrame(duration, columns=["Duration"]).describe(
percentiles=[0.5, 0.75, 0.90, 0.99]
)
| [
"noreply@github.com"
] | poros.noreply@github.com |
4b2e7d44c346f2d96b0a0cf42b48cfe1bbadc0ee | 6d6f28080019e400ea0fd8c87ec2761ea79ccd1a | /users/migrations/0001_initial.py | d59fbc7bbcc741c412ebdc0edfb73b0a06b23fc4 | [] | no_license | N01329655/Python_Django_FV_NewsP_APP | ce219f89fe50079ac714960a75296c26393b5f9e | d961bf509d08a1524d1d015551dce635e72c76bb | refs/heads/master | 2023-06-10T23:30:39.174180 | 2021-07-07T22:57:17 | 2021-07-07T22:57:17 | 380,044,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | # Generated by Django 3.2.4 on 2021-06-05 00:23
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"georgenechyporenko@gmail.com"
] | georgenechyporenko@gmail.com |
94edc96b3d3caf3e7a2601956b85dd4d973dd127 | acdc1c11bb2b05e5a7ea0f28a071c0799cbe408e | /atuv/urls.py | 209066227336bd293e86e624f3484edfa459b759 | [] | no_license | adrianojalves/atuv2 | a8ec068c1920ae1c4fef2cdf4fdb2445e2f6777d | bf073022f02e15b438611c74476933f7d007fb4d | refs/heads/master | 2020-11-24T02:42:05.868296 | 2019-12-13T17:39:36 | 2019-12-13T17:39:36 | 227,931,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """atuv 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-based vi... | [
"adriano@prodados.inf.br"
] | adriano@prodados.inf.br |
7635383670a6850622d4fbe7ae512186c811aa78 | b2e5313f271d6e01c41081c03d86c7e54cb81766 | /users/views.py | 00ce66cb3b93464dd9b5fcddf570a001d2765928 | [] | no_license | iambajie/movie-recommend | c39e2e83996bee3245a80b4f1c4fbc6c180e38ed | e47b124116ecaa655b74b23622c331cbc04d41b6 | refs/heads/main | 2023-01-19T03:49:40.771894 | 2020-11-26T08:45:37 | 2020-11-26T08:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,776 | py | from django.shortcuts import render, redirect
from .forms import RegisterForm
from users.models import Resulttable,Insertposter
from users.recommend.myRecommend import *
from users.evaluate import *
from users.testRS2.experiment import *
from users.testRS2.experiment2 import *
from users.testRS3.experiment3 import *
fr... | [
"1079248835@qq.com"
] | 1079248835@qq.com |
c837a74da3788a0da98913e94694bbd9595db67c | f1d3274a55b8a2f059b47ab7ed812338d47617a5 | /untitled/SSW540_ASSIGNMENT/ASSIGNMENT06_AKSHAYSUNDERWANI_SSW540/Project07_AkshaySunderwani_SSW540.py | 10fd1bf2328a52ca94a670ef5f7f080135084877 | [] | no_license | akshya672222/PycharmProjects | aa04b495514c48401b75cb4c92f0bdecfb143398 | 20bddc14e164e9785ab831f06a0ada618bc627f9 | refs/heads/master | 2020-09-25T06:24:53.974135 | 2016-12-17T19:52:30 | 2016-12-17T19:52:30 | 67,933,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | # SSW 540 - Assignment 07 - P7: Finding unique strings
# Akshay Sunderwani
import re
def parsefileforpath(filepath):
try:
# opening the file
with open ( filepath ) as filetoread:
senderlist = [ ]
for lines in filetoread:
linelist = lines.split ( )
... | [
"akshya672222@gmail.com"
] | akshya672222@gmail.com |
e258038aad904c2a62e39e78d3c0d2cf97592f7e | 7714d7fe86c99c059e339e895e265658fa3ce36e | /backend/home/migrations/0005_auto_20200807_0839.py | aa38d5dae63fac410eabc371a886dabc919134b3 | [] | no_license | crowdbotics-apps/mobile-7-aug-dev-8582 | f9454c8a9b3ca34e0b7dce328554658fd3fe02e9 | f569d0a9ae3effb99d6ee00127f87015296a4993 | refs/heads/master | 2023-07-11T13:56:39.164407 | 2020-08-07T09:01:31 | 2020-08-07T09:01:31 | 285,739,310 | 0 | 0 | null | 2021-08-03T20:03:29 | 2020-08-07T04:46:04 | JavaScript | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.2.15 on 2020-08-07 08:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0004_hjkhgkjhkjhkj'),
]
operations = [
migrations.RemoveField(
model_name='customtext',
name='hgfhgfhgf',
)... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1b84850c1175fdf546f45c022e88d96e61c7b279 | 647ecca1802d5802325c9025c0dce2cbcaea2a9d | /homepage/models.py | 85961a3eabd6a08180624f31e7052c07a984f411 | [] | no_license | dukelester/flight-hotel-booking | 33cc4db535da19a5f4d4e64f98cf9f4eeb23ba0b | c8835a8ed49e4f4ee48a2acd60ad9a8c2e3fe7bc | refs/heads/master | 2023-06-23T11:23:44.489440 | 2021-07-15T11:14:46 | 2021-07-15T11:14:46 | 386,043,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from cloudinary.models import CloudinaryField
from ckeditor.fields import RichTextField
from django.utils import timezone
class EmailSubscribers(models.Model):
email=models.EmailField(max_length=54)
... | [
"dukelester4@gmail.com"
] | dukelester4@gmail.com |
588ac1a11719ecbd1b0003a30f176d8313194e4d | c98f0fa3ee2ac6c062ce349f885d5111ad4a7e58 | /practice/test.py | e972eabf27c2c2e61940bb7f3832982fbcc645fd | [] | no_license | PDeck101/NJIT_REU_Eye_Blinks | c9e5fee7fd719dd2d8fbc6a3597cad6f2ba5bedc | 65abfa6b1476fa2eba8363c30c7b82515292b35d | refs/heads/master | 2022-01-17T13:28:58.874327 | 2019-06-18T22:41:33 | 2019-06-18T22:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | #import kivy # importing main package
#from kivy.app import App # required base class for your app.
#from kivy.uix.videoplayer import VideoPlayer
#from kivy.uix.gridlayout import GridLayout
#from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg
#import numpy as np
#import matplotlib.pyplot as... | [
"noreply@github.com"
] | PDeck101.noreply@github.com |
b9b123916eba2a46e552b8cb0e286f5b55b8e3e2 | e6f2d7e407d2b516152094d0834e78603c9eb60b | /wen_python_16/pic_1.py | 6be48cde753d4cc2948ea9632e02d8c0580a5dbd | [] | no_license | pylinx64/wen_python_16 | 5d63a44d2cbc8380e57b9f3c6887ab91578ec6cb | c9e2f9083f848d502bce2e0cf049ccba2677e981 | refs/heads/main | 2023-04-18T04:43:32.601474 | 2021-05-05T10:07:30 | 2021-05-05T10:07:30 | 336,603,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | import turtle
import time
t = turtle.Pen()
colors = ['lime', '#C35A62', '#9CC35A', '#5AC3B7', '#C35AB8']
turtle.bgcolor('black')
t.pencolor(colors[2])
t.circle(100)
t.left(320)
t.forward(200)
t.circle(100)
time.sleep(50)
| [
"noreply@github.com"
] | pylinx64.noreply@github.com |
91b70b9e7f99fd5ea8db13db13c522fb98d55d9a | ce1ccae95278fcb7ccd0a187f36074bebe1aa3c3 | /fc_community/board/models.py | a12553c9ab8a6d644f5b0a5e1b0c98b05c360098 | [] | no_license | GeonWooPaeng/Django_basic | 32369de0c4a561cf4aa2552afb1b40fa4527996d | 77708b90f5d8060bf51e344ed858b24d422f92a8 | refs/heads/master | 2022-12-23T13:30:27.769818 | 2020-09-27T07:40:31 | 2020-09-27T07:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from django.db import models
# Create your models here.
class Board(models.Model):
title = models.CharField(max_length=128,
verbose_name='제목')
contents = models.TextField(verbose_name='내용') #길이 제한 없다
writer = models.ForeignKey('fcuser.Fcuser', on_delete=models.CASCADE,
... | [
"gwpaeng@naver.com"
] | gwpaeng@naver.com |
1104320467509e437b8b361c7d15ee66fe93879c | 9491ec2a6ee861b4fb68065ec14c81c10806d746 | /src/pykeen/datasets/dbpedia.py | f5633c757e0cfe55836e5113f8b1e2c5d968c15a | [
"MIT"
] | permissive | Moon-xm/pykeen | 53f9693a432ad51b525c4309a1b638aca0d05c72 | eeaf1d623aa881c0c897772372988390e1d8302d | refs/heads/master | 2023-08-09T12:28:55.943173 | 2021-03-22T21:43:27 | 2021-03-22T21:43:27 | 351,089,062 | 1 | 0 | MIT | 2021-09-17T06:20:18 | 2021-03-24T13:25:50 | null | UTF-8 | Python | false | false | 1,966 | py | # -*- coding: utf-8 -*-
"""The DBpedia datasets from [shi2017b]_.
- GitHub Repository: https://github.com/bxshi/ConMask
- Paper: https://arxiv.org/abs/1711.03438
"""
from docdata import parse_docdata
from .base import UnpackedRemoteDataset
__all__ = [
'DBpedia50',
]
BASE = 'https://raw.githubusercontent.com/Z... | [
"noreply@github.com"
] | Moon-xm.noreply@github.com |
c6b1d2325848e61f3d8eca55c4365fd3c3ab4671 | f5ee654bdc121f435514149c71a2e16703d95883 | /image_manager/abstract_image_manager.py | a408c84c9cb890f54f6ee83241c200db4b28a5f5 | [] | no_license | Alexundar/ObjectDetector | d4211c29c0af108e112fa3f1629ff9ffa8ac4f2a | 1afb97d9effe18cfffe1af0f19b55281c3647d70 | refs/heads/master | 2022-11-21T07:41:05.693205 | 2020-06-30T14:13:51 | 2020-06-30T14:13:51 | 272,921,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import pickle
from abc import ABC, abstractmethod
class AbstractImageManager(ABC):
def __init__(self):
super().__init__()
self.colors = pickle.load(open("../pallete", "rb"))
@abstractmethod
def read_images(self, images):
pass
@abstractmethod
def draw_bounding_boxes(self, ... | [
"a.lushnevsky@yandex.by"
] | a.lushnevsky@yandex.by |
bf883990f5d5a2a677f673e28b5c4877284c147d | fde186bd141ed055ba8ab915b2ad25355f8f3fb6 | /ABC/070/py/A.py | 66689bce17b2f299f4639476d5684fcfd9e35d34 | [] | no_license | Tsukumo3/Atcoder | 259ea6487ad25ba2d4bf96d3e1cf9be4a427d24e | 5f8d5cf4c0edee5f54b8e78bc14a62e23cab69cb | refs/heads/master | 2020-12-20T05:04:39.222657 | 2020-10-17T01:39:04 | 2020-10-17T01:39:04 | 235,969,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | '''
ABC070 A - Palindromic Number
https://atcoder.jp/contests/abc070/tasks/abc070_a
'''
n = input()
if n[0] == n[2]:
ans = 'Yes'
else:
ans = 'No'
print(ans)
| [
"53821328+Tsukumo3@users.noreply.github.com"
] | 53821328+Tsukumo3@users.noreply.github.com |
a2c75d7e2b2e0d54e1631a4ce6785d7266097d6e | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20170901/zone.py | 11bfa1976eb4864afd69e9171e7f0790cc681bd9 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,856 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
1677423680a3a2b5ea98689051194bfd8bc53b7b | eed071aa6ff3387cb2eafe94e3f90fe2a2c992d5 | /Task4.py | cdd3581aabd7d0e22cd52e782af594b235c0701a | [] | no_license | sanxiux/Task | 0a73429d75b6b038a6830311a2797618a4af4e33 | d9d6f92e1a81d358c7f61e4c86e6d15eae490cfc | refs/heads/master | 2020-03-07T08:50:45.572504 | 2018-04-02T02:18:52 | 2018-04-02T02:18:52 | 127,390,397 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | """
下面的文件将会从csv文件中读取读取短信与电话记录,
你将在以后的课程中了解更多有关读取文件的知识。
"""
import csv
#这是所有的播出电话号码
zidian_first =[]
#这是接听电话的
zidian_second = []
#这个是发短信的
zidian_third = []
#这个是接收短信的
zidian_forth = []
filename2 = 'calls.csv'
with open(filename2, 'r') as f:
reader = csv.reader(f)
calls = list(reader)
for i in range(len(cal... | [
"91934382@qq.com"
] | 91934382@qq.com |
74fd6216df35173d3380117185232b4dbee41beb | ff65468b40a4879a6bb5389bb3ec4a7d29f6b4ed | /madcore/localtemplate.py | e6b743b22a7c32b9a1a9fd10f60efa54f4af0ea4 | [
"MIT"
] | permissive | Worldie-com/cli | 178dee726ff182f7efc81afac26dabaaab3b4627 | cfa530b001014f31058d1310eab14939a3086c67 | refs/heads/master | 2023-03-25T05:29:44.280753 | 2018-08-26T17:49:08 | 2018-08-26T17:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | """
MIT License
Copyright (c) 2016-2018 Madcore Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | [
"peter@styk.tv"
] | peter@styk.tv |
a85a4f29cf11b7633524ee4c215038de0901fa93 | 5041bdc8ce649616b6dcf32aeade9ae27075ae2b | /ppapi/native_client/src/shared/ppapi_proxy/DEPS | 1b9100dcede2c314940575b5beae13e3bddb5539 | [
"BSD-3-Clause",
"LicenseRef-scancode-khronos"
] | permissive | aSeijiNagai/Readium-Chromium | a15a1ea421c797fab6e0876785f9ce4afb784e60 | 404328b0541dd3da835b288785aed080f73d85dd | refs/heads/master | 2021-01-16T22:00:32.748245 | 2012-09-24T07:57:13 | 2012-09-24T07:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | include_rules = [
# TODO(bradnelson): eliminate this as its actually an incorrectly rooted
# internal reference.
"+native_client/src/trusted/plugin",
"+gpu",
"+native_client/src/shared/imc",
"+native_client/src/shared/srpc",
"+native_client/src/trusted/desc",
"+native_client/src/trusted/service_runtime... | [
"kerz@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c"
] | kerz@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c | |
1f6cdf7fa7dc542487efb3af6de7c40aed5fc954 | 9b944c37d52912f1fc24c7209f1688b6382c6f83 | /RapMatcher.py | a292c89afc826e3deba0485bc8214781ad7110c0 | [
"Apache-2.0"
] | permissive | Rapleaf/RapMatcher | 328ddbf239ac83072414edb993a4321806768e09 | 3ec99f664cc8cd2656a2f681389fbd0244fd39f4 | refs/heads/master | 2021-01-01T06:50:28.111048 | 2011-01-06T20:16:56 | 2011-01-06T20:16:56 | 1,207,880 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | import Levenshtein
from nltk.corpus import wordnet
import RapleafInterest
import string
class RapMatcher:
"""
This class' constructor takes a list of interests and is called via
the match function. The match function is passed a tag and returns a dictionary
which maps a subset of the interests onto scores which in... | [
"gareth.aye@gmail.com"
] | gareth.aye@gmail.com |
d5f2b424d4ed273d886ee3533b078836331a62e5 | 97eac4a05c77e1b6898b84c9606afa13428e45df | /Important_Functions/fib.py | 84c34f782b19848ecb61c528a94af491a974b47a | [] | no_license | ryanmcg86/Euler_Answers | 8f71b93ea15fceeeeb6b661d7401e40b760a38e6 | 28374025448b16aab9ed1dd801aafc3d602f7da8 | refs/heads/master | 2022-08-11T13:31:11.038918 | 2022-07-28T00:35:11 | 2022-07-28T00:35:11 | 190,278,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | '''This is a O(log n) implementation of a function that retreives the nth number in Fibonacci's sequence.'''
fibs = {0: 0, 1: 1}
def fib(n):
if n in fibs: return fibs[n]
if n % 2 == 0:
fibs[n] = ((2 * fib((n / 2) - 1)) + fib(n / 2)) * fib(n / 2)
else:
fibs[n] = fib((n - 1) / 2)**2 + fib((n... | [
"noreply@github.com"
] | ryanmcg86.noreply@github.com |
4a7f5f2357fa7d77b29d6bf6ba5e13354365e83f | db9d8309266fd230b58b255201efa9e85f6a1909 | /Lesson9/list_proba.py | 9a9d791e54b3427358aaf4c5339a72c777a1ca73 | [] | no_license | vskolan/smartninja | 3470d80ac7aca41759d4bb9a36f16fd4b4027b9d | c8119be7ad0b4d2514cc7483cf834b1b37d62cf6 | refs/heads/master | 2020-12-30T13:20:52.835687 | 2017-11-15T21:25:19 | 2017-11-15T21:25:19 | 91,204,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | prazna_lista = []
print prazna_lista
lista_s_podacima = [1, 3, 3.4, "Text", True ]
print lista_s_podacima
var1 = "neki tekst"
var2 = 3.4
neka_lista=[var1,var2]
print neka_lista | [
"skolan.viktor@gmail.com"
] | skolan.viktor@gmail.com |
7d515ced4047eea5e9670410e3ea380ecc89b463 | 0f5a1b4c8abeab2c745c74f5a25e41a76b7502b0 | /playerset3.py | 13af6550fa71e6e8c91da1b447ea8c202c847309 | [] | no_license | sujatha-2/test | d0c7af8a11061ce45acd19e86c3e7cfc50f43179 | 9a6338fabd4168ae327cdc61e790dddfda8bba9d | refs/heads/master | 2021-07-19T13:28:46.356761 | 2019-01-09T09:19:10 | 2019-01-09T09:19:10 | 148,427,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | def extractMaximum(ss):
num, res = 0, 0
for i in range(len(ss)):
if ss[i] >= "0" and ss[i] <= "9":
num = num * 10 + int(int(ss[i]) - 0)
else:
res = max(res, num)
num = 0
return max(res, num)
ss = "100klh564abc365bg"
print(ex... | [
"noreply@github.com"
] | sujatha-2.noreply@github.com |
6a87a8e5d278ede9d444df333d662804bf68b370 | fbd347498b4ec04440dd91da0f62d3bc8aa85bff | /ex.031.precoPassagemOnibus.py | a323c227e902c1c41edaa64acec1370c78d468cd | [
"MIT"
] | permissive | romulorm/cev-python | 254ae208b468aa4e23bf59838de389d045f7d8ef | b5c6844956c131a9e4e02355459c218739ebf8c5 | refs/heads/master | 2021-05-18T22:27:31.179430 | 2020-04-17T01:39:04 | 2020-04-17T01:39:04 | 251,455,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Exercício Python 031: Desenvolva um programa que pergunte a distância de uma viagem em Km. Calcule o preço da passagem,
# cobrando R$0,50 por Km para viagens de até 200Km e R$0,45 parta viagens mais longas.
distancia = float(input("Qual a distância da viagem, em quilômetros? "))
preco = distancia * 0.45 if distancia... | [
"62728349+romulorm@users.noreply.github.com"
] | 62728349+romulorm@users.noreply.github.com |
5cb4b3265a4257fb238248d7885ca2ac89655b57 | a479a5773fd5607f96c3b84fed57733fe39c3dbb | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/undefined_subtlvs/undefined_subtlv/__init__.py | a8bd8939dcba1b7eac4ab69d320c8aff3409529a | [
"Apache-2.0"
] | permissive | napalm-automation/napalm-yang | 839c711e9294745534f5fbbe115e0100b645dbca | 9148e015b086ebe311c07deb92e168ea36fd7771 | refs/heads/develop | 2021-01-11T07:17:20.226734 | 2019-05-15T08:43:03 | 2019-05-15T08:43:03 | 69,226,025 | 65 | 64 | Apache-2.0 | 2019-05-15T08:43:24 | 2016-09-26T07:48:42 | Python | UTF-8 | Python | false | false | 19,744 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
b2ccb7f564008491a78614bd236d79beac6db0d3 | ce57fdf78884d99aacb3936f59146af81a56ccea | /scripts/global_distribution.py | 65dce48ed6346348dffcdd22d5a627db2a34c94c | [] | no_license | MenggeZhao/LinkedSV | 8f9c38cccfd5e8fa6575e755da2fa59c7dbd72dd | cb09730f55266931308c770c9e2d0056050fd5a6 | refs/heads/master | 2020-04-29T04:29:21.923274 | 2019-03-07T21:17:19 | 2019-03-07T21:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,093 | py | #!/usr/bin/env python
import os
import sys
from bed import *
from my_utils import *
import numpy as np
from fragment import *
import math
import subprocess
from sys import getrefcount
import cluster_reads
tab = '\t'
endl = '\n'
arg = sys.argv[1:]
def main():
args, dbo_args, endpoint_args = parse_user_argument... | [
"fangli0813@gmail.com"
] | fangli0813@gmail.com |
a1067b028137e10af4a91f55ec8afdd3016ea6ce | f3c6b2f8e8612f1df71b87a7602245e9b94aa5f1 | /echelon/schema2asp.py | 2377ab74fb0641b606897691aee1282ab684e797 | [
"MIT"
] | permissive | Tubbz-alt/echelon-vis | a9a8911e5a45a938a3426831f536a5b06494b213 | 21be9ba13e622369abcdd9d7abd7c165937bff69 | refs/heads/master | 2022-11-25T01:06:11.009627 | 2020-03-29T10:46:02 | 2020-03-29T10:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | #!/usr/bin/env python3
# Todo: consider using model transformation language (e.g. JSON equivalent of XSLT) to
# covert schema to ASP.
import json
import sys
def getClassNameIts(ctx, prop):
return "{}".format(prop)
def getClassNameObj(ctx, prop):
return "{}".format(prop)
def deref(schema, jsonobj):
if "$... | [
"a.simmons@deakin.edu.au"
] | a.simmons@deakin.edu.au |
6168609a1bad6daf128ab051fb5b472ecef76552 | 1c2f2db1268667c253e3d6ee013a6c5b8ace76c4 | /calculator/.~c9_invoke_PvUwro.py | 849cd6c2b20646753076ed095d690aae9f856eef | [
"MIT"
] | permissive | rosiecakes/pyp-w1-gw-extensible-calculator | 69052e164230703109cf24da5f54f09fc669e3f5 | aa103a89d38d04a069f2fa62ed3ec8fda2ab7195 | refs/heads/master | 2021-01-21T04:13:25.142484 | 2016-05-25T02:37:30 | 2016-05-25T02:37:30 | 59,613,174 | 0 | 0 | null | 2016-05-24T22:34:04 | 2016-05-24T22:34:04 | null | UTF-8 | Python | false | false | 2,817 | py | from datetime import datetime
from calculator.operations import *
from calculator.exceptions import *
def create_new_calculator(operations=None):
"""
Creates a configuration dict for a new calculator. Optionally pre loads an
initial set of operations. By default a calculator with no operations
is cr... | [
"naha.hana@gmail.com"
] | naha.hana@gmail.com |
74dfd93a93cab894593cc99b17f0005ace2dc769 | 3e71f4d64b63e74a61447994a68f497f66c5e905 | /nnutil/model/adversarial_transformer.py | b216c878941bcd5cfa1c15722b704591dca182ec | [
"BSD-3-Clause"
] | permissive | aroig/nnutil | 40a648ec56214dbad8610ec8d9c1bdc642f136e9 | 88df41ee89f592a28c1661ee8837dd8e8ca42cf3 | refs/heads/master | 2020-03-25T18:58:01.708160 | 2019-06-18T22:00:54 | 2019-06-18T22:00:54 | 144,058,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,274 | py | import os
import numpy as np
import tensorflow as tf
import nnutil as nn
from .base_model import BaseModel
class AdversarialTransformer(BaseModel):
def __init__(self, name, shape):
super(AdversarialTransformer, self).__init__(name)
self._shape = shape
self._transformer = None
s... | [
"abdo.roig@gmail.com"
] | abdo.roig@gmail.com |
69cc4c7ebca922ff9a78d85842f463ce7049491b | bb1c17cdcbe941bb1d48da26e096f942b7b91d35 | /baselines/common/transformer.py | 0cb8a66b9bbe5c00d987a7dce422fcb7a5f5315f | [] | no_license | mauxam/kaithy | 3adb62824d3264327318339494197aa5bf5580ef | fbbfb76e670bdc46dd877593401e3a21ea46f488 | refs/heads/master | 2021-09-08T15:18:10.265014 | 2017-12-03T10:31:27 | 2017-12-03T10:31:27 | 124,669,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | import tensorflow as tf
from . import position as pos
from . import image
def transform_actions(actions, board_size):
batch_size = tf.shape(actions)[0]
return tf.concat((
actions[0: batch_size // 8],
pos.rot90(
board_size, actions[batch_size // 8: batch_size // 4], 1),
po... | [
"buidoigiauco@gmail.com"
] | buidoigiauco@gmail.com |
af441a31b3a3854e5673bc4608ee3552b6733d79 | 5f78a8878db55b3ab4db48c4629bf72f06f7a4de | /mainapp/forms.py | 1ed5707ee3e32912a24d6e25e596547f586c8ced | [] | no_license | pehks1980/test2 | cc8cbf8813aabd1e1001177bad7404d005329c5f | 1031cbdae895af7f164800a3a2a4a42b35c65a68 | refs/heads/main | 2023-01-21T09:55:05.042693 | 2020-11-29T23:15:06 | 2020-11-29T23:15:06 | 312,154,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from django.contrib.auth.forms import AuthenticationForm
from .models import ShopUser
class ShopUserLoginForm(AuthenticationForm):
"""
Форма захода пользователя
"""
class Meta:
model = ShopUser
fields = ('email', 'password')
def __init__(self, *args, **kwargs):
super(Shop... | [
"pehks1980@gmail.com"
] | pehks1980@gmail.com |
c2a46f1f6041e0e81f8ca3ee069efd797ef9e04c | 9301b535ce8856ec4fee3ed62169f6eae0a347a1 | /nlp_module/utils.py | 1cf3f9d13d5427ac9cca46688d182eedcf2261e6 | [
"MIT"
] | permissive | L-M-Sherlock/HITszQAbot | d7c130e1f0dd56ebb2d7f003372022f5038d86fa | 556779a1957e4d21214a3afe2c959b04d96db855 | refs/heads/master | 2023-08-07T22:57:51.382665 | 2023-07-26T01:35:18 | 2023-07-26T01:35:18 | 232,526,186 | 10 | 5 | null | 2023-07-26T01:35:19 | 2020-01-08T09:24:21 | Python | UTF-8 | Python | false | false | 3,311 | py | # coding: UTF-8
import time
from datetime import timedelta
import torch
from tqdm import tqdm
PAD, CLS = '[PAD]', '[CLS]' # padding符号, bert中综合信息符号
def build_dataset(config):
def load_dataset(path, pad_size=32):
contents = []
with open(path, 'r', encoding='UTF-8') as f:
for line in ... | [
"jarrett.ye@outlook.com"
] | jarrett.ye@outlook.com |
6f0da9774e428291d826ce32f0b2b035b3d95848 | adb6fe118613d60af9abfa73055599d205cf2108 | /视觉/XLwork/XL4/XL4_2.py | 5566d364d670d79d8f81b8ab2cda2c8a9d120eab | [] | no_license | lijianmin01/Third_college_grade | 18845f666a7fc1ece24d2ee45ee287e1efc0ca11 | 5e5b1f64375506de79ed94c8b2fc266fe1af4d6a | refs/heads/master | 2022-12-31T15:26:05.521297 | 2020-10-17T01:34:32 | 2020-10-17T01:34:32 | 295,317,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | import cv2
import numpy as np
# 全局变量
# 第几张图片 0 第一张 1 第二张
img_flag = 0
# 第一张图片
def on_EVENT_LBUTTONDOWN1(event, x, y,flags, param):
# 点击三次,获得三个位置的坐标,销毁窗口
if event == cv2.EVENT_LBUTTONDOWN:
xy = "%d,%d" % (x, y)
a.append(x)
b.append(y)
cv2.circle(img1, (x, y), 1, ( 0, 0,255)... | [
"lijianmin01@126.com"
] | lijianmin01@126.com |
883d700804d9b19145bc3f36b3590a29fd7206bc | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptdiagp/rsfcoddiag.py | e9fdbd6d639608f643b2b2e047fbb1d9ba7e0857 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,484 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
e1dcaaad2a4fe69510a3a88e69f5edbf668180d9 | 9e5f891b51f3b5f0c78b0fbf97316df21ba929bb | /ArrayPartition1.py | d0ced6134c427b587150b5ddb48aa17e4a95a74a | [] | no_license | TanvirKaur17/Array-4 | cd80253b3c3970c7369b036417d9ca143e7ecbbc | f81d1520bd407c424e4234ac92f50ddd3c915df8 | refs/heads/master | 2020-08-04T13:31:04.851773 | 2019-10-01T17:04:33 | 2019-10-01T17:04:33 | 212,152,462 | 0 | 0 | null | 2019-10-01T17:03:45 | 2019-10-01T17:03:45 | null | UTF-8 | Python | false | false | 422 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 1 10:01:57 2019
@author: tanvirkaur
"""
class Solution(object):
def arrayPairSum(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums = sorted(nums)
summ =0
if not nums:
... | [
"noreply@github.com"
] | TanvirKaur17.noreply@github.com |
df4962c536735e4684bc988e1e756f437ffe86f5 | 0aa870d4a1605dbdd3bcd1d9c0470634dba6c16b | /DD2419-PRAS/localization/scripts/scrap3.py | 029491bed25e7ab46fe3e8f0f4ab9d16d5be5531 | [] | no_license | sumodnandanwar/Crazyflie-project | ace2c6e0ff244be1933036eb23babd84f1553024 | d87e338fa4ae97fe3e97d6bcd9a6100f9c816070 | refs/heads/master | 2022-11-15T13:45:06.168175 | 2020-07-15T15:14:33 | 2020-07-15T15:14:33 | 276,144,552 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | #!/usr/bin/env python
from os.path import expanduser
import csv
def Dict_goal():
global dictgoal
dictgoal = []
pathcsv = expanduser('~')
pathcsv += '/dd2419_ws/src/DD2419-PRAS/localization/scripts/Pathcsv'
with open(pathcsv, 'rb') as csv_file:
csv_reader = csv.reader(csv_file)
next(... | [
"sumodnandanwar@gmail.com"
] | sumodnandanwar@gmail.com |
c7235d22a3086e2c781cd82e0f5e3d942d6c6445 | b2ffd58cb7af71b5909b516e0a4677d097db94d5 | /project01/record.py | bca9587895ff03cab4fee225492c038f3959fefe | [] | no_license | VietAnhLe2399/SpeechProcessing | 547641118eeaa4098e4822f07ce513d7a6987323 | b2be9eaf71482cd6e9dbda14c8a82699bf2db4d5 | refs/heads/master | 2022-12-25T21:05:40.590139 | 2020-10-05T09:42:46 | 2020-10-05T09:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | import re
import numpy as np
import sounddevice as sd
import soundfile as sf
import time
import queue
import os, shutil
from underthesea import sent_tokenize
q = queue.Queue()
category = ['thoi_su', 'goc_nhin', 'the_gioi', 'kinh_doanh', 'giai_tri', 'the_thao', 'phap_luat', 'giao_duc', 'suc_khoe', 'doi_song',
... | [
"vietanhle2399@gmail.com"
] | vietanhle2399@gmail.com |
371c65ef7e4cb56d160d1f0b7acfc34e96f128e2 | 549b7ecf880757483f6789e0532a65d497569626 | /exno66pro.py | e0ee4b9238972f049d3fe124f64ecc2fff863568 | [] | no_license | rahul120799/rahul | c093114c3598bab1421f161e7205da977b80039d | 5385bafca898822d25ff1aa3844a96e5b6a9a2cf | refs/heads/master | 2020-04-15T12:55:27.885699 | 2019-09-14T14:19:04 | 2019-09-14T14:19:04 | 164,692,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | o, a, f, k = map(int, input().split())
count = 0
a2 = a-f
if (a2 >= 0):
di = (o-f)*2
for i in range (k):
if (i == k-1):
di =di/ 2
if (a2 < di):
a2 = a
count += 1
a2 = a2 - di
if (a2 < 0):
count = -1
break
di = 2... | [
"noreply@github.com"
] | rahul120799.noreply@github.com |
0d0379c91606561fd1684c3b56b5a59c7ac79ac6 | 2147b03faa984c3f82b452bfa2e44738762c0620 | /users/models.py | 0e5dba17c8ef60df08f56723c7b7cee4655f5822 | [] | no_license | crowdbotics-apps/pawn-shop-30678 | 44d485d1e4bf5540320518921750293c8649ea53 | 844572b9e385948fdfbe1c3113481bf0961e810e | refs/heads/master | 2023-07-30T16:02:19.844017 | 2021-09-19T11:07:57 | 2021-09-19T11:07:57 | 408,103,844 | 2 | 0 | null | 2021-10-06T00:15:01 | 2021-09-19T11:05:16 | Python | UTF-8 | Python | false | false | 890 | py | from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
class User(AbstractUser):
# WARNING!
"""
Some officially supported features of Crowdbotics Dashboard dep... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
04da6b3662e7776928386b7dc8e0924cec0cc143 | 5b2f3fc7461aae47192c2e7554c68dbe2e0f7142 | /apps/pet_app/urls.py | 7a2f70899e64658ccba7590ec2e5985cb6be7dd7 | [] | no_license | Chareesa/pet_project | 878b3efba26d3f785820fee036e758e894bd8ea1 | f5b062ab0c9fa23bdacfb1cc62d75507661f4493 | refs/heads/master | 2021-07-17T20:18:21.930155 | 2017-10-25T04:28:34 | 2017-10-25T04:28:34 | 108,219,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py |
from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^dashboard$', views.dashboard),
#routes to user dashboard after logging in
url(r'^add$', views.add),
#routes to add function in pet_app views
url(r'^show/(?P<id>\d+)$', views.show),
#rou... | [
"chareesagraham@gmail.com"
] | chareesagraham@gmail.com |
cc3d5864edd06fb58730325f6c22ab03bf004256 | 6f30b6fb0d096e7190904715c68ef3cfec5b721e | /example_python/6-the_wisdom_class/test_erase_exported.py | 9233a843e93109163a6841de4b95098374f27a63 | [
"BSD-3-Clause"
] | permissive | jbone/examples | bf4b8bbb4efd1a9c07196701a740fb58e8f36b50 | cdd34819770fbe04f6623006147a1e9d1f52b379 | refs/heads/master | 2021-01-15T10:53:38.253162 | 2014-11-25T12:47:23 | 2014-11-25T12:47:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/env python
"""
NLUlite is a high-level Natural Language Understanding
framework.
This file is an example of the framework. This file is released with
BSD license.
"""
__author__ = 'NLUlite'
__version__ = '0.1.4'
__license__ = 'BSD'
from NLUlite import ServerProxy, Wisdom
server = ServerProxy('loca... | [
"contact@nlulite.com"
] | contact@nlulite.com |
9327c7c353f57edc531a78952f182e4b45b0c405 | a46e3ab5260c819e2b1a20343205b248a76314f3 | /pycharm_dict_str_split_unexpected.py | 9c4c8332fb5b3185d40c302f5e19bc170359ecf9 | [] | no_license | albertz/playground | 97ea882eb077e341c69f9e593918d38f89f8bc64 | f30c6330d855056f1756eeb558aa51fe72040c4e | refs/heads/master | 2023-08-16T16:33:01.780047 | 2023-07-31T11:46:58 | 2023-07-31T11:46:58 | 3,687,829 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 139 | py |
"""
https://youtrack.jetbrains.com/issue/PY-43916
"""
s = "a=b,c=d"
opts = dict([opt.split("=", 1) for opt in s.split(",")])
print(opts)
| [
"albzey@gmail.com"
] | albzey@gmail.com |
96ffb8e963ba918d639eb80f573bf228bf4480a2 | c0eb3d8b8f7f25ba822da61db89c8b80203ff3aa | /deps/edk2/BaseTools/Source/Python/GenFds/FdfParser.py | 83d3e1935e371e179e5dc73d615f5910060b5668 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | chanuei/LiBoot | 95ace2b8b239b706f51967cd7376aa5c68246ff8 | 096e8752e0a9145e6c70fe809b51ff87d7a90383 | refs/heads/master | 2021-01-14T09:42:15.816352 | 2015-08-21T16:08:03 | 2015-08-21T16:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194,375 | py | ## @file
# parse FDF file
#
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be ... | [
"maheshkhanwalkar@gmail.com"
] | maheshkhanwalkar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.