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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b8c64d5618593aa5b5218fe5725c5169f750fcf | 93f28b71a24f1ac16a0fa2d2b0c76e60be0ada12 | /oneruns/fillTrueRateInTestSet.py | 89fd49476f9a2838d2b1c4307c9cd7ba030bd4e1 | [
"MIT"
] | permissive | CSC522-Data-mining-NCSU/jf_alg2 | 70b92591e85ee45735ca27e13ae2d2bfe77b32d2 | cfd31806325c3d19b1bdc467070e7d56e9ff52c3 | refs/heads/master | 2016-09-01T04:03:59.392525 | 2015-12-05T04:04:35 | 2015-12-05T04:04:35 | 46,680,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import csv, pdb
import mysql.connector
"""
connecting the database...
"""
cnx = mysql.connector.connect(user='root', password = '54321', host = '127.0.0.1', database = 'Netflix')
cursor = cnx.cursor()
infile = open('../testResults_to_fill.csv','r')
outfile = open('../testResultForm.csv','w')
ins = csv.reader(infile)
... | [
"ginfungchan@gmail.com"
] | ginfungchan@gmail.com |
d2f9e66be11ff3adcf9b54a2c2f8ceab36bc57d4 | 575f095dde7c9c2a02748c05117ac442fdb330e5 | /synthesis/songmaker/patterns.py | b495a10c22e87deca03887c97ec4a2e810857210 | [] | no_license | Scriptopathe/mozarella | ce9ae064b164574a876019eaf0f0a66da003bfa1 | 8f56d0d0dbb49c5b33b73ab86e23b6210e93398d | refs/heads/master | 2016-09-05T22:59:23.228481 | 2015-09-01T17:08:18 | 2015-09-01T17:08:18 | 41,750,996 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | import random
from note import Note, Chord
class MelodicPattern:
def __init__(self, categories, pattern):
self.categories = categories
self.pattern = pattern
def generate(self, startnote, scale, notes_count):
assert(isinstance(startnote, Note) or isinstance(startnote, Chord))
notes = []
note = startnote
... | [
"josue.alvarez@hotmail.fr"
] | josue.alvarez@hotmail.fr |
15211cbbc8e01aee9ef09b355a84813dcdd33247 | 95eecba29978dbace4fd027f8d6f814f30bff09f | /highscore.py | 9129d8ac56bc2007c1e76e1389c5cc9e96e395f5 | [] | no_license | brandi1986/lession_11_python_datenstrukturen | a1729facf8c68b02d9884fcee1f64c58aeda5143 | 875073b9d5b7084c93dc8964983f90c1488a781e | refs/heads/master | 2023-04-09T23:02:55.395986 | 2021-04-18T12:25:47 | 2021-04-18T12:25:47 | 359,136,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import random
import json
secret = random.randint(1, 30)
attempts = 0
with open("score.json", "r") as score_file:
score_list = json.loads(score_file.read())
score_list.sort()
out_list = ""
for x in range(len(score_list)):
out_list = out_list + str(score_list[x])
if x != len(score_list)... | [
"office@mbr-edv.at"
] | office@mbr-edv.at |
65fa3e0b78e615246b685dc2b9abe8bf7b6ff8fe | bfea5164eb7071293f4648d10b143cc91cc2d6f5 | /tests/test_login1.py | f5ac12f2cc84dc67f10353455410c8cccb39fec9 | [
"MIT"
] | permissive | SergKam/uade | 904ea951557062adcbac08ae9a195a558fb25938 | dfb87f97720c62bb9d634638f6ba9e69050e00ef | refs/heads/master | 2016-08-12T12:50:04.342259 | 2016-02-29T09:17:20 | 2016-02-29T09:17:20 | 50,687,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"sergii.kamenskyi@profitbricks.com"
] | sergii.kamenskyi@profitbricks.com |
25f85ae7323ed1c23c4dd88290c08979cfcd3d2c | b64b2efc0be78829588432c349c3842cbfcd8357 | /edxDB/migrations/0008_student_lo_points_json.py | e3ad84edee132b698b9410413d761f3605b1bb69 | [] | no_license | shingyipcheung/study-path-backend | ab016a6f3e497dcc43d81aae4f9e8f8d2251d4f0 | 384a5e95518fe95f07bf5797731deb11d0c77b52 | refs/heads/master | 2020-04-07T07:26:28.435289 | 2019-03-10T04:36:03 | 2019-03-10T04:36:03 | 158,176,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-12 08:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('edxDB', '0007_learningobject_average_points'),
]
operations = [
migrations.... | [
"georgegu1997@gmail.com"
] | georgegu1997@gmail.com |
3e5cf65403f9a925505a5cf161877e02bfbddcdd | 1fdf464b3b2df5cc7a15cfc2e2875beb0759704e | /getmodule/web_driver_facade.py | 05e8ac50c8f80ff898be80a44b975413443cee2b | [
"Apache-2.0"
] | permissive | small-java-world/growth_curve_of_horse | 2a55ae6ce982f9bab66dff1c06abb73bf91c4e13 | ea23b3ad50393a4e183fa90ca8008ac232e85f7f | refs/heads/main | 2023-06-18T01:28:38.609181 | 2021-07-18T10:47:23 | 2021-07-18T10:47:23 | 382,807,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
class WebDriverFacade:
driver: webdriver = None
@staticmethod
def init_driver() -> None:
if WebDriverFacade.driver == None:
WebDriverFacade.driver = webdriver.Chrome()
@staticmethod
def quit... | [
"kawano.fumihiko@gmail.com"
] | kawano.fumihiko@gmail.com |
cba55471d276b0f886caeb0077f204aeee456ba3 | fd7894bd503a83e30d6cced941dce862b8f807d6 | /scrape_rotogrinders_predictions.py | 4e519e60546737446c67249fad8434ad6c8f50c1 | [] | no_license | dartmouth-cs98/hack-a-thing-1-team-paolo | ef1c5fd44377af1beaedfc013603fa2c2e84739d | a11799f5200f3a12875a70fcd62d3479257003a4 | refs/heads/master | 2020-04-15T07:20:45.021119 | 2019-01-10T16:12:53 | 2019-01-10T16:12:53 | 164,492,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #Bobby Crawford, CS 98 - Hackathing 1
#import all necessary modules
import datetime
import time
import os
from urllib.request import urlretrieve
#target url for rotogrinder nba player projections
url = 'https://rotogrinders.com/projected-stats/nba-player.csv?site=draftkings'
destination = 'rotogrinders_pr... | [
"robert.c.crawford.19@dartmouth.edu"
] | robert.c.crawford.19@dartmouth.edu |
e2e154cee2318995a5007a94255cefe16858e6e2 | cfaf1e08ae2e093aede7791ca62f402521a20068 | /linkall/migrations/0003_auto_20200510_1144.py | d6fd3c90103573badee7d959afb248a401104cf4 | [] | no_license | zy2362/ars | 9f1d047e6823a58985995e7057a4010654227d33 | 4334b85992145dc96825db1ebf5f96af9ca0376d | refs/heads/master | 2022-06-30T21:25:35.695369 | 2020-05-12T18:29:03 | 2020-05-12T18:29:03 | 259,443,422 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | # Generated by Django 3.0.6 on 2020-05-10 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('linkall', '0002_thing_owned_by'),
]
operations = [
migrations.DeleteModel(
name='paymentMethod',
),
migrations.D... | [
"yang.zihan@columabi.edu"
] | yang.zihan@columabi.edu |
63320cb41eead7faf06712028cd727c58adf0117 | fbe71da1e603e9cb392eb09c93cf175fd8c79265 | /context_receptive_generative/onmt/Beam.py | 6346bc4b8a0b92ef8b3f1cc98304e0972e6a876a | [] | no_license | shrimai/Towards-Content-Transfer-through-Grounded-Text-Generation | daad10a0f3aeda55716a017fe27eab2c081f0ab6 | dd2246f557c39aee69711aabc1e3540a7c9f27a7 | refs/heads/master | 2020-05-23T17:51:24.566413 | 2019-05-15T17:43:16 | 2019-05-15T17:43:16 | 186,875,510 | 38 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | from __future__ import division
import torch
import onmt
class Beam(object):
def __init__(self, size, cuda=False):
self.size = size
self.done = False
self.tt = torch.cuda if cuda else torch
# The score for each translation on the beam.
self.scores = self.tt.FloatTensor(... | [
"sprabhum@andrew.cmu.edu"
] | sprabhum@andrew.cmu.edu |
de7863ad32a1f852c49fc1b6a5f1747a08a641d5 | f0f7982cbde008f2a320597fdc9b1cbde1cfb53f | /Overlay_Maker.py | 9c051d0e84d46fda0b4ebeaf2a2a92b9887956fe | [] | no_license | SER401-team45/Overlay-Maker | e2a33a553f375679973748c0a2abb1db48559436 | 92c767ae2af4dbd8d3ebe42d561ca81799d9a577 | refs/heads/main | 2023-03-03T10:04:04.266704 | 2021-02-16T06:07:42 | 2021-02-16T06:07:42 | 336,942,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,809 | py | """
Script for GUI tool used to generate polygon data used as overlay in videos
Script uses Tkinter fo GUI and saves and loads overlay data in JSON
"""
import tkinter as tk
from PIL import ImageTk, Image
from tkinter.filedialog import asksaveasfilename
from tkinter.filedialog import askopenfilename
from tkinter import... | [
"ejkoch1@asu.edu"
] | ejkoch1@asu.edu |
338f19efb58b55b42cd987e0e1ddec5ce0c6c3ca | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/cdn/v20200415/get_profile.py | 1eded7cd80fac2a555ea3ca6f8ca513c8be3e5e2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 4,875 | 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
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
35309b652d2fd4b9b08131447288698953f753e3 | 924c6ab699b7d4fb5f2abf15921618844e023356 | /K-means/K-meas/test.py | bed4fbb5fc05793e84bf34a4743d2f798900f4e7 | [] | no_license | Dcwjh/File | 5bf6e8871e0c8434c64561f172380f37a72a1f17 | 88a49fef224b2780f0bb1a6d4424355acff96bc4 | refs/heads/master | 2020-03-16T00:39:01.710185 | 2018-05-21T06:59:30 | 2018-05-21T06:59:30 | 76,557,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,427 | py | # -*-coding:utf-8-*-
import matplotlib.pyplot as plt
import numpy as np
"""
Pyplot tutorial by kevinelstri 2017.3.3
"""
"""
matplotlib.pyplot 是一个命令式的功能的集合使得matplotlib类似于MATLAB。
每一个pyplot函数都使函数做一些改变:创建一个图形,创建一个绘图区域,在绘图区域绘制线,使用标签装饰图像等等。
"""
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.axis([0, 4, ... | [
"503396265@qq.com"
] | 503396265@qq.com |
5fb7838c54f7d3ecb7e06b2f0a99322c786643e3 | 404de201338ad1a991a8ba51530fc676a08d16c0 | /core/admin.py | fb8e306e2bb9fd2ef663d30ae5f1a3a0f65ef8fb | [] | no_license | Geokafas/VeggiesBackend | b6d3e8ff8d39658d96b944dfb63a9765019c34fb | 0ccd36edbc6e54e12562e905bfc6009074bd20b7 | refs/heads/master | 2023-01-14T14:06:34.986746 | 2020-11-19T16:20:13 | 2020-11-19T16:20:13 | 255,129,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.contrib import admin
from .models import Item, ItemRatings, ItemReviews
from import_export.admin import ImportExportModelAdmin
from .resources import *
class ItemAdmin(ImportExportModelAdmin):
resource_class = ItemResource
admin.site.register(Item,ItemAdmin)
admin.site.register(ItemRatings)
admin.site... | [
"kafaskafaskafas@yahoo.gr"
] | kafaskafaskafas@yahoo.gr |
ac9fd5dec2de1a7f44d02db36dada9b4860436a3 | a1b924c714f1a416f3bade16c069415853ac7837 | /Main/Parse_corpus.py | c4da4bb2ad67fffcd4ea0804fbd67144ffea97a7 | [
"MIT"
] | permissive | aaaksenova/Term-paper | 4a097dc408af180eaad91bb4100f871676026017 | d330be81ae762105e1bbacc27b96b07593ca0d20 | refs/heads/master | 2020-12-20T17:43:04.139719 | 2020-10-14T10:37:32 | 2020-10-14T10:37:32 | 236,159,231 | 1 | 0 | null | 2020-05-30T14:55:46 | 2020-01-25T11:08:52 | Jupyter Notebook | UTF-8 | Python | false | false | 3,477 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re, math, codecs, os
def parse(text):
sentence = [] # Обновляемый список слов в предложении
k = -1 # Счетчик позиции. Вот если у нас "т" из т.е., мы можем не обрабатывать следующие 3 символа
for i in range(1, len(text)-2):
try:
if... | [
"noreply@github.com"
] | noreply@github.com |
8a70830e256d8eeef43740b7dfed605cc776df39 | 09c39de5aad7b283cfac2f09a2b93e43086846d2 | /Unit 04 Functions/01 Functions/Built In Functions/15-abs.py | 52e6ea899312736b86311883bd835e64c64742ab | [
"MIT"
] | permissive | lpython2006e/python-samples | b4e84080259faf75b41fb2fd4fb9d2fbc9f857aa | b94ba67ce0d7798ecf796dadae206aa75da58301 | refs/heads/master | 2023-01-21T13:16:13.295163 | 2020-11-29T11:01:50 | 2020-11-29T11:01:50 | 278,653,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py |
absolute = abs(-42)
print(absolute)
| [
"lent@hivetech.vn"
] | lent@hivetech.vn |
daeb95fb7339772b6be7ba69fad10aa21c07177f | cf7142cfea9b714a1329274fcfa4756a4a00697f | /list_tuple.py | 631626fa9fe7b51cae0b6b17297d72c0094b1944 | [] | no_license | CSToWEB/test1 | 0aa8f86a81f13fad7dae1edd3c741dfeb4963604 | 53bdae3a9c39dd29f7efb24a51348a18a0bdb23b | refs/heads/master | 2020-03-09T10:39:52.290965 | 2018-06-01T06:24:18 | 2018-06-01T06:24:18 | 128,742,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #list与tuple
# -*- coding: utf-8 -*-
#创建一个包含列表的列表(列表L的三个元素分别是三个列表)
L = [
['Apple', 'Google', 'Microsoft'],
['Java', 'Python', 'Ruby', 'PHP'],
['Adam', 'Bart', 'Lisa']
]
# 打印Apple:
print(L[0][0])
# 打印Python:
print(L[1][1])
# 打印Lisa:
print(L[2][2])
#“改变”tuple的值
#tuple的每个元素,指向永远不变,指向一个list,就不能改成指向其他对象,但指向的... | [
"2282528029@qq.com"
] | 2282528029@qq.com |
66f274faad8c751f237bb0e3b6277a96ad64e230 | 2481e6335e5b2937b1b388077055a97fc89a9da5 | /client/oldVer/uniqueID.py | 6e5b88ed95bf72f16e8454ee666bbaa85c54ea66 | [] | no_license | caleb-james-smith/old_ngccm | c94734349c145356b6cb317395d6207bae56cc59 | d638e5cd631c05db4e7313def4cf2161d9e9ee6c | refs/heads/master | 2020-12-25T14:38:52.627478 | 2016-07-05T16:37:29 | 2016-07-05T16:37:29 | 62,653,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | # Read UniqueID from QIE Card
from client import webBus
import QIELib
b = webBus("pi5")
q = QIELib
# Label RMs as 0, 1, 2, 3
# Label Slots as 0, 1, 2, 3
# Open Channel for QIE Card Given RM and Slot
def openChannel(rm,slot):
if rm in [0,1]:
# Open channel to ngCCM for RM 1,2: J1 - J10
print '####... | [
"colorado.caleb.smith@gmail.com"
] | colorado.caleb.smith@gmail.com |
d3c27c23bfc320eceb72571839e9427a8cc1be52 | 07ecbc9bd09637defb25011f16816a5f4b9b7358 | /FOLTranslation.py | 940a8d0a12e2ed0cfc38c348daac963a12642262 | [] | no_license | pritomrajkhowa/webapp_loop_bound | c55d3621644dec28ec58a2db18a28288d62dd2b0 | 2f6ca4addf806f80d18ef7fe492b31bdfbf0d9e1 | refs/heads/master | 2022-12-07T22:19:34.790707 | 2020-09-03T00:17:25 | 2020-09-03T00:17:25 | 291,570,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101,212 | py | import sys
import os
currentdirectory = os.path.dirname(os.path.realpath(__file__))
sys.path.append(currentdirectory+"/packages/ply/")
sys.path.append(currentdirectory+"/packages/plyj/")
sys.path.append(currentdirectory+"/packages/pyparsing/")
sys.path.append(currentdirectory+"/packages/pycparser1/")
sys.path.append(... | [
"pritom.rajkhowa@gmail.com"
] | pritom.rajkhowa@gmail.com |
64d2708c0db94febed6b0bed6c21691c51bc0c65 | 3d781ead45afe633ab1048eb8fe152057501a099 | /src/config.py | 006626cac488365f0bd8b8e4f779e06620813f40 | [
"MIT"
] | permissive | mncoppola/GorillaBot | 9cd296970979516f196a42a5b41872bcbdc1ab7d | 0af9a27cdd5ace5b9b3cd30d274bf5e035af5fc9 | refs/heads/master | 2021-01-24T03:12:24.287644 | 2013-10-12T06:51:42 | 2013-10-12T06:51:42 | 13,517,449 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,882 | py | # Copyright (c) 2013 Molly White
#
# 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, publish, distrib... | [
"molly.white5@gmail.com"
] | molly.white5@gmail.com |
5073de1ac10fe2b6761f9bd73aa1b3e8ec243b1a | 89b4be07e576990c8f23c17ec45999dc986893b7 | /dfvs.py | 48095a75da9c34c12d96f3d959d98a5b79225e40 | [] | no_license | VedanshM/flow-based-ibvs | 0acc3d5737f5b584a424b0631a3ae76e7251c974 | 54f2c3f06f6dc586d43e825d3b66794c31458357 | refs/heads/main | 2023-09-03T18:45:13.303969 | 2021-11-05T10:21:50 | 2021-11-05T10:21:50 | 401,806,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | from utils.flownet_utils import get_flow
import numpy as np
from PIL import Image
class Dfvs:
'''
Contains code for "DFVS: Deep Flow Guided Scene Agnostic Image Based Visual Servoing"
ICRA 2020
'''
TRUEDEPTH = 0
FLOWDEPTH = 1
def __init__(self, des_img_path:str, LM_LAMBDA=0.06, LM... | [
"56213441+VedanshM@users.noreply.github.com"
] | 56213441+VedanshM@users.noreply.github.com |
a74ff399c94d7abbb0737bb769e59ed0db02c535 | bd93fa910151c278be8249055bc084e5a5c35a6a | /Python/itcast/01-Python进阶1/4异常/4抛出自定义异常.py | 45e5cd62b39f425811af7f9113a9ac4885ab6479 | [] | no_license | ahojcn/practice-code | bd81595b80239cd2550183093566bd536a83ed3f | b65f4e76271479269463e92fd3fd41585c2ac792 | refs/heads/master | 2021-07-10T14:15:08.036592 | 2020-07-09T11:32:16 | 2020-07-09T11:32:16 | 153,059,349 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class ShortInputException(Exception):
'''自定义异常类'''
def __init__(self, length, atlieast):
self.length = length
self.atlieast = atlieast
def main():
try:
s = input("请输入 -> ")
if len(s) < 3:
# raise 引发一个自定义异常
raise ShortInputException(len(s), 3)... | [
"hanoi_ahoj@icloud.com"
] | hanoi_ahoj@icloud.com |
6698cb9625f61a12ebcd1b81b10dff98494f516a | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/linalg/linear_operator_addition.py | 209e3ef4b16d0e34459d5fb1ef484c36c7eda18c | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/linalg/linear_operator_addition.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
37a3740b18cd30744bedb0c2ea63891b1b53c47f | 32b72152fa92d3f87e233325d3050dbdb9a7fe20 | /django_Level_Four/learning_templates/learning_templates/settings.py | b65507c62ef5c9ab45842b82f8e49999f0402828 | [] | no_license | mshava/django-learning-projects | aa710243df461d84b965749dbb7c1cdc1f8e65e8 | b95a10c1cb94e64169b1a2f92434efea312fd556 | refs/heads/master | 2021-07-13T17:04:04.866801 | 2017-10-18T12:23:01 | 2017-10-18T12:23:01 | 105,898,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,213 | py | """
Django settings for learning_templates project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""... | [
"sakhile@rhinoafrica.headoffice.co.za"
] | sakhile@rhinoafrica.headoffice.co.za |
ce0c9e95fea923683045ab70e0cd201076d5ba46 | d28a65d23c204a9736b597ae510d9dd54d2ffd0f | /tests/testUtils/testSctidGenerator.py | 7f1015fad1169ccb000f226bcefdd7bb6b7e9825 | [
"BSD-3-Clause"
] | permissive | cts2/rf2db | 99ba327611e620fc5533245064afcc1daff7c164 | 985cd7ad84c8907306a0d7d309d4a1c0fb422ba4 | refs/heads/master | 2020-05-17T22:37:25.476553 | 2015-08-24T22:18:19 | 2015-08-24T22:18:19 | 15,264,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2013, Mayo Clinic
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# ... | [
"solbrig.harold@mayo.edu"
] | solbrig.harold@mayo.edu |
03427bc747dcd4f72ae0ca4206d202efd9bd40fe | f55f3cd5f44982260fd1bcf711207e3d952499a3 | /platform_crawler/spiders/pylib/login_qq_with_cli.py | b1dd5448a9cec103c4a23412ffb2782281cd30f0 | [] | no_license | prynix/save_code | c065c79d79cc6a5b9181081fa06deaea32af0d78 | 4556d1ad01ed192f91ae210983010ad45bf4635c | refs/heads/master | 2022-02-20T18:32:44.055007 | 2019-08-19T09:51:18 | 2019-08-19T09:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,661 | py | import os
import time
import win32gui
import psutil
import logging
from ctypes import windll
from platform_crawler.settings import join, IMG_PATH, GlobalVal
from platform_crawler.configs.excute_paths import ExecutePaths
ACC, u, pag, logger = None, None, None, None
TIM_IMG_PATH = join(IMG_PATH, 'tim_img')
... | [
"zwbworkmail@163.com"
] | zwbworkmail@163.com |
11a0470f2f7ea55578e0005f052bebe14c985d3a | 7c2e4b34fc0ed58719a0399dd5ab4ab95c4542e7 | /drawing/graficador_soluciones.py | 754d9287faf5bd1b2594a87ee941c0335490c2d6 | [] | no_license | DiegoAlfonso2/modelos3 | 10f1595ebcf970820fdaff0d2c07efd9313215c7 | 768de753e0ac3bcc7a8d187e4b5199816d57c1c9 | refs/heads/main | 2023-02-27T09:16:43.058715 | 2021-02-08T07:58:14 | 2021-02-08T07:58:14 | 337,001,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | from PIL import Image, ImageDraw
import model.constantes as constantes
class GraficadorSoluciones():
def __init__(self, macetas, paso=10, semanas=constantes.SEMANAS, path='tests/testout/'):
self.macetas = macetas
self.paso = paso
self.semanas = semanas
self.path = path
self.margen = 10
self.e... | [
"diego.alfonso2@gmail.com"
] | diego.alfonso2@gmail.com |
0486fbd83ea6d8e49d1a8483cd10867e4bd01827 | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/messenger/proto/bw/clanlistener.py | 39c44a4a5bbb7958948df803005d0fa3f6e79198 | [] | no_license | wotmods/WOTDecompiled | 84b8e5d32ee73e1356b4d57318eb76dfac6b5220 | 45fd599666c55cb871f6b84b0ec977b9d4baf469 | refs/heads/master | 2020-12-25T21:34:26.096544 | 2014-11-05T13:58:39 | 2014-11-05T13:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,968 | py | # 2014.10.18 14:44:16 Central European Daylight Time
#Embedded file name: scripts/client/messenger/proto/bw/ClanListener.py
import BigWorld
from PlayerEvents import g_playerEvents
from debug_utils import LOG_DEBUG, LOG_ERROR
from messenger.ext.player_helpers import getPlayerDatabaseID
from messenger.proto.bw.enti... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
770c38b60c82998e6f2291049ed663acc0f0f737 | b82664f9ada08b7063fd44362dbb6cc9fc63c643 | /modified_detector.py | 93fef95d4038cccf0d768fb9c836d908bad463db | [
"Unlicense"
] | permissive | pardeepkumar18/Text-localization-in-Images | 15969965b9864b95d02013f28e16a5d2afa683d3 | de92edd21ac0156aa5743f28780c8c8884642d45 | refs/heads/main | 2023-04-25T04:27:14.179899 | 2021-05-02T07:04:42 | 2021-05-02T07:04:42 | 362,355,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,024 | py | from imutils.object_detection import non_max_suppression
import numpy as np
import time
import cv2
import math
'''
importing NMS from utils as it is faster in processing
'''
net = cv2.dnn.readNet("frozen_east_text_detection.pb")
'''Reading the frozen graph i.e Deep Convolutional Neural Network.
... | [
"noreply@github.com"
] | noreply@github.com |
cfc28817c1bd7bf42443ebbd45c9f92eeef43006 | dc8c2320638c70cabd1dc74650379095d8bd688b | /selfdrive/navd/navd.py | 52db9b1d0842001f1da4f5615b380b223d258d53 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kennedyshead/openpilot | 6ce389914c221549244fe3d9f1ad1b8f0314f080 | 7df54792d8c04d842d44536723edb7b8370c47a1 | refs/heads/master | 2022-06-10T08:18:12.571228 | 2022-06-04T07:25:20 | 2022-06-04T07:25:20 | 241,926,218 | 0 | 0 | MIT | 2020-02-20T15:58:51 | 2020-02-20T15:58:50 | null | UTF-8 | Python | false | false | 9,438 | py | #!/usr/bin/env python3
import math
import os
import threading
import requests
import cereal.messaging as messaging
from cereal import log
from common.api import Api
from common.params import Params
from common.realtime import Ratekeeper
from selfdrive.navd.helpers import (Coordinate, coordinate_from_param,
... | [
"noreply@github.com"
] | noreply@github.com |
f786367311655515bd413905975a7193b98e5326 | 1d8624b84243107bcc82876a74917dac983ba67d | /testing/runtests.py | 2651b5b061b99b7f34e063c74255164e50b8a21d | [
"BSD-3-Clause"
] | permissive | nwp90/djorm-ext-pgarray | 14f6877f61975b4a64d3dd601dbd0101fb191918 | 1d0d3db7b3539a8840dcbdaf8322a72aef0875d2 | refs/heads/master | 2021-01-22T00:10:35.570321 | 2013-12-12T20:01:28 | 2013-12-12T20:01:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) == 0:
argv.append("pg_array_fields")
call_command("test", *args, verbosity=2)
| [
"niwi@niwi.be"
] | niwi@niwi.be |
4e3dc7b6fc8c4d3e2b598c48dbd12554f1d90207 | 47bf8aa20a5e141d9252403c60d68d6640eaf133 | /scatterPlot.py | fec0965b77993b86a2c74e3ee2cc666765f6d4fe | [] | no_license | Asaawari/C-103 | 82a21b0fd9b899ae78a42238df41ea4bcdef7f71 | 00c86a38ad056552fa5af9af4c2845b1778abfdd | refs/heads/main | 2023-01-22T12:32:52.339203 | 2020-12-01T13:09:58 | 2020-12-01T13:09:58 | 317,544,464 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import pandas as pd
import plotly.express as px
df = pd.read_csv("csv files/data.csv")
figure = px.scatter(df,x="Population",y="Per capita",size="Percentage",color="Country",size_max=60,title="Per capita income of each country")
figure.show() | [
"noreply@github.com"
] | noreply@github.com |
199294e0b423494211f9880690d3ca663d5aae1e | 8d402df39c18eba7e1c86c762f205c944357c5df | /www/src/Lib/site-packages/ui/menu.py | 78483584c32e8801d0303aea19d88121aed69b3a | [
"BSD-3-Clause"
] | permissive | brython-dev/brython | 87cc023e25550dec9ce459ba68774189f33712b6 | b33958bff0e8c7a280babc30232dc389a2500a7a | refs/heads/master | 2023-09-04T04:49:29.156209 | 2023-09-01T06:36:08 | 2023-09-01T06:36:08 | 24,046,239 | 6,569 | 625 | BSD-3-Clause | 2023-07-05T06:13:32 | 2014-09-15T06:58:21 | Python | UTF-8 | Python | false | false | 2,270 | py | from . import widget
from browser import html, document
class Menu(html.UL, widget.Widget):
def __init__(self, id=None, style={}):
default_style = dict(position= 'relative', height='auto',
width='auto')
default_style.update(style)
html.UL.__init__(self, Class="ui-widget ui-menu"... | [
"pierre.quentel@gmail.com"
] | pierre.quentel@gmail.com |
2f760f14fa268b57b0d05215707c5ded616d8f52 | 4a925d51479b5dbbfed6d6abe54f3c9ec42c7a62 | /src/configfactory/migrations/0019_auto_20170823_1245.py | be945777668975420e06b2024cea55ca4dab6cbd | [] | no_license | SHAKOTN/configfactory-1 | 1c2a5b2073c541384ea6394f7392cd957db7ab7c | b1ebf4cad757de9f2d2fc766de4df44c6b55bd81 | refs/heads/master | 2021-06-22T06:06:29.921187 | 2017-08-23T12:54:40 | 2017-08-23T12:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-23 12:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('configfactory', '0018_auto_20170823_0633'),
]
operations = [
migrations.Alt... | [
"anton.ruhlov@admiralmarkets.com"
] | anton.ruhlov@admiralmarkets.com |
b38743571088cce18562d93a179c233bf0e3b6b0 | 532a38c087e82ea260202ad4d04c449b9c482479 | /yandex_checkout/domain/models/confirmation/request/confirmation_redirect.py | e11f8626e9357ca081f988539432d465ba9279f1 | [
"MIT"
] | permissive | sudoguy/yandex-checkout-sdk-python | 2ab1c9db708cc28ce1dfe388c9831fdc14ba17d2 | 604594a31454e3f9222ebe59e98522e169ab6995 | refs/heads/master | 2020-04-30T09:25:52.804002 | 2019-03-20T14:14:46 | 2019-03-20T14:14:46 | 176,746,747 | 1 | 0 | MIT | 2019-03-20T14:03:14 | 2019-03-20T14:03:13 | null | UTF-8 | Python | false | false | 1,012 | py | from yandex_checkout.domain.common.confirmation_type import ConfirmationType
from yandex_checkout.domain.models.confirmation.confirmation import Confirmation
class ConfirmationRedirect(Confirmation):
"""
Class representing redirect confirmation data object
"""
__return_url = None
__enforce = None... | [
"bodrovia@yamoney.ru"
] | bodrovia@yamoney.ru |
c3e7de06bd3b071862de62b9d6f68b333c0a5c4b | f9b0c803a1ea6985fcee73a3fd505568da0ccd07 | /catkin_ws/build/beginner_tutorials/catkin_generated/pkg.installspace.context.pc.py | 13923d65d57b69a4dabc70f0400cd4db0c04f767 | [] | no_license | patrickpa/ros_study | 1df43899f4e7be8ae6d4b0cff03c541284dded7c | c7ecd659fb9a40e091a9d933491b3001c161b58f | refs/heads/master | 2020-04-23T17:28:59.544626 | 2019-03-23T00:08:40 | 2019-03-23T00:08:40 | 171,333,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | 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 = "beginner_tutorials"
PROJECT_SPACE_DIR... | [
"patrickabrahao.pa@gmail.com"
] | patrickabrahao.pa@gmail.com |
e6052d5a04b418082b4669fd7b25f4c759ff0b7f | ba28a571f5f5c8ed4bec0a15c9ef4dd6f02ff326 | /django-back-end/api_app/migrations/0001_initial.py | 5ec392bdcba70e54e15cf73888c604cebeae63e2 | [] | no_license | oehs7/Django-angular-CRUD-App | 3426ee3e6c9a30530b66843ad65dfd4712326819 | 068fd818fefd4045b44b96598e9c8f2372afdccc | refs/heads/master | 2023-04-02T06:38:49.500348 | 2021-04-12T15:27:55 | 2021-04-12T15:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # Generated by Django 3.1.7 on 2021-03-09 06:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Products',
fields=[
('id', models.AutoField... | [
"yaswanthc4952@gmail.com"
] | yaswanthc4952@gmail.com |
79bbe271c2557ed0f031928baab8d3d9845b10d3 | 34f244b2fa200363d69e58058c336acadc8a5c60 | /classification(H1)/ShevaCreateLimitSingleModels.py | c9aaf4665a13b2ea7dbd6ca55121a68431ffe90f | [] | no_license | deakkon/SemanticVIRT | 9fb4980f57eb7d34571e7714cdaa9f14b788dd01 | 6cb1303b0960b4f3606a8273813547fe86c0f5d2 | refs/heads/master | 2021-03-12T20:03:19.331775 | 2014-01-03T16:44:41 | 2014-01-03T16:44:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,581 | py | '''
Created on 9.1.2013.
@author: Jurica Seva
PhD Candidate
Faculty of Organization and Informatics
University of Zagreb
'''
#imports
import sys
#USER DEFINED MODULES
sys.path.append("/home/jseva/SemanticVIRT/_utils/")
from ShevaDB import ShevaDB
from ShevaTPF import ShevaTPF
from ShevaUtils import ShevaUtils
from ... | [
"seva.jurica@gmail.com"
] | seva.jurica@gmail.com |
e6f55682cf60a589e0cad2953d919458d6fe24a2 | a2a1762c5429958f1a1d2987f24deca7bed35cae | /dns_spoofer.py | df1e8bb2a7f754cfffcc7b3e3140fbe4eb3a3860 | [
"Apache-2.0"
] | permissive | AkibButt/Dns_Spoofer | eb5a860ba71e4c7eab29db9e439818c8e66b41cb | 2b8dd8ba1362bab259aadda4848963bb135c142e | refs/heads/main | 2023-02-21T02:56:14.822320 | 2021-01-21T07:08:55 | 2021-01-21T07:08:55 | 331,540,496 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | #!/usr/bin/env python
import netfilterqueue
import scapy.all as scapy
def process_packet(packet):
scapy_packet=scapy.IP(packet.get_payload())
if scapy_packet.haslayer(scapy.DNSRR):
#print(scapy_packet.show()) u can see what packet contain
qname=scapy_packet[scapy.DNSQR].qname
... | [
"noreply@github.com"
] | noreply@github.com |
eef2258601df458529923175682ced7135be04c4 | e93690e8ac06fd6aa2f7fe7d3ea56978e787e496 | /optimizeDLM/OldFrench/optimizeDependencyLength_FuncHead_Other.py | ef1077c3609c1ffc9a962382e7e2edd717cb1942 | [] | no_license | m-hahn/optimization-landscapes | 8446fbb0ae783f7aa76278e8a5f4cf5e6f4b2cd8 | b16f640dd855a912f52844882b3de701e5b9eca6 | refs/heads/master | 2023-08-12T01:44:18.434912 | 2021-10-03T14:37:11 | 2021-10-03T14:37:11 | 273,661,277 | 0 | 0 | null | 2021-04-15T04:39:52 | 2020-06-20T07:36:12 | TeX | UTF-8 | Python | false | false | 16,951 | py | # Optimizing a grammar for dependency length minimization
import random
import sys
objectiveName = "DepL"
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--language', type=str, default="Old_French_2.4")
parser.add_argument('--entropy_weight', type=float, default=0.001)
parser.add_argument('... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
013af95f6dc56dce387d3f9a90cb9a0b1255ae6d | 4da06831bd361274f30bbd8c7d97414b3d691521 | /experiments/benchmarking/benchmark_server.py | 86e526bf453c82e4739e46af9441ec7f8753131d | [] | no_license | mvujas/HyperAggregate | 059e97b9048a503659941f645346e235d364df2f | 06bf7fb58b9d419755450327cdeac104dccff723 | refs/heads/master | 2023-06-12T05:00:46.542582 | 2021-07-03T11:33:40 | 2021-07-03T11:33:40 | 343,462,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | import argparse
from hyperaggregate.netutils.zmqsockets import ZMQDirectSocket
import time
def parse_args():
parser = argparse.ArgumentParser(description='Benchmark server')
parser.add_argument('--port', default='83420', metavar='N',
help='input server port number (default: 83420)')
... | [
"18309829+mvujas@users.noreply.github.com"
] | 18309829+mvujas@users.noreply.github.com |
28c1c02ecfec300d07f8a246e77928fbe578eb5a | 83fd296a2c752f24d97da0f5f3d19d86d821e25e | /SonytelSistem - copia/apps/articulos/urls.py | be05f41a3ef248444972b60ef15b59f26d7e2950 | [] | no_license | Edwineverth/SONYTELPROJECT | eb230091dc6c7ae4dd960e145f870733d6a18d85 | b9011a7e0b3b9a0bd8e3ab8c463ef17720fefaf0 | refs/heads/master | 2021-04-12T05:42:55.935795 | 2015-08-29T14:01:42 | 2015-08-29T14:01:42 | 39,687,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | from django.conf.urls import patterns, include, url
from .views import crearArticulo,editarArticulo,eliminarArticulo
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'SonytelSistem.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
#url(r'^$', index.as_view(),name='home'),
#******... | [
"edwineverth94@gmail.com"
] | edwineverth94@gmail.com |
09401d360f36912480e86e1f95a4654acf607e02 | 2edf955d53f3c331e16d9b61d6168d22f684c153 | /ctr.py | aa4350bfa112a0f2464d512d12a4d47b42354b07 | [] | no_license | Anmol1696/pyAES | 7fc00207e15339e3e54ad54d7cf4e7d60746fad9 | b99a4b4e85e8b1c71c290516de798a21bab19c7b | refs/heads/master | 2020-07-15T07:31:07.971968 | 2017-06-21T12:50:49 | 2017-06-21T12:50:49 | 94,305,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | """
This is a script to form a CTR from AES
"""
from src.main import main_encrypt, main_decrypt
import time
import math
def main_ctr(number_of_output, key, iv, counter=0):
"""
Define IV or Nonce, of 16 hexadecimal, rest will be counter
number of output is a var that gives the number of times ... | [
"anmol1696@gmail.com"
] | anmol1696@gmail.com |
7996e66f460f030fc2a09c8269a40ce4203a54ff | 4276560c96cf35a9b02bf06b3f529b04cc06d6d0 | /admin/venv/Scripts/pip3-script.py | 99be40461e7e874b483da27cd710bc15e6be2538 | [] | no_license | xinzhijie/image_contrast | 5840e04165d4e6dbbb067b5571d15d75a9ee2c84 | f9f72221d0624a2e0e63233401e8d952d5f50ed4 | refs/heads/master | 2022-01-23T11:43:01.347320 | 2020-03-16T03:02:32 | 2020-03-16T03:02:32 | 245,148,414 | 0 | 0 | null | 2021-01-05T22:01:41 | 2020-03-05T11:44:30 | Python | UTF-8 | Python | false | false | 417 | py | #!C:\Users\Administrator\Desktop\image_scale\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"limc"
] | limc |
895e98b0a2f5b9c676ae202305438b498f45f57e | e00e6681a550dd2b5365c63726573a69fa921e22 | /api_test/test11111/test_sqlserver.py | b6e101359027ca0a9a83867133d2459e8969031c | [] | no_license | applepenpen/api_test | f90db9234d230a68522f0d1a7adba1929fed61ad | 23a102f8362c05ffec1617f993ea8f7561b47b4d | refs/heads/master | 2020-05-03T09:04:56.432231 | 2019-04-01T09:40:38 | 2019-04-01T09:40:38 | 178,544,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import pymssql
conn=pymssql.connect('192.168.100.210','fumengjiao','fumengjiao123','CarBasic')
cursor=conn.cursor()
sql_line="select * from Car where Vin = 'LVHRE183895010684'"
cursor.execute(sql_line)
print(cursor.fetchall())
| [
"mengjiao_fu@163.com"
] | mengjiao_fu@163.com |
a7468def42a58b05f336b993993faae37eef5034 | 37d5351eb21df66e150376bcb155fb03fe4e9fbc | /SelectObjectFromXml.py | e8af38da2201557e11b5f89aced42d3038b107bf | [] | no_license | maibobo/Object-Dectection | 241e3a4b262e3a5e582b0af58292be9b997b35d6 | 4e31193a73d1e177bc6fa49954cc6e1a4f9db98f | refs/heads/master | 2020-05-24T07:06:02.964696 | 2019-06-17T13:46:40 | 2019-06-17T13:46:40 | 187,153,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 6 16:30 2018
@author: 林盛梅
description:
对源文件目录sourceDir中的xml进行修改,主要是保留“船名”部分,删除其余object
将中文标签名和文件夹名改成指定名称
将修改后的xml保存在targetDir中
"""
import xml.etree.cElementTree as ET
import os
import pandas as pd
import numpy as np
from PIL import Image
import shutil
sourceDir = 'xml_tes... | [
"42796626+maibobo@users.noreply.github.com"
] | 42796626+maibobo@users.noreply.github.com |
7957c4004a81dab3bef7da261038849f20e09149 | 7565f8a0b26b97e40494275b90852d2ae1ed0c95 | /project/app/models.py | 6989ef06acc164f36bd9a149ada65aa610474539 | [
"MIT"
] | permissive | iNgredie/advertising-site | 881a3db8410db5cf776a5cdac8e79bb443c9e925 | 7ce1de769d68d920c36c00df262b3d416d208e4b | refs/heads/main | 2023-01-06T20:22:24.749547 | 2020-11-01T19:00:49 | 2020-11-01T19:00:49 | 307,781,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from django.db import models
class Ad(models.Model):
title = models.CharField(max_length=200)
description = models.CharField(max_length=1000)
price = models.DecimalField(max_digits=8, decimal_places=2)
photos_urls = models.CharField(max_length=1000)
create_at = models.DateTimeField(auto_now_add=Tr... | [
"sandslash@bk.ru"
] | sandslash@bk.ru |
177f9385ab21b6e6d7c23d7e1029cab821061e52 | ef9382999c0e37b30923180a56893c01cf626a2e | /tensorflow_probability/python/bijectors/bijector_properties_test.py | 891a3374e6dbfed7a4969ca49f3de88a6283e32a | [
"Apache-2.0"
] | permissive | bolcom/probability | 41ebc9f62caa425e0304881ed60563beb2adea2e | 4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7 | refs/heads/master | 2020-08-02T11:11:20.181219 | 2019-09-27T06:29:14 | 2019-09-27T06:30:18 | 211,330,640 | 0 | 0 | Apache-2.0 | 2019-09-27T13:54:06 | 2019-09-27T13:54:05 | null | UTF-8 | Python | false | false | 18,122 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f6569cc2f6decff7fa376ac5339f0f30dd49badc | 124071a65a90d3b9ed9c7ce83d5db0e40f2efc27 | /60/60-2.py | a56232e7f59af2ca4018c6d667f334d97b293496 | [] | no_license | rodneygauna/palomar-CSIT175-Python | 11857e5745690761273a1f7a719bd28a2069d393 | 057b3fdf9a43ce1213d4a6ad7ac56b9f8ce29ea2 | refs/heads/main | 2023-04-29T15:06:29.857166 | 2021-05-12T06:02:09 | 2021-05-12T06:02:09 | 335,186,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | firstname = input("What is your First Name? ")
lastname = input("What is your Last Name? ")
with open("60-2-txt.txt", "w") as file:
file.write("Hi " + firstname + "\n")
file.write("Your lastname is " + lastname + "\n")
print(file, "created") | [
"rodneygauna@gmail.com"
] | rodneygauna@gmail.com |
6e87c839f3c361822553d755922ae8dc7e7931be | 73527b489a9dd792e1e5c3a52afa27988acecd8e | /Case236.py | 51cde2a05ec4fd7d1ec135929a60013a4011635b | [] | no_license | guxiajun/TestCases | 3d3a3922775b239491b75d43d718f332d4a3ebcd | 2c2e5fd53abdb9370228fd34f5a7448223ddac7b | refs/heads/master | 2020-08-31T10:58:57.683799 | 2020-05-07T12:53:20 | 2020-05-07T12:53:20 | 218,674,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ctypes
import time
import os
import random
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
path = BASE_DIR + "/libpycmd.so"
print(path)
def needterms():
return "3"
def categories():
return "broadcast"
def shortDesc():
return "(直播)进入频道,三个主播连麦360P8... | [
"guxiajun@agora.io"
] | guxiajun@agora.io |
2bd417758f14a8b7d77296800fb63a3c841e6735 | 4cb6516f97665ae32ffd9e567a2a730a8dd577c6 | /daimaduan/tasks/deployments.py | ac92977b3eff4add2624fc9b616bf78a2554eae9 | [] | no_license | liul85/daimaduan.com | 1a14252d0f360a256cf40aa2d27ca8d2fbba2838 | 136f4758aac71b8714f358e5c794c8a5ab8f971f | refs/heads/master | 2020-12-25T12:27:38.258989 | 2016-01-09T13:31:22 | 2016-01-09T13:31:22 | 41,522,508 | 0 | 1 | null | 2015-08-28T02:31:16 | 2015-08-28T02:31:16 | null | UTF-8 | Python | false | false | 4,011 | py | import sys
import urllib2
from fabric.context_managers import cd
from fabric.decorators import task
from fabric.operations import local
from fabric.operations import put
from fabric.operations import run
from fabric.operations import sudo
from fabric.state import env
env.colorize_errors = True
# the servers where th... | [
"david.scriptfan@gmail.com"
] | david.scriptfan@gmail.com |
645e9ca00ea00f24f617e75b14ff7a7472f1ed29 | 72cf8c5ae17189d724f9f6e902e054a8a3dfe0b2 | /music163/spiders/rotate_useragent.py | d13581e8960fc50dd2877127041c9831348347f7 | [
"Apache-2.0"
] | permissive | P79N6A/scrapy_wangyiyun_music | 6a1dcd2c3503facedd3b98980a2e05279d88429f | bb30249c85e07e61f3e1643c44cbc77c4321adcd | refs/heads/master | 2020-06-12T13:25:19.201396 | 2019-06-28T17:44:59 | 2019-06-28T17:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,027 | py | # -*-coding:utf-8-*-
import random
from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware
class RotateUserAgentMiddleware(UserAgentMiddleware):
def __init__(self,user_agent=''):
self.user_agent=user_agent
def process_request(self, request, spider):
UA=random.choice(self.user_... | [
"wmlhust@qq.com"
] | wmlhust@qq.com |
253a0cd838c994569c05c7499f20b5119f738bab | aa70b28de250f47e92580a4d96ffc9d2d1fb9274 | /cart/forms.py | da7acc819728943e52bf069cc814fec0e6679be6 | [] | no_license | TarekCG-s/e-shoppy | 2ba7d938de1cd133c84157c65c64645341f6ec95 | f6fe4d719ac5240a9b74fc1d15701b642423fb80 | refs/heads/master | 2022-12-16T12:44:48.392394 | 2020-05-28T11:48:40 | 2020-05-28T11:48:40 | 248,563,476 | 0 | 0 | null | 2022-12-08T03:57:20 | 2020-03-19T17:23:18 | Python | UTF-8 | Python | false | false | 197 | py | from django import forms
QUANTITY_CHOICES = [(i, str(i)) for i in range(1, 21)]
class CartCreationForm(forms.Form):
quantity = forms.TypedChoiceField(choices=QUANTITY_CHOICES, coerce=int)
| [
"root@DESKTOP-66O118V.localdomain"
] | root@DESKTOP-66O118V.localdomain |
67c2dfe47265e825c40ef38bf06253ad8a58594e | 7ad4e9f7b7cc6809f0de4c732a419a07b15f89dc | /api/command/mixins/user.py | eb603a0f0628e93c0dcbc0f5c5f206d69fda924a | [
"MIT"
] | permissive | tarikeshaq/rocket2 | 9dfc1786c5df6ca72a8134a09900b2acd038a971 | a7b329f0dcea1335e22dbac69ade5a08f3e863e2 | refs/heads/master | 2023-01-01T18:06:30.612801 | 2020-10-01T16:31:59 | 2020-10-01T16:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,224 | py | """Encapsulate the common business logic of user commands."""
import logging
from app.model import User, Permissions
from utils.slack_parse import escape_email
from db.facade import DBFacade
from interface.github import GithubInterface
class UserCommandApis:
"""Encapsulate the various APIs for user comma... | [
"rmcreyes.eng@gmail.com"
] | rmcreyes.eng@gmail.com |
0e282a716a2d2115334b6321f9da1a1772334c65 | a66898e7fe4ef3d83bde619cde2770ca3f170918 | /blog/models.py | 84e95a156eccc4e0ab4d4eb1c2dd57742fdc3a12 | [] | no_license | kamrankalantarli/zitp | 5757cb89b8a63ea758e370da695f55553fdb09a2 | d8c553394e7f9ad6029189a9bb1a3af1db828db3 | refs/heads/master | 2020-05-06T15:25:41.193147 | 2019-04-08T16:31:18 | 2019-04-08T16:31:18 | 180,189,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from django.db import models
from django.urls import reverse
class Blog(models.Model):
user = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=80,verbose_name="Başlıq")
content = models.TextField(blank=True,verbose_name="Xəbər")
publish = models.DateTimeFiel... | [
"kalantarlinurlana24@gmail.com"
] | kalantarlinurlana24@gmail.com |
bbc28962331efd4c174253eb498c04901cfc742b | efb3d9da728ad6762f8f4416e7180a3e2e07345b | /tracker/migrations/0003_auto_20210411_1219.py | 9eecc6bf1808ed4852635f35a9772b8feda4c80e | [
"MIT"
] | permissive | OscarGichana/tracker | edadea13cc81688f52f690e4e9082ad2928c568e | c980f0e348804ae6a2501c09096df1af51b0bba6 | refs/heads/master | 2023-04-11T10:33:19.520507 | 2021-04-13T05:45:48 | 2021-04-13T05:45:48 | 356,321,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 3.0 on 2021-04-11 09:19
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tracker', '0002_neighbourhood'),
]
operations = [
... | [
"ossygicchy@gmail.com"
] | ossygicchy@gmail.com |
bbb6230722bf537ed4c3dcc30934732d272f8951 | 69fcba00f55cc75b33cedf3236bfac0a1bb77922 | /JoveSky/settings.py | 3b9707b7de9c1b0da92b83f7a5fc945f25fb7871 | [] | no_license | Danpy/JoveSky | 8d02f8c608738855ab8d97e22c38a8b51f22ab29 | ddbbcf4e1b25b44d29f3700a557fc7c38ea06e7b | refs/heads/master | 2020-04-08T23:30:38.906011 | 2013-05-25T12:24:36 | 2013-05-25T12:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,568 | py | # Django settings for JoveSky project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
('Jove Yu' , 'yushijun110@gmail.com')
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sql... | [
"yushijun110@gmail.com"
] | yushijun110@gmail.com |
9aa2b79bc01869cd066b241bdaa8f8f51fd66517 | 7097fe9390eb0841951c6e00f4df6df2266c22cc | /DYAnalysis/AnalysisCode_8TeV/DimuonAnalysis/DYPackage/test/ShapeR/uncertEE_2D.py | c99950559b265c7b123354e0984db972ebde428c | [] | no_license | echapon/pA_DY_8TeV | 35128dc7bcace21197321d01c7a54a67f59a58c9 | 02ead424f33723da7048282dd3a697809ee630b6 | refs/heads/master | 2021-07-24T04:48:27.455575 | 2021-02-18T14:57:49 | 2021-02-18T14:57:49 | 84,451,650 | 0 | 2 | null | 2020-06-16T14:09:34 | 2017-03-09T14:33:24 | C | UTF-8 | Python | false | false | 7,660 | py | #!/usr/bin/env python
from ROOT import *
from math import sqrt, pow
from array import array
import sys, os
from rshape_tools import *
def bambuConverter7_24(h,m_num,m_den):
for ibin_rows in range(1,7):
for ibin_cols in range(24):
if ibin_rows == 6 and ibin_cols > 11: continue
#FIX... | [
"emilien.chapon@cern.ch"
] | emilien.chapon@cern.ch |
0b6b326a73a85768b3526247d56bc56235fd5a05 | f2449390ff554e777b77a47611c0d322cd645898 | /v2/main.py | 12e2ba39d7743b6f865df5c215e5cb5fe1b6c46b | [] | no_license | Lyadalachanchu/YoutubeSearcher | d28aeaaee0f62f3fd684bd7e670715543162ea02 | 36dcd1b5797d5a2b5c8ff5fd59e23b8335cbbc92 | refs/heads/master | 2022-10-02T22:31:11.334235 | 2020-06-05T16:04:20 | 2020-06-05T16:04:20 | 269,129,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from mainGet import mainGet
import pickle
query = "well worth"
path = '/Users/maxdekel/Desktop/stuff/YoutubeSearcher'
key = 'AIzaSyAZjUllFM931vhUM7JdOAl_eysGcTzGZtk'
cID = 'UCr3cBLTYmIK9kY0F_OdFWFQ'
captions = mainGet(apikey=key, cID=cID, path=path)
#print(captions)
for x in captions:
for a in x[0:len(x)-2]:
... | [
"noreply@github.com"
] | noreply@github.com |
29d8bb89fb956abdb5a2884c9d6f580bcb0f4977 | 765d1382698a5a4ac6fe7938b16ea730d3cbced7 | /spider/bomb.py | dcce80ae5e39bdf40e11721f572bc6d1fb1962c2 | [] | no_license | SummerisYoung/weibo | 8ca78ae4a34f32964be7e65096c12135bbe17723 | ba2e1633a6d49ad16e98362d7b6a2664be517e4a | refs/heads/master | 2023-03-17T16:46:19.100421 | 2021-03-04T13:29:48 | 2021-03-04T13:29:48 | 339,030,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,133 | py | # coding=utf-8
import json
import time
try:
from urllib import quote
import urllib2 as import_urllib
except ImportError:
from urllib.parse import quote
import urllib.request as import_urllib
class BmobObject:
def __init__(self, type):
self.__dict__["__type"] = type
class BmobPointer(Bm... | [
"1330023476@qq.com"
] | 1330023476@qq.com |
cefacb033e5f4235573c77f41c6367ca147d8e3f | 2b30566c00ccedb89c83e7567a43dc61249275e9 | /mysql_fk_check | 5f0fb234fb172f44e7bd7c5cd5ab39fb84b93822 | [] | no_license | shockteam/python_mysql_tools | 3ccaf51e08bc26842e82aaaee0926888e1f97eaf | 75cf191fc680d3655888ca3dad88b8cd37725d4b | refs/heads/master | 2020-05-30T18:32:01.933403 | 2014-03-31T00:37:49 | 2014-03-31T00:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,620 | #!/usr/bin/env python
from __future__ import print_function
import sys
import os
import argparse
from termcolor import colored
from prettytable import PrettyTable
import sqlalchemy
from sqlalchemy.sql import text, and_, func
from base import Base
class DbFkChecker(Base):
""" CLI for checking FK refs :
Usage examp... | [
"phponline_us@yahoo.com"
] | phponline_us@yahoo.com | |
68abfed50e45a6d26a1802befbddc5728eda63f8 | 1d8ad2558c8eca2f2c998b3085d77d10a378d2cb | /app/views/module/modules/anitAV/psh.py | e5b67466782763234e91da1869024a066394d280 | [
"Apache-2.0"
] | permissive | j5s/Rosemary | dd0bb3562ba993c3e0b1aed54a878ee9531b2ea9 | 9258af2a724b4a8bcc233f98499e6a8f09754bf8 | refs/heads/main | 2023-07-05T04:32:09.036924 | 2021-08-13T11:07:21 | 2021-08-13T11:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | #!/usr/bin/python3
import subprocess
def psObf():
subprocess.call(['python PS.py'], shell=True,executable='bash')
| [
"qqlengyi@163.com"
] | qqlengyi@163.com |
8cba1c54e9b7375b8e3d4b7a6580186abe1b1406 | 1407537a535255e68164d7495786ca2d08f95370 | /backend/home/migrations/0001_load_initial_data.py | 37144435244754865ad3e6f940fa8a1ed3c13eba | [] | no_license | crowdbotics-apps/lucky-thunder-27398 | 4976a8d6e49618ca7885101a5fb75d600c32ff87 | 83b4c2a91c79a1547b7f3263555f7faf833bf201 | refs/heads/master | 2023-05-05T15:20:55.604463 | 2021-05-25T21:36:30 | 2021-05-25T21:36:30 | 370,833,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "lucky-thunder-27398.botics.co"
site_params = {
"name": "Lucky Thunder",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
426481f15004e786447e1ca1ff3083f3340db730 | 33e5b1e52916f828fc9b9f18840d5f9214b56231 | /docs/source/conf.py | e2cc7a405b85de0c8f06135fd4805486239a9f07 | [
"MIT"
] | permissive | souzaonofre/correios-php | 60ebe0a7c6edc45836da12cb5064263c0e8973f5 | d5fdc50f8105710fb7d9de1809db0879b47b6c3b | refs/heads/master | 2022-12-10T11:52:17.231367 | 2020-09-10T12:36:39 | 2020-09-10T12:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | # -*- coding: utf-8 -*-
#
# Correios Php documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 8 09:09:32 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | [
"eduguscontra3@hotmail.com"
] | eduguscontra3@hotmail.com |
a17747575373169238fe550594f052b3a15cd209 | 5139e6d57d764ccbfe1853f241e6ddb51aa8277a | /GroceryList.py | 79ee720ceb16d60f063692a7de9dae376e189547 | [] | no_license | WeaselE/Small-Programs | 76a4e9c0fc87e751c809100fb60f9e879faa8873 | a9eb056ac984b872940c5110a97a0128131c8aea | refs/heads/master | 2023-09-03T01:12:52.953700 | 2021-11-15T02:00:37 | 2021-11-15T02:00:37 | 428,092,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | grocery_list = []
item = input('Add an item to the grocery list: ')
while item:
grocery_list.append(item)
item = input('Add an item to the grocery list: ')
print('')
print('Your grocery list has', len(grocery_list), 'items.')
print(grocery_list) | [
"weaustin@iu.edu"
] | weaustin@iu.edu |
28df745baf47982d4dec46846c176d64512a075b | fd458d7f0fb61a2f2c61f5ac2c7a7f62c33fe39a | /home/tests_widgets.py | 935c477180190f19fc85462933ba9fb105f7d689 | [] | no_license | Code-Institute-Submissions/Milestone-Project-133 | 8a471ad9a2af927d4fd8605bf697c75ab27cba61 | 8baebc620e739a4e20fd75fbd7ca77899e5b1ab9 | refs/heads/master | 2023-01-12T17:32:38.228930 | 2020-11-25T10:17:07 | 2020-11-25T10:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from django.test import TestCase
class TestWidgets(TestCase):
def test_custom_clearable_file_input(self):
template_name = \
"home/custom_widget_templates/custom_clearable_file_input.html"
self.assertIs(
template_name,
"home/custom_widget_templates/custom_cleara... | [
"vivian.v18723@gmail.com"
] | vivian.v18723@gmail.com |
9c4ad39d5e940fe2e898497f52256a7b42fe45a6 | c03f9bd8bb4dfd4cfd4d1fc208536b4bcd48a813 | /account/forms.py | 027bf0174aa729964d1aebc4f2011ee24453d1b0 | [] | no_license | ALIKUSAMSON/LASTEM | 84464ee39221df924c58a3ab31e12d80da8e0f97 | f2153bc318820a04593ade9a198c63a6ac7d49f0 | refs/heads/master | 2020-05-09T11:09:49.558479 | 2019-04-12T19:09:04 | 2019-04-12T19:09:04 | 181,069,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | from django import forms
from .models import Profile
from django.contrib.auth.models import User
from django.contrib.auth.forms import SetPasswordForm
Sex = (
("Male","Male"),
("Female","Female"),
)
class LoginForm(forms.Form):
username = forms.CharField(label='Username or Email')
password = forms.CharField(l... | [
"alikusamson2014@gmail.com"
] | alikusamson2014@gmail.com |
0bfcd3c57377c7d5882b6a53e48b53be08b491e6 | 8a3e7b779676e396853dc1fb22525e501050cffb | /geoist/inversion/hyper_param.py | a22cd8f57912afd7808ebffc70004f317dde3151 | [
"MIT"
] | permissive | CHEN-Zhaohui/geoist | 3a8218105b8bd21d23f3e15e3d20397adf8f571d | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | refs/heads/master | 2021-03-31T19:19:04.472355 | 2020-03-18T03:18:04 | 2020-03-18T03:18:04 | 248,126,521 | 0 | 0 | MIT | 2020-03-18T03:07:54 | 2020-03-18T03:07:53 | null | UTF-8 | Python | false | false | 16,551 | py | r"""
Classes for hyper parameter estimation (like the regularizing parameter).
These classes copy the interface of the standard inversion classes based on
:class:`~geoist.inversion.misfit.Misfit` (i.e.,
``solver.config(...).fit().estimate_``). When their ``fit`` method is called,
they perform many runs of the inversio... | [
"chenshi@cea-igp.ac.cn"
] | chenshi@cea-igp.ac.cn |
e82c41a3bc8463def00ca68e74d518416bf89778 | 697ad69eb5e41c025fe33c3398491828bb9fc6a2 | /crgis/policy/tests.py | 1bcb7acd81a6c8ade0386e7638fee02fcc61b245 | [] | no_license | l34marr/crgis.policy | 3d0a699e9a4151b7a9ac9f811123d8cc8a19376e | 9cd0c92b3d340d941cf66487b6260193b58191b0 | refs/heads/master | 2018-12-28T07:20:32.667528 | 2018-10-31T03:09:20 | 2018-10-31T03:09:20 | 13,117,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | import unittest
#from zope.testing import doctestunit
#from zope.component import testing
from Testing import ZopeTestCase as ztc
from Products.Five import fiveconfigure
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import PloneSite
ptc.setupPloneSite()
import crgis.policy... | [
"marr.tw@gmail.com"
] | marr.tw@gmail.com |
a9596f34454e74bb9d9ba4927f2661f54ceead5f | 8e1fb6d9b8c0c2424c69b9358ad892646319b6ff | /session-5/libs/vae.py | 62d87ffc05dec9b0e393be0e0658ac29c6789e02 | [
"Apache-2.0"
] | permissive | jasoriya/CADL_Kadenze | 9cab85625c1e87e38fcd6fce7b18304dc0cfd5b3 | fc2eea169782a00ed95f5bf7aca485a4962c7f83 | refs/heads/master | 2021-01-01T20:38:25.668954 | 2017-07-31T20:47:12 | 2017-07-31T20:47:12 | 98,903,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,319 | py | """Convolutional/Variational autoencoder, including demonstration of
training such a network on MNIST, CelebNet and the film, "Sita Sings The Blues"
using an image pipeline.
Copyright Parag K. Mital, January 2016
"""
import tensorflow as tf
import numpy as np
import os
from libs.dataset_utils import create_input_pipel... | [
"shreyansjasoriya@gmail.com"
] | shreyansjasoriya@gmail.com |
3d99713253a36c0c836849736e91ba53640d4562 | e4f29a6d8e9480eb01953f3749a74637c7d432b5 | /Tímaverkefni/Kafli 2/Verkefni 1.2.py | efe25f8d2285cf2dbefa32518a8ef6d3dc577f6e | [] | no_license | vesteinnbjarna/Forritun_Vesteinn | 0a3b2d76fd0cade9892876c3c82485cf409973a9 | 95a988d1dfecea2a6eb93993cf3c41d62eb35679 | refs/heads/master | 2020-07-20T06:05:22.750130 | 2019-10-05T17:12:32 | 2019-10-05T17:12:32 | 206,586,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | in_str = input("Input s: ")
in_int = int(in_str) # in_int =
print("in_int = ", in_int)
in_float = float(in_int) # in_float =
print("in_float = ", in_float)
| [
"vesteinn19@ru.is"
] | vesteinn19@ru.is |
79c3a15ecb1b6742b3c6ebd93c8eae64605b1ce2 | 746387c9f03b6c0a7cfb455d68aec23269d8661a | /mysite/urls.py | fe183e6afd0241b62e2ed8883ea13d9d8d9b4e86 | [] | no_license | parth1625/django_face | 7f05c303312c5e59093307d87e41d329c1c6a03b | 9d5abd72e63f3e5b048bd541862f6705e2f2841a | refs/heads/master | 2023-04-13T01:55:21.868906 | 2021-04-17T09:57:34 | 2021-04-17T09:57:34 | 358,842,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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 ... | [
"parth@securitytroops.com"
] | parth@securitytroops.com |
4ee0091182b13bfc539bebd6e71421963a2dda8a | ac10909964a25cf2e29468d6de42fe179e1446e4 | /data/dump_dataset.py | 0f850471ceab562da0908b09922a840937504bfa | [] | no_license | stebett/creative-gan | 6b3d6d2b9fd6eedb2eacd4b574f1726ef433e057 | f1d91091d46c9fbd1a9fb1fe9f4ddc110393a689 | refs/heads/master | 2022-04-12T10:41:34.205506 | 2020-03-20T14:59:27 | 2020-03-20T14:59:27 | 248,743,888 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | with open('sentences.txt', 'r') as f:
with open('small_dataset.txt', 'w') as w:
for n, i in enumerate(f):
if n > 1:
break
else:
w.write(i)
| [
"ginkobab@gmail.com"
] | ginkobab@gmail.com |
2d433afd8ef65ed6501d797473da7d99005417dc | ac0584bf36626e3e44acfabc2cd53664b6238148 | /posnegonly.py | 6a5ef30ae5529059b5d2c42479f1f7bec0251cc6 | [] | no_license | nt87814/CS-4375-TermProject | 54acb8b94c194e2c6f345c5512d54b4bd93e103f | 1aa411d8b17a982caf2c62c86b9361615156d37b | refs/heads/main | 2023-04-23T01:44:52.848530 | 2021-05-14T19:01:56 | 2021-05-14T19:01:56 | 356,395,165 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | #Hansen Li
#Neg/Pos Only
import os.path
import math
#print("Current directory: {0}".format(os.getcwd()))
cwd = os.getcwd()
negdict: dict = dict()
posdict: dict = dict()
vocab = set()
negcount: int = 0
poscount: int = 0
negprobdict = dict()
posprobdict = dict()
filecounttrainneg = 0
filecounttrainpos = 0
probnegf... | [
"noreply@github.com"
] | noreply@github.com |
61dbfba05b6a975dff34da029db039cadfac6fa9 | 58c976db39b69e3f30f1649e4f2c474f8c59224e | /chain/settings.py | 3365db0713189ec5b57ce943ad2ae5a22e20b586 | [
"Apache-2.0"
] | permissive | JennyLJY/chain | 4be485ad72b54bb1c6ec7cda4c3e82e6d33f7797 | f484019a31a65a02f389f2f3aec1aec1b154dc98 | refs/heads/master | 2020-03-09T21:44:29.153850 | 2018-04-10T12:02:23 | 2018-04-10T12:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,794 | py | """
Django settings for chain project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os,sys
im... | [
"hequan2011@sina.com"
] | hequan2011@sina.com |
4ce18076e9750497a0801ac652d14e390839819a | 2df9ef344b1541dca43c6c236670ea85864805f9 | /graph_dfs_debug/graph_demo.py | 6bbf4cdfb6deb2ecd1252717b1760fcd1ef2e70e | [] | no_license | vanceleon/Sprint-Challenge--Graphs | a85a4eda1d53c06fabb07ea624d33af01df6f018 | d73471c27e831424f71f564b4292c4333b31dbf5 | refs/heads/master | 2020-04-02T00:22:58.101997 | 2019-01-03T01:01:28 | 2019-01-03T01:01:28 | 153,801,733 | 0 | 0 | null | 2018-10-19T15:09:21 | 2018-10-19T15:09:20 | null | UTF-8 | Python | false | false | 2,690 | py | #!/usr/bin/env python
"""
Demonstration of Graph and BokehGraph functionality.
"""
from random import sample
from sys import argv
from draw import BokehGraph
from graph import Graph, Vertex
import random
def main(num_vertices=8, num_edges=8, draw_components=True):
"""Build and show random graph."""
... | [
"vanceleon44@gmail.com"
] | vanceleon44@gmail.com |
6fbfd67ea54f50a4eb9de7b1bad73bc3f62711a5 | b1149ab1db0ec8603b6a5cf27aba23e0d9180843 | /test_kinetic_swift/test_server.py | 2b8b5d7fde29364b25657f30c9dff97d2aebfc5c | [] | no_license | wangyanbn/kinetic-swift | 60fa591f5bbcdab47464d2fe07ce5345f712fe1c | 1ad4f80092e1362abc0d394b83b69caa1170d06d | refs/heads/master | 2021-01-18T15:07:15.240279 | 2015-04-01T02:47:43 | 2015-04-01T02:47:43 | 33,222,555 | 0 | 0 | null | 2015-04-01T02:44:04 | 2015-04-01T02:38:41 | Python | UTF-8 | Python | false | false | 12,215 | py | import unittest
import time
import random
import os
import hashlib
import email
from swift.common.swob import Request
from swift.common.utils import Timestamp, split_path, hash_path
from kinetic_swift.obj import server
from utils import KineticSwiftTestCase, mocked_http_conn
class TestKineticObjectServer(KineticSw... | [
"clay.gerrard@gmail.com"
] | clay.gerrard@gmail.com |
d1f2ca2daed0f8996c2359f8c6b24f3eaa5d077e | 65e7bde414934cdda16a10f4905cf1b011166f31 | /IntMemo/Parser_test.py | 76dad187ed6fd9ba5ac4307fda49d97f734f1abc | [
"MIT"
] | permissive | Wizmann/IntMemo | b996ce9238352d2cd69648fea455a48ba7a35b9e | 2b1c0cf7895dc02cda9da9e3ec0ddbfcf2305b27 | refs/heads/master | 2020-05-30T04:27:57.971130 | 2015-03-29T05:55:44 | 2015-03-29T05:55:44 | 32,198,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | #coding=utf-8
import unittest
from Parser import parser
from Parser import lexer
memo1 = '''
[Metadata]
date: 2015-03-07
title: 你很重要,打比赛已经不行了。我得去造个轮子
[Tags]
categories: python, angularjs, love
difficulty: 5
[Description]
我觉得我已经没有什么潜力可挖了。突然感到有些腻烦。
对于我来说,并不可以谈生活。因为我见到过巫师的水晶球,我向里面看了一眼。
从此不能自拔。
[Process]
# DO NOT ED... | [
"mail.kuuy@gmail.com"
] | mail.kuuy@gmail.com |
0ce5a2a7622dbb4c40f33a01f16f0ee42682f181 | 53e850f6f20a1fb7b579d89924a8eccd6513d631 | /src/model/utils.py | 5e9860b3ca49779d72f5b64c837eaa17a218ba6f | [
"MIT"
] | permissive | Minzc/FairAdj | 02631ad6fac07b5fc4ac6432a5d0336ebefa7662 | 7da68300ad7b2529718630b8121aeb716e412e68 | refs/heads/main | 2023-06-18T16:16:43.641457 | 2021-07-17T03:04:26 | 2021-07-17T03:04:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | # @Author : Peizhao Li
# @Contact : peizhaoli05@gmail.com
import numpy as np
import scipy.sparse as sp
import torch
from sklearn.metrics import roc_auc_score, average_precision_score
from typing import List, Tuple
def sparse_to_tuple(sparse_mx):
if not sp.isspmatrix_coo(sparse_mx):
sparse_mx = sparse_mx... | [
"peizhaoli05@gmail.com"
] | peizhaoli05@gmail.com |
ad119edf977b9020179392d239143997dd2fd588 | 4082d401c9d1313e2e2ea1045398827f0af5f5ff | /site/website/models.py | d4198742c60b17e460a4250e477dfdd51041a0d2 | [
"MIT"
] | permissive | blocher/dailyoffice2019 | c863b6911c7c35f0ca7b8669a0f1afa956d2c3be | 64fabb984bef5fcbf1c7e9558739988d71bde0e1 | refs/heads/master | 2023-08-20T10:33:38.006153 | 2023-06-27T03:06:28 | 2023-06-27T03:06:28 | 199,688,639 | 29 | 10 | MIT | 2023-09-06T20:17:55 | 2019-07-30T16:27:03 | JavaScript | UTF-8 | Python | false | false | 299 | py | import uuid
from django.db import models
class UUIDModel(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
| [
"ben@engagedc.com"
] | ben@engagedc.com |
9c634e54072e18ce4a9bff97d1c38aaaddb040f9 | 245452a8f419920db69714c3147b558dea76ada6 | /metrics/models.py | 3fba0aa7346f62b588ec3a116e62ac4a07df6a11 | [] | no_license | ichiaohsu/adjask | e97675835313a3d23253918f410ca80ff4d27810 | 80d2c9116f5b828d296762e80825862963cb06dc | refs/heads/master | 2020-06-14T03:28:54.106044 | 2019-11-07T02:42:48 | 2019-11-07T02:42:48 | 194,882,704 | 0 | 0 | null | 2019-11-07T02:42:49 | 2019-07-02T14:45:38 | Python | UTF-8 | Python | false | false | 639 | py | from django.db import models
# Create your models here.
class Metrics(models.Model):
date = models.DateField()
channel = models.CharField(max_length=128)
country = models.CharField(max_length=16)
os = models.CharField(max_length=32)
impressions = models.IntegerField()
clicks = models.PositiveI... | [
"ichiao.hsu@gmail.com"
] | ichiao.hsu@gmail.com |
960fe4703e14455f4c229c585910aada0e8aaa45 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/SetResellerUserQuotaRequest.py | 10ffd6b52727da42dc0bc5acd388bea160ba9e09 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,908 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
866c87fb234468b2a7eec6a22501da332b0851d7 | 47e6b0c8b9d8f028d18971acc9dba73891603cef | /lianjia_spiderV1.1/spider.py | 0c800bc6096354be2b22ddbaabccb4c5e5b5ceb6 | [] | no_license | longxiaofei/spider-lianjia | f6cf43af975ad8280f458ee3cf59dbfb7777632c | 7ff3268651f7986936cc553eb59eca901de11cb8 | refs/heads/master | 2020-06-27T22:36:31.950405 | 2018-02-09T05:42:43 | 2018-02-09T05:42:43 | 97,076,511 | 12 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,892 | py | from pyquery import PyQuery as pq
from bs4 import BeautifulSoup
import re
import pymongo
import time
from selenium import webdriver
from config import *
from request import request, get_total_page
# 连接数据库
Client = pymongo.MongoClient(MONGO_URL)
db = Client[MONGO_DB]
table = db[MONGO_TABLE]
# 将信息存入数据库
def save_to_mong... | [
"libra5892@sina.com"
] | libra5892@sina.com |
005534cbb812c1a5259eac995b271e47d1de2375 | 4d74341029f12e7e53b6df9d4e17f8a7b1247305 | /infra/subsys/frontend/friendlynamed.py | 5649daca2f2fb0729bcaaa513ac315e620b9aaaa | [] | no_license | dr-natetorious/app-FinSurf | 0a137d1e8dc50b5ba81c2b69e36f89dfb70acdaf | 799710e046626a6a9e753d37af76fbc421e942e4 | refs/heads/master | 2023-02-11T11:47:58.704138 | 2021-01-12T22:30:29 | 2021-01-12T22:30:29 | 315,193,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | #!/usr/bin/env python3
from infra.reusable.context import InfraContext
from infra.reusable.proxyfrontend import LambdaProxyConstruct
from infra.reusable.pythonlambda import PythonLambda
from aws_cdk import (
core,
aws_s3 as s3,
aws_ec2 as ec2,
aws_apigateway as a,
aws_dynamodb as d,
aws_lambda as lambda_,
... | [
"nate@bachmeier"
] | nate@bachmeier |
28aef61b577076b0a44fa0d4dc9ba304473a6535 | 4215da54aab8dd6f827891fcebb51a31cc9b882d | /Warmup-1/sum_double.py | 356c2fe5adfb47810f355e8539401480cb78bb89 | [] | no_license | MelissaBai/CodingBat | a6059a43212bb4afeb8967595490cba37dc51c27 | f31cdb151dfa21f22e8e8dd509db23437eada7ea | refs/heads/master | 2016-09-13T19:44:49.246118 | 2016-05-21T18:36:57 | 2016-05-21T18:36:57 | 59,376,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | '''
Given two int values, return their sum. Unless the two values are the same, then return double their sum.
sum_double(1, 2) → 3
sum_double(3, 2) → 5
sum_double(2, 2) → 8
'''
def sum_double(a, b):
if a == b:
return (a+b)*2
else:
return a+b | [
"mbai@mbai-macbookpro.roam.corp.google.com"
] | mbai@mbai-macbookpro.roam.corp.google.com |
3d151a0a2e0c7168e2e70e4a63bc8def1bb992f9 | ae4238f08a564f5cbf2d9637d1533f0451eef56f | /api/__init__.py | 0a6f6a3236df595630616975a3438f102665584a | [] | no_license | SHD037001/day06-2 | a6e02eb870d600b869dd10e121bcbdf963500d95 | 442e51a00816d3532946bd816ea95ef55cffe5d8 | refs/heads/master | 2020-09-29T09:49:34.144296 | 2019-12-10T04:01:32 | 2019-12-10T04:01:32 | 227,013,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Apilogin:
# 初始化
def __init__(self):
# 初始化 url
self.url = api.BASE_URL + "/api/sys/login"
# 登录
def api_login(self,mobile,password):
# 定义请求json串
data = {"mobile":mobile,"password":password}
# 请求登录
return requests.post(url = self.url,json=data,headers=... | [
"a820493832@163.com"
] | a820493832@163.com |
4fa5a7ffa17ea909fd1769a2aaebb6fa45d14e5b | 950145bbb6e1e10e52102443500aa154671b9577 | /code/calibration.py | 26cb474d05d44c8e3d4ee71194312a47e56c42f6 | [] | no_license | MWLCalanRoach/Mini_2016 | 8cd6fd2e6aef37ff57e3b661ed2f1b275a4dc8b0 | e5160394fc0e3f3af2c718d004a737f570911c13 | refs/heads/master | 2021-01-10T17:03:26.201326 | 2016-04-15T17:48:01 | 2016-04-15T17:48:01 | 54,669,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,727 | py | #!/usr/bin/env python
'''
para correr la calibracion:
./calibracion.py 192.168.1.11 -g 0x0080000 -b calibracion_mini_500Mhz.bof
\nAuthor: Andres Alvear, November 2015.
'''
import corr,time,numpy,struct,sys,logging,pylab,matplotlib,math,Gnuplot, Gnuplot.funcutils,array, telnetlib, valon_synth
from math import *
bits... | [
"roach@roach-MS-7845.(none)"
] | roach@roach-MS-7845.(none) |
1358e632729f22b18d742e8e9d7e4f15db623bbd | a0ddc6ef5f9ce2b42565f8822abf9f7c999c4494 | /articles/model.py | 87bdd378d1ffdda67ccfa5cb9e4cfffd4bd4baa4 | [] | no_license | dpwdec/flask-sql | 035389fcb2e9a6f60377e227ce54aae8eec837c1 | 702893b4f1e5694b797b8a19730fae7adf6f5ce0 | refs/heads/master | 2023-03-24T12:03:03.468169 | 2020-08-11T15:22:43 | 2020-08-11T15:22:43 | 284,295,677 | 0 | 0 | null | 2021-03-20T04:54:23 | 2020-08-01T16:20:17 | Python | UTF-8 | Python | false | false | 200 | py | from sqlalchemy import Column, String, Integer
from database import Base
class Article(Base):
__tablename__ = 'articles'
title = Column(String, primary_key=True)
length = Column(Integer) | [
"declankolakowski@gmail.com"
] | declankolakowski@gmail.com |
6a625b9e6dd447d8a8de11f1bf37a8a7366559a6 | 7f1af852ee12125f72f3977b8d1a4151217468db | /api_media/admin.py | a3934a6806f4ab404e589ad84d3439abba9c61ac | [] | no_license | koshelevd/yamdb_final | e476701bda2353f8f002eec379cb9ff6bc268441 | d078af31c93942a6966c179c14aad556487aa15f | refs/heads/master | 2023-04-21T09:41:33.990235 | 2021-05-26T08:04:28 | 2021-05-26T08:04:28 | 353,115,722 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from django.contrib import admin
from .models import Category, Genre, Review, Title
@admin.register(Genre)
class GenreAdmin(admin.ModelAdmin):
"""Manage genres."""
list_display = (
'name',
'slug',
)
empty_value_display = '-пусто-'
@admin.register(Category)
class CategoryAdmin(admin... | [
"me@koshelev.net"
] | me@koshelev.net |
2c0885605428d3e844643dfc85928ca6ceac43d4 | 95f80698f5d10f35ea117d56faaa28d4af84f5fb | /scara_cpe_apps/scripts/moveit_test_poses.py | c39d7e1576f1d2364048a0214d292a9e0630ddfc | [] | no_license | vbournac/move_cpe | 270cf963d0614a795cacf7d64a92176e2d0d8c68 | 046e988ae96a4835006fbd9bb73722ea72a140e0 | refs/heads/master | 2020-04-08T23:18:27.346638 | 2018-11-30T12:21:41 | 2018-11-30T12:21:41 | 159,819,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | #! /usr/bin/env python
import sys
import copy
import rospy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
class moveit_test_poses:
def __init__(self):
print "============ Starting tutorial setup"
moveit_commander.roscpp_initialize(sys.argv)
rospy.init_node('move_group_python_... | [
"nicolas.clerc@mastertp"
] | nicolas.clerc@mastertp |
8707a2bc4c18101741a955a56180dd8d5f1ceff7 | ff4303ec5d9225a62cc9de443b715c5c35a338b7 | /test_graph.py | eddf6d90ff6f4f4f94b6d3eddcd339eff2d0a006 | [] | no_license | joy-rosie/graphs | 6388ea00f2c448b131958411285f4510c047a325 | b53d88d0c6760fabf9ce031d0d961b3909feecd3 | refs/heads/master | 2021-04-04T09:01:25.378350 | 2019-02-03T20:17:34 | 2019-02-03T20:17:34 | 124,458,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,269 | py | import pytest
import pandas as pd
import networkx as nx
from collections import Counter
import random
from graph import Graph
from graph import make_vertex_index
def compare_lists_unordered(list_1, list_2):
return Counter(list_1) == Counter(list_2)
def test_Graph_init():
g = Graph()
assert isinstance(g... | [
"joytolia@hotmail.com"
] | joytolia@hotmail.com |
877afbe257e06204a8fad377923760aa5917c5a5 | c2682a631544bc018ff774ae42c5ae3a815bc9a2 | /.READMEgen/config.py | 1ae40546ea1bf240de3d5f3a5a7bfd7ac438b192 | [
"MIT"
] | permissive | Sergiogd112/fibinalllang | 525aa31cad539819a4adfeb46640c8b2a0dea324 | 668888ac8bd80aca124370fcfd6961899461a8b2 | refs/heads/main | 2023-01-28T18:12:39.683035 | 2020-12-06T19:30:03 | 2020-12-06T19:30:03 | 317,511,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | langs= {
"Bash":".h",
"C":".c",
"CPP":'.cpp',
"Haskell":'.hs',
"Java":'.java',
"Lua":'.lua',
"PHP":'.php',
"Python":'.py',
"SQL":'.sql',
"Scala":'.scala',
"TypeScript":'.ts'
} | [
"sergio.gomezdamas@gmail.com"
] | sergio.gomezdamas@gmail.com |
f8e98d43bd0ceb02fb4e9e1a5eebc9f2f5743732 | 1fc585edeee80eab81f90e9db61b6f6c4df92f3f | /app/main/routes.py | d8f81e1c297462b17654d0fa81a220a5314581f6 | [] | no_license | tfragner/flask-base-template | 2e5a078d69d52caf507551c79d825cf344f09ee2 | d9bac61a8d689454c08a515db8353882798c20af | refs/heads/master | 2020-03-18T04:49:55.098979 | 2018-05-21T21:30:30 | 2018-05-21T21:30:30 | 134,308,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | from flask import render_template
from app.main import bp
@bp.route('/', methods=['GET'])
@bp.route('/index', methods=['GET'])
def index():
return render_template('index.html', title='Home')
| [
"fragner@bitter.at"
] | fragner@bitter.at |
22e42f70df2fc5e9f9b83ab0aa2aca087c39c208 | 08f6eca312f7a252d4a517bbf582a5a461adc1fd | /sandbox.py | 929838f832ec88915d1d67fddc5bbd10f31a62ae | [] | no_license | totalhax/01_Assessment | 80381d9685856ef60fdc5d2acd5dec87f61f1ba0 | e63779209150ccc745d89ee37aaface0aa37d85f | refs/heads/master | 2022-11-23T20:33:22.112656 | 2020-08-03T22:55:08 | 2020-08-03T22:55:08 | 275,046,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,938 | py | import random
#https://gist.github.com/cwil323/9b1bfd25523f75d361879adfed550be2
def display_intro():
title = "** A Simple Math Quiz **"
print("*" * len(title))
print(title)
print("*" * len(title))
def display_menu():
menu_list = ["1. Addition", "2. Subtraction", "3. Multiplication", "4. Integer D... | [
"48073558+totalhax@users.noreply.github.com"
] | 48073558+totalhax@users.noreply.github.com |
8b9590d0cf08be59f1a87430462a08eeb9637b28 | f9c98f9c127fa1cd9fba17abe17199fb5440b36b | /timber_modisette/Python/assn2/assn16.py | 28dd681c2ccf78458e5ef28ad2ee4a4eb0242aeb | [] | no_license | RibRibble/python_april_2017 | 162e543f97afc77d44fcc858106e4730d3f7f760 | 3cc4240d371a8bad8da2ea085e3675272cca2de3 | refs/heads/master | 2021-01-19T01:12:34.667828 | 2017-04-27T22:11:53 | 2017-04-27T22:11:53 | 87,233,010 | 1 | 0 | null | 2017-04-04T20:41:44 | 2017-04-04T20:41:44 | null | UTF-8 | Python | false | false | 450 | py | import random
def scores_grades():
arr = []
for i in range(0,10):
arr.append(random.randint(60,100))
print arr
for x in arr:
if x >= 90:
print "score: ", x,"; your grade is an a"
if x >= 80 and x <=89:
print "score: ", x,"; your grade is a b"
if x >= 70 and x <=79:
print "score: ", x,"; your grad... | [
"mister.modistette@gmail.com"
] | mister.modistette@gmail.com |
5b19855578f5d80893bb70ce0fb3811426b5ca2b | 8526a11efc8f1d2309033011e9af52049986bf1f | /angular_dockerfile/generate_angular_dockerfile.py | 7a7250e61519ce8731c10e3c31f3b4b5b4066b60 | [] | no_license | Bakushin10/generate-dockerfile | 3ff4ba872d0ab463f14b7d778c054bb893e14703 | d932331527a25c9a527e15329c9d18ffff63fd6b | refs/heads/main | 2023-03-31T17:22:25.918207 | 2021-03-24T08:14:12 | 2021-03-24T08:14:12 | 350,233,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | from dockerfile_generator_interface import dockerfileGeneratorInterface
from pprint import pprint
from enums import Enum
from PyInquirer import style_from_dict, Token, prompt
from PyInquirer import Validator, ValidationError
class GenerateDockerfileForAngular(dockerfileGeneratorInterface):
def __init__(self):
... | [
"shnnagai@gmail.com"
] | shnnagai@gmail.com |
8d308b9401cdf283c21abdfbdab98e91a9e7065d | 254e896d3aeaf490faff80c0c3c57762f8bea604 | /二叉树/dfs.py | 04ed467d94640595776543c7073b1268cfbb4ffd | [] | no_license | susebing/HJ108 | 5bca1b4c4b8d7924d97a35ac5debc483536a52ef | 5a67ad7033aabc5c3c42f4083fe2f8d6043c55ea | refs/heads/main | 2023-03-28T09:29:42.828109 | 2021-03-21T14:04:44 | 2021-03-21T14:04:44 | 347,621,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | # coding=utf-8
"""
题目描述
分别按照二叉树先序,中序和后序打印所有的节点。
示例1
输入
复制
{1,2,3}
返回值
复制
[[1,2,3],[2,1,3],[2,3,1]]
"""
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def __init__(self):
self.res = [[], [], []]
def threeOrders(self... | [
"gccbug@163.com"
] | gccbug@163.com |
ed59a0e8a294bf154e1fa4bbdbf961fbce080f37 | 5571d9185168120b8c46c79459503d3ec3c42864 | /pydapple/setup.py | 4442455e8157b4f56a26e1d4f923dd9676751939 | [] | no_license | nicksavers/dapple | 9b6a4b8a67beedebd165d984bfb6ea63aba8e542 | 21453c959cd539ab103a7a02d3c0b9ec09968f15 | refs/heads/master | 2022-02-18T07:18:13.542368 | 2016-09-02T13:12:42 | 2016-09-02T13:12:42 | 67,618,414 | 4 | 0 | null | 2016-09-07T15:13:28 | 2016-09-07T15:13:27 | null | UTF-8 | Python | false | false | 1,791 | py | """pydapple is tool for building and managing complex contract
systems on Ethereum (and Ethereum-based) blockchains.
https://github.com/NexusDevelopment/dapple/tree/master/pydapple
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
from dapple import __version__
here = path.a... | [
"ryepdx@gmail.com"
] | ryepdx@gmail.com |
050d02ac178b5b388ae5b1d938b649590c0ca6a9 | 923283cf9bc1e30ee3c5ee65baca8df2be50daac | /Backend/migrations/0008_auto_20200403_0223.py | 48b08c95c15106f16ee8a96ba5530fa072d165e9 | [] | no_license | kams77/Kemboschools | 0762489e8f69b25df5d6df5522f73f4a9d95026f | d9d4385114a8a8fac6be1fac4bc6e9ea734ec205 | refs/heads/master | 2022-09-01T07:09:14.218129 | 2020-05-21T16:20:47 | 2020-05-21T16:20:47 | 258,073,737 | 0 | 0 | null | 2020-04-23T02:29:39 | 2020-04-23T02:29:38 | null | UTF-8 | Python | false | false | 832 | py | # Generated by Django 3.0.3 on 2020-04-03 01:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Backend', '0007_auto_20200402_1727'),
]
operations = [
migrations.AddField(
model_name='relatio... | [
"kandealex007@gmail.com"
] | kandealex007@gmail.com |
96cfb7afec9fb2ac27b212b6bb92e86181794578 | af4dd48483b292ea9a49e0f671945d11e7eacc49 | /modelapp/sample.py | efb81524986203a2a38906043ee80cb3ee723e16 | [] | no_license | Ishwar786Ambare/model_pro | 1bb8a1019b28c4eab82aa41a557cd462eb076e05 | 8700e1d947cce52ceabdc4b49c0f8516119e7e55 | refs/heads/master | 2022-11-11T23:29:45.243792 | 2020-06-30T05:38:06 | 2020-06-30T05:38:06 | 274,403,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | import _csv
import _sqlite3
writer = _csv.writer(open("out.csv", 'w'))
writer.writerow(['name', 'address', 'phone', 'etc'])
writer.writerow(['bob', '2 main st', '703', 'yada'])
writer.writerow(['mary', '3 main st', '704', 'yada'])
| [
"ishwarambare@gmail.com"
] | ishwarambare@gmail.com |
5d7b553d8930d9cca8b7c81a61c81612662bdc3c | ea52ecee2fbdac38aa03b7e8bafea0aebe0473da | /light_sabers.py | bd81a61bfc32c6844cfec58328bba06596dce814 | [] | no_license | cooklee/obiektowka | 56e7aa27b4aacff6017731419d6ec90a52d17d74 | 6fa7283bb3e2868205e3eea17257611d4a4f528d | refs/heads/master | 2023-02-21T21:05:01.858270 | 2021-01-27T09:08:35 | 2021-01-27T09:08:35 | 332,677,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class LightSabres:
types = {'blue':'light', 'green':'light', 'red':'dark'}
power = 20
def __init__(self, color):
if color in LightSabres.types:
self._color = color
a = LightSabres('red')
b = LightSabres('green')
c = LightSabres('blue')
for item in dir(a):
print(item)
print(a.type... | [
"sbbogus@gmail.com"
] | sbbogus@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.