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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56364384fadab6ba2a8360d6af96ab70e100b200 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_006/ch3_2020_03_09_20_04_20_580816.py | d72a113c6ad8ecb6326c442c0399dc5570cc0f35 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | def calcula_gaussiana(x, mi, sigma):
resultado=(1/(sigma*((2*math.pi)**0.5)))*(math.e**(-0.5(((x-mi)/sigma)**2))
return resultado | [
"you@example.com"
] | you@example.com |
3ad1098bee872ea3f2245016d76e7b849bd1c2ec | 5e1cbff5fb860b2679aa845461e68bfbee61c9c5 | /_Tkinter/picamera/Client.py | 4f803b344984617c6f222436b06cc5a3aac939d9 | [
"MIT"
] | permissive | StephanSchw/Sample-Code | f131d66f1da846e2a56d51647974946417e0c786 | 7065950dfd0728cfad66db08327f0efa4c26999c | refs/heads/master | 2021-09-07T07:54:53.707375 | 2018-02-19T18:42:56 | 2018-02-19T18:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,939 | py | #!/usr/bin/python3
#
# Copyright (C) 2017 by meiraspi@gmail.com published under the MIT License
#
# Socket Client to stream raspicam in tkinter
#
# http://www.forum-raspberrypi.de/Thread-python-problem-tkinter-socket-client-for-raspicam-live-stream
#
import socket
import struct
import msgpack
import msgpack_numpy
impo... | [
"meiraspi@gmail.com"
] | meiraspi@gmail.com |
cd840a905455f2fb9fc199e6dcf5dd70a4ed606b | 422dd5d3c48a608b093cbfa92085e95a105a5752 | /students/stefanjp1/lesson06/Water_Regulation/waterregulation/integrationtest.py | 2211f6e9a4e300e78f58394f78688207fbc35482 | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018 | a2052fdecd187d7dd6dbe6f1387b4f7341623e93 | b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1 | refs/heads/master | 2021-06-07T09:06:21.100330 | 2019-11-08T23:42:42 | 2019-11-08T23:42:42 | 130,731,872 | 4 | 70 | null | 2021-06-01T22:29:19 | 2018-04-23T17:24:22 | Python | UTF-8 | Python | false | false | 1,386 | py | """
Module tests for the water-regulation module
"""
import unittest
from unittest.mock import MagicMock
from pump import Pump
from sensor import Sensor
from .controller import Controller
from .decider import Decider
class ModuleTests(unittest.TestCase):
"""
Module tests for the water-regulation module
... | [
"stefanjp@gmail.com"
] | stefanjp@gmail.com |
283b14dc0b4d129b44da12e6adba60b3f87e41bb | bf3e28bf91b3b94ec4f48d2b2770506a3b2f9c5d | /stm/plot_stm.py | f7fa51491a2327ff3800f63a13a4f22116f6957a | [] | no_license | sr76/excitingscripts | 960749b23173506352ec0930f31624f0ca4a050a | 19fe45bbcae8b19757cf37e5563d1a15bd353624 | refs/heads/master | 2021-01-02T22:44:32.443676 | 2012-09-17T11:01:43 | 2012-09-17T11:01:43 | 5,795,835 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | #!/usr/bin/python
import parse_plot2d
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LinearSegmentedColormap
import matplotlib.cm as cm # color map library
import os
import sys
args = sys.argv[1:]
if "-tile" in args:
ind = args.index("-tile")
ti = int(args[ind+1])
tj = i... | [
"santiago.rigamonti@physik.hu-berlin.de"
] | santiago.rigamonti@physik.hu-berlin.de |
621333841f77d8f450e89b6da4802214a1f72bd0 | f0066a2eb7b2f92d7c04dc314af6be320724c614 | /nova/tests/unit/virt/libvirt/test_vif.py | 19be56c65db380d64cd184e26a58870aeed718fe | [
"Apache-2.0"
] | permissive | hyphon81/nova-for-gpu-passthrough | 80392ea7462ade8457e77843482387d8f6593797 | 7c164980d7355d8fc40a6b155e31e325191b6a5e | refs/heads/master | 2021-01-20T14:10:38.016142 | 2017-02-10T08:03:45 | 2017-02-10T08:03:45 | 82,746,438 | 0 | 1 | Apache-2.0 | 2020-07-24T00:41:48 | 2017-02-22T01:31:23 | Python | UTF-8 | Python | false | false | 77,088 | py | # Copyright 2012 Nicira, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"zero812n@gmail.com"
] | zero812n@gmail.com |
b1beccc1944f11dceffe362b0b3552b144969ef0 | 39d0c6975f8d47740fdbf16b294e393210506e55 | /opveclib/test/test_unary_math.py | 7e6441a9c13bae2f5711c798d58e427394fe11de | [
"Apache-2.0"
] | permissive | kbrems/opveclib | 59a66fe986b9fd541cdb5c296dbbe4f21d2fdb0f | 8381bb333d203e580676beb107fd69212ba20a59 | refs/heads/master | 2020-12-01T01:08:37.297345 | 2016-06-06T14:29:15 | 2016-06-06T14:29:15 | 60,547,787 | 0 | 0 | null | 2016-06-06T17:37:56 | 2016-06-06T17:37:55 | null | UTF-8 | Python | false | false | 5,826 | py | # Copyright 2016 Hewlett Packard Enterprise Development LP
#
# 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 ... | [
"matthew.pickett@hpe.com"
] | matthew.pickett@hpe.com |
9727f8d73ce82c5146d695bcfb555813b543ff79 | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/022.py | 164a540eabd104f453b2caa203a01db62f7e7434 | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | a = True
b = False
print(a == 1) # True가 출력됨
print(b != 0) # False가 출력됨
| [
"jsh2333@gmail.com"
] | jsh2333@gmail.com |
de94c56c7667c7a7c99683be9a0bf04d00ecca56 | a5688a923c488414ecffcb92e3405d3876f1889d | /examples/computer_vision/mmdetection_pytorch/configs/guided_anchoring/ga_faster_x101_64x4d_fpn_1x_coco.py | 28f4fd4b13801f9cb47ceb3d715244d40c281c70 | [
"Apache-2.0"
] | permissive | armandmcqueen/determined | ae6e7a4d5d8c3fb6a404ed35519643cf33bd08e4 | 251e7093b60a92633b684586ac7a566379442f15 | refs/heads/master | 2023-05-28T17:52:18.915710 | 2021-06-09T23:55:59 | 2021-06-09T23:55:59 | 259,449,481 | 0 | 0 | Apache-2.0 | 2021-04-09T12:13:11 | 2020-04-27T20:47:23 | Go | UTF-8 | Python | false | false | 376 | py | _base_ = "./ga_faster_r50_fpn_1x_coco.py"
model = dict(
pretrained="open-mmlab://resnext101_64x4d",
backbone=dict(
type="ResNeXt",
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type="BN",... | [
"noreply@github.com"
] | noreply@github.com |
6fe6df1f0c3cf8fbc8b71b768fcb421f521466e2 | 2d4127f5fa1bca8ba41b9da48d9180c64680b327 | /openid_connect_op/utils/jwt.py | 7c7f306b1959045ffe75b8aaff0c8c8189a54732 | [
"MIT"
] | permissive | WilliBobadilla/django-openid-op | ce02b7fe9db4fa8aca0cec4df003c905927dfbe3 | 732812cab7610080289ae70b8ea791ba9f0105ad | refs/heads/master | 2023-04-19T08:49:19.962249 | 2021-05-03T18:21:26 | 2021-05-03T18:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,642 | py | import datetime
from functools import lru_cache
import python_jwt as jwt
import jwcrypto.jwk as jwk
from django.conf import settings
from os import urandom
from jwcrypto.jws import JWS
from jwcrypto.common import base64url_encode, json_encode, json_decode
from calendar import timegm
# need to add "kid" header which... | [
"miroslav.simek@vscht.cz"
] | miroslav.simek@vscht.cz |
e60018c3b16506bf8a5d69e783a505017dd75e81 | b27811412ee9e5d4f999f9c7284c37826bc15166 | /words.py | 212444ddffd2c40bc7b1a724cd213153ba93d462 | [] | no_license | pranav-kural/learn-python-by-doing | fccb6d0b016490c117222a1bf74f10b07b666159 | f502f05fd3b1956761a405f624d6d0c3ff83a99b | refs/heads/master | 2022-09-12T10:01:24.071576 | 2020-05-21T18:03:45 | 2020-05-21T18:03:45 | 265,270,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | # to get arguments from command line
import sys
# import method to import data
from urllib.request import urlopen as uo
# fetch data and print words
def fetch_words(url):
"""
Fetch a list of words from a URL
Args:
url: The URL of a UTF-8 text document
Returns:
story_words: A ... | [
"pranavkural042@gmail.com"
] | pranavkural042@gmail.com |
338d12d14e5462f88ea7865950ba7b1f1928dd8b | 878e65a34f6b10ac81759ab87147022360bfd622 | /csbuild/_utils/string_abc.py | 5195d84ed564093dab6c613c14ab3ac993be3d07 | [] | no_license | SleepingCatGames/csbuild2 | 5f265aec1a490e32503857bff5d1e139992a1652 | c7389961bee3d8e5088c8c3c8c4bb7e273e4ec50 | refs/heads/develop | 2023-08-31T07:17:55.905512 | 2023-08-20T21:45:05 | 2023-08-20T21:45:05 | 100,565,406 | 1 | 1 | null | 2023-08-20T21:45:06 | 2017-08-17T05:36:13 | Python | UTF-8 | Python | false | false | 1,734 | py | # Copyright (C) 2013 Jaedyn K. Draper
#
# 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, di... | [
"jaedyn.gitswarm@sleepingcat.lol"
] | jaedyn.gitswarm@sleepingcat.lol |
2d15202fa26bbb597a37674bdab0cbb8c38129bb | 513cd33243273165a9f15284ad9d21a136d15cf5 | /api/error.py | 34d31e937d221e7f33d57de1b71dcf4883ea840e | [] | no_license | canwushuang/reptile | b2384c5e2a0da80f5c74de4b4d23dc62bb1eb7a7 | 59fcd19d1d90a4b223de127e3b8a422be7568296 | refs/heads/master | 2021-10-08T10:17:41.322732 | 2018-12-11T05:32:58 | 2018-12-11T05:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
# encoding: utf-8
# @file: error.py
# @Created by shucheng.qu on 2018/10/26
import json
error1 = json.dumps({'code':1,'data':[]})#def
error2 = json.dumps({'code':2,'data':[]})#kong
error3 = json.dumps({'code':3,'data':[]}) | [
"shucheng.qu@ucarinc.com"
] | shucheng.qu@ucarinc.com |
726724965cc5dd40c87e968dbc07d556753a217d | 3bcf66e2f57a0a02f3ff8e3327ce0d593cb8a4cb | /occupancy/worker/updater.py | c380e1dd66c02b108ec56688338326e41dc2477d | [] | no_license | gyf304/occupancy-server | 4dba26cc17678c387bf762f9384b5eef4bc89fd3 | 893801d5c181ecdabfbb0a557b7c82793ecf5e9d | refs/heads/master | 2023-02-19T19:45:30.247007 | 2023-02-06T18:45:10 | 2023-02-06T18:45:10 | 100,119,922 | 1 | 0 | null | 2023-02-06T18:45:12 | 2017-08-12T15:11:42 | Python | UTF-8 | Python | false | false | 2,495 | py | """Updates occupancy information"""
import datetime
import json
import sys
from . import estimator, scheduler
from .. import config, db, model
@scheduler.scheduled_job('interval', seconds=config.OCCUPANCY_UPDATE_INTERVAL)
def update():
"""runs the update"""
session = db.session_factory()
locations = sessi... | [
"gyf304@users.noreply.github.com"
] | gyf304@users.noreply.github.com |
65d29ecd028eb50113ad9186167417a6e80c33e9 | 1a7cefce3a4143dc54dbadf9c4a250c90da29032 | /UdemyTutorials/s11_08_function.py | 9660d7b53cec61057ee1f5459f481684bd97fd7d | [] | no_license | dankarthik25/python_Tutorial | c6c570260c9d015ba1528a56f846a04870a648f0 | e83ccb8bcded2b03b65fdd29cdd3043b85b74670 | refs/heads/master | 2023-06-19T06:16:41.774994 | 2021-07-11T16:44:10 | 2021-07-11T16:44:10 | 385,002,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | def python_food():
print("spam and eggs")
# python should have two blank line after fun definition
# def center_text(text):
# left_margin = (80-len(text))//2
# print (" "*left_margin,text)
#
# # parametrs are the variables defined in function defination
# # arg is actuall value that use to call ex: spam a... | [
"dankarthik25@gmail.com"
] | dankarthik25@gmail.com |
dc560b9bec281da3e98025278df45e9e044b4131 | 12a2ba34cb8d376ac6c62b34fb87b2b752d8ee30 | /pdf/wechat/mypdf.py | df6781c361b86a03a110c440739328e22e820c7d | [
"MIT"
] | permissive | damaainan/html2md | 05b940bc3535cd6f979c9f8be82c42d2d674f589 | 0d241381e716d64bbcacad013c108857e815bb15 | refs/heads/master | 2021-12-18T17:12:45.636917 | 2021-12-14T09:14:02 | 2021-12-14T09:14:02 | 73,710,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,942 | py | # -*- coding=utf-8 -*-
import pdfkit
import requests
import os
import re
from bs4 import BeautifulSoup
import platform
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
from lxml import etree
from lxml import html
from html.parser import HTMLParser # 导入html解析库
from termc... | [
"damaainan@163.com"
] | damaainan@163.com |
88786d4b1f09cbc61b0b4e1d83f905a57c35887c | 2101341ca4d15ad89f0492f175496587bcf1ee7d | /showtrip/migrations/0007_trip_views.py | a61d9990e103324a159c1afc93fb42965b925850 | [] | no_license | mikhail-kurapov/aitrip | 37ff73b2037c8b84364fa32fdbea996099246d0a | b1248889f143fd31c6d121b2f0c6bafc6df6dd6b | refs/heads/master | 2021-01-12T01:08:51.454706 | 2017-01-15T19:49:59 | 2017-01-15T19:49:59 | 78,349,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-08 22:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('showtrip', '0006_auto_20170108_2220'),
]
operations = [
migrations.AddField... | [
"m.kurapov@gmail.com"
] | m.kurapov@gmail.com |
0e88a5978a03c083643237497c1c6a83bc0d586e | f16cd6fc00c1e3035e8f6bd47989c04cc6406524 | /exercises/07_django/country/manage.py | 5378c5bac6ee1614e0e39224890246002e96edc3 | [] | no_license | emkamal/wsd2016 | 4cf1b9f72d2f82489594899979b4edff35ac2d5a | 20450722ff9c748758a7009e5b2bb069972c203b | refs/heads/master | 2021-01-12T08:50:49.228855 | 2016-12-20T21:08:51 | 2016-12-20T21:08:51 | 76,709,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "country.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"teemu.t.lehtinen@aalto.fi"
] | teemu.t.lehtinen@aalto.fi |
311370acc7f6e4101bc5e5139bf95aa9225c03bc | 6a31bf2afa9c5c542f41a5e74d962bed9590c7a1 | /news-aggregator/news_aggregator/tests.py | 27020db49ff95acbd4d4f480fd366027ca44fc6d | [] | no_license | singhkumarpratik/news-aggregator-pyramid | 1834d558ea650bcd04b26c7fa5795fc14889cd98 | a85260a190efbf2ce3d36c3dcce78e44f640ed2e | refs/heads/master | 2022-07-01T20:51:08.236315 | 2020-05-10T23:00:13 | 2020-05-10T23:00:13 | 260,049,667 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import unittest
from pyramid import testing
class ViewTests(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def test_my_view(self):
from .views import my_view
request = testing.DummyRequest()
info = my_vie... | [
"prxtiksingh@gmail.com"
] | prxtiksingh@gmail.com |
fd1b75e6be777939eef91fc957b35db62b758506 | 27e23b55a4642ab7b01bfd2917285a17ac984dbd | /tests/test_cli.py | 8499863f5919ade635df4ea611e27f0ae876eef4 | [
"MIT"
] | permissive | rafaelalmeida/rio-pansharpen | 221a6e1d2bd7ec5768d8a4faecc3e27c1c227bed | 28e2446d16e8b9abaa78e10eaf4573ce9f0c4769 | refs/heads/master | 2020-12-14T18:56:10.009663 | 2016-08-18T14:16:18 | 2016-08-18T14:16:18 | 66,674,249 | 0 | 0 | null | 2016-08-26T19:32:07 | 2016-08-26T19:32:07 | null | UTF-8 | Python | false | false | 3,214 | py | import os
import click
from click.testing import CliRunner
from rio_pansharpen.scripts.cli import pansharpen
import re
# test raise exception
def test_exception(tmpdir):
output = str(tmpdir.join('wrong_customwindow.TIF'))
runner = CliRunner()
result = runner.invoke(
pansharpen,
['tests/fix... | [
"virginia@mapbox.com"
] | virginia@mapbox.com |
55fd8f6731ac12dc4c43cec0146a397ec6063002 | 9028516ff0b2d95b8000b9fc4c44c29aa73c926c | /qa/rpc-tests/listtransactions.py | 2aa4910074d08c894f8f572dd90a502a1019280f | [
"MIT"
] | permissive | lycion/TripOne | a9e546eac9ad6179c0b6bd4f868162f70930b6ac | c6ae7d9163ef4095fe0e143d26f3311182551147 | refs/heads/master | 2020-03-28T22:29:06.119551 | 2018-09-18T06:07:06 | 2018-09-18T06:07:06 | 149,236,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,913 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Copyright (c) 2015-2017 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import test_framework.loginit
# Exercise the li... | [
"lycion@gmail.com"
] | lycion@gmail.com |
84f33cd10d4fbf0c260fe79d94677f1981106f9c | 3ff8a8aedda4fea6510a58415725b3706b24e8ff | /bep/views.py | 1432c4d2bac8e776ce1cb024cdbaa5dae5f8778f | [] | no_license | Madolkke/BookExchangePlatform | 49540671186948d5ab98e4b5d287f5139bf4d625 | d76ea111effe546bbb9cb5961905dfb170b62921 | refs/heads/master | 2022-12-29T04:29:29.569979 | 2020-10-10T06:33:19 | 2020-10-10T06:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,099 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
import bep
from bep.models import BepUser, Session, Book, Order
from django.core.paginator import Paginator
import django.utils.datastructures
import json
# Create your views here.
def login_page(request):
return render(requ... | [
"madolchepalooza@qq.com"
] | madolchepalooza@qq.com |
89445d449027311d71463ffa3699f9a69c2baa65 | 35cc30ae554a6547e6552bf0157d4f8ca4c7aa27 | /ros_piborg/scripts/piborg_controller.py | 64a52d5c3850b435ae5d37e3f36e51a53c50d8fe | [
"Apache-2.0"
] | permissive | athenian-programming/ros-piborg | cd63a7b5c40c5f218b365cbe8fec014221958c23 | 8df572e70fa12b4afae8e2975585c5c32fafd10e | refs/heads/master | 2021-09-07T00:23:30.826391 | 2018-02-14T03:49:15 | 2018-02-14T03:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import rospy
from geometry_msgs.msg import Twist
import PicoBorgRev
class PiBorg(object):
# Power settings
__voltageIn = 12.0 # Total battery voltage to the PicoBorg Reverse
__voltageOut = 6.0 # Maximum motor voltage
# Setup the power limi... | [
"pambrose@mac.com"
] | pambrose@mac.com |
4dc5c36bfb783f004e527309e4d0693adf8791bc | 70c052859d9852c86c852297835a86d44b9bb410 | /core/mitigation/ArPRS/mitigation.py | cf35cc9a13280f8b5c70a8e6f526554e4e8207e1 | [] | no_license | Chan-0312/RFIShow | b7f3df34cac3096ab732eab62810c9dc9dfc24e2 | f3974fb2f29896c0cf178331dd7d804794a6e4ba | refs/heads/master | 2023-04-26T10:32:11.993781 | 2021-05-18T13:04:58 | 2021-05-18T13:04:58 | 356,098,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,364 | py | import numpy as np
from numba import njit, prange
from scipy import ndimage
from scipy.optimize import curve_fit
from .baseline import ArPLS, gaussian_filter
#####################
# Global parameters #
#####################
# Maximum neighbourhood size
MAX_PIXELS = 8
# smoothing default params
KERNEL_M = 40
KERNEL_N... | [
"925355568@qq.com"
] | 925355568@qq.com |
62b4cf8b3ce44d77d2b462ec6eab2d5485536c95 | a74172c2b94b5a002313b032be91acc8d570dc8f | /django/07_django_model_relationship/accounts/migrations/0001_initial.py | b941cb91aa62f7fcb2746d23163774f8a61bdd5b | [] | no_license | zmd9220/ssafy_code | 2951bc9f79c84904d58bcca3c381f91f9efdad84 | 2b2fe9d71105d9396bf654a136516f599bcbc118 | refs/heads/main | 2023-04-24T09:21:12.172244 | 2021-05-15T13:31:49 | 2021-05-15T13:31:49 | 361,973,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | # Generated by Django 3.1.7 on 2021-03-29 00:19
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"zmd9220@gmail.com"
] | zmd9220@gmail.com |
7981cbdab1acda0d624c7e183888ddffbe9b4eb5 | 59d480bf8ad257b5c510738634a7f79bf685a744 | /hue_getBridgeHttpAddress.py | bee313d1c8d02972dea5afce81281a7dfcdb8fb8 | [] | no_license | CK1-CK/hue_python | a572bab492ffa73a1810dd5d8aa7932fda21e367 | 84ca1c5ea0396e65ecf6968302e8bc516c5f412d | refs/heads/main | 2023-01-06T11:50:16.692077 | 2020-11-05T21:33:40 | 2020-11-05T21:33:40 | 308,554,484 | 0 | 0 | null | 2020-11-05T20:36:42 | 2020-10-30T07:21:59 | Python | UTF-8 | Python | false | false | 706 | py | # -*- coding: utf-8 -*-
#pip install validators
import discoverhue
import validators
http_address='http://192.168.0.164/' #HUE Bridge IP-Adress incl. http
def GetBridgeHttpAddress():
global http_address
try:
if validators.url(http_address):
return http_address
else:
f... | [
"65177756+CK1-CK@users.noreply.github.com"
] | 65177756+CK1-CK@users.noreply.github.com |
d3c41e315478007c33f0845a85c9b27592fdf163 | 03952ff845c7e08f06cad949e894e896411f5210 | /src/dtf_parser.py | e9ce6efe9bbe061e64d1397527898edec6d3e9ff | [] | no_license | Osfory/dtf_data_mining | a199866cb2628f9635aee65ddf55906e15c6bda3 | 0e1154ebb87a8118b76dab8d8c88b3c4b4616d49 | refs/heads/main | 2023-04-26T21:53:09.017881 | 2021-05-16T07:51:28 | 2021-05-16T07:51:28 | 336,772,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | import json
import requests
import urllib.request
import pandas as pd
import time
class ConfigLoader:
@staticmethod
def load():
script_path = "YOUR_PATH" # "YOUR_PATH"
with open(str(script_path) + "/config.json") as json_file:
return json.load(json_file)
config = ConfigLoader.loa... | [
"belyantsev.aleksey@gmail.com"
] | belyantsev.aleksey@gmail.com |
eb4dea118069aa919f4783f664f547821c76ec42 | ae91e7f7e80f891a8116cdaba5b52b1b3175f7c3 | /tests/hwsim/test_ap_tdls.py | c4d6dbc2f137a30970a572ce685454db44de2b23 | [
"BSD-3-Clause"
] | permissive | AlejandroAbad/hostap | fda648e9f874be650193519dd552f8f31fdd210d | 60400d5e1f21f4a1357185d4c8e3a4f781375e25 | refs/heads/master | 2020-06-04T20:27:33.386538 | 2014-04-02T18:25:05 | 2014-04-02T18:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,893 | py | # TDLS tests
# Copyright (c) 2013, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import time
import logging
logger = logging.getLogger()
import hwsim_utils
from hostapd import HostapdGlobal
from hostapd import Hostapd
import hostapd
fro... | [
"j@w1.fi"
] | j@w1.fi |
098c796afacb67484884c0be523186710e54f517 | 32e6e405bebc7c63ca0a1721512a9abe4c2ed7cb | /food_reference_listing/database/archive_loader/initialize_database.py | 86532879fe4e3fdf107fdcc2b05257eba61c3ebd | [
"MIT"
] | permissive | bfssi-forest-dussault/food_reference_listing | d034d853a966967a94b6a1e82beee442786f1e7f | 85372a81a9201dda02797ab0c11b1bd710f9b70d | refs/heads/master | 2023-01-03T22:44:13.388149 | 2020-10-29T18:40:18 | 2020-10-29T18:40:18 | 241,152,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | import sys
import django
from pathlib import Path
# Need to do this in order to access the database models
sys.path.append("/app")
django.setup()
# For some bizarre reason I need to import all functions, rather than have them be defined in this file vOv
from food_reference_listing.database.archive_loader.helpers impo... | [
"forest.dussault@canada.ca"
] | forest.dussault@canada.ca |
6e41c29382feafbfa59643d02f96398a4bbc88bf | df31502b28a82a7ecb2a542d41d55d988ed26f45 | /mock/__init__.py | a109f641743058ba83dfc789dcb0cb775f4414c9 | [
"BSD-3-Clause"
] | permissive | Fracappo87/ML | 79534283ba04372fe06fed1e7824a3b7ea769f4d | 280471817bed1ff9f7fe5109d94fa6deaf2d01a5 | refs/heads/master | 2021-05-05T09:40:42.315167 | 2018-02-19T15:14:36 | 2018-02-19T15:14:36 | 103,908,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 19 07:13:52 2017
Author: Francesco Capponi <capponi.francesco87@gmail.com>
License: BSD 3 clause
This is a collection of python3 modules, to be used for generating mock datasets and classes.
It can be used for implementing testing procedures of learning algorithms,... | [
"capponi.francesco87@gmail.com"
] | capponi.francesco87@gmail.com |
425faa5451f110e7e23e14b6ede9fd22943d7932 | 3e7c060fab60be98a69e9e4d84a1ceaf3cb431f5 | /apps/coefficient/migrations/0001_initial.py | 81dfb9456fed48ac0893ae4f133587496536e5ff | [] | no_license | leekucoco/jixiaokaohe0316 | 7cd03c23c05e1102f26aef9ed44fe05de4aabce9 | 5fb96535279f04afac5e4e67e93bd0a2cc285cea | refs/heads/master | 2021-04-09T11:01:26.498863 | 2018-03-16T08:04:35 | 2018-03-16T08:04:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-03-14 10:07
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"leekucoco@163.com"
] | leekucoco@163.com |
80147bbb0710f00faafe35228d6fa40ec6be58de | 57d88ae2ee752f9624c10d81bb46fc979176f86d | /gisty.py | 966290439f230e79fb9a5d17832126519bda27c3 | [] | no_license | lambdamusic/Snipplr_2_Gist | e346cba5762ffb50cef63aa93430e229016b07f4 | bf23e99595cd43abfd301649c8727a894c80c2f6 | refs/heads/master | 2021-01-10T21:37:28.916160 | 2013-02-07T21:57:11 | 2013-02-07T21:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,673 | py | # mikele: I modified this so that I can pass stuff directly from console
# In [1]: from gisty import *
# In [2]: gist_list("username", "password")
# https://gist.github.com/3808121 - [u'new_gist.py'] 'Python: take input from stdin and create a new public gist with it'
# https://gist.github.com/3807911 - [u'base.html'... | [
"michele.pasin@gmail.com"
] | michele.pasin@gmail.com |
32f75d1ab64a5f215393d6f5c1848e0138edc409 | eb5fa3bdbad17674e95b360694e6d794387a557c | /menuhin/middleware.py | 2f5bf781bf9e2cac82946707eb46785c3e434752 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | kezabelle/django-menuhin | 0648bc923fe159612846282a526f2c60d0f535a9 | b9c4111eed04e241c29ca8ec95c8a3ffeaac48da | refs/heads/master | 2021-05-02T02:00:44.896065 | 2014-12-19T10:00:50 | 2014-12-19T10:00:50 | 14,557,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | import logging
from django.utils.functional import SimpleLazyObject
from django.conf import settings
from django.core.urlresolvers import reverse, NoReverseMatch
from .models import MenuItem
from .utils import (LengthLazyObject, get_menuitem_or_none,
get_relations_for_request)
logger = lo... | [
"keryn@kerynknight.com"
] | keryn@kerynknight.com |
e136db767f8831f6c33e06a60d9066aa75d8e8a1 | bc01e157a5bc628302bce01f448968abebbae8c1 | /Занятие 7 - Списки/Практика/Наибольший элемент.py | e9f498b761c3465c30fbe937010f8226be82a11d | [] | no_license | Erniess/pythontutor | adf41d168785f186f380f6024df7cf7a9329b23e | 89d7d2aac7c2adc998268a565adf0550ac2755e1 | refs/heads/master | 2022-12-30T21:54:01.493516 | 2020-10-12T15:16:06 | 2020-10-12T15:16:06 | 268,818,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # Задача «Наибольший элемент»
# Условие
# Дан список чисел. Выведите значение наибольшего элемента в списке,
# а затем индекс этого элемента в списке. Если наибольших элементов несколько,
# выведите индекс первого из них.
li = [int(i) for i in input().split()]
index = 0
for i in range(1, len(li)):
if li[i] > li[in... | [
"dragon_a@rambler.ru"
] | dragon_a@rambler.ru |
3af8710d6b01d30dfe73cc770a65abe5f3cdfb70 | 99da8a6d2392472cb66e5b12c03142c90640186a | /BOJ/DFS&BFS/2573.py | 784c81d48ea577cc9b507ab56b9611ea6bc47a60 | [] | no_license | chorwonkim/__Algorithms__ | cf6cf4ae5cf091d856397369b6db1bb41f925377 | 0c1e58410ae90b72c0d7e44a6179b8fedc786131 | refs/heads/master | 2022-09-28T16:59:20.841482 | 2022-09-25T09:57:58 | 2022-09-25T09:57:58 | 130,082,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # import sys
# sys.setrecursionlimit(100000)
#
# dx = [-1, 0, 1, 0]
# dy = [0, -1, 0, 1]
#
# N, M = map(int, sys.stdin.readline().rstrip().split())
# ice_map = []
# ice_map_checker = []
# result = 0
#
#
# def func_2573(p, q):
# ice_map_checker[p][q] = True
#
# for k in range(4):
# ice_p = p + dx[k]
# ... | [
"upheaval212@gmail.com"
] | upheaval212@gmail.com |
51517fd9e6fa76814a86803329db13113fbcaa7e | e0ea03ec99186e80b6706e81e6056dbcf1987a67 | /View/ReuseComponent/EditLineReuse.py | 89968e0794a895fc4abaf7d2e83e445fd3413ce7 | [] | no_license | Sapeiidw/PBO-Kelompok-4 | 4cf062007f2a41855e5e9b44c567928f23bf4352 | c46c45be3499a07e8f688221def7997798aeb097 | refs/heads/master | 2022-07-14T00:33:45.923132 | 2020-05-15T03:34:09 | 2020-05-15T03:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from PyQt5 import QtGui, QtWidgets
from PyQt5.QtWidgets import QLineEdit
class EditLineReuse(QLineEdit):
def __init__(self, placeholder):
super().__init__()
self.setStyleSheet("border : 0;\n"
"outline : 0;\n"
"background : transparent;\n"
... | [
"mohammadfahmi417@gmail.com"
] | mohammadfahmi417@gmail.com |
f759c87feb6abb932fcbe507e44e1f042fc8563a | 4ace4dd1c01e372ef4912004d6fdb67e0c746431 | /add.py | b246b78779f910aa76c32a2da32b50ff972d0abf | [] | no_license | ksyj8256/Practice-Git | 141e384966d249892348ab73ff5490944ba48d34 | 6acfe07f07581a1c4fbeebefc3a846303fcca5a6 | refs/heads/master | 2020-07-03T09:10:44.802231 | 2019-08-12T06:29:19 | 2019-08-12T06:29:19 | 201,804,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | def add(a, b):
return a+b
def add2(a, b, c):
return a + b + c | [
"ksyj8256@naver.com"
] | ksyj8256@naver.com |
33e8c9091dc3c40a7db7abd72328d823ae268b63 | e961d3babdca04ba39e7a210fca90b70676a774a | /c-131.py | c3c49126aa118360fa45f780d10d603f2c97ba04 | [] | no_license | PritishMukherjee123/c-135 | 07717efee275e1f720e6cc8c8e04ed1488435f90 | d57c7b8a2513215b85ea2fba34b4b293a337b29f | refs/heads/main | 2023-08-28T16:23:38.589080 | 2021-10-15T15:15:34 | 2021-10-15T15:15:34 | 417,544,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,417 | py | import csv
rows=[]
with open("planetdata.csv","r") as f:
csvreader=csv.reader(f)
for row in csvreader:
rows.append(row)
headers=rows[0]
Planet_data_row=rows[1:]
print(headers)
print(Planet_data_row[0])
headers[0]="row_num"
Solar_System_Planet_Count={}
for Planet_data in Planet_data_row... | [
"noreply@github.com"
] | noreply@github.com |
0e73a9a57c08e990f0dd90913c0a96dfe81fc02a | 6f7032e954334d102a9e1eff8f420f0a8b7ee70a | /pytestpackage/test_conftest_demo1.py | 2820a6af2e706f8e8ff16ee55e6d55b40b53b7c1 | [] | no_license | suchismitarout/selenium_practice | 186596e14ed66550ef184703a04aa323faad9f45 | 2281e6a3a526f2ff5c1c566517dc85b4ae23b85b | refs/heads/master | 2022-12-26T12:16:17.297471 | 2020-10-06T06:21:04 | 2020-10-06T06:21:04 | 301,632,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import pytest
def test_demo_conf1(onetimesetUp):
print("This is conftest demo")
def test_demo_conf2(onetimesetUp):
print("This is second conftest demo") | [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
e77c1636df313a97254d265a10c3d2a2c41dd18d | 43a973dc7d2473c2b887c767a2597da86fada4ff | /Utils/dataTrans.py | 3aa58e97a2e9dfa2b819344da9296c47112be0b3 | [] | no_license | iwondergit/KMiner | 5a767ee22d31cb4167567d46b8f9e01e7956dc17 | c694e637c95a060c3751c4a9d151be79967848c3 | refs/heads/master | 2021-09-05T18:12:00.992627 | 2018-01-30T05:52:35 | 2018-01-30T05:52:35 | 119,489,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,415 | py | #data transformation functions
import numpy as np
def addNewMetrics(keys, records):
recordsData = np.array([list(t[2:]) for t in records])
[keys, recordsData] = calculate(keys, recordsData, 'lastC')
[keys, recordsData] = calculate(keys, recordsData, 'ma', 5)
[keys, recordsData] = calculate(keys, record... | [
"mizhu@microstrategy.com"
] | mizhu@microstrategy.com |
d16c9b91a5c897f61fb9bd659fd74a37ceeb379c | 5995b039f039accf17538283a51668be929aeaea | /red_mind/red_mind/wsgi.py | 6eb39eb6bbcbd2a0289055e40fd2dc5560db6e82 | [] | no_license | harshitdixit69/red_mind_heart | 0c9bed294a8e89b05ecdd93590da25f79139ad6c | 8693ddef44e949219eab6670a3b1b862646f3dd8 | refs/heads/main | 2022-12-29T23:17:51.061114 | 2020-10-14T21:12:21 | 2020-10-14T21:12:21 | 304,288,555 | 0 | 0 | null | 2020-10-15T10:21:03 | 2020-10-15T10:21:02 | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for red_mind project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"satyam1998.1998@gmail.com"
] | satyam1998.1998@gmail.com |
d60f679e460cc4fe93850f0740f3140eb264e52b | c6a3eeeea9a7762e45801e136a9cd6c15c2dfe87 | /sprints_venv/bin/chardetect | 28a5f3c5835004e774dcda143702d2439edc84dc | [] | no_license | FernandaLV/sprintly-api-sprints | 7d49bebf17baa2cb55e31587d0784e0db4685af0 | 71c1c310a3ddbe247c75fec547bd543372ebbcd2 | refs/heads/master | 2022-12-27T01:02:38.125998 | 2020-03-28T16:09:58 | 2020-03-28T16:09:58 | 250,838,345 | 0 | 0 | null | 2022-12-08T07:26:19 | 2020-03-28T16:09:09 | Python | UTF-8 | Python | false | false | 321 | #!/home/fernanda/Documentos/FIAP/Aula/MicroServicer/trabalho-microservice/sprint_microservice/sprints_venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())... | [
"fe.vedovello@gmail.com"
] | fe.vedovello@gmail.com | |
da11b4cca48ae0c88eb3b8c66a041828ea0b021e | e38db85f6a13b32c60bf66d78838d6ed348f1798 | /healthplans/tests.py | 549fcf58df9886eecfa78cb4e957f908105e148f | [
"BSD-2-Clause"
] | permissive | westurner/health-marketplace | ab72d60d9469c9f3622bc64c391b222018c7c7a1 | 15f5379cc213e2e2b2150e967b56092ea8468db2 | refs/heads/master | 2020-12-28T21:28:09.415775 | 2013-11-09T17:55:08 | 2013-11-09T17:55:08 | 14,261,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
from healthplans.models import Provider
from healthplans.models import Plan
class HealtplansModelsTes... | [
"wes@wrd.nu"
] | wes@wrd.nu |
452e59e4d1ae9742bb21aa2d66cd8ac60a1f8fa7 | 7ea469fd24ca92c8d9e6f658e5e8d4fe01430135 | /Ranges.py | 89d00e8a06bfb5aef8a1b9e0a6cfab595f97c908 | [] | no_license | amrendrapratapsingh/Python_Files | f62c79c47b9135c9154218c3015fa8a89da13402 | 032dc87708836624194f1d6c363ad98e277dfd98 | refs/heads/master | 2020-03-19T21:35:31.939461 | 2018-06-26T07:28:43 | 2018-06-26T07:28:43 | 136,944,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | x = range(10)
for p in x:
print(p)
| [
"noreply@github.com"
] | noreply@github.com |
d5881a29db732955375e63081b70edc1fffb2f83 | 85afd16dd78049dfcf3ead4947d03177c1328fb5 | /src/transformers/models/detr/configuration_detr.py | 604a7dad0f42e95d5bf8b7a035ff73eba650560b | [
"Apache-2.0"
] | permissive | rivercold/transformers | adbaa53d7af6e243a139978627a0b2d267ad5860 | 142e12afb457e31ec0e7323d9eba7b8bfee46c57 | refs/heads/main | 2022-09-20T12:17:11.014053 | 2022-09-01T20:19:11 | 2022-09-01T20:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,814 | py | # coding=utf-8
# Copyright 2021 Facebook AI Research and The HuggingFace Inc. team. 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... | [
"noreply@github.com"
] | noreply@github.com |
b3b4016433cfe8d451957613720f78240d412fea | 48ed5052cf6f20bb92979b335ceeb1412f8bfb08 | /chapter7/treepredict.py | 92a59ec2be407024431969486ad08b9547a65cf0 | [] | no_license | vincentking/pci | 4a8acc4e5fb644995e31a65d2fe49b04e2b8b914 | 83b6caa6ddf74b6c7db0001a006b8eb28b5fed97 | refs/heads/master | 2021-01-10T22:05:19.081017 | 2013-10-08T10:30:34 | 2013-10-08T10:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,830 | py | my_data=[['slashdot','USA','yes',18,'None'],
['google','France','yes',23,'Premium'],
['digg','USA','yes',24,'Basic'],
['kiwitobes','France','yes',23,'Basic'],
['google','UK','no',21,'Premium'],
['(direct)','New Zealand','no',12,'None'],
['(direct)','UK','no',21,'Bas... | [
"xuliqiang@xiangrikui.com"
] | xuliqiang@xiangrikui.com |
5d37fe3de2dfd21954a9e746dc5af4b0020fdec8 | 939ef5365319f3df7a1349092cd01547a2666eed | /arc119/b.py | 6197b48dd52ae73febde2adf6008c1b701954673 | [] | no_license | bamboo3892/AtCoder | 683c615a722413fd28c3fcd2e8ddcaa72e093886 | 53850037a15bc14d17552599fa22342a4ce24aab | refs/heads/master | 2022-12-02T02:02:40.339720 | 2021-06-29T10:13:52 | 2021-06-29T10:13:52 | 369,517,393 | 0 | 1 | null | 2022-11-20T14:59:14 | 2021-05-21T11:46:33 | Python | UTF-8 | Python | false | false | 1,150 | py | import math
import numpy as np
import bisect
def main():
N = int(input())
S = input()
T = input()
i0 = []
i1 = []
pair = []
total0 = [0] * N
nowTotal = 0
for n in range(N):
if(S[n] != T[n]):
if(S[n] == "0"):
if(len(i1) != 0):
... | [
"applebanana137@gmail.com"
] | applebanana137@gmail.com |
afc6c1df04ad6a095e164a7d5a5bbebe1688e4f1 | 54919de344e6e73f26a6f4d824d98ac89d8c8bd7 | /spoke/faq.py | 81cf181df7a8a94691a0a6b4d5669c2927e65046 | [] | no_license | Kebirs/Spoke-london | 48c1a4ec353f162873401996ca834af9d263491b | b32632a54fbae31d426458d49ffda8d6868d02dc | refs/heads/master | 2023-04-25T06:32:24.981666 | 2021-05-17T12:17:04 | 2021-05-17T12:17:04 | 365,546,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | import time
from lxml import html
import json
from bs4 import BeautifulSoup as bs
from spoke.main import Settings, DataWriter
class FAQPage(Settings, DataWriter):
def __init__(self):
super(FAQPage, self).__init__()
self.origin_url = 'https://spokelondon.zendesk.com'
self.faq_home_links = ... | [
"dklecha99@gmail.com"
] | dklecha99@gmail.com |
8a3c2a85b3f23ec4e26fadcda090998ab832a4d1 | cdebc281d45d12173294288333f5caf9ea9d765f | /HW06/Hawley-hw06a.py | 3a6b5d80fe21d8fff1be8bada8d7307e40c407ee | [] | no_license | CheeseMan1213/CSE_1310 | 42d63fd66e185c5fb1cd8aa5cdbdb0d2811d466a | accec6ba64a2750ff9e757cf98365199ede1a029 | refs/heads/master | 2020-07-04T10:27:11.314810 | 2019-08-15T02:45:24 | 2019-08-15T02:45:24 | 202,255,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | """
James Hawley
10-07-2013
Homework#6a
"""
##### Functions #####
def ColMax(a):
c = 0
L2 = len(a[c]) - 1
NewList = []
while 0 <= c and c <= L2:
L1 = len(a) - 1
mymax = 0
r = 0
while 0 <= r and r <= L1:
mymax = mymax + a[r][c]
r = r + 1
... | [
"iliketofeelcheesetootoo@yahoo.com"
] | iliketofeelcheesetootoo@yahoo.com |
8196a02855f2ae340915ff324e2199e99211f8a6 | 3eadf176c95f0c924af53770441afc0797d7c6ff | /memberships/admin.py | ccbd60dec107d29cc05318f498a7790d51b957e8 | [
"MIT"
] | permissive | Maneesh9063/video-membership | d144d559fe721e4a077659d610e6c0e8c35062d6 | c241310a6a4e3b7ee831b1d65ae8afaef7d3076a | refs/heads/master | 2022-12-08T23:58:37.176632 | 2020-09-04T15:41:40 | 2020-09-04T15:41:40 | 292,874,425 | 0 | 0 | MIT | 2020-09-04T14:52:54 | 2020-09-04T14:52:53 | null | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
# Register your models here.
from .models import Membership, UserMembership, Subscription
admin.site.register(Membership)
admin.site.register(UserMembership)
admin.site.register(Subscription)
| [
"freire1996@gmail.com"
] | freire1996@gmail.com |
d271a9cf8126ae56eb7272193959b38f7de60c87 | 7463a66dfa00572f4e4d8ef4349309531f0105ae | /ServerDL/cfgs/configfiles.py | 3ba6e38d4d33dfb1119a53e1b5ed363987540186 | [] | no_license | fx19940824/DetectionModel | f2e380fd21f4b31a17fd175a6dea1067b8f0d5cc | edc0d2f9eea481d2bc6f3abb2f222b59fdc25538 | refs/heads/master | 2022-12-20T19:58:32.224829 | 2019-05-30T01:16:05 | 2019-05-30T01:16:05 | 188,800,679 | 2 | 0 | null | 2022-11-22T02:39:23 | 2019-05-27T08:13:38 | Python | UTF-8 | Python | false | false | 2,983 | py | from ServerDL.apis.transformers import *
from ServerDL.apis.postprocesses import *
from Algorithm.classifications.utils.model_factory import classification
from Algorithm.segmentation.deeplabv3plus.modeling.deeplab import DeepLab
model_register_table = dict()
model_register_table["maskrcnn_box"] = {
"model_w... | [
"you@example.com"
] | you@example.com |
bdeb9a8e1f448e91a7b50308a911ea7389b32826 | 0f00fe169f5cf05c49403bab5af82658d3035fb3 | /t1-3---mosalas/main.py | 078c09f1d087a9cd25ab7161d47e1f8a553abbcc | [] | no_license | Atousa-Niazi/OSLab-T1 | a244b868942c837fecb185de8ce08cb0fa4ddf4e | 5891ed01cdb81e82b4107dabf761d5cae49b375c | refs/heads/main | 2023-08-25T02:51:22.964618 | 2021-10-08T14:07:12 | 2021-10-08T14:07:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | '''
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
'''
""" Atousa Niazi Abkoh 98440127-os l... | [
"noreply@github.com"
] | noreply@github.com |
604e65c8045c0d572cd3e97c4f1a8ba98852d8b0 | 2b0668376a00b39ea640a6384839b5b7fc3dfc4d | /app01/__init__.py | 13dbf73c0d02ed2748dacb151d7145a610a73f0a | [] | no_license | fltester/orm01 | 3ef2a3e7e0f77b83b93f8c4f0614f620aa06ebf1 | 19d90dc1e81a7427ded8a32e6910f2ce8a9d12ca | refs/heads/master | 2021-05-15T03:16:48.231306 | 2020-03-30T13:50:00 | 2020-03-30T13:50:00 | 250,409,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | #dfgdsf3344555999444
| [
"fangchao2018@outlook.com"
] | fangchao2018@outlook.com |
d3b8f849081dc2c90927f4bef7bc3d6dfc113edb | fd10d81ca830ff1970fef93450b6a84eab74af79 | /scrape_figures/scrape_figures/spiders/ncomm_spider.py | d7386ec080bbb9014da8c6139362116b49398357 | [] | no_license | Imperssonator/Sherlock | edc1163d44403b254e24270a121da5d5168ab63e | 0f79d555d67c586974bfe291033b308f39bb0aee | refs/heads/master | 2021-05-01T08:25:56.221681 | 2021-02-21T19:02:41 | 2021-02-21T19:02:41 | 58,820,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,766 | py | from scrape_figures.items import JournalFigure
import datetime
import scrapy
import codecs
class NComm_Spider(scrapy.Spider):
name = "pyjournalfig-ncomm-spider"
start_urls = [("http://www.nature.com/search?article_type=research&journal"
"=ncomms&order=relevance&q=adsorption%20isotherm")]
... | [
"imperssonator@gmail.com"
] | imperssonator@gmail.com |
243b5691a63a040a0b3227e9130970d444ede659 | 06c0059d5d74be7bfd272181768c4cdf2708e6e1 | /proyectoShell/registrar_usuario.py | 29f41ffbfa97801e750db0381404662822fff648 | [] | no_license | majosara/proyectoFinal | 3a5f0e3eba77f8fc95f3afe5d9b54374919df304 | 65a422b947c1a17c0f80580dbe527dcf23ad24be | refs/heads/master | 2020-03-10T03:48:30.031906 | 2018-06-04T00:17:00 | 2018-06-04T00:17:00 | 129,175,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | ##Crea la base de datos de los usuarios pero en un diccionario
##Lista que va a contener los datos de los usuarios para luego validarlo
datos = []
def registrar_usuario(datos):
"""
La funcion recibe la lista vacia datos y la llena con los
datos de los estudiantes, ademas hace un input con la cantidad de
... | [
"38077766+majosara@users.noreply.github.com"
] | 38077766+majosara@users.noreply.github.com |
095ed7d4d8e796002da008efdb1639c428a124fe | eec7e1d989e5dc9454556c488872cdd463f95df8 | /2/cj2/Regression03.py | 0bb24b4e148137e66b6eef1bd3f51c3d7db992b2 | [] | no_license | licuicui159/cj | 733d085a20af5f0b7fa17c2d707fc939bafacbd3 | ec067dba555dcc58ba9f1c9008dd46c2113c99ee | refs/heads/master | 2020-09-25T11:52:24.895434 | 2019-12-05T02:33:07 | 2019-12-05T02:33:07 | 225,999,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import numpy as np
import matplotlib.pyplot as mp
Data = np.loadtxt(r'Tyler.txt')
print(Data)
x1= Data[:,0]
x2 = Data[:,1]
y = Data[:,2]
print("x1:", x1)
print("x2:", x2)
print("y:", y)
parameter2 = np.polyfit(x2, y,1)
mp.figure('scatter', facecolor='lightgray')
mp.title('x2')
mp.scatter(x2, y,color="r")
x = np.linspa... | [
"11"
] | 11 |
5c09d2d075e19bd0e792e61f47cb36a1327b7651 | 439c0c5c711c7c7c934af2dcbc81333200c15fd8 | /utils/config.py | 0283c9e17c06022e8ed338c0ef9e5d9470a28070 | [] | no_license | bullud/AutoTrader | 988ab6ec9ae5c987453056796a53ff1e68757880 | 924f2cbb6b002cea082a17fc80a3de8b80602553 | refs/heads/master | 2016-08-11T19:07:29.992045 | 2016-03-21T10:45:20 | 2016-03-21T10:45:20 | 48,290,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from utils import _const
import datetime
_const.threadNum = 4
_const.BasicInfoPath='F:\\stock\\BasicInfo\\basics.sqlite'
_const.DDEPath='F:\\stock\\DDE'
_const.MAPath='F:\\stock\\MA'
_const.Level2Path='F:\\stock\\level2_dst\\'
_const.minDate = datetime.datetime.strptime('1980-10-24 08:00:00', "%Y-%m-%d %H:%M:%S").date... | [
"bullud@126.com"
] | bullud@126.com |
bb6efcc45e397121a38addd171f36ace98bfe2ae | 88e5f9f0de060fd8f5d792fb5d48f6ccda214f46 | /classes/sg_base_class.py | 3a0a7964d15a19e1ed45289f5be89bd0f25120db | [] | no_license | pedropazzini/sg_data | 4c0a8f1785740c70afb8e41312d1daa140887150 | dae147439858cba98617984a18eba4da281534e9 | refs/heads/master | 2021-01-19T10:12:34.506833 | 2015-11-12T18:40:41 | 2015-11-12T18:40:41 | 39,075,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from sqlalchemy.orm import Session
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
class Smart_meter_base:
| [
"pedro.pazzini@gmail.com"
] | pedro.pazzini@gmail.com |
1968e0e4887b3e47f8f89d0d668499276bfd5b7b | 5c2d3748838d90bdc51b6631c911504ab9fc1d4e | /app.py | 2a7d9d2a82d8b76d865c886860422a488801f0cf | [] | no_license | axylb/role-playing-adventure | 98a1f871c2cdb9c4b6ec9bef4cc09b81b1ebb04d | 1ca31a64944747527744dc22a8903875416472bb | refs/heads/master | 2022-12-09T02:09:52.984668 | 2020-09-06T20:19:01 | 2020-09-06T20:19:01 | 293,355,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,772 | py | from characters import character, translate, enemy, fight, roll, stats, action
import random, sys
name = ""
age = 0
home = ""
name = str(input("\nWhat is your character name: \n")).lower().title()
type = ""
x = 0
skillpoints = 20
while x == 0:
try:
age = int(input("What is your character's a... | [
"noreply@github.com"
] | noreply@github.com |
0ed38cf4724f2bd62b77a0b45396f909cfbc9781 | 0a9d32e059d5787f1bcb4f8d32771cc38bd20c99 | /contrib/seeds/generate-seeds.py | 174a3d3d02bffe54e9ae516a8e00217786f4a490 | [
"MIT"
] | permissive | LIMXTEC/LasVegasCoin2 | 114eb6005de7bf5d8cd8c2b4ce3e460980c0b2f9 | 31785c22a46924e2c7e1a6f3570750b335849e92 | refs/heads/master | 2021-09-11T19:58:41.683415 | 2018-04-11T20:50:45 | 2018-04-11T20:50:45 | 110,761,306 | 3 | 9 | MIT | 2018-04-11T20:50:46 | 2017-11-15T00:19:00 | C++ | UTF-8 | Python | false | false | 4,328 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... | [
"apfelbaum@email.de"
] | apfelbaum@email.de |
9377c33e53ec7107ecd99e1cabd6c4523b8d2a3e | 0d5c6caf3a1aa43b48591939a8d148c36e0c786e | /GameOfLife_LCD.py | c54bc07025e38b48895fca01bae733095b02ed05 | [] | no_license | reijndert/PiPico_game_of_life | c765387b2070d571f5963dac209a6d4dcf17baf1 | 77189e3f2f06057283f9a0b31cc2508644a93110 | refs/heads/main | 2023-03-06T09:22:23.299936 | 2021-02-15T14:13:40 | 2021-02-15T14:13:40 | 339,095,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,586 | py | # https://gist.github.com/robert/5100dfffe8afbb04b560dd0fff184753
import random
import time
from machine import I2C
from lcd_api import LcdApi #must be present on internal filesystem
from pico_i2c_lcd import I2cLcd #must be present on internal filesystem
# i2c pins
SDA_PIN = 20
SCL_PIN = ... | [
"noreply@github.com"
] | noreply@github.com |
636cfa425b562493de5addb5e3d74f7093289188 | 0fde31ce60eff48026a0adec27f314a6e1dda741 | /www/transwarp/orm.py | f59c68c29568245c9877552e468103af9b570bcc | [] | no_license | Foreveryou3344/awesome-python-webapp | 9effef96ab5a2d618e471cad8c223945b860f46c | e8c2731244455d37752aa3854a77d97d48a9d2b9 | refs/heads/master | 2018-12-09T15:04:58.663701 | 2018-10-08T08:43:45 | 2018-10-08T08:43:45 | 126,009,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,294 | py | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
import db
import time
import logging
# 主要包含三部分内容:第一部分 Field和派生类 用于定义字段类型 可以设置默认值以及默认ddl
# 第二部分 ModelMetaclass 基类 用于映射数据表和表类
# 第三部分 Model 所有表类的父类 用于定义一些类方法比如find_first和实例方法update等
class Field(object):
_count = 0
def __init__(self, **kw):
self.name = kw.get('name', No... | [
"446529127@qq.com"
] | 446529127@qq.com |
3ec57b2531ab6a937124feee52ac1b6da03020ff | b5ef3b9da130f604f111bd469128b73e78d6ba9d | /bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getProjectItemList.py | 43b31ee9f20c5d1e877c6974693c15afe6a456ef | [] | no_license | soediro/erp5 | 154bb2057c4cd12c14018c1ab2a09a78b2d2386a | 3d1a8811007a363b7a43df4b295b5e0965c2d125 | refs/heads/master | 2021-01-11T00:31:05.445267 | 2016-10-05T09:28:05 | 2016-10-07T02:59:00 | 70,526,968 | 1 | 0 | null | 2016-10-10T20:40:41 | 2016-10-10T20:40:40 | null | UTF-8 | Python | false | false | 1,341 | py | """Returns all validated projects.
This script is indented to be used on custom listfields for accounting lines, and on reports.
If this script returns an empty list, it means that reports by project are disabled.
"""
from Products.ERP5Type.Message import translateString
portal = context.getPortalObject()
# case 1: s... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
2b1638999ca31a03dac9b7ae400bf86815b43735 | 0e8dd5901b1f98934c44a85b133eb7ca6f44b4b9 | /osr2mp4/Parser/osrparser.py | 398325f8b59fc702a5af1c87a8170c270acdc087 | [] | no_license | Hazuki-san/osr2mp4-core | dbd2f4d44a3d0e90974214c97b434dcbb2eedd18 | 83dc5c47bc73dcb0b4d4b6a5ae1924771c13c623 | refs/heads/master | 2022-11-24T13:41:15.703261 | 2020-07-03T14:00:54 | 2020-07-03T14:00:54 | 279,099,127 | 1 | 0 | null | 2020-07-12T16:02:35 | 2020-07-12T16:02:34 | null | UTF-8 | Python | false | false | 2,041 | py | import osrparse
# index for replay_event
from ..CheckSystem.Judgement import DiffCalculator
# noinspection PyTypeChecker
from ..EEnum.EReplay import Replays
def setupReplay(osrfile, beatmap):
replay_info = osrparse.parse_replay_file(osrfile)
replay_data = [None] * len(replay_info.play_data)
start_time = beatm... | [
"snkraishin87@gmail.com"
] | snkraishin87@gmail.com |
6d3f83ad5e388b600edef08feb530bdb5b728956 | 0a66c261e661f1d7295eb4c9676e004ad0a61d15 | /a2im/meetings/migrations/0001_initial.py | d41af98970409ac04246df2790d0a43f458c2d9d | [] | no_license | aceburgess/a2im-tools | 522ea92cf6d78b9582d8d5ae7801813e6c5e5fcc | df2f591ac1bc271d1b59fab148da4561fc4ff95e | refs/heads/master | 2020-04-16T00:17:46.143889 | 2016-09-19T23:47:30 | 2016-09-19T23:47:30 | 68,273,425 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,448 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-15 03:29
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"burgess.ace@gmail.com"
] | burgess.ace@gmail.com |
2309594889f7eaf0567ecb3881e41ae564d04ca9 | 22fa0db584e41a9f06d829a5dd06b32bcdeb3646 | /registration/mobile_backend.py | dfb3c3b608616dec696f7b31dceed277b810a84c | [] | no_license | muthuraj-python/muthuinterview | 186ecd4efd173fa0fe7ce25e721ebadbeabc94f7 | d51b03f90fea9abd6aa763cf666dd39ead7a4753 | refs/heads/master | 2021-02-22T07:24:10.319876 | 2020-03-15T13:37:16 | 2020-03-15T13:37:16 | 245,371,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.backends import ModelBackend
class MobileBackend(ModelBackend):
def authenticate(self, request, **kwargs):
UserModel = get_user_model()
try:
user = UserModel.objects.get(mobile_number=kwargs.get('username'))
... | [
"you@example.com"
] | you@example.com |
14819dfa837ea12571760feb7ba7b36939132887 | 33dcc5a8b10c226b5814f27963c8d809f0f02d43 | /python_full_stack_s22/hw06.py | 35efd0c78a93a015bf74bd364816d85856a4edd0 | [] | no_license | xuteng0220/python | d52e33aae13f07561e8f54813fedf6e573098df5 | 8e0148ae1236fed39e71af3f21cb29efeb1d6410 | refs/heads/master | 2023-01-30T18:36:50.572769 | 2020-12-14T09:16:11 | 2020-12-14T09:16:11 | 313,845,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,213 | py | # # 1,使⽤循环打印以结果:
# for i in range(1, 6):
# print('*' * (i * 2 - 1))
# # 2,使用while循环打印以下结果:
# i = 10
# while i > 0:
# print('*' * i)
# i -= 1
# # 3,写代码实现
# v1 = {"alex","wusir","taibai"}
# v2 = []
# # 循环让用户输入,如果用户输入的内容在v1中存在,就添加到v2中,如果v1中不存在就添加的v1中,用户输入Q退出程序
# while True:
# s = input('... | [
"xuteng0220@gmail.com"
] | xuteng0220@gmail.com |
0d8cf3616519512cb14b5c68c478418637ae03dd | 9cc63a649864c75869aebc3298609298a685c017 | /Binary_Tree_2.py | dacc511b4e1b3dcbd0773a3affa228954e9a8f5e | [] | no_license | DmitriiIlin/Binary_Tree_2 | 1ecc7bcc653f8ae85e08586b40bc6a462656f44a | 2550f4265322df0b7df9ff08736d22c4fd87b634 | refs/heads/master | 2020-05-20T16:06:09.640579 | 2019-05-08T20:56:29 | 2019-05-08T20:56:29 | 185,658,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | class aBST:
def __init__(self, depth):
# правильно рассчитайте размер массива для дерева глубины depth:
tree_size = 0
for i in range(0,depth+1):
tree_size=tree_size+2**i
self.Tree = [None] * tree_size # массив ключей
def FindKeyIndex(self, key):
# ищем в ма... | [
"ilin.dmitrii1984@gmail.com"
] | ilin.dmitrii1984@gmail.com |
0fc0c945fef167afa53cfe976e8f174302d0cb56 | cee0fc43f51128c81a0f076985e71fcaa6686165 | /Recon_alt.py | b87abc918f59e0bd475eb269ac1095d83e1486ea | [] | no_license | jonnyomuir/NeonatalGP | a7bd381dcc7343e2e926542c29b5aef6a729b2d1 | b1051911281ed4f74797de534701497dbe789008 | refs/heads/master | 2022-05-01T18:45:49.104530 | 2022-03-20T17:56:50 | 2022-03-20T17:56:50 | 218,392,124 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,834 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 30 21:07:04 2018
@author: Jonathan
"""
import numpy as np
import GPy
import glob
import os
import dill
import time
import nibabel as nib
#Load Intensity Images and mask
img=nib.load('/mnt/lustre/users/kkth0282/dHCPModel_update/mask_brain.nii.gz'... | [
"noreply@github.com"
] | noreply@github.com |
9caa0c1912915cbd65ff8bca22f48c14b299ddc8 | 47271c68fce3e8c44dec5f7340900520451b4133 | /Classes/World.py | 25a5d37b521ead3debaf19d3844ae4981b4db0d2 | [] | no_license | fjnn/TrainingSimulator | 22097b7d05518a549aa10fa71c1db5cc36469c33 | bbe7c557bd190e92084966af336bd98542ab04dc | refs/heads/master | 2021-09-12T12:12:44.711464 | 2018-04-16T14:57:19 | 2018-04-16T14:57:19 | 129,750,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pygame
import os
from data_logger import enable_logging, disable_logging
class World:
__RES_DIR = "res"
BG = pygame.image.load(os.path.join(__RES_DIR, "background.png"))
BG_COLOR = (181, 190, 204) # RGB
STATE_START = 0
def __init__(self, ... | [
"gizemates@iyte.edu.tr"
] | gizemates@iyte.edu.tr |
e0056811577efe32a2a91f0d0dc43527fc534632 | 6dd31968667d8832a77ef2ada48ee64da136c526 | /Source/TailwindTraders.Mobile/Resources/AR/guide/generate_tfrecord.py | 768fd34c77947859b67a515eee7ffb7f72223c26 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | jamesmontemagno/TailwindTraders-Mobile | f6aec05262125387707ebe6d84e297c2f6726d66 | 1e427eec604254973629e5808cd92e93f3dee33a | refs/heads/master | 2020-04-29T01:00:31.517848 | 2019-03-14T20:49:00 | 2019-03-14T20:49:00 | 175,715,506 | 1 | 1 | MIT | 2019-03-14T23:30:54 | 2019-03-14T23:30:54 | null | UTF-8 | Python | false | false | 3,541 | py | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import io
import os.path
import pandas as pd
import tensorflow as tf
from string import Template
from PIL import Image
from object_detection.utils import dataset_util
from collections import namedtup... | [
"jacano@plainconcepts.com"
] | jacano@plainconcepts.com |
8c1543e3df295a85ad395b63aa823c968a2e0f4f | bf001461b84f8ae3bc0cac51df10c2754cd32e1c | /main.py | 89374a183b68c8bef9e020c0f7cce057246ab327 | [] | no_license | usennon/tic-tac-toe | 989f301b08d8b2c660a45f6eb2b5b719278e730d | 0d3824f89f6aeae39ada785173dc1250b8d57150 | refs/heads/master | 2023-03-15T00:32:15.759890 | 2021-03-26T20:41:59 | 2021-03-26T20:41:59 | 351,898,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | from ai_player import minimax
def draw(board):
board = board
print("-------------")
for i in range(3):
print("|", board[0 + i * 3], "|", board[1 + i * 3], "|", board[2 + i * 3], "|")
print("-------------")
def win_check(board):
for i in range(0, 6, 3):
if board[i] == board[i ... | [
"usennon@mail.ru"
] | usennon@mail.ru |
1806939f28c259dd9276c0f392b16483f2945f26 | 987cd163370e452760cde27331968d113f35d176 | /src/login/loginApp.py | ff93a0b35d2cc2247794b82c433fea0f495d1348 | [] | no_license | desmetr/DistributedComputing20182019 | 080bd504feab48da8de07d2803bb6980f1aafb23 | 98c093b4a20c1b551c521a371cae645b5d8903b8 | refs/heads/master | 2020-04-26T23:50:13.978947 | 2019-05-24T15:30:57 | 2019-05-24T15:30:57 | 173,915,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # import loginApp, loginDB
from login import loginApp, loginDB
# from models import User
from login.models import User, Friendship
@loginApp.shell_context_processor
def make_shell_context():
return {'loginDB': loginDB, 'User': User, "Friendship": Friendship} | [
"rafael.de.smet@gmail.com"
] | rafael.de.smet@gmail.com |
a5c77f72c29005f694f5e3167a292c50e8710698 | d30e9411ce2b5574f0298e0c0723bb83dbb21fa9 | /Python/template.py | d1c2491ff519987e89880e46ac4f05d8a8ea32fd | [] | no_license | ajlopez/ProgrammingLanguagesSamples | 9c5ecf44512ddf914ff122068a3754eaebec6ed2 | f47d74eed28e997eb41434252ee9df02316317fc | refs/heads/master | 2021-01-23T18:09:02.683323 | 2013-09-30T22:23:05 | 2013-09-30T22:23:05 | 3,565,793 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 141 | py |
from string import Template
template = Template("ten value is $ten")
dict = {}
dict['ten'] = 10
print template.substitute(dict)
| [
"webmaster@ajlopez.com"
] | webmaster@ajlopez.com |
bfb46f7d54c81a6b5466b0d3f551d4d6091160d5 | ea408fb5a4b1482ff3c44b36ba51d8e79c7a85fb | /experiments/lichtsensor.py | 4018a1a0350c982dd40415b3469dc095a30fc1fd | [] | no_license | petervandenabeele/raspberrypi-python-client | 28075a58066ea4eabaa3222998a3dad53d4ffc4a | f8213be3246cfba3074627f9a76d937a3c89c5b0 | refs/heads/master | 2020-12-28T19:56:57.896309 | 2014-12-02T09:12:56 | 2014-12-02T09:12:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# SmartLiving lichtsensor experiment
# Important: before running this demo, make certain that grovepi & allthingstalk_arduino_standard_lib
# are in the same directory as this script, or installed so that they are globally accessible
import grovepi ... | [
"jb@allthingstalk.com"
] | jb@allthingstalk.com |
64cd0072445b206c8f730510ee8bb8e3f9fedfcd | 7765acf96f3c334a073f647ead1e6c862046fd41 | /tex/figures/photometry_nullspace.py | 6cb74974a958ef681cf8425500f031c951b3c321 | [
"MIT"
] | permissive | rodluger/fishy | da752a2e7aab159b10d24eb0433251b8485d6983 | 94bb393b01ade283e416589ea013d604166749e3 | refs/heads/master | 2020-05-06T15:15:44.725979 | 2019-07-08T13:19:04 | 2019-07-08T13:19:04 | 180,179,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import starry
ydeg = 10
theta = np.linspace(-180, 180, 1000)
s = np.zeros(((ydeg + 1) ** 2, len(theta)))
map = starry.Map(ydeg, lazy=False)
n = 0
for l in range(ydeg + 1):
for m in range(-l, l + 1):
map.reset()
... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
6928162854253d9cd697a8f17f08af4045774eff | 758f95a3d210265832274aac56067b907ea1b68c | /scripts/utils.py | 848c70f4f7727b19bdded23322833ac15abe5991 | [
"MIT"
] | permissive | zslzhappy/BeerClassifier | 3ac7449f0766490291ac40f565927c7e9596048c | 99cfbf35df375a4ec3cb620a8719a2556c51aacd | refs/heads/master | 2021-05-01T11:14:12.592726 | 2018-02-04T09:04:58 | 2018-02-04T09:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import os
def make_dir(path):
if not os.path.isdir(path):
os.mkdir(path)
def is_img(path):
extensions = {".jpg", "jpeg", ".png", ".bmp"}
return any(path.endswith(ext) for ext in extensions)
| [
"shingtshin@gmail.com"
] | shingtshin@gmail.com |
4b9bd10d0584acba9d53babba0a75917096f812b | 0da45980e94988bbdfc464a270cffa6858d90237 | /school/settings.py | 080e48c50d1609061cfb992fb7d209b3d08ba560 | [] | no_license | bharaths028/school | e71c6ef3a875f9d08b30c62e8f068446960a04c7 | 2885c265a110cdf054bcf4030606d70fb727c7c1 | refs/heads/master | 2021-04-03T01:29:46.971606 | 2018-03-12T04:54:31 | 2018-03-12T04:54:31 | 124,834,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | """
Django settings for school project.
Generated by 'django-admin startproject' using Django 2.0.2.
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
# ... | [
"bharaths028@gmail.com"
] | bharaths028@gmail.com |
7495c02655c2f8a8d406cc93f3ed5c33da001947 | 71479d7b4ad392ddcd5ffa6e6d3a1f15a0eb4364 | /PrintText.py | 1553ac9a69295b59ab86dd2e9e061a45a8dd6b6e | [] | no_license | SmartPrivate/TopicModel | 86f4e1367432755e421b7945032ef42c8efe502f | f5bf3ece92746aef11979596adf76d958da560d6 | refs/heads/master | 2020-03-28T10:10:39.043685 | 2018-09-10T02:32:13 | 2018-09-10T02:32:13 | 148,088,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import logging
logging.basicConfig(format='%(asctime)s:%(levelname)s:%(message)s', level=logging.INFO)
import CorpusPreprocess
corpus=CorpusPreprocess.cnkiCorpus2List() | [
"machao456@hotmail.com"
] | machao456@hotmail.com |
bfa1c1f3c8d927086b0bd3f261916af1c691b89a | b984ea91caeb56fc3b52177dab7734e4607aac5b | /Algorithmic Toolbox/week2_algorithmic_warmup/7_last_digit_of_the_sum_of_fibonacci_numbers_again/fibonacci_partial_sum_enhanced.py | 6bb9f3028b8fc9d8ee3adffb455763470e7937c4 | [] | no_license | aaabulkhair/Data-Structures-and-Algorithms | 4b014ca879789f4ef3c3782cecac288096aceaa2 | 6c3ff8e8d33eb786595120c4f76f88d65a685a1d | refs/heads/master | 2022-11-07T04:32:15.450361 | 2020-06-25T21:01:42 | 2020-06-25T21:01:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py |
def fib(n):
# The first two Fibonacci numbers
f0 = 0
f1 = 1
# Base case
if n == 0:
return 0
if n == 1:
return 1
else:
# Pisano Period for % 10 is 60
rem = n % 60
# Checking the remainder
if rem == 0:
return 0
# The loop... | [
"ahmedabdulhamid2000@gmail.com"
] | ahmedabdulhamid2000@gmail.com |
440e1617d5c3b7fc5ec834e69c97d7ea9d9db1e2 | 284441170818c338ddb800014d59fa6b42516545 | /polymerization_tb.py | 6cc99dd2b6441bcd2ab818b1f7a9893ac3579315 | [] | no_license | somecat1996/LynnLib_MFIS | b591927e2d4cf5e2bbdfaa02b9b12d3a1d8c17a7 | 5e6479d67ec7b5e0809efc9835823c4ecbc74885 | refs/heads/master | 2021-04-27T00:23:55.646674 | 2018-03-11T08:32:23 | 2018-03-11T08:32:23 | 123,806,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from Polymerization import Polymerization
a = Polymerization([2, 3, 0, 0, 2, 1])
b = Polymerization({5: 1, 3: 2, 1: 1})
c = Polymerization([5, 3, 1], [1, 2, 1])
print(a)
print(b)
print(c)
print(b != c)
a += b
print(a)
print(a - b)
print(b / c)
print(a % b)
a.SetMod(2)
print(a)
| [
"369150573@qq.com"
] | 369150573@qq.com |
eed2dd8d0454f99ee3ee8aed8951782f228c01b2 | d823d9eb18dd61394af2682db18d6009822e7931 | /python/pdf_cat.py | 6959ec83038f9a26d461a6a566f950f76cc69c92 | [] | no_license | zu37/vio_common | cd65c2d40b4abe0df9a01e109c3fb81ac3316119 | 4cacdbcbcbdd61cac3288a9a26570248c673ae4e | refs/heads/master | 2023-06-22T15:55:41.013077 | 2021-07-20T06:31:13 | 2021-07-20T06:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | #!/usr/bin/env python3
# import contextlib
import os
import sys
try:
from PyPDF2 import PdfFileReader, PdfFileWriter
except ImportError:
from pyPdf import PdfFileReader, PdfFileWriter
def pdf_cat(input_files, output_stream):
input_streams = []
try:
# First open all the files, then produce the o... | [
"huai.3@osu.edu"
] | huai.3@osu.edu |
36ce4433ed2fed18bac6d02f7c206567d5b37a56 | 6ef7c932d14fb732fad5885963e6c8ae3d4cc14b | /py_get_cards/pipelines.py | beff67c4c594d19bc4a14626d8370c49af2d4b6e | [] | no_license | krisztian-kapitany/py_get_cards | 90adbf21427cb7b58106a1f3fde23d027fe8d538 | 1557edfd0230d7664fcfc6a0d5a8a2067ce9544d | refs/heads/master | 2021-01-12T05:38:11.328105 | 2017-05-12T20:58:30 | 2017-05-12T20:58:30 | 77,152,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class PyGetCardsPipeline(object):
def process_item(self, item, spider):
return item
| [
"krisztian.kapitany@betssongroup.com"
] | krisztian.kapitany@betssongroup.com |
092a3e57e39819889b5544e8a62babe2fbbecc09 | cf6ac13d1a4226f4c764143f33fa80e4aac9fe60 | /app/server/routes/student.py | 7624b702979a230da1a15cdd6fbb1cf0669492a3 | [
"MIT"
] | permissive | rberrelleza/fastapi-mongo | 9fc1b26cc1b33426c1b82c2537d889016f0e517d | d7b5dc9badd32fa6a842ba88f675858c84ca730b | refs/heads/master | 2022-12-21T05:45:18.649078 | 2020-09-15T14:48:30 | 2020-09-15T14:48:30 | 296,119,800 | 0 | 0 | MIT | 2020-09-16T18:47:09 | 2020-09-16T18:47:08 | null | UTF-8 | Python | false | false | 1,973 | py | from fastapi import APIRouter, Body
from fastapi.encoders import jsonable_encoder
from app.server.database.database import *
from app.server.models.student import *
router = APIRouter()
@router.get("/", response_description="Students retrieved")
async def get_students():
students = await retrieve_students()
... | [
"youngestdev@gmail.com"
] | youngestdev@gmail.com |
089f7924ad7a7daeda16855e8b61d5126578c13c | 9a1fa7163366c9cb1e30f806befd236243e8461c | /tinder.py | 12e9c6c1e68b613d0904a88a780ccf1fb7e5626c | [] | no_license | jsdelivrbot/thewingman | 8b8a5453bf6e81d52424c0c7c639013ecbab2fa0 | 6fe849880882d51b00978904442a226e904722a3 | refs/heads/master | 2020-04-10T09:32:00.800225 | 2018-12-08T07:55:36 | 2018-12-08T07:55:36 | 160,939,547 | 0 | 0 | null | 2018-12-08T12:57:56 | 2018-12-08T12:57:56 | null | UTF-8 | Python | false | false | 4,528 | py | import json
from datetime import datetime
import os
import requests
headers = {
'app_version': '3',
'platform': 'ios',
}
class User(object):
def __init__(self, data_dict):
self.d = data_dict
@property
def user_id(self):
return self.d['_id']
@property
def ago(self):
... | [
"pedroholanda@sagaranatech.com"
] | pedroholanda@sagaranatech.com |
220094225b741d4d1f698b0b791eb7f53418e01d | 52d59bfb433f6b9439855dec657052495392fff8 | /etc/sumo-launchd.py | c38e7399eff5ac945db26525bd59ced0ce7008c9 | [] | no_license | dudadayan/olsr_project | 4f963e2e6e9a844d8dadfd942ec815bb8555ec2d | 36eed2b5dc871fb870435e325378f7326da7d66c | refs/heads/master | 2021-01-13T02:02:45.904300 | 2013-07-16T10:29:25 | 2013-07-16T10:29:25 | 10,283,021 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,403 | py | #!/usr/bin/env python
#
# sumo-launchd.py -- SUMO launcher daemon for use with TraCI clients
# Copyright (C) 2009 Christoph Sommer <christoph.sommer@informatik.uni-erlangen.de>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publishe... | [
"dudadayan@gmail.com"
] | dudadayan@gmail.com |
32c4d869f9930209f9b9ddfdeffe078674f16a6e | fadc121df3764c0ac5d1c51c5eeb1b9c9c5e3c93 | /geolocate_version2.py | 7d0f957489ef4daaec8f5ee31a9ed86d1d3c4e1e | [] | no_license | aarushiibisht/Tweet-Classification | 41651fdc02a77f05c7498d958146cd17b4c108c5 | 794ba37077a3c7f054fa51df8d9683309c3d00b2 | refs/heads/master | 2020-04-12T02:14:12.718447 | 2018-12-18T06:44:13 | 2018-12-18T06:44:13 | 162,242,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,614 | py | import sys
import os
class TweetClassifier:
total_tweets = 0
label_probs = {}
word_prob = {}
unique_words_per_label = {}
def _total_tweets(self, training_data):
for k in training_data.keys():
self.total_tweets += len(training_data[k])
def _populate_label_probs(self, train... | [
"abisht@iu.edu"
] | abisht@iu.edu |
47dab41f5b09b92f020ee481acb00a55090626b5 | 62210d1c533eb117cf448e3f17f282439a18f198 | /Regression_Train.py | e30b2882468b1d0b11f7e24ec496db622df6a6f4 | [] | no_license | arielutfi/regression | 93e80c825de54dc68d343fbd7ef9422ee47c1e14 | ab9e490d5160fdc56e0058d4649bba3562348fb9 | refs/heads/master | 2020-09-03T06:49:39.632173 | 2019-11-04T03:32:11 | 2019-11-04T03:32:11 | 219,410,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | import numpy
import matplotlib.pyplot as plt
from pandas import read_csv
import math
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mean_squared_error
import numpy as np
def create_dataset(datas... | [
"noreply@github.com"
] | noreply@github.com |
cb9137318bfccf4f72c96885e8a9f5d1658ffea9 | df83100a10d0340f9d7d7852bb283e8aa8cbfaf2 | /locationpopupmenu.py | c294be44bd0493d899ed87db8e3d98abebdd8905 | [] | no_license | Oladunsi/farmers_market_app | e61d6c60dec09fef6f0dfb5d9110e0cb800c422a | 1509199b828c84711d52a1f1ea3c4f5b4430c4d9 | refs/heads/master | 2023-02-07T23:43:04.408370 | 2020-12-31T14:47:36 | 2020-12-31T14:47:36 | 310,027,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from kivymd.uix.dialog import ListMDDialog
class LocationPopupMenu(ListMDDialog):
def __init__(self, market_data):
super().__init__()
"""docstring for setting all of the fields of market data"""
headers = "FMID,marketNames,Website,Facebook,Twitter,Youtube,OtherMedia,street,city,County... | [
"okeoladunsi6@gmail.com"
] | okeoladunsi6@gmail.com |
217d014f95a57f02a5e4dcdc0a9b158fe6150a66 | d738289528b6f5f3a86a17d2b3ce9e0564546c62 | /detectionVid.py | 5bd7303f79c7c9b87ddca7d5a6f3713d6de2603d | [
"MIT"
] | permissive | anengineer-py/GraduationProject2018 | 26970125d2f77c6203f5b1da6dc51371749740c0 | e0c08001d578d964e5e7db674988fb8a83fc9339 | refs/heads/main | 2023-07-19T08:27:22.559342 | 2021-08-29T22:08:01 | 2021-08-29T22:08:01 | 394,301,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import os
import re
import cv2
import numpy as np
from tqdm import tqdm_notebook
import matplotlib.pyplot as plt
col_frames = os.listdir('D:/Machine Learning/laneTracking/test_videos/challenge.mp4')
col_frames.sort(key=lambda f: int(re.sub('\D', '', f)))
idx = 457
# plot frame
plt.figure(figsize=(10,10))
# plt.imsh... | [
"suleymanbariskoksal@gmail.com"
] | suleymanbariskoksal@gmail.com |
ff5c3ac26619baf2bfff16f201a3def6192b9e24 | 5a3031fb7dd8b19db1c9332daa15490fe382d0a4 | /gradsflow/tasks/autoclassification/text.py | a944dfe3997a8b51e1c2b177f7429d998f1ac5ea | [
"Apache-2.0"
] | permissive | LaplaceKorea/gradsflow | 9a998ab3a0e4cdd60564ee412c85fa6f400f7ef5 | 50906ec6028a974bf03c6815a1e5a9deef41f4f6 | refs/heads/main | 2023-07-27T23:24:27.099980 | 2021-09-10T15:24:24 | 2021-09-10T15:24:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | # Copyright (c) 2021 GradsFlow. 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 required by applicable ... | [
"noreply@github.com"
] | noreply@github.com |
3bd32d35fa515727b1d2fdf19b6da268ce008399 | 5a42ce780721294d113335712d45c62a88725109 | /project/graphdata/module/yiyiyuan/model/yi_favorite_contacts.py | 03a9050f0826ae4d25e32f4863e189e8bd71ffc5 | [] | no_license | P79N6A/project_code | d2a933d53deb0b4e0bcba97834de009e7bb78ad0 | 1b0e863ff3977471f5a94ef7d990796a9e9669c4 | refs/heads/master | 2020-04-16T02:06:57.317540 | 2019-01-11T07:02:05 | 2019-01-11T07:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
# sqlacodegen mysql://root:123!@#@127.0.0.1/xhh_test --outfile yyy.py --flask
from lib.application import db
from .base_model import BaseModel
from .yi_user import YiUser
class YiFavoriteContact(db.Model, BaseModel):
__bind_key__ = 'xhh_yiyiyuan'
__tablename__ = 'yi_favorite_contacts'
... | [
"wangyongqiang@ihsmf.com"
] | wangyongqiang@ihsmf.com |
1498fc02ae99bef78eff384bbc7c3a3de84a9c84 | c514ca854775c895a2fcde9088c108bc20f894d3 | /venv/bin/gunicorn | 2a6c50862dc18ab34cd7c015f3cb6fe2d8ffccd5 | [
"MIT"
] | permissive | ostar0816/mc-crypto | f9f83e69bd05041aa3a3fe1569a7703334d0b3cb | 80ad9896aed1dc952f819a404a458ccfad207d8e | refs/heads/master | 2020-04-01T22:39:09.874845 | 2018-10-22T16:39:54 | 2018-10-22T16:39:54 | 153,720,060 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/ostar/home/Jean/shore/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"ostar7551@gmail.com"
] | ostar7551@gmail.com | |
0a3b981b175c5236a7dbe0c7b336d4d9d18b12f4 | 812e1a91afcc3dbffd69c84c08abbb8a587c3a6b | /diagnostic_annotate/src/diagnostic_annotate/delay_queue.py | ea1b21dca329139e1190ca413b16021ede7ef186 | [] | no_license | PR2/ethercat_diag_tools | 0687f1f044559351a58205427f2fb9e5dd69c6b8 | 29969966cfeff22ae66d77810dce54038022a1f1 | refs/heads/master | 2016-09-06T17:31:39.342135 | 2014-05-29T19:05:54 | 2014-05-29T19:05:54 | 13,079,418 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,456 | py | #! /usr/bin/env python
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# 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 ... | [
"watts@7275ad9f-c29b-430a-bdc5-66f4b3af1622"
] | watts@7275ad9f-c29b-430a-bdc5-66f4b3af1622 |
a85d49227c19cf00b9d8e352f789f91efd63766d | 7d7a2d312ae7015ae9d87f4272f25312a434814b | /nTupleAnalysis/scripts/hemisphereAnalysis_cfg.py | 6e2f263e57554ee5cb7b0c75980fa3adfafa45a6 | [] | no_license | patrickbryant/ZZ4b | 0235dce3363368dac98d8b882536f977cf5f4166 | 3024b8880fa14023964a574b0929c81208a67e52 | refs/heads/master | 2023-06-25T00:23:37.559807 | 2023-06-14T20:29:28 | 2023-06-14T20:29:28 | 157,237,147 | 0 | 6 | null | 2023-02-02T15:26:51 | 2018-11-12T15:46:28 | Python | UTF-8 | Python | false | false | 2,954 | py | import sys
import optparse
import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
sys.path.insert(0, 'ZZ4b/nTupleAnalysis/scripts/')
from cfgHelper import *
parser = optparse.OptionParser()
parser.add_option('-d', '--debug', ... | [
"johnalison@cmu.edu"
] | johnalison@cmu.edu |
4a0993b01ec2bec34f25996a9a61d93a2486053e | 2a763d2b85dc3450b816a967f13202b15a752b7e | /Tv_Back/serializers/category.py | b4dd5c505aaff996b7508c4308e6a6020ef3e0b4 | [] | no_license | phayusa/TV_Project | a46abcee6da3e2a8d208801a0c0bd13833adc5ae | 04cbd7ffdd2972fa476abfd94f31e5a52cd0e1a3 | refs/heads/master | 2021-08-16T07:04:49.490655 | 2017-09-05T12:42:00 | 2017-09-05T12:42:00 | 101,152,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from rest_framework import serializers
from Tv_Back.models import Category
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields = '__all__'
| [
"sokomo873@free.fr"
] | sokomo873@free.fr |
c25bc22bc9925740ebe799a2a33827a4db769e22 | 8cb00df678330cf4214628382c199d0ade349ee9 | /references/video_classification/utils.py | a68c2386bcf5947f80028271ba9fa2d6eb678717 | [
"BSD-3-Clause"
] | permissive | brianjo/vision | 54b61b022e2de96f10c23e2b43f6df6f2935271e | a8bde78130fd8c956780d85693d0f51912013732 | refs/heads/main | 2022-03-14T03:13:12.879942 | 2022-03-10T16:08:25 | 2022-03-10T16:08:25 | 149,820,744 | 0 | 0 | BSD-3-Clause | 2018-09-21T21:35:54 | 2018-09-21T21:35:55 | null | UTF-8 | Python | false | false | 7,514 | py | import datetime
import errno
import os
import time
from collections import defaultdict, deque
import torch
import torch.distributed as dist
class SmoothedValue:
"""Track a series of values and provide access to smoothed values over a
window or the global series average.
"""
def __init__(self, window... | [
"noreply@github.com"
] | noreply@github.com |
b5f58d350b6b03ac1e2d897ac5e4e0b79a410e03 | 06a3983f7ffc0099f375401d245d7313d80f71ce | /account/forms.py | 657baa6c778e830223c8563182688659ccc7070f | [] | no_license | ManolitoOctaviano/Django-Tutorial | 3f4c43339c7d4d92b8e7309be07bbaeba3086394 | 627c195335156c2e728c65f5a1513f4df5c02ed3 | refs/heads/master | 2021-05-14T06:43:25.606138 | 2018-01-10T17:53:02 | 2018-01-10T17:53:02 | 116,246,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
class RegistrationForm(UserCreationForm):
email = forms.EmailField(required=True)
class Meta:
model = User
# These are the fields inherited that will be inclu... | [
"mvo12341@gmail.com"
] | mvo12341@gmail.com |
4a917bdcc961388f7a27f6029348866a08adce2f | 9f6659ca8c837ea9b0a1097693c00c7e3b5b96a5 | /linorobot2_navigation/launch/navigation.launch.py | 17eab3230be9bcfe943534875327b24b6a6e9358 | [
"Apache-2.0"
] | permissive | WUyinwei-hah/linorobot2 | 4b80d69b5340a6d8f1dfc569a1d62e3f870e73fa | adb51bfbfb109d410eaa35bb23a03e1ab05bd8ef | refs/heads/master | 2023-09-05T20:07:56.694376 | 2021-11-24T13:59:16 | 2021-11-24T13:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | # Copyright (c) 2021 Juan Miguel Jimeno
#
# 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... | [
"jimenojmm@gmail.com"
] | jimenojmm@gmail.com |
ab3703778fd7ed710b96dc17fc17dd255d8af9eb | 5ea9d6ed84b08d3be6502ffd94fcd5dcfa6e088d | /Linear Regression Gradient Descent (The Boston Housing Dataset).py | 1775f6620c4b0dca08c29d9a59ddee091e306130 | [] | no_license | zyaeen/MachineLearning | e5ad92d7bb33413c9cdc0e91cb32c3e35db63089 | c58c5aa442ddc1060aa35c9b0e5826bec5b69b3d | refs/heads/master | 2023-01-10T09:42:15.483441 | 2020-11-11T14:51:18 | 2020-11-11T14:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from sklearn.datasets import load_boston
import matplotlib.pyplot as plt
import numpy as np
def split_data(x_values, y_values, train_part):
train_part = np.int32(len(y_values) * train_part)
return x_values[:train_part], x_values[train_part:], y_values[:train_part], y_values[train_part:]
def std_data(x_value... | [
"zyaeen@github.com"
] | zyaeen@github.com |
1bf3b62ee17273df0e5a2eb2bb80beefeea8f4c5 | 27be587cedbf74a0fb16646b0528e50fe3f22f3a | /notebooks/notebook_utils/os.py | 77c300919968378abc00ac3a07bf0796384e886e | [] | no_license | pauloreis-ds/fraud-blocker | 3eafac8957e99caa308a572e90f1ec1b0be0f976 | 6306a32e9ca62d288c3b82ccee9c13064f96dd99 | refs/heads/main | 2023-07-19T06:34:31.637077 | 2021-08-30T23:50:41 | 2021-08-30T23:50:41 | 401,517,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os
def join_paths(paths):
if not isinstance(paths, list):
raise ValueError(f"Pass a list(). {type(paths)} passed instead.")
elif len(paths) <= 1:
raise ValueError(f"List with at least 2 paths is needed. Passed a list with {len(paths)} instead")
else:
path = paths[0]
... | [
"phsabino.reis@gmail.com"
] | phsabino.reis@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.