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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24e05aac27a7eee6799ab5ec26fcb11af42151c3 | 147389cf28e0c92f0b2ef8000b0562a71d766880 | /pp.py | 764a1b7b187b101da8e094613efc9e68f4b889cc | [] | no_license | dohyekim/hello | 3821ca97079818c9938df33fc6d8d6ea9ca763a5 | 84f5704fe6cb6e5b63fb7903e311b650d65a394a | refs/heads/master | 2022-02-25T11:12:31.077335 | 2019-09-22T06:23:00 | 2019-09-22T06:23:00 | 156,352,382 | 1 | 0 | null | 2022-02-12T11:48:53 | 2018-11-06T08:39:18 | JavaScript | UTF-8 | Python | false | false | 707 | py | import requests
from bs4 import BeautifulSoup
import json
url = "https://www.melon.com/chart/index.htm"
headers = {
'Referer': 'https://www.melon.com/',
'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
}
html = requests.get(url,... | [
"dhleen5@hanmail.net"
] | dhleen5@hanmail.net |
411b685eee4c1a0073044de1835cf6c13078974d | efd3c596a878f3ec499e3fb35949c6d8926a4ca3 | /DataProcess/tf2_thread.py | 9488248a0864e5f47550cfe678d7e0da1386655c | [] | no_license | taoshiqian/ImageProcessTensorflow | b85b047f8b3556a86bea9ba258e7acad881b9bfc | 319b48bf50a55429d06b26f9056f6c53a6ef79ae | refs/heads/master | 2020-03-19T02:59:00.289334 | 2018-06-26T13:54:23 | 2018-06-26T13:54:23 | 135,682,424 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | import tensorflow as tf
import numpy as np
import threading
import time
# 每隔一秒打印自己的ID
def MyLoop(coord, worker_id):
# 不需要停止
while not coord.should_stop():
# 随机停止所有线程
if np.random.rand() < 0.1:
print("Stoping from id: %d"%worker_id)
# 通知其他线程停止。其他人的should_stop会变成True
... | [
"17210240200@fudan.edu.cn"
] | 17210240200@fudan.edu.cn |
9803489d673fad8d596b11ce793086bb11ba7af1 | 4ae5d091e35fad9acea8d5b4044639a72da4b6ab | /src/irobotframework/magic/robot.py | 440ac6611410b6bff29cfe1437ae7f356d2559af | [
"BSD-3-Clause"
] | permissive | nrbgt/irobotframework | 941d76326e2cd71ee77aef23f3a8e48f0483e649 | 865311e0f89e2418e253f60cd7ae50990d4d6e6a | refs/heads/master | 2020-04-30T17:10:32.593605 | 2019-01-15T14:50:53 | 2019-01-15T14:50:53 | 176,971,493 | 0 | 0 | null | 2019-03-21T15:17:52 | 2019-03-21T15:17:51 | null | UTF-8 | Python | false | false | 2,821 | py | # Copyright (c) 2018 Georgia Tech Research Corporation
# Distributed under the terms of the BSD-3-Clause License
import re
from typing import Text, Callable
from tornado.concurrent import Future
from IPython import get_ipython
from ipykernel.ipkernel import IPythonKernel
from ..irobot import StringTidy
from .. impo... | [
"todd.shayler@gtri.gatech.edu"
] | todd.shayler@gtri.gatech.edu |
a612fd5ab164d6e0f144cbdf6d58cb2e12dbcb58 | c56221bfadb1536b707da284ffd56a00539c3384 | /python_notes/day11/test2.py | 0797a45403cc76a914803dd18fa1da6e9b6f276a | [] | no_license | sunsharing-note/python | 4f33fb657075780cd8f780eebeb0e197c386beee | f18ddad3e7555386045284ac98183efe4a2a82d3 | refs/heads/master | 2020-06-09T09:26:35.185019 | 2019-06-24T01:57:02 | 2019-06-24T01:57:02 | 144,146,370 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #! /usr/bin/env python
# -*- encoding: utf-8 -*-
# here put the import lib
def f(): # f()这里是生成器对象
print("test1")
yield 1
print("test2")
yield 2
g = f()
#next(g)
#next(g)
for i in g: # for循环会去调用next
print(i) # 1,2为返回值
| [
"hua.zhou@bqrzzl.com"
] | hua.zhou@bqrzzl.com |
bf5657467f3bc562c237bba7906c9b1146e9b92a | 18d7876af265ec974aa5ecf9142093d845b59020 | /module/Favourite.py | d373b337f2caccf5bd99c89382bc95c872888048 | [] | no_license | xiaojieluo/savemylink | b6b2b806b8a760369860e2ec83fd85dece9bfd9d | 7eb64a4742516486bebe8498374b94552c682cfe | refs/heads/master | 2021-06-13T16:49:13.795891 | 2017-03-23T03:48:39 | 2017-03-23T03:48:39 | 77,986,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | #!/usr/bin/env python
# coding=utf-8
from module.DB import db
from module.define import *
class Favourite(object):
db = db
link_list = []
value_dict = dict()
favourite_public = FAVOURITE_PUBLIC
favourite_count = FAVOURITE_COUNT
def __init__(self, fid = 0):
if not isinstance(fid, in... | [
"xiaojieluoff@gmail.com"
] | xiaojieluoff@gmail.com |
11e1b75a57e9bc7732942119e5dbf9bfc029fa0b | f62fd455e593a7ad203a5c268e23129473d968b6 | /senlin-3.0.1/senlin/tests/unit/engine/actions/test_action_base.py | 058e15a75749ccf0a3430225113222d3bedc14a0 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 35,544 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
d999c73ccdbfd6c1659a34e31175408be91b1250 | b2a2a2f7e19fc8e9c6f5d2dedb0b4b10d7c813ae | /backend/api/migrations/0022_barmeta_first_calll.py | 557b7fe99b2acf7c5983a53c569529ffb89f9489 | [] | no_license | glenstarchman/bar-rate | d7a6e6660bd3fafe7777d435d33334e2be4d0480 | 575e5f695650487a679ede04af6f62d464c53c18 | refs/heads/master | 2022-02-27T01:31:17.879000 | 2019-09-26T14:43:05 | 2019-09-26T14:43:05 | 191,376,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-06-02 14:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0021_barmeta_wifi'),
]
operations = [
migrations.AddField(
... | [
"glen@starchman.com"
] | glen@starchman.com |
2af528c484536afbc1490119fcb2b8ed301d4ea5 | 1189fc1021cec3f5520c67b884ada83112434ec8 | /stars.py | e39ca40a7abea43f33319e217cc7c825f005e525 | [] | no_license | MrMil/code-or-die | ac7991040900d8837b38d950643863f1e8956a52 | cc3ecc2f1e782176268669e2b65000a1e03a6e31 | refs/heads/master | 2020-03-22T01:20:20.117611 | 2018-06-30T22:05:12 | 2018-06-30T22:05:12 | 139,298,978 | 0 | 0 | null | 2018-07-01T04:00:56 | 2018-07-01T04:00:56 | null | UTF-8 | Python | false | false | 7,396 | py | import random
NAMED_STARS = [
"Acamar",
"Achernar",
"Achird",
"Acrab",
"Acrux",
"Acubens",
"Adhafera",
"Adhara",
"Adhil",
"Ain",
"Ainalrami",
"Aladfar",
"Alamak",
"Alathfar",
"Albaldah",
"Albali",
"Albireo",
"Alchiba",
"Alcor",
"Alcyone",
... | [
"tsvikas@gmail.com"
] | tsvikas@gmail.com |
fbb0f7310f7f72ed4f42979e7bdb21f2a6601ca5 | 1c99c687c696d780b3817f480129ebaa1fba109a | /codegate2017/pngparser/urllib2.py | 719e419cc28cff25cd16e85ce74590f06be5dcbb | [] | no_license | cExplr/ctf | 6be804d36922b08949154cfeba405c2aee0cb4e5 | 79f6485e6f1383fb382cd1a1453c2d25b0b5c518 | refs/heads/master | 2020-05-07T19:33:09.667499 | 2017-08-24T12:47:07 | 2017-08-24T12:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105,026 | py | """An extensible library for opening URLs using a variety of protocols
The simplest way to use this module is to call the urlopen function,
which accepts a string containing a URL or a Request object (described
below). It opens the URL and returns the results as file-like
object; the returned object has some extra me... | [
"kanghee4924@gmail.com"
] | kanghee4924@gmail.com |
d92ae14ec4a5f7f378a2afd59049a7861ff896ad | cf58c2c216f6c76c71b5a04f72d79fb1d58e4b64 | /tests/components/modbus/test_init.py | 90fc0c086e8b3925d523bda0e1e2adfab5a83adb | [
"Apache-2.0"
] | permissive | whtsky/home-assistant | c301a7a0c2f8e94806d411b705c8f7b5939355d2 | 2ea5811e3a34e228908802e18c29af1c2fc249c5 | refs/heads/dev | 2023-08-19T07:37:29.365289 | 2023-02-17T22:21:28 | 2023-02-17T22:21:28 | 204,410,639 | 1 | 0 | Apache-2.0 | 2023-02-22T06:14:25 | 2019-08-26T06:30:12 | Python | UTF-8 | Python | false | false | 27,086 | py | """The tests for the Modbus init.
This file is responsible for testing:
- pymodbus API
- Functionality of class ModbusHub
- Coverage 100%:
__init__.py
const.py
modbus.py
validators.py
baseplatform.py (only BasePlatform)
It uses binary_sensors/sensors to do black box testing of the read calls.
"""
... | [
"noreply@github.com"
] | whtsky.noreply@github.com |
88af1e1775d6df77735796278e0cad9c7dbd9207 | 00af09f4ac6f98203910d86c3791c152184ace9a | /Lib/tkinter/test/test_tkinter/test_geometry_managers.py | 83e658877ea3b79863275502589704f07f9cc287 | [] | no_license | orf53975/CarnosOS | 621d641df02d742a2452fde2f28a28c74b32695a | d06849064e4e9f30ef901ad8cf90960e1bec0805 | refs/heads/master | 2023-03-24T08:06:48.274566 | 2017-01-05T16:41:01 | 2017-01-05T16:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122,987 | py | <<<<<<< HEAD
<<<<<<< HEAD
import unittest
import re
import tkinter
from tkinter import TclError
from test.support import requires
from tkinter.test.support import pixels_conv, tcl_version, requires_tcl
from tkinter.test.widget_tests import AbstractWidgetTest
requires('gui')
class PackTest(AbstractWidgetTest, unitte... | [
"Weldon@athletech.org"
] | Weldon@athletech.org |
f2a5f0eef81cd1b136457da1ba1ca887736186c2 | 5cc5cc2acade85f9fefb61f0b007cc29f395e54e | /orders/admin.py | 7b8732b614131d84d592099ae307c1f995418f5c | [] | no_license | laimaurnezaite/Pinocchios | 20066e160ce684dd77de72de73a04333dda6a264 | ddbe5e586dc3c66158ab2c9b5e4a2dee83f0332e | refs/heads/master | 2022-07-19T05:25:44.324527 | 2020-05-12T12:28:01 | 2020-05-12T12:28:01 | 262,084,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.contrib import admin
from .models import Order#, #ShoppingCart#, OrderItems
# Register your models here.
admin.site.register(Order)
# admin.site.register(ShoppingCart)
# admin.site.register(OrderItems) | [
"laima.urnezaite@gmail.com"
] | laima.urnezaite@gmail.com |
59bebd47be55198c6ec48813b99966195120cdd5 | 3b3b9bbc39c50a270e96b4394024f1753e35aaec | /ncbly/spiders/spider.py | 30b8ffc51883646ef9f6e34a1fd77a8c78d021b7 | [] | no_license | hristo-grudev/ncbly | f94e2fdc8d556fba416d556cac5649b7f492c7c5 | 6b33ceb9b287ed0047f4676b3c036dc0b7c8e08a | refs/heads/main | 2023-04-11T02:09:07.152764 | 2021-04-15T06:30:42 | 2021-04-15T06:30:42 | 358,152,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import scrapy
from scrapy import FormRequest
from scrapy.loader import ItemLoader
from ..items import NcblyItem
from itemloaders.processors import TakeFirst
class NcblySpider(scrapy.Spider):
name = 'ncbly'
start_urls = ['https://www.ncb.ly/en/media-center/news/']
def parse(self, response):
post_links = respon... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
91eb9c99063fcaf5b821ef933527ce9a156928d1 | a37e93d23ea659bafaac8034dc7aeed65bc5eb38 | /shopee_api_client/controllers/controllers.py | 86c536dcab4725f74333bed6a851742075677bc7 | [] | no_license | kit9/sct-ecommerce | 71831541264809715b31d802d260474975d04536 | 6c440a514eac8101474b6720e409a81c58bd3b7c | refs/heads/master | 2022-10-03T23:35:31.563670 | 2020-06-09T12:35:06 | 2020-06-09T12:35:06 | 271,020,689 | 0 | 4 | null | 2020-06-09T14:10:49 | 2020-06-09T14:10:48 | null | UTF-8 | Python | false | false | 1,672 | py | # -*- coding: utf-8 -*-
from odoo import http
class ShopeeApiClient(http.Controller):
@http.route('/shopee_client/shop/<model("shopee_client.shop"):shop>/auth', methods=['POST'], auth='public',csrf=False)
def auth_push(self,shop, **kw):
if shop.sudo().write(kw):
return http.Response(status=... | [
"thanhquenguyenbkhn@gmail.com"
] | thanhquenguyenbkhn@gmail.com |
acc977511fd11f710814e06c27a13c3a5393a7ad | 7c7df2ba89a4bd42ca4b1bbc3de8f05818521ac3 | /Python Solutions/Day 1/day1_part1.py | 7e22bbfa449346c0fcbb670e889d43adbef9d0be | [] | no_license | Jorgee97/AdventOfCode2019 | aa550c5097ef4d5d9ad1c83a91c1e3067285c19a | 2a9e61da7c9fcabe110f44cbd00682770383e32f | refs/heads/master | 2020-09-24T03:38:09.995967 | 2019-12-14T05:03:16 | 2019-12-14T05:03:16 | 225,652,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | ##############################################################
########## The Tyranny of the Rocket Equation ###############
########## https://adventofcode.com/2019/day/1 ###############
########## by Jorge Gomez ###############
##############################################################
from h... | [
"ingjorgegomez@outlook.com"
] | ingjorgegomez@outlook.com |
09638a0316277ba90691152d2ee5fcaa722b2305 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-955.py | a413f3a44075f48e40c63ede11ed563101fe0e36 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,351 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
dc5410da4cfff303d0f5fbc6d93fce02dc7cad1f | 79ed3f72555aad8548634f523f775f34cfe166e7 | /catch/datasets/guaroa.py | 5acd22fecfb7fdabe5e8b72c0eb5fa30d32a8df1 | [
"MIT"
] | permissive | John-Bioinfo/catch | a2ab188ed598767e7759f74227f24af2b284b379 | fe63b86bc41396c1da0b449ac440c6ae9e52b2c5 | refs/heads/master | 2020-03-18T09:29:10.315733 | 2018-04-17T18:36:47 | 2018-04-17T18:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | """Dataset with 'Guaroa orthobunyavirus' sequences.
A dataset with 25 'Guaroa orthobunyavirus' sequences. The virus is
segmented and has 3 segments. Based on their strain and/or isolate,
these sequences were able to be grouped into 16 genomes. Many genomes
may have fewer than 3 segments.
THIS PYTHON FILE WAS GENERATE... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
4d8d3e5cf6f2e677b3dacfdf239f1811304ba498 | 58cc35c25e45366aaa0e3887cea1bd85fc0f14c4 | /api/serializers/testing/test_runner.py | 484b809bffd69e296bb2d45065acee4e33651aba | [] | no_license | renanrv/test-executor | 7ea7f0ca0a9179f9380a02fb684f19fc4308b479 | 1ce7aa1b4131be6c3a8bc3cf5a9598cd8b533059 | refs/heads/master | 2021-05-07T15:06:54.188254 | 2017-11-14T00:00:41 | 2017-11-14T00:00:41 | 109,977,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # -*- coding: utf-8 -*-
from rest_framework import serializers
class TestRunnerSerializer(serializers.Serializer):
code = serializers.IntegerField()
name = serializers.CharField()
| [
"renan.vasconcelos@orama.com.br"
] | renan.vasconcelos@orama.com.br |
85b9431aa68b75cba86e309e1c3a60671ac62aca | 5f1652c95ce91a0e05f64c8d0703b9d18fc45097 | /homework_tests/asgi.py | c5872c3561965cbe4eb49833ac86c56d478364f9 | [] | no_license | YuriiShp/api_homework | 84f12843d4e96f7a9b12c4e79227139aae29fac4 | 6ea75e0a4974b2d5ca4bee03c1fd71634113433f | refs/heads/main | 2023-01-07T13:15:12.456417 | 2020-11-11T21:34:10 | 2020-11-11T21:34:10 | 312,095,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for homework_tests project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"yuralrock@gmail.com"
] | yuralrock@gmail.com |
a7c7a2d522606326d339fa6b7f6be1af992eb35d | 9ec7c121d3a95505d895ca3201ccb28232a2f436 | /structural_design_patterns/adapter.py | 586bda53e48b168e3e82b4adfda8b3b84fcc7730 | [] | no_license | RyukerLiu/design-pattern | 531f7860de39250eda5a29868b1b73db911b1c8b | 3107693e252957a72487ee01e38e4e69c1e144e8 | refs/heads/main | 2023-08-26T06:00:28.514167 | 2021-11-01T13:56:56 | 2021-11-01T13:56:56 | 383,742,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | import math
class RoundPeg:
def __init__(self, radius):
self.radius = radius
def get_radius(self):
return self.radius
class RoundHole:
def __init__(self, radius):
self.radius = radius
def fits(self, peg: RoundPeg):
return self.radius >= peg.get_radius()
class Squa... | [
"alex03108861@gmail.com"
] | alex03108861@gmail.com |
7a906032b07ddd8c57c95c5688999c4c40c6cdfd | 8973bc75cd166031df2906df5cb51c9d40d266d3 | /urls.py | 8d4f4452df67860548d021f319225d973277efee | [] | no_license | anujborah1/q | 53dcbbba6c54afb95451e64db4e22a560ad04d1e | ba21db8801efbd4aa27161bca5e48a3e4de68f31 | refs/heads/master | 2021-01-22T21:45:35.844543 | 2017-03-19T12:22:29 | 2017-03-19T12:22:29 | 85,472,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.conf.urls import include, url
from views import *
urlpatterns = [
url(r'^$',q, name='home'),
}
| [
"noreply@github.com"
] | anujborah1.noreply@github.com |
df455aaf0a36ceec480f5763e6838ea3caf2d09f | 1ab93f52d64e3f8c925f1f3d7495c90860ff04d6 | /users/migrations/0010_auto_20200810_2116.py | 89ba5f8fe8997e1008673d04ba18973bd1764f3d | [] | no_license | briankangmh/new | 4a823d44d0c54ff24bec86720b4b724ed27b30df | 8c1a868d17290cb6cca1161a0833b2207f7c696c | refs/heads/master | 2023-07-01T04:23:16.183674 | 2021-02-14T16:01:30 | 2021-02-14T16:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Generated by Django 2.2.10 on 2020-08-10 15:46
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0009_auto_20200610_1922'),
]
operations = [
migrations.AlterField(
model_name='userprofile... | [
"navneetnivu07@gmail.com"
] | navneetnivu07@gmail.com |
c4609b4e73003cd4ff46d873f10ebd2f3055589c | 009f3c640ab7b8e5eb1b7fc901ba9caeef67bf38 | /Loan Management/Loan/Management/views.py | 9ad5c6771f27eeaa80b9097150a303d97a35718d | [] | no_license | hussain-mohammed/Tasks | aec82198be0785f97f722093bae01968601b4719 | 3557465f6a5ad63f054b5a3ca875b226603edfc4 | refs/heads/master | 2022-09-09T23:06:08.332789 | 2020-01-11T05:18:36 | 2020-01-11T05:18:36 | 214,174,666 | 1 | 0 | null | 2022-08-30T11:00:48 | 2019-10-10T12:17:00 | Python | UTF-8 | Python | false | false | 4,928 | py | from django.contrib import auth
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from .serializer import UserSerializer, ProfileSerializer, DisplaySerializer, LoanDetailSerializer, StatusSerializer, \
Fo... | [
"mohammed.hussain@fissionlabs.com"
] | mohammed.hussain@fissionlabs.com |
c32c95339c291c9e95d3a9a68086eadfbc24dc88 | 56d62ed2e8815b676743350e68f78902d5751dc0 | /helper-scripts/convert-log-to-json.py | 8441597c1042ccf242ce5eefee0256f3e32a5cc7 | [
"MIT"
] | permissive | ddsky/keras-machine-learning-framework | e6636dc9a9b806c49647bf317bceed670b0807f8 | 049ee78984f2f61165ff67506b0ced74b2928be9 | refs/heads/master | 2021-01-03T07:54:30.609349 | 2020-02-12T08:26:15 | 2020-02-12T08:26:15 | 239,989,480 | 1 | 0 | MIT | 2020-02-12T10:50:10 | 2020-02-12T10:50:10 | null | UTF-8 | Python | false | false | 16,925 | py | # Example:
#
# user$ python helper-scripts/convert-log-to-json.py processed/experiments/best_optimizer/inceptionv3/food-50-80-20-rmsprop-0.01-0.5-7-0.0-0.0
#
import re
import pprint
import json
import os
import sys
pp = pprint.PrettyPrinter(indent=4)
class ConverterLogJson:
path_root = 'F:/data'
... | [
"bjoern@hempel.li"
] | bjoern@hempel.li |
816966b273d6b069ce21943c3cc82b528a7647a7 | a3edc11b218d138854543a91b1fcc656adb86889 | /app/CrawlerMonitor/Monitor/Log_Info/error_output.py | 1a1fa78e94ed458e6e8e2e571be240a883c27dfd | [] | no_license | weileanjs/option_web | c506f7ff7ab2bdc660b830513597598caf33094d | 68dc1d280d39757e02eba9c80bb64e5158212c81 | refs/heads/master | 2020-04-08T22:09:16.909227 | 2018-11-30T05:46:42 | 2018-11-30T05:46:42 | 159,774,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # coding=utf-8
import logging
from ..config import LOG_NAME
logger = logging.getLogger(__name__)
logger.setLevel(level = logging.INFO)
# rq = time.strftime('%Y%m%d', time.localtime(time.time()))
handler = logging.FileHandler("{}.log".format(LOG_NAME))
handler.setLevel(logging.INFO)
formatter = logging.Formatt... | [
"24689003@qq.com"
] | 24689003@qq.com |
aee081f84f4cfd1ec700a2dcd6667125a7860bca | 3f6ff3fb43903c06ed8f4d6ea45fcf2e0e6dd406 | /glo/BlackPearl/stationbase/vision/Detection.py | 0a839cdf4fc224b439f405280453d52edfe3e8dc | [] | no_license | jmprovencher/Treasure-Picker-Robot | 83a84d094e4612df8b38c0bb82f0240b98c74fe5 | f0a4fe7e3f4cc7b652566230bea830a4ab04a4c9 | refs/heads/master | 2020-12-11T03:54:00.090223 | 2016-04-18T02:53:01 | 2016-04-18T02:53:01 | 49,666,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import cv2
class Detection:
def __init__(self, image, numeroTable):
self.imageCamera = image
self.numeroTable = numeroTable
def trouverCentre(self, contourForme):
MatriceCentreMasse = cv2.moments(contourForme)
centre_x = int(round(MatriceCentreMasse['m10'] / MatriceCentreMasse... | [
"sebastien.garvin@gmail.com"
] | sebastien.garvin@gmail.com |
2c24f5a6b8e96190564084f530d4657416c379e8 | c96c71714fbffeb937a1c2054fc0d87d1f64759e | /4user_input2.py | 25504fae4493fa451f7038e56d735c61c8c2e2d0 | [] | no_license | ashikkhulal/Python-references | 0d6f6d1952a3f9793e8f6fb2927cf13d3527b90b | eef0e1c7cfb436a5d5120f843313db72207afd0a | refs/heads/main | 2023-05-06T03:16:52.134715 | 2021-06-04T12:03:00 | 2021-06-04T12:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #another user input example
convert_to_units = 24
name_of_unit = "hours"
def days_to_units(num_of_days):
return f"{num_of_days} days are {num_of_days * convert_to_units} {name_of_unit}"
my_var = days_to_units(20)
print(my_var) | [
"askhulal@gmail.com"
] | askhulal@gmail.com |
5970ad2abd6066e8c1306089a4496fdc713f1347 | e6548bd30f1e446869d662aa5d4f4e51f3562336 | /player/modifier_env.py | 47014ccfd8a66deda98c5c24e9c8ea88c56c7238 | [
"MIT"
] | permissive | Saevon/webdnd | acfb39fd36ca740b5d16fccb1c0ba9c374dfb37b | 4dd5d30ae105ede51bbd92bf5281a6965b7d55f4 | refs/heads/master | 2020-05-17T09:08:51.995778 | 2015-05-23T00:02:46 | 2015-05-23T00:02:46 | 1,882,009 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py |
# Isolates the user's code
MODIFIERS_ENV = '''
def mod(character):
# Allowed imports that the user will has access to
from collections import defaultdict
if (%(cond)s):
%(mod)s
'''
# TODO indent multiline codes
def modifier(modifier, default):
mod = None
try:
code = MODIFIERS_ENV % {
... | [
"blastowind@gmail.com"
] | blastowind@gmail.com |
f2af5535627397e48d5f726ea1decea49c6eb2ec | c82bbdd616d043a74812c136a4c6c927b5d1beaf | /Système_random.py | 5d37a4df0522dab59653d3355640285c5b1348c5 | [] | no_license | CyrilRPG/Test-discord.py | 5e0dee9b14213b2c6cd89c890cd6b5ffc74fee22 | 7f9dbe87a4a4304265a973014cde8ced9bf36489 | refs/heads/master | 2020-04-10T19:30:34.340168 | 2018-12-11T19:32:21 | 2018-12-11T19:32:21 | 161,237,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | #-------Création d'un bot discord en python avec Cyril : Jeu aléatoire !
#--------------------------Importation des modules----------------
#------------------------------------------------------------
import discord
import random
#------------------------------------------------------------
nexus = discord.Cli... | [
"noreply@github.com"
] | CyrilRPG.noreply@github.com |
512b79677cc6d53107b828c9ee04c381c8a4f6b8 | 29ee344bc2b0958fb7e8ff5f71959e12d14f68dd | /binary_tree.py | 73b4211db50d49d9db4ca4845aed8defc9fc6c59 | [] | no_license | sukurcf/DSA_old | e58b643a0000e5aae16bf891950c87da78226e59 | 122b45b5149c85a12c59f68bab7771a2ff868d1e | refs/heads/master | 2023-03-30T00:15:54.964910 | 2021-04-03T12:17:21 | 2021-04-03T12:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | class BinarySearchTreeNode:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def add_child(self, data):
if data == self.data:
return
elif data < self.data:
if self.left:
self.left.add_child(data)
... | [
"sukurcf@gmail.com"
] | sukurcf@gmail.com |
2f2598ed6a79bbe55c47c66fb2f205c2993b2f35 | 7d114d06693e1501e4074d9eda9c054048f1d6e7 | /keras_sequential_model.py | 5072f8439afdc897d9e4099b040de5c1d058fae2 | [] | no_license | bipulshahi/codes | e39d6d219b5e006ed6e58f5d84ee3f8b25224ffd | 8ff2549655493f9ac52701d9d8097a43571d0a93 | refs/heads/master | 2023-06-23T09:07:06.649945 | 2023-06-10T07:08:18 | 2023-06-10T07:08:18 | 161,839,734 | 11 | 16 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | # -*- coding: utf-8 -*-
"""Keras Sequential Model.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1rOd-AeQVq0AIAyTdLO7ir58sXKClJzgA
"""
from keras import models
from keras.layers import Dense, Dropout
from keras.utils import to_categorical
from k... | [
"noreply@github.com"
] | bipulshahi.noreply@github.com |
8972d88b74539a835067f0bbb4c298a83f1c92d6 | 8b87bacd1a433807c07cfb39fb718d31bac5c416 | /MIT python course/Ass 3/hw3.py | cdff423ad7d5d16e4a3d835e19c89af1ff5e9ce2 | [] | no_license | rvcjavaboy/eitra | 643d9fd9377f878ff786c997e477e97a3d15bfc1 | cd8c7cd74361e4ca345a084f7b85f78b024e60af | refs/heads/master | 2021-01-16T19:57:18.101471 | 2017-11-13T19:55:25 | 2017-11-13T19:55:25 | 100,191,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | '''
Author: Ranjit Chavan
Date : 8 Aug 2017
'''
#--------------------------------------------- Exercise 3.1-----------------------------------------------------
def list_intersection(a,b):
c = []
for elem in a:
if elem in b:
c.append(elem)
return c
list_intersection([2, 3], [3... | [
"rvcinfo9600.com"
] | rvcinfo9600.com |
88401a331ee45c507049db8674c322ac25606c39 | 00f522bfc5b0a93da6018845ab79374815f3068d | /news/models.py | 1cec958aa9a32b21f767e9c3f8ed4b1158de4673 | [] | no_license | AbduXalim/news | 0dd4da68e86cda6adb886b0670e2e5d812ebcb42 | e41bccfdbf6c4c661f825a62b989b2cfa0e92ffd | refs/heads/main | 2023-08-31T20:54:09.739878 | 2021-10-24T18:24:33 | 2021-10-24T18:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django.db import models
class Post(models.Model):
title = models.CharField(max_length=150)
text = models.TextField()
def __str__(self):
return self.title | [
"khalim.5052@gmail.com"
] | khalim.5052@gmail.com |
9b91b53619610988e6d250b034efe7da5a146e21 | 1c3ca7f5aa4ec1541af2636fc8c6aac68e5f0308 | /etc/console.py | f80841af8bd9cdeeef842cda7de33b56b16fcb80 | [] | no_license | DanielWeitzenfeld/three-seven-six | 3fbdba14d31d5cbb58464395fea62fc9653ef169 | 88305a1f1be9e8c2e818da7f0a262274f7e5b1f5 | refs/heads/master | 2020-05-31T17:05:41.546526 | 2014-10-03T03:02:11 | 2014-10-03T03:02:11 | 24,245,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | import os
original_startup = os.environ.get('THREE_SEVEN_SIX_ORIGINAL_PYTHONSTARTUP')
if original_startup:
execfile(original_startup)
import warnings
warnings.filterwarnings('ignore')
import logging
from pprint import pprint
import pandas as pd
from datetime import datetime
import three_seven_six
from three_s... | [
"dweitzenfeld@gmail.com"
] | dweitzenfeld@gmail.com |
db72d759572f3a6e470c8b488b827d75f75fd8e7 | 6f01d400ccae559e00499c923a1842be6e2b7c91 | /game/game/middlewares.py | 1abfe9d14b75459fefe5cbb94a2119cac1ec4d14 | [] | no_license | panghupy/17173- | a17c47f1d409575a4644c5945116c92b5f07f47e | 1236f844e20613679c40fff705272ba995a0799e | refs/heads/master | 2020-03-25T10:12:56.833939 | 2018-08-06T06:50:58 | 2018-08-06T06:50:58 | 143,687,442 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class GameSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"15166396925@163.com"
] | 15166396925@163.com |
73ebae05c0e4ff482d88a84db54732c2b429ff32 | 87756be133c7d825883e96b6b7368a405872dd90 | /scripts/relate_thiessen_to_bioregions.py | 35cad29808c2cc4ae9db48f7a7b6ae42208101d9 | [
"BSD-3-Clause"
] | permissive | WuNL/locus | b51f028fc409e1a6a5538edc35838f41c1fd9830 | 0d85af2050fc00cfe0d92cea771480cee2c25702 | refs/heads/master | 2020-12-25T23:47:33.114235 | 2014-11-17T20:25:15 | 2014-11-17T20:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from django.core.management import setup_environ
import os
import sys
sys.path.append(os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'locus')))
import settings
setup_environ(settings)
from fbapp.models import ThiessenPolygon, GeneratedBioregion
for gb in GeneratedBioregion.objects.all():
... | [
"rhodges@ecotrust.org"
] | rhodges@ecotrust.org |
06a049cddec948aa575fb610476d3c0283618784 | a46d3b261147ed38af57b4905a2bf5aaca74616f | /server/serve_videodemo.py | 83ac50e51958c9688f5182af503893e7fa4a63b9 | [] | no_license | ResidentMario/cnn-cifar10 | 0e1cd9192492c86300faeb922389c2d07bc432ca | 32565392ffc34349f49b4886e714c1a52dd6099c | refs/heads/master | 2023-08-20T15:22:12.616090 | 2021-10-19T22:30:51 | 2021-10-19T22:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import torch
from torch import nn
import torchvision
import numpy as np
import base64
from PIL import Image
import io
from spell.serving import BasePredictor
# Inlining the model definition in the server code for simplicity. In a production setting, we
# recommend creating a model module and importing that instead.... | [
"demouser@Kevins-MacBook-Pro.local"
] | demouser@Kevins-MacBook-Pro.local |
f36723a15842f15e3d2ae8f3717c4311c4c80c77 | 1958fbff3c73d51642d383218db0765f865bb8a2 | /venv/bin/epylint | de3d6b68cbe56327a09f3e42992c5cb513471f04 | [] | no_license | amanzap2610/blog | b429f84ea752a86042c2f2b339d3a605c9c424ac | 4cd6a7a669275cb929783b9e8419470f875f96cd | refs/heads/master | 2022-06-13T06:21:42.442044 | 2020-05-08T06:38:15 | 2020-05-08T06:38:15 | 262,039,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/zapbuild/Desktop/dream_blog-master/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"amansaxena.zapbuild@gmail.com"
] | amansaxena.zapbuild@gmail.com | |
e183cd7b1b121ae5dfe37e403c15da9fee7f5a95 | 7ad167ae4be07c95081708d8b2434f8ce92a1345 | /Search/JumpSearch.py | 097d1271e1f18a1d5281bf0417fce938290d8e84 | [] | no_license | faiderfl/algorithms | 92b895c2a3910f2ff844c6181c58f4837034c22f | 638b2199975e80db846dbba044b30381185d8e7f | refs/heads/main | 2023-05-30T20:13:08.029047 | 2021-06-03T17:19:32 | 2021-06-03T17:19:32 | 354,863,354 | 0 | 0 | null | 2021-04-05T15:23:20 | 2021-04-05T14:33:21 | Python | UTF-8 | Python | false | false | 1,001 | py |
import math
def jumpSearch( arr , x , n ):
# Finding block size to be jumped
step = math.sqrt(n)
# Finding the block where element is
# present (if it is present)
prev = 0
while arr[int(min(step, n)-1)] < x:
prev = step
step += math.sqrt(n)
if prev >= n:
... | [
"faiderfl@outlook.com"
] | faiderfl@outlook.com |
bbb074712cc9a9c9e029fc23002222f68bbe6a4b | b9c2c910c5ad41bc50d06a96be192f9aabae8f2d | /test_recipes.py | 8119e0c9f29af8dd5b1ef8bb940cc19b68a5a50c | [] | no_license | ehtishammalik/flaskAPI | 916f24d2af631b9b263438915ad37370cf5d312c | 426582350edc88eea6c1c8d7fd5dfb8d7e960915 | refs/heads/master | 2020-03-19T06:53:58.332916 | 2018-06-07T04:37:06 | 2018-06-07T04:37:06 | 136,064,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | # test_bucketlist.py
import unittest
import os
import json
from app import create_app, db
class RecipesTestCase(unittest.TestCase):
"""This class represents the recipes test case"""
def setUp(self):
"""Define test variables and initialize app."""
self.app = create_app(config_name="testing")
... | [
"ehtisham2014@namal.edu.pk"
] | ehtisham2014@namal.edu.pk |
26c4e08d795fe5047e6277af93086c7796f3774d | f152d89efeebc5c00c54cf7819f539aec920aa2d | /reviewboard/webapi/decorators.py | 02674e04c176a61adb67121de06093f144b15995 | [
"MIT"
] | permissive | yang/reviewboard | c1c0cee37133004c2857ed6daac136697baa92dd | b893e0f28bc5d561124aaf09bc8b0e164f42c7d5 | refs/heads/master | 2021-01-18T11:04:37.694088 | 2010-11-27T00:09:27 | 2010-11-30T00:48:14 | 1,115,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | from django.http import HttpRequest
from djblets.siteconfig.models import SiteConfiguration
from djblets.util.decorators import simple_decorator
from djblets.webapi.core import WebAPIResponse, WebAPIResponseError
from djblets.webapi.decorators import webapi_login_required, \
webapi... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
a3f96162e166e04aa924d86d2183051caf02be55 | 6ab8538e9eab8335cf15479d47500d5341fef536 | /IMDB web scraper/fileRenamer.py | 886df1a2492f5c269b0d39be9c0800cdb195bb74 | [] | no_license | ggutierrezdieck/Python-scripts | 08e58df082abf621f65545d905ac981fe197bb0c | 757a47146111c9eb0e04c5255bed074d0ec5aa83 | refs/heads/master | 2021-03-30T10:01:13.860663 | 2020-05-05T17:59:34 | 2020-05-05T17:59:34 | 248,041,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 17 15:19:10 2020
@author: Gerardo
Script uses data sraped from scraper to
rename files on specified directory
"""
import os
import string
from scraper import imdbScraper
#TODO: check seaon indexes are givern in right order
s = imdbScraper('https://www.imdb.com/title/t... | [
"ggutierrezdieck@gmail.com"
] | ggutierrezdieck@gmail.com |
cfad3b76668f178f392f7b7a01d24f1ce83b31b6 | 278c14d55dc88f29146152cff1e5a8fbdecd56b6 | /movies/migrations/0001_initial.py | 81ee850016e3b9fc7fb1aa4e0b94558d8cc97a21 | [] | no_license | taras0024/movies_api | 4147feb28a584e82f8658ee6af12ce3ee2c4fb9d | 0736063298d82695205278e356acca6740790516 | refs/heads/master | 2023-06-26T22:12:20.958983 | 2021-08-02T12:58:51 | 2021-08-02T12:58:51 | 391,381,245 | 0 | 0 | null | 2021-08-02T12:58:51 | 2021-07-31T14:38:08 | JavaScript | UTF-8 | Python | false | false | 7,547 | py | # Generated by Django 3.2.5 on 2021-07-31 18:17
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Actor',
fi... | [
"74822918+taras0024@users.noreply.github.com"
] | 74822918+taras0024@users.noreply.github.com |
788d74a0541595cac3c54e408e4d3d2a423cdc26 | 4b157ab5270ba430a6d7c1594ea41ceea89b7ab2 | /dataview/items/management/commands/dbimport.py | 202892882682d5ee3d0dae54641cf1e52de4ef88 | [
"MIT"
] | permissive | estin/pomp-craigslist-example | 6a06e0671b189b45d7f688583c052b3e23efd010 | c019686776ff2235f92ece9cea19874631a561b9 | refs/heads/master | 2021-01-10T12:07:30.035957 | 2017-11-21T19:55:40 | 2017-11-21T19:55:40 | 52,002,919 | 38 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import logging
from django.db import transaction
from django.core.management.base import BaseCommand
from django.core.exceptions import ValidationError
from dataview.items.models import CraigsListItem
from craigslist.pipeline import KafkaPipeline
from craigslist.utils import get_statsd_client, METRIC_ITEMS_IMPORTED_K... | [
"tatarkin.evg@gmail.com"
] | tatarkin.evg@gmail.com |
842b53f556e40e7ee2ce73b314af3c48d09ff59a | 44b87d9faad99d542914c35410ba7d354d5ba9cd | /1/examples/srearch_a_letter.py | db0f0ae9e3b4cbc2f8eb95912e5afe20241d5f02 | [] | no_license | append-knowledge/pythondjango | 586292d1c7d0ddace3630f0d77ca53f442667e54 | 0e5dab580e8cc48e9940fb93a71bcd36e8e6a84e | refs/heads/master | 2023-06-24T07:24:53.374998 | 2021-07-13T05:55:25 | 2021-07-13T05:55:25 | 385,247,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | x=input("enter the word ")
y=input("enter the letter you want to find ")
flag=0
for i in x:
if i in y:
flag=1
if flag==1:
print("entered word found ")
else:
print("not found") | [
"lijojose95@gmail.com"
] | lijojose95@gmail.com |
b4729aeb7d1d1ca7fc8785b02f4a3190a9ebce0b | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /build/android/pylib/chrome_test_server_spawner.py | e1eb6b384f6e6a1e0bc2403273b1358a03e5acb7 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 16,082 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A "Test Server Spawner" that handles killing/stopping per-test test servers.
It's used to accept requests from the device to spawn and kill instances of ... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
6baa75859da9119851b4c6adfc501d072f6dcab7 | de0a4650b26be18826a2ef3fa5a7c05bdb733d30 | /PredictView.py | 5315dc1160f161704f4d40091ed23ba44cb84704 | [] | no_license | Githubowy-Juliusz/SI-Projekt | fd9db2e1c0fa551f1256c468f9cb3db6e0b8f812 | 966c7260674544ad23096b658a9850ba357ad437 | refs/heads/master | 2022-08-26T04:50:04.235248 | 2020-05-26T10:23:57 | 2020-05-26T10:23:57 | 265,535,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,850 | py | from PyQt5 import QtCore, QtGui, QtWidgets
import numpy as np
import random
class PredictView(object):
def setupUi(self, MainWindow, predictions):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(600, 622)
self.central_widget = QtWidgets.QWidget(MainWindow)
self.central_widget.setObjectName("central_w... | [
"githubowy-juliusz@wp.pl"
] | githubowy-juliusz@wp.pl |
2265b5e10e6f12363d3479fd90a21760370817c1 | 078b8189025dd0e40482dac41a0278841d64e41f | /nonap/bin/ctest | f9075389d11922878d031739a2ac77f54d07dd4a | [] | no_license | Priyesh1202/WakeUpDriver | 48d38e4980efde5d61287f7e09924ffd0e3d7972 | bc1bbf00ec381b46d3c0f96c389d8dc610408766 | refs/heads/master | 2022-09-15T03:43:32.881136 | 2020-05-22T05:21:12 | 2020-05-22T05:21:12 | 266,022,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/mac/PycharmProjects/NoNapping/nonap/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from cmake import ctest
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(ctest())
| [
"priyesh.vakharia@gmail.com"
] | priyesh.vakharia@gmail.com | |
0014fee21c6de7bad486f03dc5345e6fd33a2f08 | 3f664b12b161a745dac15424aecfc8fec2cbe9c6 | /Implementatie/Uitvoering_ElGamal.py | 7b0cd11c8c22eb474aab5651079d7054b9a8d026 | [] | no_license | QuirijnMeijer/EKC | 30e11611b3878dd0b52793f072323185357a074e | 37fb276f961a93215caf2df1738fd5a5cd553ff6 | refs/heads/master | 2022-01-27T17:29:36.898749 | 2019-06-21T16:10:39 | 2019-06-21T16:10:39 | 37,132,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # --->
# Voor gebruik in IDLE (Windows):
# --->
import sys
import os
z = os.path.dirname(os.path.abspath(__file__))
sys.path.append(z)
# <---
# Samenvoeging klassen voor een demonstratie van het ElGamal systeem.
from ElliptischeKromme import *
from ElGamal import *
# Start van het script
K = ElliptischeKromme(5, 1,... | [
"Quir@live.nl"
] | Quir@live.nl |
45d6cdcdcf5d305c813f5e774b4103af7fd3d956 | a6eddf9fb53e94131bf06fff52bb7207998a9d8f | /scoring/scoring.py | eddf4771be2bc6e1a7470c2284ede10d64d4d2ac | [
"MIT"
] | permissive | ugo-en/word-similarity-checker | 64b9b2a2131c2b7beb533788b0acda399b685006 | 0ba91bd2be3e39229dbd653994c8f21c90f4ae62 | refs/heads/main | 2023-06-03T01:16:18.841805 | 2021-06-20T23:25:57 | 2021-06-20T23:25:57 | 378,669,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from fuzzywuzzy import fuzz as fz
def score(word1,word2):
"""
This function uses a sequence matcher to check the two words and using the token set ratio, determine the similarity
in structure between two words, statements or phrases
:param word1:
:param word2:
:return:
"""
word1 = str(... | [
"ugochukwuenwachukwu@gmail.com"
] | ugochukwuenwachukwu@gmail.com |
b502c34d90948fd8a14029ada56a2c31ec8154d9 | 22967425b2a8556092a6499bbf8dbb24d355d17d | /show_room/migrations/0003_auto_20190509_1302.py | 99f26050d6513c1736a883b10d285c0b4aec2fd9 | [] | no_license | avi202020/Car-management-System.Safaricom-Hackathon | 68936d9016a77bb325d2e551eeb46f427ee72571 | 42401877062080428cb24e03b9d08727165a6bdb | refs/heads/master | 2023-03-17T13:04:27.388669 | 2019-05-09T20:36:39 | 2019-05-09T20:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-05-09 10:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('show_room', '0002_auto_20190509_0724'),
]
operations = [
migrations.AddFiel... | [
"ngahu@joels-MacBook-Pro.local"
] | ngahu@joels-MacBook-Pro.local |
d0f2925daf7db34217f561cf6b3a564ef62b0e35 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /93o6y6WKFpQKoDg4T_11.py | c80cfdfb6ad9743783da2aa0233e0db5d7d02133 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py |
def sort_by_length(lst):
return sorted(lst , key = len)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1ecc874b213fc22f21d508f94489dafa53895c49 | bd74dc8476d75da1404745be2096959b56094589 | /front-end/node_modules/fsevents/build/config.gypi | 496727b745c3802046b782a1282ee7c4bdf0442f | [
"MIT"
] | permissive | schrius/user-story | f61635c33d18efdda7651634ee7ce433d23463cc | 0b75d4ee37eefde88e18b376eb256a3113bbbcc5 | refs/heads/master | 2023-02-07T21:50:37.988877 | 2020-04-03T15:45:25 | 2020-04-03T15:45:25 | 252,211,758 | 0 | 1 | null | 2023-01-24T01:53:10 | 2020-04-01T15:18:09 | JavaScript | UTF-8 | Python | false | false | 5,717 | 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,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"schriusty@gmail.com"
] | schriusty@gmail.com |
97a827d7b0708abd7097d9584f3982d0ecd0389a | 91dde0bebc61ced8d1891afdc67931b667324576 | /neutron/tests/functional/agent/linux/pinger.py | a79e8235683fd79ce5adf013d9a38ab0d2893bd6 | [
"Apache-2.0"
] | permissive | cernops/neutron | e7108657a8f038178c8420582be05d9c7e417ba1 | 0c0e233290a0012f4d8320d047de63f213984944 | refs/heads/master-patches | 2020-12-25T02:10:56.430751 | 2014-03-24T14:50:23 | 2015-02-09T12:09:05 | 31,379,379 | 3 | 1 | null | 2015-02-26T17:30:41 | 2015-02-26T17:30:41 | null | UTF-8 | Python | false | false | 1,802 | py | # Copyright (c) 2014 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"mangelajo@redhat.com"
] | mangelajo@redhat.com |
0b02b8215e812d6887a344afd2a09cde9a10285c | 6ca9afb63a27d57ef55f7decb98ad7904c43e49b | /curriculum-learning/ppo_lstm_combine_observation.py | 464abdd7755359efa13899c4cd2eaaf6ecacad40 | [] | no_license | binaryoung/COMP4026-MSc-Projects | 7a7c39002ec24b95568c7a0ddeeb2a8e1037b117 | 2e24f752c94e64baf74e28889ea5141c7436c0e4 | refs/heads/main | 2023-07-19T07:20:30.604564 | 2021-09-09T23:51:27 | 2021-09-09T23:51:27 | 384,158,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,065 | py | import math
from datetime import datetime
import os
from distutils.dir_util import copy_tree
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.distributions import Categorical
import torch.multiprocessing as mp
from torch.utils.tensorboard import SummaryWriter
im... | [
"me@xiayang.me"
] | me@xiayang.me |
d32ac14755d361830a569a982e178869af8f8ab2 | 5b166e7bb66bec25126ce6622162075956397d07 | /util/ptime.py | 9e8d0c87311e923abc944809a991fe3d56a1f8aa | [
"BSD-3-Clause"
] | permissive | nigeljonez/newpyfibot | 15f859c9434629a7d579346d0400f326dcad87b1 | de090f1521dee8523d4a083b9665298e4e97d847 | refs/heads/master | 2021-01-22T11:46:22.344509 | 2012-09-12T10:25:28 | 2012-09-12T10:25:28 | 936,129 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | #!/usr/bin/python
# -*- coding: iso8859-1 -*-
## (c)2004 Timo Reunanen <parker _et_ wolfenstein _dit_ org>
import time
import re
_exact=r'''
^
(?P<hour> \d{1,2}) ## hour
[:.]
(?P<min> \d{2}) ## minutes
(?:
[:.]
(?P<sec>\d{2} ) ## secods (optional)
)?
$
'''
_add=r'''
^
[+]
(?: ## ho... | [
"riku.lindblad@dda364a1-ef19-0410-af65-756c83048fb2"
] | riku.lindblad@dda364a1-ef19-0410-af65-756c83048fb2 |
3a737f83ba061fbfef963c7cd42c69dbf53fec5e | 1bbf0e6d0993346744644c4059638f410ca02225 | /hamm.py | c29d69ec20c2e27c344921468e9861aaf4a96bcf | [] | no_license | nickrod518/rosalind | 3e95d0dc369ca2f577de15f9212fdc06de9b1ac3 | 52e5deccdd414a422612b49927ff1912f6534ef9 | refs/heads/master | 2021-10-11T21:15:51.837771 | 2019-01-29T21:31:42 | 2019-01-29T21:31:42 | 125,309,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | hamming_distance = 0
s = input()
t = input()
for i in range(len(s)):
if s[i] != t[i]:
hamming_distance = hamming_distance + 1
print(hamming_distance)
| [
"Nick.Rodriguez@dhgllp.com"
] | Nick.Rodriguez@dhgllp.com |
a4293d97c9d3bbe71c06656a6165bb7e7a066120 | 7ea5d546ef433fb95e089033ca2373b413365c02 | /read.py | c42a82eaab610802f22ea8991fb842223e73b635 | [] | no_license | NIKKON-LAWRANCE/OCV-Python | 140fdbc2d6752afcd8a7627cb35785da256d6e1a | 6066115271273e0f2f70e1bffa62202fa01d3120 | refs/heads/main | 2023-06-25T22:59:16.606634 | 2021-07-24T11:08:38 | 2021-07-24T11:08:38 | 389,012,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | import cv2 as cv
img = cv.imread('Photos/Cat-2.jpg')
cv.imshow('Cat-2',img)
cv.waitKey(0) | [
"write2subrata@outlook.com"
] | write2subrata@outlook.com |
9bd86ffac705571ef4bfa149ecc3a36fde4e9145 | 9330310ef2074289824adb4aef2b3ded52f6463f | /doc/conf.py | 2ffb8fa2543f210354555137d2502cc9d85c78a9 | [] | no_license | RahulSundar/pyCSalgos | 7d94ec695da894d637c76822d3afd26d25e4d4b1 | c3fe7c00f6fdfa4843cde4beafeafe931f199252 | refs/heads/master | 2022-04-08T10:40:13.237110 | 2020-03-10T19:16:24 | 2020-03-10T19:16:24 | 273,650,976 | 1 | 0 | null | 2020-06-20T06:20:48 | 2020-06-20T06:20:47 | null | UTF-8 | Python | false | false | 8,284 | py | # -*- coding: utf-8 -*-
#
# pyCSalgos documentation build configuration file, created by
# sphinx-quickstart on Fri Jul 4 15:52:00 2014.
#
# 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.
#
#... | [
"nikcleju@gmail.com"
] | nikcleju@gmail.com |
f238d04a62268f719a0026d5246ae6552ad08c38 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/arc/025a.py | eca2c9978b657cb946922fb4f5f37b40b06e0566 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | D = list(map(int, input().split()))
L = list(map(int, input().split()))
ans = 0
for d, l in zip(D, L):
ans += max(d, l)
print(ans) | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
d1c5245e21bd7b2194b251a3d5c8575240a0d15b | 4a44462dcc68ba86e0d724b8beb936069cd86fb7 | /wetectron/modeling/poolers.py | abbf27d12261f63b8c31e186747caaf9ed38f42e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Yang-sso/wetectron_cyyang | 63752c01cee64ab02b4e713c48118ccd50aa1368 | 42bfe4fc2483d7182c7824ac6384ebd6c3483db5 | refs/heads/main | 2023-03-30T04:33:05.625396 | 2021-04-01T03:58:01 | 2021-04-01T03:58:01 | 353,564,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,915 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
import torch.nn.functional as F
from torch import nn
from wetectron.layers import ROIAlign, ROIPool
from wetectron.config import cfg
from .utils import cat
class LevelMapper(object):
"""Determine which FPN level each RoI in a s... | [
"1005131989@qq.com"
] | 1005131989@qq.com |
2eae17add959a016d7283acf078ab01ad7b91b0f | ac513f7dc549fc0dbc0e9a7ccaeb77991b7ce5ea | /pycoders/home/migrations/0010_auto_20190215_2124.py | bb713ce39344a617034dc3c67f46d9c222ec4921 | [] | no_license | Adarsh-Shrivastava-001/Codeutasava3.0 | 728cea794963c7a34549e5ca7918bf81f25b1838 | 0dc28e67ed8c572f4b194487f4d926de32997c31 | refs/heads/master | 2022-12-15T06:55:26.279237 | 2019-02-17T10:55:06 | 2019-02-17T10:55:06 | 170,688,965 | 0 | 2 | null | 2022-11-22T02:22:57 | 2019-02-14T12:37:52 | CSS | UTF-8 | Python | false | false | 739 | py | # Generated by Django 2.1.7 on 2019-02-15 21:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0009_product_description'),
]
operations = [
migrations.CreateModel(
name='SearchTerm',
fields=[
... | [
"pupalerusikesh@gmail.com"
] | pupalerusikesh@gmail.com |
acb51fce28782b1e64bb7fd83ce39d45260ae110 | 175d6cff12514da71aafef6b9ff48dd56a87db2d | /alveus/widgets/customized_menu.py | 76d6dbee02fa885e376a161e4dfb7dd9543930bf | [
"MIT"
] | permissive | FrederikLehn/alveus | d309eea98bd36f06709c55a18f0855f38b5420a9 | 71a858d0cdd8a4bbd06a28eb35fa7a8a7bd4814b | refs/heads/main | 2023-06-26T02:29:59.236579 | 2021-07-30T11:07:17 | 2021-07-30T11:07:17 | 391,029,935 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import wx
from wx.lib.agw.flatmenu import FMRendererMgr, FMRenderer, FlatMenu, FlatMenuItem
from wx.lib.agw.flatmenu import FMRendererXP, FMRendererMSOffice2007, FMRendererVista
from wx.lib.agw.artmanager import ArtManager, DCSaver
import _icons as ico
class CustomFMRendererMgr(FMRendererMgr):
def __ini... | [
"noreply@github.com"
] | FrederikLehn.noreply@github.com |
0f09cb023d84fff197d03b8360e4b1da14b7a9d5 | 6969a1aa70b4eb7a33ba7d02b5d68530481582c4 | /double_integar.py | 00a792328eed7bff1109d217cde7a112a97c4f4d | [] | no_license | Diassia/Code-Wars-Practice | aa5122a495d5b348aaa4252f42f18902cddbfc1e | aeed92f2946a2462e5cb7e5016d4b421b6d0c4ce | refs/heads/master | 2023-02-18T02:58:27.591886 | 2021-01-15T11:16:19 | 2021-01-15T11:16:19 | 310,811,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | def double_integer(i):
return i * 2
i = 2
print(double_integer(i)) | [
"shaw.kayleighemma@gmail.com"
] | shaw.kayleighemma@gmail.com |
41fc157c2f3b1045e9cea61068ad1773f69efd18 | fcdc5d3df5e947fc89ddb6ecb4c0cf73677a5213 | /blatt_2/MadGraph5_v1_3_20/ex_2/bin/change_compiler.py | 207c61313b8c31cf8954c9c513e708bd52d7afad | [] | no_license | harrypuuter/tp1 | 382fb9efe503c69f0249c46a7870ede088d8291d | e576e483dc77f6dcd477c73018ca2ea3955cd0c7 | refs/heads/master | 2021-01-10T11:38:16.467278 | 2016-01-27T16:28:46 | 2016-01-27T16:28:46 | 45,135,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,033 | py | #!/usr/bin/env python
import re, sys, os
g77 = re.compile('g77')
gfortran = re.compile('gfortran')
def mod_compilator(directory, new='gfortran'):
#define global regular expression
rule={'S-REGEXP_g77+gfortran+re.I':''}
if type(directory)!=list:
directory=[directory]
#search file
file_to_... | [
"brommer.sebastian@gmail.com"
] | brommer.sebastian@gmail.com |
23c32a446cf61a05dcb2d470239b1d3c0c4f49da | 794f225c248e84b29f03e5ae472bd995b8dd86a4 | /doppler/all_data/4-18/20130418-13_0_10_peak_combine.py | 48b82d42269036337f95766e2c30e0ba539b80ea | [] | no_license | yuyichao/jlab2s13 | 1113a537bf9f1d44ff96324f290a16abf265fb20 | 9b09c3af9f4d3311633996635ccf75f04a97c117 | refs/heads/master | 2023-02-21T18:08:12.739055 | 2013-09-14T03:52:57 | 2013-09-14T03:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | fit2_s = [3.9008432047451302, 3.8773342085960469, 3.9957833609585491]
fit_a = [-1.2819999999999998, -1.2679999999999993, -1.2711428571428618]
fit2_a = [500.51428571428562, 500.68571428571403, 500.61428571428576]
fit_s = [0.012207605867885846, 0.0094353400058313219, 0.010353561336037447]
peaks = [{'name': ['f85_3_4'], '... | [
"yyc1992@gmail.com"
] | yyc1992@gmail.com |
3397fdf03555cbfe28cc3fed54c3f4f02c8e6c2b | 091155389673325cfe8b0da3dc64c113f1ded707 | /playground/segmentation/coco/solo/solo.res50.fpn.coco.800size.1x/config.py | 66f251fa6baf96372bfaf789658e15cbd0595e82 | [
"Apache-2.0"
] | permissive | Megvii-BaseDetection/cvpods | 7b7c808257b757d7f94d520ea03b370105fb05eb | 2deea5dc659371318c8a570c644201d913a83027 | refs/heads/master | 2023-03-22T00:26:06.248877 | 2023-03-10T10:05:26 | 2023-03-10T10:05:26 | 318,124,806 | 659 | 91 | Apache-2.0 | 2023-03-10T10:05:28 | 2020-12-03T08:26:57 | Python | UTF-8 | Python | false | false | 1,606 | py | import os.path as osp
from cvpods.configs.solo_config import SOLOConfig
_config_dict = dict(
MODEL=dict(
WEIGHTS="detectron2://ImageNetPretrained/MSRA/R-50.pkl",
),
DATASETS=dict(
TRAIN=("coco_2017_train",),
TEST=("coco_2017_val",),
),
SOLVER=dict(
LR_SCHEDULER=dict... | [
"wangfeng02@megvii.com"
] | wangfeng02@megvii.com |
29ec23545290463394c1ecc3c7fcde737362edd5 | 3b42fc083bd59cd0f16b256206e59e7c1286a219 | /diccionario.py | fab40d09beb8d01270b21bd57049c76a83d863ad | [] | no_license | robertdante/Python | 9ee63cba4c1cca1fc11cd318db9ab7d604aa0048 | 579ba688302db4d3e36b7eceea14e556b904c3ad | refs/heads/master | 2023-06-09T15:12:37.579033 | 2021-06-24T09:50:34 | 2021-06-24T09:50:34 | 355,795,936 | 0 | 0 | null | 2021-04-13T10:21:26 | 2021-04-08T06:56:18 | Python | UTF-8 | Python | false | false | 610 | py | #Crear un diccionerio
cancion = {
'artista' : 'metallica', #llave y valor
'cancion' : 'enter sandman',
'lanzamiento' : 1992,
'likes' : 3000
}
print(cancion)
#Acceder a un elemento concreto del diccionario
print(cancion['artista'])
print(cancion['cancion'])
#Utilizar un valor del diccionario co... | [
"robert.dante3@gmail.com"
] | robert.dante3@gmail.com |
277571a417c6a61cf258823e99aa8cd8e87866d3 | d44bb073602c0bb772ddc6d0069a50f6c6ab2726 | /app/libs/token_auth.py | da506b199d502f25e5c9701d719a8819ccef0985 | [] | no_license | LinRuiBin/LrbFlaskApi | 9c1cdeb3dfd2eab8592366469f1649abc1c83799 | 79831f954f923800c7bf151499aa2b789f6e6b50 | refs/heads/master | 2020-04-22T09:35:24.441443 | 2019-11-18T07:07:13 | 2019-11-18T07:07:13 | 170,277,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | """
Created by LRB on 2018/5/7.
"""
from collections import namedtuple
from flask import current_app, g, request
from flask_httpauth import HTTPBasicAuth
from itsdangerous import TimedJSONWebSignatureSerializer \
as Serializer, BadSignature, SignatureExpired
from app.libs.error_code import AuthFailed, Forbidden... | [
"3gtc@3gtcdeMac-mini.local"
] | 3gtc@3gtcdeMac-mini.local |
2fdec4c0f0f3dab907001d6f75807c4de79d3ff9 | 6f1cadc49bc86ea49fd32c64397bfecfd9666f19 | /C2/pulsar/implant/migrations/0002_auto_20150827_1851.py | ca655a540d156e556deace4637d8d630fee4b98d | [
"BSD-3-Clause"
] | permissive | killvxk/Pulsar-1 | f073c2273e9d4040acc3842963b018d920e78aa4 | d290c524674eabb0444ac8c0b1ee65ea1ad44f1f | refs/heads/master | 2020-06-24T22:38:25.551118 | 2019-07-27T03:45:25 | 2019-07-27T03:45:25 | 199,111,787 | 0 | 0 | null | 2019-07-27T03:44:52 | 2019-07-27T03:44:51 | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('implant', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='implant',
name='uuid'... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d130c48d189ce6a8f79f9a900a9f651c67482890 | 37fd103f6b0de68512e3cb6098d0abb9220f5a7d | /Python from scratch/027_inclass_reg_ip.py | 65e07f0162c6062580b2d1a4687b6a61fbc22782 | [] | no_license | FlyingMedusa/PythonELTIT | 720d48089738b7e629cad888f0032df3a4ccea2c | 36ab01fc9d42337e3c76c59c383d7b1a6142f9b9 | refs/heads/master | 2020-09-11T18:17:17.825390 | 2020-04-21T16:38:03 | 2020-04-21T16:38:03 | 222,150,066 | 0 | 0 | null | 2020-04-21T16:38:04 | 2019-11-16T19:37:33 | Python | UTF-8 | Python | false | false | 471 | py | import re
words = ["eloelo320", "blah@", "192.168.0.1", "asd.asd.20"]
pattern = "^\w+$" # or (longer): "^([A-Z]|[a-z]|(\d))*$"
id_pattern = "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"
for word in words:
match = re.search(pattern, word)
if match:
print("matched")
else:
print("not matched")
p... | [
"sleboda.m98@gmail.com"
] | sleboda.m98@gmail.com |
fd78af3570754694ae18160dcad79b077bc0eeb9 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Dbase/TableBrowser/dbview.py | 9975899912c220e9ca0a023de57601b57da0cc5b | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | ##################################################################
# view any existing shelve directly; this is more general than a
# "formtable.py shelve 1 filename" cmdline--only works for Actor;
# pass in a filename (and mode) to use this to browse any shelve:
# formtable auto picks up class from the first instance ... | [
"zui"
] | zui |
3bd0738ae8c589c40d9afde3f06436f12a90c507 | e87bdc4ee3328f79358df088c4f30aa73312127a | /python/motap/schemamodels.py | c9327f64e43c791447b41ae99d31844b89560854 | [] | no_license | n-raghu/KnowledgeBase | c50d9033392a78c560c7a137672df04c8aef3d5e | 5ce1c261bac77dd0dbbc39a124409f0ac38ca6ad | refs/heads/master | 2023-06-22T15:38:34.076176 | 2021-07-20T05:36:39 | 2021-07-20T05:36:39 | 117,502,463 | 0 | 0 | null | 2021-06-10T16:06:25 | 2018-01-15T05:46:37 | Python | UTF-8 | Python | false | false | 374 | py | from typing import Any
from pydantic import BaseModel
class AddrSchema(BaseModel):
address_matched: Any
customerID: int
dob: str
income: int
bureauScore: int
applicationScore: int
maxDelL12M: int
allowedFoir: int
existingEMI: int
loanTenure: int
currentAddress: str
bur... | [
"raghu@LCHVWXVJ2.inspireme.local"
] | raghu@LCHVWXVJ2.inspireme.local |
fa8beb3f3c45d810e244afa3a207660de72aae1e | c829a8654d4adcba7944f1aa48c2643c2a2a2803 | /sony_utils/split.py | 64caf82d8c17086980dca4436a62a0b48901e234 | [] | no_license | muma378/Utils | d85390f84226b63474c815285acb6ce351ac0c22 | a6ae14f86de360bdabd9fa7f39cd8b05bbd505fb | refs/heads/master | 2020-05-21T13:35:51.908847 | 2017-02-05T06:11:45 | 2017-02-05T06:11:45 | 48,424,512 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import os
import sys
import subprocess
import datetime
CMD_TEMPLATE = "cut.exe {src_wav} {dst_wav} {start} {end}"
NAME = "emotion_F_"
DECODING = 'gb2312' if os.name=='nt' else 'utf-8'
# split the wav as the information provided by several columns
def split_by_cols(cols_file, src_wav, dst_dir='.', name_prefi... | [
"muma.378@163.com"
] | muma.378@163.com |
45d7bb9e577d90e6669bedad91fe02a0067a2061 | 41cd1bcff0166ed3aab28a183a2837adaa2d9a07 | /allauth/account/decorators.py | eb906aad176d794c9e8a3407a9d1495c7ae1d76d | [
"MIT"
] | permissive | thomaspurchas/django-allauth | 694dde8615b90cd4768e7f9eda79fdcf6fe3cdb6 | d7a8b9e13456180648450431057a206afa689373 | refs/heads/master | 2022-02-04T03:18:25.851391 | 2013-05-20T11:26:55 | 2013-05-20T11:26:55 | 7,754,028 | 1 | 0 | MIT | 2022-02-01T23:04:02 | 2013-01-22T14:44:56 | Python | UTF-8 | Python | false | false | 1,627 | py | from django.contrib.auth.decorators import login_required
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.shortcuts import render
from .models import EmailAddress
from .utils import send_email_confirmation
def verified_email_required(function=None,
login_url=None,
... | [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
73199b52b898b470c3bb8e2c68de555ebab6a237 | 354ff630d5eed81ffe67be28dd82b990a733a1cd | /pysim/information/histogram.py | b5c2e51802a07e918c9766dcc879d029036a221c | [
"MIT"
] | permissive | superpig99/pysim | 22ba1521c0002f815f5d074114109461e0cc35fc | 4cd5f0987d3cbdeba1c932ca845df1b0bd9d46bf | refs/heads/master | 2023-05-15T05:30:01.272708 | 2020-04-02T14:25:35 | 2020-04-02T14:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from typing import Union, Optional, Dict
import numpy as np
from scipy import stats
def hist_entropy(
X: np.ndarray,
bins: Union[str, int] = "auto",
correction: bool = True,
hist_kwargs: Optional[Dict] = {},
) -> float:
"""Calculates the entropy using the histogram of a univariate dataset.
Opt... | [
"emanjohnson91@gmail.com"
] | emanjohnson91@gmail.com |
3ca83b5ee9aa17f09f5494f17a549ed8845ac7fd | 962b3deeb5cdf8c6276f8f12e4140acfc355e380 | /pages/views.py | 72f7ce3e9a1d7afa3fe230a501957f751b8ccb54 | [] | no_license | Vanman007/DjangoHelloWorld | a61a1a531f0a0c6e62529685f480fd65b8417920 | 914313d27433cc2d6e8bff759a8ba3aa7bd075b0 | refs/heads/master | 2023-08-05T05:34:41.677359 | 2020-07-03T09:17:58 | 2020-07-03T09:17:58 | 276,859,194 | 0 | 0 | null | 2021-09-22T19:32:43 | 2020-07-03T09:20:08 | Python | UTF-8 | Python | false | false | 174 | py | from django.shortcuts import render
from django.http import HttpResponse
def homePageView(request):
return HttpResponse('Hello World!')
# Create your views here.
| [
"thom37q2@stud.kea.dk"
] | thom37q2@stud.kea.dk |
538993cfd91beecc42fc208fc0c19cbd03b0c868 | 088d9d76d696f26d0f0bbe8f9d1ee0acc8757356 | /dartsharp/transpiler.py | 44b3a37abfa4838e4ec0aeb3d3ef54a1788908a8 | [
"MIT"
] | permissive | yczhangsjtu/DartSharp | c1b15ee8b0db1556421c69bbc5bb70cad581b714 | f25171e1a9c7b462f4f6b931fe1785ebf7adf333 | refs/heads/master | 2021-01-04T18:56:05.180777 | 2020-06-09T00:06:35 | 2020-06-09T00:06:35 | 240,718,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,762 | py | from dart.function import FunctionLocator, ConstructorLocator, VariableDeclareLocator,\
FunctionalParameterItemElement
from dart.expression import DartListElement, FunctionInvocationElement, DoubleDotElement,\
is_capitalized, AssignmentElement
from dart.classes import ClassLocator, GetterLocator
from dart.globals i... | [
"yczhangsjtu@gmail.com"
] | yczhangsjtu@gmail.com |
11c42f6ff62c800055b8f8fdd6208766d0f11118 | 083b88c2d8b3fe659c0409046ff9255ef773ce4d | /erpnext/hr/doctype/driving_license_category/driving_license_category.py | 594bacc0716184bc810bd91a6c3fb7eb45d84617 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AmanRawat882/ErpNext-1 | 4293dd13f1d958f85190b524b5498f5d6da3f5b6 | d1f04f9a622977aaac6d5e4a1b122bb64561646d | refs/heads/master | 2020-03-30T10:13:25.573202 | 2018-10-01T15:20:32 | 2018-10-01T15:20:32 | 151,111,101 | 0 | 1 | NOASSERTION | 2018-10-01T15:30:57 | 2018-10-01T15:24:52 | Python | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class DrivingLicenseCategory(Document):
pass
| [
"31853960+AmanRawat882@users.noreply.github.com"
] | 31853960+AmanRawat882@users.noreply.github.com |
229e0f9a4c85fab546dc07bac2a45ae56cccfd74 | dff8c4c57f16b6d53e03a63578cc1a7488603745 | /model_params/network_intrusion_detection_model_params.py | 4465287f54054f9bbf61095a8a707b2eab15119a | [] | no_license | lexmao/NuPic_Network_Anomaly_Detection | 062ae519860a50c86b5edacffe5b78583f6d47d0 | 94dcbd04349c3c3e34b73ccaebe1e5f479eaeffe | refs/heads/master | 2021-05-01T13:41:21.867550 | 2015-11-17T18:35:35 | 2015-11-17T18:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,218 | py | MODEL_PARAMS = \
{ 'aggregationInfo': { 'days': 0,
'fields': [],
'hours': 0,
'microseconds': 0,
'milliseconds': 0,
'minutes': 0,
'months': 0,
'seconds': 0,
... | [
"sanketdesai@juniper.net"
] | sanketdesai@juniper.net |
c3c87b8bb46040b5d54aafcfb934e3418f8026a0 | 00c983525359dd64253838ed262e8b5d58a83a51 | /myvenv/bin/tabulate | 4256cd35ab715b86987e5bb0af4c80ca7da497c7 | [] | no_license | pancham12/my-first-blog | a31bbb6c73b61ddd77a4a365198a58975ddb621e | 690414d8dcc4dfeedaced63fa4e541e6557caadd | refs/heads/main | 2023-01-24T22:15:49.230346 | 2020-12-07T12:44:04 | 2020-12-07T12:44:04 | 319,234,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | #!/home/ctp/djangogirls/myvenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tabulate import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"satishpandeyctp@gmail.com"
] | satishpandeyctp@gmail.com | |
6666b3365e0d37967b4d4ae4f0b7c9dc074e3729 | 401d664697e0df149281ca94ea88f6eee3e609f0 | /python/03_hashmaps/serialization/14decoding_2.py | a5652a603b54d1c36a61569e0ce3aed7b266607d | [] | no_license | git-mih/Learning | 6806fd14f174b908781714e4c3d15da1c6f63307 | 36ea5cb3ed8da0fb2de43f718d4446bbf000a670 | refs/heads/main | 2023-08-30T02:09:18.299638 | 2021-10-26T01:36:23 | 2021-10-26T01:36:23 | 360,233,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | import json
from decimal import Decimal
from datetime import datetime
from fractions import Fraction
# json.loads function parameters (parse_float, int, constant)
j = '''
{
"a": 100,
"b": 0.2,
"c": 0.5
}
'''
def make_decimal(arg): # arg: '0.2' <class 'str'> // arg: '0.5' <class 'str'>
return Decimal(arg)
# par... | [
"git.mih@gmail.com"
] | git.mih@gmail.com |
5338446b2f453b8f2ace178642776954ee701a35 | 87b9950749f574955e9e98dc6bc33ac54172afe4 | /sort.py | 46030c5769b34d17a13b340b1c126abc641de656 | [] | no_license | LapTQ/basic_stuff | 0d300477e84be1590ff1c87730c947e81b3d39ed | 553029bba822881fd53b3984b7b5fb27134f6663 | refs/heads/master | 2022-10-18T11:26:15.985049 | 2020-06-13T11:30:52 | 2020-06-13T11:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | from math import*
S = [2, 4, 5, 2, 0, 0 ,11]
def selection_sort(S):
n = len(S)
while n != 0:
max_index = 0
for i in range(n):
if S[max_index] < S[i]:
max_index = i
S[n - 1], S[max_index] = S[max_index], S[n - 1]
n -= 1
def bubble_sort(S):
for t ... | [
"phanmemmaytinhtql@gmail.com"
] | phanmemmaytinhtql@gmail.com |
694d54351021516c58b602ce17e432ee15a16afa | 88e4eea8976f0e16882abd7745c76e6d036c95c6 | /app/main/service/static_service.py | 2d19fddcaac0e1430d65ea14f0958553b6472c6c | [] | no_license | akosfi/tandem-backend | f06e0fc3c0faac439acdc698152d9404e19c7627 | a918be9377c5283959e1f756a45ed7ad02bc49b9 | refs/heads/master | 2022-12-09T23:18:35.654598 | 2019-12-08T19:05:29 | 2019-12-08T19:05:29 | 217,534,366 | 0 | 0 | null | 2022-09-16T18:12:12 | 2019-10-25T13:00:03 | Python | UTF-8 | Python | false | false | 407 | py | from app.main.model.language import Language
from app.main.model.topic import Topic
from app.main.model.learning_goal import LearningGoal
def get_all_languages():
return Language \
.query \
.all()
def get_all_topics():
return Topic \
.query \
.all()
def get_al... | [
"fiakos1997@gmail.com"
] | fiakos1997@gmail.com |
da4c8a1958dd330eaf162d6671a89f44adfb9e9b | 2d055d8d62c8fdc33cda8c0b154e2b1e81814c46 | /python/demo_everyday/JCP092.py | 1c735a70fcd427c2fa6645875af40395d658774f | [
"MIT"
] | permissive | harkhuang/harkcode | d9ff7d61c3f55ceeeac4124a2a6ba8a006cff8c9 | faab86571ad0fea04c873569a806d2d7bada2e61 | refs/heads/master | 2022-05-15T07:49:23.875775 | 2022-05-13T17:21:42 | 2022-05-13T17:21:53 | 20,355,721 | 3 | 2 | MIT | 2019-05-22T10:09:50 | 2014-05-31T12:56:19 | C | GB18030 | Python | false | false | 292 | py | '''
【程序92】
题目:时间函数举例2
1.程序分析:
2.程序源代码:
'''
if __name__ == '__main__':
import time
start = time.time()
for i in range(3000):
print i
end = time.time()
print end - start
| [
"shiyanhk@gmail.com"
] | shiyanhk@gmail.com |
d032794e6b78ff7d03d03deda884cfbf3e772619 | caa175a933aca08a475c6277e22cdde1654aca7b | /acondbs/db/__init__.py | 5656bd250d55b0a328a26007e1eeb74511f46e9f | [
"MIT"
] | permissive | simonsobs/acondbs | 01d68ae40866461b85a6c9fcabdfbea46ef5f920 | d18c7b06474b0dacb1dcf1c6dbd1e743407645e2 | refs/heads/main | 2023-07-07T04:33:40.561273 | 2023-06-28T22:08:00 | 2023-06-28T22:08:00 | 239,022,783 | 0 | 1 | MIT | 2023-06-26T20:36:39 | 2020-02-07T21:07:46 | Python | UTF-8 | Python | false | false | 1,054 | py | """SQLAlchemy and DB related
This package contains functions, classes, and other objects that are
related to SQLAlchemy and the DB except ORM model declarations.
"""
from pathlib import Path
from flask import Flask
from flask_migrate import Migrate
from .cmds import (
backup_db_command,
dump_db_command,
... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
468d0a666c8113677278318e8707cab353abf5b9 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nninsid.py | 467654f6a73883390386eb7cdecf2765d99eb6ea | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,302 | py | ii = [('BentJDO2.py', 1), ('MarrFDI.py', 1), ('RogePAV2.py', 4), ('KembFFF.py', 1), ('RogePAV.py', 3), ('RennJIT.py', 5), ('LeakWTI2.py', 2), ('UnitAI.py', 3), ('KembFJ1.py', 1), ('WilkJMC3.py', 1), ('LeakWTI3.py', 2), ('PettTHE.py', 18), ('PeckJNG.py', 1), ('BailJD2.py', 1), ('AdamWEP.py', 33), ('FitzRNS3.py', 16), ('... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
6bd7da921ee4e5f2c38d8dd8832742960949e196 | caac09a412ed9783e31e6254ba937d2ff1495dc8 | /test/calculator_tests.py | 974b8a61d0acd5e288c2f2b26d39039e3047ccc2 | [
"MIT"
] | permissive | ace-racer/lint-ut-circleci | c01095e9e41137a80499a03a81075ec86b4a9862 | f1d6b43f97b5146c4a168636d8517a8d02a3b21e | refs/heads/master | 2020-08-29T07:15:51.532944 | 2019-10-28T05:30:34 | 2019-10-28T05:30:34 | 217,963,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import unittest
from calculator import Calculator
class CalculatorTests(unittest.TestCase):
def test_add(self):
calculator = Calculator()
self.assertEqual(calculator.add(10, 20), 30)
def test_subtract(self):
calculator = Calculator()
self.assertEqual(calculator.subtract(1... | [
"anuragchatterjee92@gmail.com"
] | anuragchatterjee92@gmail.com |
2ff81651816ba76c5c00cb22c79aa48032295ac9 | c6884ab0176fdfae661781d14d82a1e4f3341ea1 | /Trainer.py | 37299aa463a1e94b5ec9b0019554be2d1138e117 | [] | no_license | Aiyai/BEAM | cc34f6f2ff8980a51bbb9733fb3118cbe42a1bd5 | 1e1af5b74aaf3873342966c75d1f9befe24af2f7 | refs/heads/main | 2023-06-16T13:43:59.229865 | 2021-07-07T02:34:21 | 2021-07-07T02:34:21 | 368,384,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | import tensorflow as tf
import numpy as np
import random
import time
from Source2 import BEAM
from model import DQN
tf.app.flags.DEFINE_boolean("train", False, "학습모드. 게임을 화면에 보여주지 않습니다.")
FLAGS = tf.app.flags.FLAGS
MAX_EPISODE = 10000
TARGET_UPDATE_INTERVAL = 1000
TRAIN_INTERVAL = 4
OBSERVE = 100
s... | [
"noreply@github.com"
] | Aiyai.noreply@github.com |
92a70b4dae4aa1f4b18b52ea14ca07ed69d71f6a | 4ae6ea6cf39ef18e11b7e35387c3f955097885f5 | /mass_flask_core/tests/test_report.py | 6a594976432d084017810452037c58b85c71fff6 | [
"MIT"
] | permissive | tbehner/mass_server | 6f71ebcb9056914b1984275bc19b88d666f27c3e | 99523f7d845d7da9f3f213054fd1c718202dffe3 | refs/heads/master | 2020-03-27T15:31:12.963233 | 2018-09-13T11:33:46 | 2018-09-13T11:37:37 | 146,723,278 | 0 | 0 | null | 2018-08-30T08:57:15 | 2018-08-30T08:57:15 | null | UTF-8 | Python | false | false | 659 | py | from mass_flask_core.models import AnalysisSystem, Report, Sample
from mixer.backend.mongoengine import mixer
from mass_flask_core.tests import FlaskTestCase
class ReportTestCase(FlaskTestCase):
def test_is_repr_and_str_correct(self):
system = mixer.blend(AnalysisSystem, identifier_name='ReportTestSystem... | [
"rumpf@cs.uni-bonn.de"
] | rumpf@cs.uni-bonn.de |
6a5cafcf6f8b670c1c3a830f0502074d89470102 | 0dfc473870552ac9384a8b24e96046728a42f6ed | /utest/model/test_control.py | 1a17f6adb5d948f24ea2250696f2a05d093168e7 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | rmf/robotframework | fecb4821fd308d107ae94ee3077a2d968ad9163d | a26cd326d1a397edc56993c453380dcd9b49e407 | refs/heads/master | 2023-09-03T07:04:30.300003 | 2021-11-16T11:01:32 | 2021-11-16T11:01:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | import unittest
from robot.model import For, If, IfBranch, TestCase
from robot.utils.asserts import assert_equal
IF = If.IF
ELSE_IF = If.ELSE_IF
ELSE = If.ELSE
class TestFor(unittest.TestCase):
def test_string_reprs(self):
for for_, exp_str, exp_repr in [
(For(),
'FOR I... | [
"peke@iki.fi"
] | peke@iki.fi |
f35f61f558bf3f2eec45c5998c609a43851bb1f7 | a9f3f473b5fbf7903398aa76506cbf14f0f175c3 | /desafio022.py | d69317e5a948681622373b1cd222188a968fdb50 | [] | no_license | lucaalexandre/Exercicios_de_Revisao_PS | 9ff2ea34a8fed2be732d781460b3380b7e01b28d | d2f4083de72537498141e3a13249f90a4dff6954 | refs/heads/master | 2020-06-05T10:00:25.093908 | 2019-06-17T18:51:15 | 2019-06-17T18:51:15 | 192,401,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | carros = ['bmw','fusca','chevete','nissan'] #alterando a ordem da lista de forma alfabetica
print(carros)
carros.sort()
print(carros)
| [
"lucaalexandrepp@gmail.com"
] | lucaalexandrepp@gmail.com |
3bab5fd0dca3ad22bc56bdd19efda33ed4dc420b | 14c357212705e10ccfd9be8f4e3a73c6858f9d9a | /test.py | 1169e62b18f339f491f1258c4e07265019e4c1a7 | [] | no_license | nemodrive/illumination-augumentation | 9fa5c4bd0e853532f789b5ac59ce68ff5d79dc49 | be4dc9386d8b3ddf32e54a9f9566ea4a9f48de3e | refs/heads/master | 2020-12-21T20:25:13.042247 | 2020-02-07T18:30:14 | 2020-02-07T18:30:14 | 236,547,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import torch
import torch.nn as nn
if __name__ == '__main__':
loss = nn.BCEWithLogitsLoss()
sigmoid = nn.Sigmoid()
target = sigmoid(torch.zeros(10))
prediction = sigmoid(torch.ones(10))
score = loss(prediction, prediction)
print(score) | [
"teodor.poncu@gmail.com"
] | teodor.poncu@gmail.com |
7d92be792fe9bc678bf2c071fd1541bc4b2eba8b | 39474a97c77a3375e352583a9e73b985f575f689 | /var/lib/buildbot/workers/openxt2/buildbot.tac | 498d5d555f9afb649c6d5e2e0aa4e0fc99905ef5 | [] | no_license | OXTbuilders/builder2019 | f94f57696c703798b31aad5fbdfa01cdec8e57fc | c3c423ccaa0b4b1d4d7dc061a25ea93e845ed354 | refs/heads/master | 2020-07-25T00:40:14.762435 | 2019-12-27T20:02:19 | 2019-12-27T20:02:19 | 208,100,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | tac |
import os
from buildbot_worker.bot import Worker
from twisted.application import service
basedir = '/var/lib/buildbot/workers/openxt2'
rotateLength = 10000000
maxRotatedFiles = 10
# if this is a relocatable tac file, get the directory containing the TAC
if basedir == '.':
import os.path
basedir = os.path.ab... | [
"oxtbuilder@github.com"
] | oxtbuilder@github.com |
b2fd2e9fee6bf8fa35803a124f8eeb8b9f912b67 | 9b8232dd0c3039fd850bf3d829f35fd394dde436 | /setup.py | 710522684373f77d479107f07d2a3dc977cd4b41 | [
"MIT"
] | permissive | solvip/icelandic_holidays | 019813e39e6857af353903c483ecd02aa27d8846 | d9da734b5c73d7c588d814b85da427d58d6767b9 | refs/heads/master | 2021-01-22T05:23:58.142176 | 2013-10-26T01:25:04 | 2013-10-26T01:25:04 | 11,962,358 | 1 | 1 | null | 2018-04-26T12:42:01 | 2013-08-07T22:43:17 | Python | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Sölvi Páll Ásgeirsson
#
# 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 t... | [
"solvip@gmail.com"
] | solvip@gmail.com |
affceff77f635d0497cd5689551643a3bedcc0cc | 07d8ae8dd0a4d199bd4564c6bccae146eafedf95 | /src/main/2D_plot/plot_subproblem_perfect_electric.py | ec7edeb6b05abf1404ed0aaf3c368a58097b1608 | [] | no_license | eedxwang/3D-Facet-Finite-Elemen-Method | b202d4e49fc7ca8befc2c414840a00a73afdcc15 | 0a77c2eff28fb367f672304ac2896d13021f3f1e | refs/heads/master | 2021-10-25T09:03:38.171535 | 2019-04-03T08:41:13 | 2019-04-03T08:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,605 | py | clear_all()
import sys
reload(sys)
sys.setdefaultencoding("utf8")
import numpy as np
import matplotlib.pyplot as plt
import math
mu0=4*math.pi*pow(10,-7)
plt.rc('font',family='Times New Roman')
plt.close("all")
axis_font = { 'size':'24'}
#savepath=r"C:\Anderson\Pessoal\01_Doutorado\08_Relatorios_Papers\4_CEFC_2016\Fo... | [
"nunes.anderson@gmail.com"
] | nunes.anderson@gmail.com |
0e27e62c78e34f3cfa3f84cec519ddb6dd185365 | f1d3feda6ac37a038dfb12edea7b68e98a6b21de | /star_wars.py | 8801f69861d314f503b32a1d0045bb588d960f7d | [] | no_license | V4stg/starwars_API | e3c34ecb0bbf13981c6880aa9dc72680b088bd5a | 89433b611ef5c423168c1cc3186a62e9b9e85c81 | refs/heads/master | 2021-09-08T18:52:47.081094 | 2018-03-11T18:44:05 | 2018-03-11T18:44:05 | 124,786,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | from flask import Flask, session, redirect, url_for, request, render_template, flash
import data_handler
import hash_handler
import os
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index():
return render_template('index.html')
@app.route('/signup', methods=['GET', 'POST'])
def signup():
if... | [
"lukacsb@gmail.com"
] | lukacsb@gmail.com |
59ad9eddb03fe048a25f77b63e3e08a4bbce689b | fca8b86b9b3e898cc2a95a8c5cde5d47d93669da | /meal_planner/meal_planner/urls.py | f97206489fee9c3de736c04b8b3e3ea04ecb00c2 | [] | no_license | 0mppula/Python_Web_Applications | 38233b45cad8061023a62b0ee37eba8e5fcec45b | 88b8491a54d544a917b3ab5c782d1cf42aff05e6 | refs/heads/master | 2023-04-22T22:58:59.533305 | 2021-05-06T15:58:27 | 2021-05-06T15:58:27 | 354,778,942 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """meal_planner URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-... | [
"omppula_1@hotmail.com"
] | omppula_1@hotmail.com |
c03d219ec2ab38266c4a728f3e735d3a3b9a4a0f | c1074ebc044feed56e4eacce3dbc0132a331f170 | /Demo/nilearn_cache/joblib/nilearn/image/image/high_variance_confounds/func_code.py | 304e121de206df2b7032aad8469baf5f438eea09 | [
"MIT"
] | permissive | CSCI4850/S19-team4-project | e8833405605100289a93ad82d8de67c5239a25e5 | e6b7dc6a092a48feed16a6bd7695963075729525 | refs/heads/master | 2020-04-23T22:17:48.215317 | 2019-05-01T19:24:17 | 2019-05-01T19:24:17 | 171,497,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,419 | py | # first line: 28
def high_variance_confounds(imgs, n_confounds=5, percentile=2.,
detrend=True, mask_img=None):
""" Return confounds signals extracted from input signals with highest
variance.
Parameters
----------
imgs: Niimg-like object
See h... | [
"amc2bg@mtmail.mtsu.edu"
] | amc2bg@mtmail.mtsu.edu |
612213953cb108d3d16c0943e76c7e9036ae4c5f | ba54bb2549de073c044ec4933b86073476ac5204 | /Dynamic_Programming/max_subarray_product.py | 6ad9aa98ef8ec368d97b5b3dc67e4205d09b5eee | [] | no_license | varshanth/Coding_Algorithms | 412eb75c82727501176b6e35a5bbf98e1033f3e5 | 3fea767a1cc123d04149e43c57c85791add84cc6 | refs/heads/master | 2021-05-14T12:30:26.955680 | 2018-02-18T05:07:11 | 2018-02-18T05:07:11 | 116,407,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | '''
LeetCode: Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number)
which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the largest product = 6.
Solution: O(n)
Algorithm:
1) Initialize 3 variables to the 1st el... | [
"varshanth.rao99@gmail.com"
] | varshanth.rao99@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.