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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9136eb59fa533c5a57bb337ce3e139c8d265a6a3 | 93991fb102168aad2462e8dabc77e0ecbb2149be | /git1.py | eeae1b150a3e56f2ecb89aeadda4e0f568125390 | [] | no_license | venkatr2018/javahelloworld | 82b352d63c948f9fd803d8cf0f9d116592fc1d37 | 6bdecf44236d7f85ca881f26b6cebb2103bacad1 | refs/heads/master | 2020-11-29T21:09:00.148566 | 2019-12-27T13:29:18 | 2019-12-27T13:29:18 | 230,216,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | print("remote commit")
| [
"ponnathota.venkat86@gmail.com"
] | ponnathota.venkat86@gmail.com |
2982b152f2ef0916c17ae223e733483d0f455558 | fa9cc9cc469a3f0c5bdc0bc4e562dbbd3ff7e465 | /messages/RequestCloudMessage.py | cfd12e7df3126a5a7572dd9613f73bd6e7fc77a3 | [
"MIT"
] | permissive | zadjii/nebula | ddd86ea30791b46b2a1aeb000ae5dfea9a496168 | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | refs/heads/master | 2021-01-24T17:08:30.607634 | 2018-09-18T00:35:36 | 2018-09-18T00:35:36 | 36,847,552 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # last generated 2016-12-30 19:27:53.981000
from messages import BaseMessage
from msg_codes import REQUEST_CLOUD as REQUEST_CLOUD
__author__ = 'Mike'
class RequestCloudMessage(BaseMessage):
def __init__(self, id=None, cloud_uname=None, cname=None, username=None, passw=None):
super(RequestCloudMessage, sel... | [
"zadjii@gmail.com"
] | zadjii@gmail.com |
de2366117fa19b7601ff66ec8e096b371bd033d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02379/s777602673.py | 78b06ae63e611e0c41787c5b51901c304d983aee | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | import math
x1,y1,x2,y2=map(float,input().split())
dx,dy=x2-x1,y2-y1
d=math.sqrt(dx*dx+dy*dy)
print("{:.8f}".format(d))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0bb22ac66250c441ec7c1efd0a7a65504f6f7543 | aee8cd408ae80e2059c84d2f83c7da8ee83990b4 | /Problems/0426-Convert Binary Search Tree to Sorted Doubly Linked List.py | 00804d32d376d419d9f34898b7e359664b7a8c90 | [] | no_license | KirkGuo/LeetCode-Accepted-Code | 652a40a88888e8190e5b2912fa04008e82e32080 | ca445222ac0c513070123693977d8e1570c077f5 | refs/heads/master | 2021-06-25T03:47:25.586772 | 2021-03-09T02:39:20 | 2021-03-09T02:39:20 | 208,901,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
"""
class Solution:
def treeToDoublyList(self, root: 'Node') -> 'Node':
if not root:
return None
head, tail = self.helpe... | [
"noreply@github.com"
] | KirkGuo.noreply@github.com |
67dcd402986248e900295a25a35306dafe50db76 | 32892657796d64190c3d597135f609e555204d1a | /Convnets/week4_1.py | b4ca9cdf8150d1ce4747101444b5cbc72454cd98 | [] | no_license | vbardakos/coursera-tf | cf7a6aec2469d0f029cdf06a688f1347204ec39c | 176f41ffcba089790e0b2f1d3cab4cd102048244 | refs/heads/master | 2022-12-12T04:25:57.566831 | 2020-09-06T12:44:46 | 2020-09-06T12:44:46 | 281,943,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | import os
import zipfile
import requests
from tensorflow import keras
from PIL import UnidentifiedImageError
def downloader(url: str, path: str, ignore=False):
if os.path.isdir(path):
path = os.path.join(path, url.split('/')[-1])
elif not path:
path = url.split('/')[-1]
if ignore or not o... | [
"gratebill@yahoo.gr"
] | gratebill@yahoo.gr |
f548415a66284d6df562b04a82c09a348d818378 | 628cf3d17f7ec83ff82b130d1e3e21d7b93d438c | /functional_tests/test_list_item_validation.py | 90fbf142e3ad218087f5d9a67f6abcf45994eeaa | [] | no_license | floor66/superlists | 48cfc916f72c251bb1df12d446aeb7dd47d5b76a | e38d7a7f56bbc8d5da48a129e2b4c82b4669898e | refs/heads/master | 2021-01-19T08:37:59.591387 | 2014-01-06T20:48:44 | 2014-01-06T20:48:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | from .base import FunctionalTest
class ItemValidationTest(FunctionalTest):
def test_cannot_add_empty_list_item(self):
# John goes to the home page and accidentally submits an empty list item.
self.browser.get(self.server_url)
self.get_item_input_box().send_keys('\n')
# Home page refreshes and an error m... | [
"fpjdenhartog@gmail.com"
] | fpjdenhartog@gmail.com |
3faf8999c4a48684f5b87bd63cb330d5aae94f02 | 3200edb2daa9d3e2054c08c35f12f6b0493beda4 | /hw_2/tests/test.py | 976ddbd7b86d63a61c86f5f6830f6c193c1acf6d | [] | no_license | AndreySidorchuk/2021-1-MAILRU-SDET-Python-A-Sidorchuk | 6df7ac8f41b80b091649ca452e0a36d4114fdd90 | 86d57cc9290674f28cb9cc8330b887ca5f4b8f52 | refs/heads/main | 2023-04-29T02:26:38.465389 | 2021-05-16T23:02:50 | 2021-05-16T23:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | import allure
import pytest
import string
import random
from tests.base import BaseCase
from ui.pages.segment_page import SegmentPage
from ui.pages.base_page import NoSuchElementException
from ui.pages.dashboard_page import DashboardPage
from creds.creds import EMAIL, PASSWORD
@pytest.fixture
def generate_random_nam... | [
"andrew.sidorchuk@mail.ru"
] | andrew.sidorchuk@mail.ru |
e40803f4fbb7c66aeab0233f48ae886c1407258d | d15ba031064ef83a0ec10b1559cbccee9a344642 | /records/views.py | e2998b1b23272cc09115fd9b0673e57708d60c46 | [] | no_license | rich-hart/atlantic-code-test | fe7676e73298cde40485f25ce3f89863c006bf82 | 87e3e0d430e38e474c16db5fe4212dce55896992 | refs/heads/master | 2020-04-08T22:01:38.817676 | 2018-11-30T14:37:02 | 2018-11-30T14:37:02 | 159,768,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | import csv
import codecs
from django.shortcuts import render
from rest_framework import viewsets
from .models import Document, Customer, Address, Product, Record
from .serializers import DocumentSerializer, CustomerSerializer, AddressSerializer, ProductSerializer, RecordSerializer
class DocumentViewSet(viewsets.Model... | [
"richhohart@gmail.com"
] | richhohart@gmail.com |
16803e1406506e5d320095d2aa1e95511b041c83 | 88a63b75d2910b974485df53a1edab7aadfdd170 | /python/sets.py | dce5f73a578e4c7a0651d2f1af8e3b848dd95379 | [] | no_license | alihaidermalik04/Learning | dc08dd172628faccc276326cc0965dd8ce8e1dab | a86123f7b47a78a857ace3a0e87398dfa1936008 | refs/heads/master | 2023-05-03T23:29:19.661072 | 2021-05-27T12:09:16 | 2021-05-27T12:09:16 | 369,426,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | '''
sets in python are similar to sets in maths.
These sets are also represented by {} and have uninot and intersection methods.
to run this code:
$ python3 sets.py
'''
set1 = {'apple', 'mango', 'banana'}
set2 = {'watermelon', 'cherry', 'mango'}
print(f'UNION ----- set1 U set2: {set1.union(set2)}')
print(f'INTERSECT... | [
"ahaider@sastaticket.pk"
] | ahaider@sastaticket.pk |
969bc2105e1b8e1504a545f9f802c249ce7bd0cf | ee23ea38cf2a3408ad01cb88347a8a5223f021c7 | /tests/test_lexical_unexpected_char_err.py | c34310b020311509981033d59dfd7439cd8f0e93 | [] | no_license | azharjk/recursive-decent-parser-python | ade8e4ac358a1c07c520dd683027621435fe70fa | 8c70fe45d71763c3b0e3c89a34802be3007ecf12 | refs/heads/master | 2023-09-02T09:36:44.710131 | 2021-10-20T08:34:22 | 2021-10-20T08:34:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import pytest
from calculator.calculator import Lexer
@pytest.mark.parametrize('x,unexpected_char', [
('a', 'a'),
('ab', 'a'),
('1x', 'x'),
])
def test_lexer_catch_unexpected_char(x, unexpected_char):
lex = Lexer(x)
with pytest.raises(Exception) as e:
lex.parse()
assert f'unexpected character: {unexp... | [
"azhr.project@gmail.com"
] | azhr.project@gmail.com |
e3bfb22658f71b95373fb5ef5e1af974e7905ecd | 9d9710cfdfe899f20ec949aede3c7da788653514 | /app/stock_scraper.py | 107386cc186d774191310ba24b137f92e6d34aa4 | [] | no_license | jblizz11/info3180_tutorial | 367c2f928ec34a7eb5a39a6a2b064847821a0387 | 2f6a90bcecfec43bded03eba8a0743e1c2856f25 | refs/heads/master | 2021-01-10T08:55:56.588443 | 2016-02-08T16:03:46 | 2016-02-08T16:03:46 | 51,306,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import csv
import requests
URL = "http://www.nasdaq.com/quotes/nasdaq-100-stocks.aspx?render=download"
def get_data():
r = requests.get(URL)
data = r.text
RESULTS = {'children': []}
for line in csv.DictReader(data.splitlines(), skipinitialspace=True):
RESULTS['children'].append({
... | [
"omairekid@yahoo.com"
] | omairekid@yahoo.com |
68615c0335fc693397ae3712ddd889db8865a5ec | cee65c4806593554662330368c799c14ec943454 | /src/dms-preview/azext_dms/vendored_sdks/datamigration/models/project_task.py | f06065a5bf044dac5eb01d8d79ccba2c49e5d1d2 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 1,660 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
403779bc4e585bffd6a18ffc628e3553b0348d21 | b7341fae6c2d0cd157aa128b15093ce876b805ac | /habilidades/migrations/0001_initial.py | 3d023e1457990425e1daec7206a9e41abc9dce4d | [] | no_license | NessaPaixao/Project-Hero_Wiki | 3ad73554a7c1a7644c87df9e1af9973888f0e1c7 | 41ad5f04f288fcc9706999754b0e1b60b1a859fc | refs/heads/master | 2022-07-15T04:58:43.904515 | 2019-10-01T17:31:51 | 2019-10-01T17:31:51 | 211,387,504 | 0 | 0 | null | 2022-04-22T22:26:42 | 2019-09-27T19:22:33 | Python | UTF-8 | Python | false | false | 490 | py | # Generated by Django 2.2.5 on 2019-09-27 18:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Habilidade',
fields=[
('id', models.AutoFie... | [
"vanessadapaixaobarros1@gmail.com"
] | vanessadapaixaobarros1@gmail.com |
13cdda5313868ed14f43036eeee4fa1bc0dba952 | f9bed2fc184fa3bdc234a074bf19544a6f2ef5c1 | /2016/Systemprogramming/5/reducer.py | 60328e30cf6e28a315ced1ac76a62ddd5965e1ab | [] | no_license | hdenni/univ | aa530a91eb3213c5c13d1710aa059471a7f3ac33 | 860108aa9bba42ff1aa31012dbd398deebbd1e09 | refs/heads/master | 2020-05-16T23:20:44.778781 | 2019-04-25T05:42:57 | 2019-04-25T05:42:57 | 183,362,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from sys import stdin, stdout
# make dictionary
library = {}
while True:
# read line one by one
line = stdin.readline().strip()
# if line is empty, it means EOF
if line == "":
break
# cut the string by whitespace
words = line.split()
# word me... | [
"noreply@github.com"
] | hdenni.noreply@github.com |
308397ed048cf03a190ffa0c99b55d07196a45cf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/591.py | 65f897b1fd4fe4677b641f162d03e1a08dcae786 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # Recycled Numbers
# main code
fr = open('C-large.in', 'r')
fw = open('C-large.out', 'w')
numOfTestCase = int(fr.readline())
for x in range(0,numOfTestCase):
result = ""
print("========== Test case " + str(x+1) + " ==========")
line = fr.readline()
line = line.split(" ")
A = int(line[0])
B = int(line[1... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2ca594af82fefbb5cf7eaf8c9b56b7791deacb98 | b521e8390f0f3e3d3433dd2b08ec217d7c9ecf57 | /src/CreeDictionary/CreeDictionary/migrations/0001_insert_bibliographic_data.py | b0abdc9123889513225acf2a4489b41eeeba73b6 | [
"Apache-2.0"
] | permissive | aarppe/cree-intelligent-dictionary | 92fde147eac57c09d7025d9d16a8ea9ebbe46d58 | 79717a08f95827a024061a5a27000bbd3d684363 | refs/heads/main | 2023-05-31T06:41:36.625244 | 2021-06-10T21:41:55 | 2021-06-10T21:41:55 | 375,819,783 | 0 | 0 | Apache-2.0 | 2021-06-10T20:14:31 | 2021-06-10T20:14:30 | null | UTF-8 | Python | false | false | 1,776 | py | """
Inserts bibliographic information for three Plains Cree dictionary sources:
- [CW] Cree : Words - edited by Arok Wolvengrey
- [MD] Maskwacîs Dictionary
- [AE] Alberta Elders' Cree Dictionary
"""
from django.db import migrations
BIBLIOGRAPHY = {
"MD": {
"title": "Maskwacîs Dictionary of Cree... | [
"eddieantonio@hey.com"
] | eddieantonio@hey.com |
e5c99083e888679c70abb0a62f231e39b7340f2b | 385a63d3c9e6f5815979165001f78ec3d7b90cd2 | /DrivingTDM_SetupMatlabOOP/headerAndFunctionsMotor/ximc/python-profiles/STANDA/8MT175V-150-VSS42.py | 36179aa2493ff6c8567ae576017af21d79a83175 | [
"BSD-2-Clause"
] | permissive | Rasedujjaman/matlabOOP | 5abb6ec94998fda5e9214ed94cf67a42bf243d4f | e1f025ab9b00a3646719df23852079736d2b5701 | refs/heads/main | 2023-07-23T21:40:53.905045 | 2021-08-31T16:12:39 | 2021-08-31T16:12:39 | 378,249,559 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,810 | py | def set_profile_8MT175V_150_VSS42(lib, id):
worst_result = Result.Ok
result = Result.Ok
feedback_settings = feedback_settings_t()
feedback_settings.IPS = 4000
class FeedbackType_:
FEEDBACK_ENCODER_MEDIATED = 6
FEEDBACK_NONE = 5
FEEDBACK_EMF = 4
FEEDBACK_ENCODER = 1
... | [
"mrased01@gmail.com"
] | mrased01@gmail.com |
fdd007c0b032c25b1cf46ac0944db9b9217a204f | 82c2c272fe07da8afafb1dc4630cae1d48575f23 | /aws_reko/apps.py | 58e8ecd9ec40e1978d3eb6f2563e2de7a8beda8b | [] | no_license | final-project-fastflix/Fastflix_WPS | d830ea1bd3aae31edd8fcdcb70434d214ba77bd0 | 1e4296df2f6d41fed8308dcd4d48912bb8cc0e1f | refs/heads/develop | 2022-12-13T09:22:37.553487 | 2019-08-22T06:30:45 | 2019-08-22T06:30:45 | 199,455,228 | 3 | 2 | null | 2022-12-08T05:56:42 | 2019-07-29T13:09:55 | JavaScript | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class AwsRekoConfig(AppConfig):
name = 'aws_reko'
| [
"sug5806@gmail.com"
] | sug5806@gmail.com |
4c500bda7cd8675d1b45144b2c156f3d0175a9ac | d77e0e6c3d5e8adcb9c9b7c9dfd9d6a51fe241a7 | /contiki/sc_ota_update/global_cp.py | 7c7083aa52ff1aaf0932ce2ea39ca793dc1eab02 | [] | no_license | rmateeq/examples | 991553139118c3081840983e2129d55417e2c5d2 | f955d47f6d6a8a391808432f69cf018bef91d323 | refs/heads/master | 2020-05-29T10:16:59.141693 | 2019-06-12T20:19:05 | 2019-06-12T20:19:05 | 189,090,903 | 0 | 0 | null | 2019-05-28T19:31:33 | 2019-05-28T19:31:32 | null | UTF-8 | Python | false | false | 14,640 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
global_cp.py: Example Contiki global control program
Usage:
global_cp.py [options] [-q | -v]
Options:
--logfile name Name of the logfile
--config configFile Config file path
--nodes nodesFile Config file with node info
--measurements measuremen... | [
"peter.ruckebusch@ugent.be"
] | peter.ruckebusch@ugent.be |
0ec4892bc4cefec76f96beaaf8980145fa169ca0 | fa60a442825642c309eed596ff694d64ff399db7 | /PYG02/PYG02-PygameHelloWorld.py | aa24d5d26ef508d9b4a3c4e0aa0f344e51963edf | [] | no_license | ruiqing0706/PygameCourse | a6a06078baf6236107e5635920b731b7e85a1dca | 9532a640e45d36eb8a4ecfa112f1dcfa88e3f248 | refs/heads/master | 2021-08-22T06:09:47.298957 | 2017-11-29T13:14:12 | 2017-11-29T13:14:12 | 112,477,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #!/usr/bin/python
# encoding:utf-8
"""
@author:jiruiqing
contact:ruiqing0706@163.com
@file: PYG02-PygameHelloWorld.py
@time: 2017/11/29 20:05
"""
import pygame,sys
pygame.init()
screen = pygame.display.set_mode((600, 400))
pygame.display.set_caption("Pygame游戏之旅")
while True:
for event in pygame.event.get():
... | [
"2944925501@qq.com"
] | 2944925501@qq.com |
67988ddda5a97613eecab1e537f55cb615dcf9a1 | cc572211829170d0edf6695d3a2967e91456d652 | /02day/11-石头剪刀布.py | 9d85a52a9d5ed120e7becfe565f71643435a6acb | [] | no_license | huguowei123/1808 | 7c3bfe24fda78b3e2f78d9c6e090067c4bcd7ccc | 4f7fa5074482be25a6999b577e9c315f7013e29d | refs/heads/master | 2020-03-25T10:10:35.599211 | 2018-09-03T15:21:31 | 2018-09-03T15:21:31 | 143,685,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | class caiquan():
def cai(self):
import random
while True:
player = int(input("1:石头 2:剪刀 3:布"))
pc = random.randint(1,3)
if(player == 1 and pc == 2) or (player == 2 and pc == 3) or (player == 3 and pc == 1):
print("玩家赢")
elif player == pc:
print("平")
else:
print("电脑赢")
a = caiquan... | [
"1156800122@qq.com"
] | 1156800122@qq.com |
2136ceed7ded2995dc97b82ced276854c3146f10 | 6a044f45cd09695ea6f66f35bb8decf86a84607d | /installer/resources/pacbot_app/alb_https_listener.py | e285a11743e84dfb2706dd3e7435a718e88798c8 | [
"Apache-2.0"
] | permissive | ritesh74/pacbot | a07bdf82632342509f05b5c5dbb6eb6aaba40219 | 4b5361d99e7efbbc5603ec9c6568ba639105c773 | refs/heads/master | 2021-07-09T15:35:27.342903 | 2020-09-28T20:36:42 | 2020-09-28T20:36:42 | 199,405,428 | 1 | 0 | Apache-2.0 | 2019-07-29T07:53:26 | 2019-07-29T07:53:25 | null | UTF-8 | Python | false | false | 2,414 | py | from core.terraform.resources.aws.load_balancer import ALBListenerResource, ALBListenerRuleResource
from core.config import Settings
from resources.pacbot_app.alb import ApplicationLoadBalancer
from resources.pacbot_app import alb_target_groups as tg
PATH_PREFIX = '/api/'
class PacBotHttpsListener(ALBListenerResour... | [
"sanjnur@gmail.com"
] | sanjnur@gmail.com |
76587af74f94646c2c02584d498defa5d1de6d54 | cebe5baa34515c8c02f7f33dbdc7581f98c89497 | /config.py | 397d8d65ab31a0d62a9b2b1879a7be30a74e12db | [] | no_license | uclanlp/clusters | 8f53fcc11a3fcc4250250a9fc11f32902a537bb2 | 243f6a1b8b0b71a2130290b8e98b4a99e92ca25b | refs/heads/main | 2023-03-05T02:17:28.760352 | 2021-02-15T23:31:10 | 2021-02-15T23:31:10 | 308,462,503 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,997 | py | import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--dataset', type=str, default="pang04", help='dataset?')
parser.add_argument('--outdir', type=str, default=None, help='output dir?')
parser.add_argument(
'--utility', type=str, default="submod", help='utility model?')
parser.add_argum... | [
"jyzhao@nlp8.cs.ucla.edu"
] | jyzhao@nlp8.cs.ucla.edu |
64cd56c426f32cc13c0af298ecb5911bd9d54e84 | 2af018eceea82494583cc2b1b7629e913070cd6f | /setup.py | 20da27d5cba40cf3779281ce64b286b712fe8efc | [
"MIT"
] | permissive | aert/aert-farmerp | f9810e18de9017f5621ee6089313c3a97e9b9697 | a26d7232229146157286128db0704b93065edaa8 | refs/heads/master | 2021-01-18T13:54:38.566543 | 2014-03-17T20:07:17 | 2014-03-17T20:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.rst')) as f:
CHANGES = f.read()
requires_base = [
'Django==1.5.4',
'django-braces==1.2.2',
... | [
"dev.aert@gmail.com"
] | dev.aert@gmail.com |
25921d6aad0f056eca167521c67ce74a84b4e248 | ca20fa4ef4e9e77f3c8734254a689d585f4d2219 | /numpy-p/floor_ceil_rint.py | 5c92bae86efc653df4f6856b50b14840dc5fdfdc | [] | no_license | rajendrapallala/hackerrank-python-practice | df242c7cd92914473f78581a0e4cdd4c457adb61 | 86346f06efa1aae4eec72030e6651456141180b3 | refs/heads/master | 2020-08-16T16:14:55.502136 | 2019-10-20T19:11:40 | 2019-10-20T19:11:40 | 215,522,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import numpy
l = list(map(float, input().split()))
A = numpy.array(l)
numpy.set_printoptions(sign=' ')
print( numpy.floor(A))
print( numpy.ceil(A))
print( numpy.rint(A))
| [
"34043701+rajendrapallala@users.noreply.github.com"
] | 34043701+rajendrapallala@users.noreply.github.com |
811a892344c92419be7dc0fac87fea2ce3ec3b2f | 1dd77b8f6bbf2177474318cf99adf63161647230 | /EQM/Login/migrations/0003_addamc_addemployee_addmachines_changeallocation.py | 9e11936f5c7566e57e06413500e237549f31da02 | [] | no_license | karthikeyansundaram2/Equipment-Quality-Management | a61b0d9097817e5f87a940bf237f33f81872409c | 9c3306994ea902f3e980d84bddb271a3be684943 | refs/heads/master | 2022-01-27T09:27:52.985362 | 2019-06-01T16:04:05 | 2019-06-01T16:04:05 | 189,751,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,942 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-08-21 13:56
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Login', '0002_auto_20170821_1551'),
]
operations = [
migration... | [
"noreply@github.com"
] | karthikeyansundaram2.noreply@github.com |
6335fe87658f80c0168a9f89bb85da52bc795036 | 5124b510ccda86086a3a3634dbb143924aa9b79a | /flask_api.py | 3fde34f7ee5ab639ffcc0251790a11e186a9c92e | [] | no_license | Rockxy0111/Pro136 | eb49cb3cfed41d6eb66724e5c0b833b9a1ca52cb | a5377f401552670800de6bf9f903d72d367b5305 | refs/heads/main | 2023-09-06T05:19:33.757166 | 2021-11-03T04:01:05 | 2021-11-03T04:01:05 | 423,059,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from flask import Flask, jsonify, request
from data import data
app = Flask(__name__)
@app.route("/")
def index():
return jsonify({
"data": data,
"status": "success"
}), 200
@app.route("/star")
def star():
url = request.url
url = url.split('/')[2].split('=')[0]
url... | [
"noreply@github.com"
] | Rockxy0111.noreply@github.com |
7f6fdc3893e53fbae95a1a8a18d1df5a36e7a06a | aa9a930725dc94b8594165e9d7bfc1c56cbec701 | /mysite/Scripts/mysite/mysite/settings.py | 538f0da2eb72ba3bcd77a4f550131f57efefe1a9 | [] | no_license | JasperSui/TicTicket-DjangoRestFramework-Ticket-Backend | d7691d598268eb0d41b63598a29e48b3f100e88a | edcebad4bb0bf216e859d98ac83d9a835b5e55dd | refs/heads/master | 2022-11-27T13:29:45.306203 | 2020-01-20T18:46:31 | 2020-01-20T18:46:31 | 234,982,973 | 0 | 1 | null | 2022-11-17T00:05:48 | 2020-01-19T23:23:34 | Python | UTF-8 | Python | false | false | 3,220 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"suiyang03@gmail.com"
] | suiyang03@gmail.com |
40fa1d11d80bedb9985a713552073e76c3bdad26 | cced294b25fc586b857e197c7d20481b73faf186 | /generate_tfrecord.py | d9c38f90ed4e4257f1e3330d7663e005e8862074 | [] | no_license | leenremm/object_detection_training | e10614a91b616291ef7e89adafbaae93de18ca07 | 944f0d8284a115e99a54e2e6983b870048641c79 | refs/heads/main | 2023-03-13T08:34:12.992480 | 2021-03-03T12:48:55 | 2021-03-03T12:48:55 | 325,237,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,818 | py | """
Usage:
# Create train data:
python generate_tfrecord.py --label=<LABEL> --csv_input=<PATH_TO_ANNOTATIONS_FOLDER>/train_labels.csv --output_path=<PATH_TO_ANNOTATIONS_FOLDER>/train.record <PATH_TO_ANNOTATIONS_FOLDER>/label_map.pbtxt
# Create test data:
python generate_tfrecord.py --label=<LABEL> --csv_input=<PATH_TO... | [
"leenremm@gmail.com"
] | leenremm@gmail.com |
791bae68b4e9db3bcdb78397e52bee7f73781fb5 | 2726d9a1c9ca5e956644b4f84ca97e2e7aad3f66 | /driver.py | 92427ea216a61e61f6d6d95b045cb47e14678657 | [] | no_license | rlara413/cpe190 | 3ab520e65c2f7de51480ce5f3fb0437cc476b539 | b5314da9949cc1a96243370b382dc6a047ac70d4 | refs/heads/master | 2023-09-05T13:01:47.766291 | 2021-11-21T04:54:57 | 2021-11-21T04:54:57 | 427,799,630 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,023 | py | from ubidots import ApiClient
from smbus2 import SMBus
from mlx90614 import MLX90614
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
from imutils.video import VideoStream
import RPi.GPIO... | [
"rodrigolara@csus.edu"
] | rodrigolara@csus.edu |
2616590c5eadd354a64b050865b6ff794da49065 | 50885a8966c8427ce396317429aa120a936c6a52 | /python/core/chapter_3/smtp.py | a1d36f98a33b53d7790a07a7b79f2b472a98cb2b | [] | no_license | linuxlsx/dev | 16f6d0ad8f31c3be816e0a68aeed0c8753dd76d5 | c132b22577158420cbec75ed5f2b9db26b956667 | refs/heads/master | 2020-04-09T15:30:41.866376 | 2017-12-26T03:38:28 | 2017-12-26T03:38:28 | 6,517,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | #-*- coding:utf-8 -*-
import smtplib
def prompt(prompt):
return raw_input(prompt).strip()
fromaddr = prompt("From: ")
toaddr = prompt("To: ").split()
print "Enter message, end with ^Z(windows): "
msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromaddr, ", ".join(toaddr)))
while True:
try:
line = raw_input... | [
"linuxlsx@gmail.com"
] | linuxlsx@gmail.com |
a0b35187cc650dbe184bac1e9ac0a0279ac1d10f | 2065504b0cd1951aec8ce9243d9cb3be855807a2 | /profiles/urls.py | 17a27f9ff8aa25e44bab0a7717c765fcde10b2cb | [] | no_license | Anthony9698/BugTracker | 8f9f7e6e9babbcb895f06e2c1da71dce8d49c914 | d1a4133e9b90c845aaf19cc98bc2026d874e735a | refs/heads/master | 2021-09-25T11:40:34.132232 | 2020-09-12T09:50:26 | 2020-09-12T09:50:26 | 246,219,647 | 1 | 0 | null | 2021-09-22T18:42:31 | 2020-03-10T05:55:23 | JavaScript | UTF-8 | Python | false | false | 2,992 | py | from django.urls import path
from django.contrib import admin
from django.contrib.auth import views as auth_views
from profiles import views
urlpatterns = [
path('', views.login_page, name='login'),
path('admin/', admin.site.urls),
path('admin-user-view/', views.admin_user_view, name="admin_user_view"),
... | [
"anthonyviera4@gmail.com"
] | anthonyviera4@gmail.com |
2da1e4acc0b3d5125befa6dc20adc3a671641d10 | 63e33501e82130efcfdc77ccd5cd85779b06f153 | /commentapp/migrations/0001_initial.py | 1c320b01485391275caeeb789b0d497296228976 | [] | no_license | HeewonKwak/P_D | 505171bdd67a6985cc469bd71cf20d215b1956b3 | b318dbd2d5b947230ddfc35382326a28714a2eca | refs/heads/master | 2023-08-17T16:35:56.415497 | 2021-09-28T01:37:50 | 2021-09-28T01:37:50 | 403,795,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # Generated by Django 3.2.5 on 2021-08-10 00:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('articleapp', '0001_initial'),
migrations.swappable_dependency(s... | [
"81952911+HeewonKwak@users.noreply.github.com"
] | 81952911+HeewonKwak@users.noreply.github.com |
e7a09de748ad032a3869dbb66f611c4cfd165af7 | a1b222e40a2949bb3afdaeef838dd883b1a488a4 | /Umbrellas.py | cd8a8eb4d77d3360f365409e2151c02e49b80e4d | [] | no_license | LitaiRenGit/FullTime-coding-test | 07c40c440797a43839f8ed5d46787db0c5c537f6 | 02fb06ec65c94d8cfe594f371dbb87b041d614af | refs/heads/master | 2022-12-21T14:09:47.160829 | 2020-09-29T03:46:42 | 2020-09-29T03:46:42 | 296,659,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 11 20:27:50 2020
@author: renli
"""
# recursive
def getUmbrellas(V, deno):
from functools import lru_cache
deno=tuple(deno)
@lru_cache(maxsize=None)
def f(requirement,size):
if requirement==0:
return 0
elif requi... | [
"noreply@github.com"
] | LitaiRenGit.noreply@github.com |
1e669b6532f391fd96c575d498dbd605b4b124e2 | 85204814e4f7ca5a098dfd89f1369ac2895c7376 | /shootweb/migrations/0011_shoot_report_remark.py | c88efe2b5496c46d70ba866e84eed7eb1e834997 | [] | no_license | dxysun/shoot | 46db07654ed0dc6bc2801f951d8b932cb016bed6 | ec3706b0d9a70a936142c059685d7e6eedf8be98 | refs/heads/master | 2021-06-17T01:43:44.658756 | 2021-01-19T14:30:39 | 2021-01-19T14:30:39 | 148,643,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 2.0.3 on 2018-09-13 12:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shootweb', '0010_auto_20180913_1652'),
]
operations = [
migrations.AddField(
model_name='shoot_report',
name='remark... | [
"1065707370@qq.com"
] | 1065707370@qq.com |
6452d0589118de8ab593f2aad24a38286548968c | a3e963d6eab6a2ff88f134b490fc6a292c024986 | /013.py | 90daad496e5d7044b632ffee1140c516d828ead9 | [
"Apache-2.0"
] | permissive | xindervella/project-euler | 39f78276c40017d116205f55dd30a02b2e29942d | bda0e24e8a249c6f906b1789cd39134121fa91be | refs/heads/master | 2021-01-10T01:01:11.907371 | 2014-09-14T13:28:40 | 2014-09-14T13:28:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
s = """\
37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406154908250
23067588207539346171171980310421047513778063246676
892616706... | [
"xindervella@gmail.com"
] | xindervella@gmail.com |
f859565e01ba56475581bf091f45d7f8cd53b2bf | f744310142239636c2e26c6178ab6db07a26b2de | /getcategories.py | da9be593858563bcfbd8590a9c21bf04ca8a1a8e | [] | no_license | jovenntann/chatbot | dcba024f02219d919f48544325d81807a41b9285 | dc5724670d7b8a055f0283521e86b8cadcb5e25f | refs/heads/master | 2022-08-26T02:26:02.197454 | 2020-03-11T17:46:07 | 2020-03-11T17:46:07 | 212,198,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import mysql.connector
# conn = mysql.connector.Connect(host='localhost',user='root',password='09106850351',database='servicereferralhub')
# cursor = conn.cursor()
# sql = "SELECT * FROM srhubapp_messengercategory;"
# cursor.execute(sql)
# result = cursor.fetchall()
# category = []
# for row in result:
# print(... | [
"root@servicereferralhub.com"
] | root@servicereferralhub.com |
fe173af070d84e9c1e48b19008e759932f6dcfe1 | 2f97691c2890ddf61ac9bd9a776082896d0f6fee | /src/ninja_mvp.py | a8b6fab90b69a51509888363f2f2785b265e2e32 | [] | no_license | marcogx/strategic-multi-shoot-game | 880587009e35b89d24a7e2d18350aa52b49f6b29 | 49a430ce7a47b71bac355fcfe499f946dd532049 | refs/heads/master | 2021-01-12T11:12:25.250219 | 2016-11-04T16:54:37 | 2016-11-04T16:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,307 | py | #! /usr/bin/env python
"""
ninja_mvp.py
The main game logic of Ninja MVP, which It's a action-based multi-player shooting game
using Leap Motion to track a player's hand movements and gestures for control and
adopts a scoring rules using principles of Game Theory.
author:
Guang XIONG, gx239<at>nyu.edu
Ruyu GUAN, rg24... | [
"gx239@nyu.edu"
] | gx239@nyu.edu |
0cd098a4603b6d2036ad0a6e82a67fad912ae911 | bd40df660eda9536089aaf9b75c600f246154c6b | /Day03/Part1/main.py | 8063855f356562476415f317d04baa20cf9c4b68 | [] | no_license | superjodash/advent2019 | 0543ac5ed842ce478f4ce44e5f343ab8812d9e15 | 9675cb4038a08aed4835c78713326929b83374e6 | refs/heads/master | 2020-12-14T02:56:10.225248 | 2020-02-12T05:54:39 | 2020-02-12T05:54:39 | 234,613,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | mat = []
dim = 25000
center = [int(dim / 2), int(dim / 2)]
file = "Day03/input"
def main():
global mat
wires = load_file()
wnum = 1
mat = [0 for x in range(dim * dim)]
for wire in wires:
plot(wire, wnum)
wnum *= 2
points = mat_filter()
closest = get_closest_p... | [
"superjodash@John-Kemps-iMac.local"
] | superjodash@John-Kemps-iMac.local |
8848a2025763c8c406ee3f306ba82e82e8db0a70 | bf12e13c0ab5ccf2fc32509b02aaae6b6a2e3327 | /examples/hello_rect.py | 9f1bcbed6deb09a08632a4cee248572761d502d9 | [
"MIT",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | HighCWu/tpythonpp | 42b56c9eb3c77192cbda36f0e198707bb858fe38 | f1c15e1101993e4c9c7529739823b47759ea13f7 | refs/heads/master | 2023-06-30T16:17:09.409107 | 2021-03-19T04:16:12 | 2021-03-19T04:16:12 | 391,806,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def test():
print('hello world')
r = rect(0,0, 320, 240)
print(r)
print(r.x)
print(r.y)
print(r.width)
print(r.height)
r.x = 2
print(r.x)
r.y += 0.1
print(r.y)
area = r.get_area()
print(area)
test() | [
"goatman.py@gmail.com"
] | goatman.py@gmail.com |
99621e425b88a9345d08e45d8ce2641e8721e0f5 | 62dbf9059f97970b437ac1b1ffd4cd8bd8de5f61 | /views/account/signout.py | e5774ac37d076000b46edcd6f2f4f0892bae93fb | [
"AFL-3.0"
] | permissive | Api2sem2021/5-ADS2020-2-equipe3 | 7bb1b4348483203c469ea23655ca292d62b19a50 | 12e3882b6446976aad0ef12cd06ed8c29d87416d | refs/heads/main | 2023-08-03T03:26:41.676666 | 2020-12-16T19:12:02 | 2020-12-16T19:12:02 | 406,732,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # THIRD PARTY IMPORTS
from flask import redirect
from flask.helpers import url_for
from flask.globals import session
# LOCAL IMPORTS
from ..utils import MethodViewWrapper
from . import signin
class Signout(MethodViewWrapper):
"""Rota para deslogar usuario"""
def dispatch_request(self):
... | [
"64911189+maiconandsilva@users.noreply.github.com"
] | 64911189+maiconandsilva@users.noreply.github.com |
dc4b744d60103a0809bc305d89a4ed6f38b7f97e | 85d80d7a4afdcc56db4e2ea25307b0ac75616bdf | /arduino_chat.py | 0c5dd31d96ceff1646d31d7bcfc08c3643958067 | [
"BSD-2-Clause"
] | permissive | lyriarte/polar-scanner | 1b48ec2e39ec824eade3adb84b6ab59804d67ff8 | 53f5c4066f47dc3676d3f088ba82254660c37113 | refs/heads/master | 2022-03-08T01:01:40.561546 | 2022-02-26T22:59:18 | 2022-02-26T22:59:18 | 102,293,824 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #!/usr/bin/python
import serial, sys
if len(sys.argv) < 2:
print "Usage:", sys.argv[0], "<device> <speed> [word]*"
exit()
device = sys.argv[1]
speed = 9600
chatscript = []
if len(sys.argv) >= 3 :
speed = int(sys.argv[2])
if len(sys.argv) > 3 :
chatscript = sys.argv[3:]
chatscript.append("")
tty = serial.Serial... | [
"lyriarte@gmail.com"
] | lyriarte@gmail.com |
3464ac58a73ccfdbc32138af9a59a1268525da03 | 1253c59bb52b3be6867eb22b577b544af9d933c6 | /tests/input_files/DM_pion/vertices.py | ec880f3a144ccd8a4d44fbc86513714c1c613774 | [] | no_license | DaniilSu/madgraph5 | 7cafdc979dcf338cd9b4b6bc708c0be92f96106b | 0e733b4735a538aeb47381ef0c0adb2bffa32afb | refs/heads/master | 2020-03-22T09:05:56.108004 | 2018-06-22T06:55:25 | 2018-06-22T06:55:25 | 139,814,287 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,541 | py | # This file was automatically created by FeynRules 2.3.2
# Mathematica version: 9.0 for Linux x86 (64-bit) (November 20, 2012)
# Date: Thu 11 Jun 2015 17:39:54
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
part... | [
""
] | |
6ffb8632509472b652e22b33c30636bcc6acbffb | a509b86c880a325881ce4638d98e0a675b8906e1 | /BM.py | a3cbbafc79bc3360f401c8a6769dfc83c69aa33e | [] | no_license | V-Sai-Krishna/CS6370-Natural-Language-Processing | 0e132b14fd295f0df71d11d7549715b6362d1ac8 | dac215b72c991e64243ade5a847bffc4c8f69c1d | refs/heads/main | 2023-08-14T23:52:08.884720 | 2021-09-11T13:22:34 | 2021-09-11T13:22:34 | 404,758,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,881 | py | from util import *
from Process import Process
from okapibm25 import bm
from Evaluation import Evaluation
class BM():
def __init__(self, args):
self.args = args
self.evaluator = Evaluation()
def evaluateDataset(self,pchoice,bchoice,lsachoice):
"""
- preprocesses the queries an... | [
"noreply@github.com"
] | V-Sai-Krishna.noreply@github.com |
1c59e1c39e86b0a50dca7df00d393072caeb6408 | c342223e95eae0cb45f952ec59a35b08de3b39dd | /somnath886-cs50-problems-2020-x-tracks-web-finance/apiToken.py | 04cef277af4b14525d1ac7c233d2537ade45da13 | [] | no_license | somnath886/CS50 | 76ae27c41e764d9579780e626845ce5c141db528 | ff566032dd71a47cd9b3d1e33f2310431524aae5 | refs/heads/master | 2021-07-07T20:29:04.044573 | 2020-11-10T12:46:54 | 2020-11-10T12:46:54 | 206,358,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | API_KEY = "pk_2f3d9a846eb04f029f7acd76f8e9783f" | [
"somnathh886@gmail.com"
] | somnathh886@gmail.com |
79e82a9736205ebba06486b564cb8925c6d74af9 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/torch/_utils.py | 55f737a5974002ee337bfdaf7d920c2472a0fe84 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:03a04fffa1996df6bcab4d2bf79566d0e6b7d661fe5e37b292b5a766d648edfa
size 19786
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
10b86bfd7a918c132f8c5cc33d92c300665a7bc2 | 8bea825dd15700da13459b86bc256985003012cc | /_auth/migrations/0001_initial.py | cd8c560114627ed16876c88d5d5c7fda62fc819a | [] | no_license | sugaryoleh/SMS | cf9bd317dc47348c2c9207f34f83d566576c08c6 | a5c467bbc365ba25675f1a19145f2935ae3ae05b | refs/heads/master | 2023-04-30T14:26:55.541850 | 2021-05-11T20:32:00 | 2021-05-11T20:32:00 | 364,372,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | py | # Generated by Django 3.1.7 on 2021-05-04 20:57
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('aut... | [
"suagryoleh@gmail.com"
] | suagryoleh@gmail.com |
7ba1d723327bdcf4aef6f5d70f72674ce22431c7 | 5774101105b47d78adb7a57eefdfa21502bbd70c | /python 语法基础/d14_tkinter_python图形开发界面库/tkinter/3.button控件.py | 82895d1a97556d89642d20d2a44eb01bb5377143 | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 615 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
import tkinter
def func():
print("zhl is good man")
win=tkinter.Tk()
win.title("zhl")
win.geometry("400x400+200+0")
##text:定义按钮上显示的命名
##command 定义点击按钮触发的函数
##height,width: 设置按钮的宽高
button1=tkinter.Button(win,text="按钮",command=func,width=5,height=5)
but... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
3537ab717502779be66add592bf5cff21cb46dca | 322e3003cc14c9beb7aa47363ca3c2f6038b82d5 | /lecture6/pyspark/basics.py | b7cd3c6d03c81beae10b26d0f9da81724997ec3c | [] | no_license | danielvachalek/MLOps | 039a393c71a418383ea46338e2d415e7c3936b56 | 0746e0380b73d93b2f12a22df04a74de7daf18a0 | refs/heads/master | 2023-02-09T01:21:53.874657 | 2021-01-02T22:49:32 | 2021-01-02T22:49:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | # Databricks notebook source
# MAGIC %md In Cmd 2, the AWS_ACCESS_KEY and AWS_SECRET_KEY variables are set and kept hidden.
# COMMAND ----------
AWS_ACCESS_KEY = "AA"
AWS_SECRET_KEY = "BB"
# COMMAND ----------
sc._jsc.hadoopConfiguration().set("fs.s3n.awsAccessKeyId", AWS_ACCESS_KEY)
sc._jsc.hadoopConfiguration().s... | [
"you@example.com"
] | you@example.com |
9edb165c569d6cc888053a6659ddeb13b86d2ce4 | 7017f5f0570a519f7d9757b522082ec596de99d9 | /manage.py | 62bd8c1d690a6bb13ee280f12b35ce2251a15125 | [] | no_license | beautyfoot/OneTenBillion | c54b1b75a17b7cce239558bc3ffdb5878faa2899 | 49b1cefc7baffb0dc994f6d44a8142cd6f97b3ef | refs/heads/master | 2021-07-21T21:51:50.612731 | 2017-09-27T12:10:05 | 2017-09-27T12:10:05 | 104,286,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "OneTenBillion.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"30289523+beautyfoot@users.noreply.github.com"
] | 30289523+beautyfoot@users.noreply.github.com |
90f7ab7711d5790e74f9518e25d8c39a79edafd8 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/server_commands/service_npc_commands.py | 07e4d57abbcbb8550b95b267c098277d3e6c293a | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | from date_and_time import create_time_span
from sims4.commands import CommandType
import services
import sims4.commands
@sims4.commands.Command('service_npc.request_service', command_type=CommandType.Cheat)
def request_service(service_npc_type:str, household_id=None, _connection=None):
service_npc_tuning = serv... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
6eae3f6bf28827f0af7a8a1ce5a0229ebf56ecf2 | b3abba7d2e15eaf68cdba90b2c00b075ef5bdfef | /products/migrations/0013_delete_code.py | 6d493b041943aa55ca937229454910dcacdbbaea | [] | no_license | penan9/mysolar | 854951f7ba22713d885ce3f15522c987decaa856 | 4a8963c58e4eb39ce7b5a3335f4a6c8a7a7db8ba | refs/heads/main | 2023-01-08T11:58:30.438335 | 2020-11-01T05:33:16 | 2020-11-01T05:33:16 | 309,028,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # Generated by Django 3.0.6 on 2020-06-03 16:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0012_product_code2'),
]
operations = [
migrations.DeleteModel(
name='Code',
),
]
| [
"penan9@gmail.com"
] | penan9@gmail.com |
85a7deaf797f205351e96008cd6c01b4cf489ab4 | 106e00ed76e80436551b8039d5b70ab764213c8f | /read+.py | daefd1ff14e81be00f3dbde1c88df02d0f77892c | [] | no_license | neetukumari4858/file | c4a93cd4099c2ff96c6e922beeecfe3547fd81de | 8ce36dfaa2f0bac86f778e08a985bde71640804e | refs/heads/main | 2023-08-12T03:58:44.234825 | 2021-09-20T11:07:36 | 2021-09-20T11:07:36 | 408,409,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | f=open("read+.txt","r+")
data=f.read()
f.write("\nlaptop")
print(data)
f.close() | [
"noreply@github.com"
] | neetukumari4858.noreply@github.com |
0d0020c82e9d145c8945e5cc40d7221e7505ec63 | 5f8b1beafc1a293f21d45a30247348cfc6f99299 | /kindergarten-garden/kindergarten_garden.py | 1d54e2d67db253e75fced61c52286bf73622d56b | [] | no_license | vineel96/PythonTrack-Exercism | aca3d16b0ca352060a7ab16c2627f44695f6b855 | c756cf38e39aa6347199cf3143f8b401345ad832 | refs/heads/master | 2020-06-20T17:43:48.972591 | 2019-07-30T06:54:51 | 2019-07-30T06:54:51 | 197,196,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | class Garden(object):
dict={
'G':"Grass",
'C':"Clover",
'R':"Radishes",
'V':"Violets"
}
def __init__(self, diagram, students=['Alice', 'Bob', 'Charlie', 'David','Eve', 'Fred', 'Ginny', 'Harriet','Ileana', 'Joseph', 'Kincaid','Larry']):
self.diagram=diagram
sel... | [
"vineel_abhi96@yahoo.com"
] | vineel_abhi96@yahoo.com |
fa1ae33e67709d6890b2e0093be5c1d44b8ad6fa | d97b6617d61efb79d0636f7c40a76d8dc50e0a77 | /build/uv_control/catkin_generated/pkg.installspace.context.pc.py | c528e00b2a47ff1a00a2a3fa8fab8208d3a5b9db | [] | no_license | tuckerguen/pfc_init_catkin_ws | b3d6de9b1ad48577407a989d7cbc327de4588e39 | 2feabfc4d5306432701b2a9019d683349a0af89f | refs/heads/master | 2022-12-20T17:06:58.447495 | 2020-10-09T17:39:06 | 2020-10-09T17:39:06 | 295,276,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;actionlib;control_msgs;cwru_davinci_kinematics".r... | [
"tkg11@case.edu"
] | tkg11@case.edu |
6a39b564fdd1127f5f8abde01880e80631dc68e8 | 402767378a71fd6b1e6983060efd02f832d5cc46 | /Day (26)/Day_26_Demo_NLP.py | d021c6f8fe782d609c50888372e526d8bc4f4cd0 | [] | no_license | sjain03/FSDP2019 | e5f9e2163bff1c20f3c4ffd8e5f2f1e12b5bf6ad | 6a066d21f74889597caa086f1c75dc261a9ba3bf | refs/heads/master | 2020-06-16T07:00:52.225651 | 2019-07-21T11:58:05 | 2019-07-21T11:58:05 | 194,473,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,358 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 04 14:53:30 2017
@author: Forsk Technologies
"""
# Natural Language Processing
# Importing the libraries
import pandas as pd
# Importing the dataset
# Ignore double qoutes, use 3
dataset = pd.read_csv('Restaurant_Reviews.tsv', delimiter = '\t')
# Cleaning the texts
#... | [
"sjain4810@gmail.com"
] | sjain4810@gmail.com |
7ff7c2c625549b98560eb474f501317b55d22629 | 64f1809205896efdb2875a38798ef0d8d2f728f9 | /news/admin.py | 86150182bf0015cfcf7221806434f46540c01c50 | [
"Apache-2.0"
] | permissive | foxy4096/DjangoNews | b7da177d900e0a31691b0a26b2e8b2b5949c684e | 1065a39a8732eae56ff3fb6816ad94b8ec7730f3 | refs/heads/main | 2023-08-29T20:05:08.208641 | 2021-11-16T10:31:34 | 2021-11-16T10:31:34 | 428,604,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from django.contrib import admin
from .models import Article
class ArticleAdmin(admin.ModelAdmin):
def save_model(self, request, obj, form, change):
obj.reporter = request.user
return super().save_model(request, obj, form, change)
def get_queryset(self, request):
qs = super().get... | [
"54215788+foxy4096@users.noreply.github.com"
] | 54215788+foxy4096@users.noreply.github.com |
270575455ea05a2707115824a57143caea57165a | 1c0e2ffd1237073b53c104e49af35485e6061c36 | /bucketlist/errors.py | a8c901671d122a7f89c7c32e2fe184e31e4795e4 | [] | no_license | WNjihia/flask-bucketlist-api | f2cd73162a51d9c0e51b742b85e7835b62a0a93b | 777fb4bff79deca3848cf9553838d6e4784e58f2 | refs/heads/develop | 2020-06-02T15:10:48.273238 | 2017-07-14T12:06:56 | 2017-07-14T12:06:56 | 94,095,916 | 0 | 3 | null | 2017-07-10T12:42:38 | 2017-06-12T12:53:04 | Python | UTF-8 | Python | false | false | 697 | py | from flask import Blueprint, make_response, jsonify
error_blueprint = Blueprint('bucketlist', __name__)
@error_blueprint.app_errorhandler(404)
def route_not_found(e):
response = {
'message': 'Not found'
}
return make_response(jsonify(response)), 404
@error_blueprint.app_erro... | [
"dorisn172@gmail.com"
] | dorisn172@gmail.com |
121e0361b0c9765fca8a1987fe76619433399438 | 8b7b9ff904c949ee79f596f05eb89225b027a318 | /Entrega2/splineCubico.py | 6d80def0804fc699156afef7538a1e1eb013c16a | [] | no_license | eafit-201620030010/M-todos-Num-ricos | d7ee5286f3393132c57263133f219dbb02576c3c | 2214ee5a7d8cbea866da9f9a8df78764854dcfa7 | refs/heads/master | 2023-01-19T10:58:58.942252 | 2020-11-28T19:14:48 | 2020-11-28T19:15:44 | 287,855,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | import numpy as np
#Este metodo recive 2 listas, los X y los Y de los puntos
#Retornara una lista con los Xs resultantes de la matriz generada y una lista de strings con las ecuaciones resultantes
def spline_cubico(X,Y):
k = 0
ecu1 = []
ecu1y = []
for i in range(2,len(X)):
ecu11 = []
a... | [
"scadavidp@eafit.edu.co"
] | scadavidp@eafit.edu.co |
e554ed1e3f0ef7ab8afac5e92e7db32e3179c2ce | 05a090ee8f9d6dc6bbcc3d20cf8d4a7c8a627bde | /kash/migrations/0003_auto_20201203_1658.py | 9da1a6f5d84271275e7fa8f9401985f96c9af90e | [] | no_license | Komilcoder/kash_app | 527e84c63b03264f72aba4e2d3039a219beae556 | 88ab937c3391b1104bbdbf733da49634ea645ecf | refs/heads/master | 2023-01-21T00:46:24.482017 | 2020-12-03T15:52:01 | 2020-12-03T15:52:01 | 318,185,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # Generated by Django 3.1.4 on 2020-12-03 11:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kash', '0002_auto_20201203_1648'),
]
operations = [
migrations.RemoveField(
model_name='news',
name='description',
... | [
"yaxshilikovkomil@gmail.com"
] | yaxshilikovkomil@gmail.com |
a4799a1030f692a4ffeee34bb9fe99882ca234a1 | d9c8f1802e6dc7e0559b9bc4e8c1816f7302452f | /geodb/views.py | d70983a4e0deff42cd152e8f1b2cafd136556993 | [] | no_license | dodiws/isdc_geodb | cd04700b98dfd43a8c854510579625b7f6390a88 | 5e2d515eca0417af0f51ea9a5d5ca4ae0ca1eca4 | refs/heads/master | 2020-04-03T10:10:32.062166 | 2019-01-29T06:29:41 | 2019-01-29T06:29:41 | 155,185,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,496 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
import csv, os
from geodb.models import (
# AfgFldzonea100KRiskLandcoverPop,
AfgLndcrva,
AfgAdmbndaAdm1,
AfgAdmbndaAdm2,
# AfgFldzonea100KRiskMitigatedAr... | [
"dodiws@gmail.com"
] | dodiws@gmail.com |
46153ef260e1b68b189692866fa7a50ce4780f06 | 5b9a2b0aa044b44be89405fc7e450931b7594cf0 | /data-noaa/py_wunder_example.py | 8fef6fc45be1f4fe34479d95bee0606e2713e7ab | [] | no_license | drewthayer/capstone2-avalanche | 8a10641658db6dcfff6d59da4f407076f0b35110 | d0a2a6fe482c067c545e29f712c62c0a0db25471 | refs/heads/master | 2020-03-11T15:05:28.730092 | 2018-04-29T21:51:09 | 2018-04-29T21:51:09 | 130,074,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | # example
import os
import requests
import csv
import pandas as pd
##from urllib2 import urlopen
#from datetime import datetime, timedelta
# API key
import os
api_key = os.environ['WUnderground_API_KEY']
endpoint = "http://api.wunderground.com/api/"
yyyymmdd = 20060406
STATE = 'CO'
location = 'Aspen'
#http://api.wun... | [
"drewthayer@Drews-MacBook-Pro.local"
] | drewthayer@Drews-MacBook-Pro.local |
790c843f9ecf6ba2be8f9d8db06c77d6f0aa86a5 | 52040cacc85b3fe470064093844ae0f36de3f3d3 | /src/build_nucleus.py | 1e3a9969c504ee1d6a821a6da90c70e862a0209d | [] | no_license | knielbo/dotxin | baa14186ed6780326897aca8ff75c237b4ecfeb3 | 7b7d5efc7009f33a5cec26e4d8d09296d7263789 | refs/heads/master | 2020-05-25T16:10:16.829780 | 2019-05-23T11:57:42 | 2019-05-23T11:57:42 | 187,881,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | import os
import pickle
from scipy import spatial
import numpy as np
import pandas as pd
from build_dat import build_dat
def nmax_idx(l, n=1):
""" indices for n largest values
"""
return sorted(range(len(l)), key=lambda x: l[x])[-n:]
def nmin_idx(l, n=1):
""" indices for n smallest values
"""
... | [
"knielbo@sdu.dk"
] | knielbo@sdu.dk |
a988360eedaf10d07099eb5855b7aeb8d603dc47 | 0b297f43351df4bee230feaf03078bfdec84086d | /core/client.py | 0a6e9e30d571c546d01860c70fad41e99d9b1f2f | [] | no_license | sleepyeinstein/ggshodan | 58a90fc0b3c1eb9315416c4216b297f709b4518b | 4896680d4a1ab1038f14510bd7a9cb8fab58a07c | refs/heads/master | 2022-04-06T22:41:54.485503 | 2020-02-26T15:06:39 | 2020-02-26T15:06:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
from configparser import SafeConfigParser
from colorama import Fore, Back, Style
parser = SafeConfigParser()
parser.read("./config.ini")
API_KEY = parser.get('confi... | [
"noreply@github.com"
] | sleepyeinstein.noreply@github.com |
334c2f38958c2ed773badb5805cc2d29fe06cf35 | 395be40c4a59387302dd7f4affd87155a8be2643 | /19/hitcon-quals/emojivm_pwn/exp.py | 7c61890a65a427a84e9c29ba10b2b0fa02355758 | [] | no_license | kevin47/CTF-writeups | d47dfc928254434e381f7f0a3f476b59f445ff08 | 5fbb0afd58358a4beebfe3467baab65597affa71 | refs/heads/master | 2022-09-28T04:13:28.183163 | 2022-09-07T11:50:23 | 2022-09-07T11:50:23 | 216,670,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | #!/usr/bin/env python2
from pwn import *
from IPython import embed
import subprocess
context.arch = 'amd64'
#r = remote('127.0.0.1', 7122)
r = remote('3.115.176.164', 30262)
#r = process(['./emojivm', './generated_code'])
r.recvuntil('token:\n')
x = r.recvline()[:-1]
print repr(x)
xx = subprocess.check_output(x.spli... | [
"kevinwang0810@gmail.com"
] | kevinwang0810@gmail.com |
a4d87c65d9e738781a81c17d7979933790a8dd10 | e692c4e84566fb8a53ff44a9e19d6ebfe53c14cf | /m_scraper/rq/tiktoker.py | 8e6f263f6512b571b43d68f0f22e18c64482a74f | [
"MIT"
] | permissive | renpeicheng/media-scraper | 5adc08997601ed38300e10e2e46156204b64a444 | 84d1fb207f2d57536b6972ae09e2b4bb9c1d41dc | refs/heads/master | 2020-05-19T18:43:44.077503 | 2019-05-01T16:11:38 | 2019-05-01T16:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | import os
from .downloader import Downloader
from .utils.helpers import save_json
class TikToker(Downloader):
def __init__(self):
super(TikToker, self).__init__()
self.description = 'TikToker'
self.identifier = 'tiktok'
self.keyword = 'userid'
self.save_path = './download_ti... | [
"elvisyjlin@gmail.com"
] | elvisyjlin@gmail.com |
1e772a6440f9a2f9e82b4e23326bab5404703a5b | 189c4090875e8e29a77778b5bbcc5eddcf1bb979 | /flight/models.py | abcd10a6c0cfdf52c780fe24d17f3dd76910c015 | [] | no_license | beloved23/unica2 | 08d7115199d614b52dd66a1fccf5fe75bbaf59ab | 0959da8d6096536d7e004ad8182b66cfdd0d945c | refs/heads/master | 2020-05-07T22:54:29.502599 | 2019-04-12T08:40:23 | 2019-04-12T08:40:23 | 180,965,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,226 | py | # from __future__ import unicode_literals
#
# from django.db import models
# from django.contrib.auth.models import User
# from django.core.validators import RegexValidator
# from datetime import datetime, date
# from django.conf import settings
# from utility.models import ZONE
#
# from utility.models import *
# # Cre... | [
"adegokeayanfe@gmail.com"
] | adegokeayanfe@gmail.com |
791f370224d369d6f8c5486a8f6205bb1b015ec7 | c2bf653d52a901cd1f428525f5cc42e7e38fdd58 | /smartbox.py | 6ee4749157a3d714c16927a42c5af1225b0131d5 | [] | no_license | akhil15126/SmartBox | 0073d69c1bf0792658870c37a42c1af62310ccea | cfd0bf402167ae7bf0e1737c732452390411f6db | refs/heads/master | 2020-03-22T14:41:01.195221 | 2018-10-24T14:00:02 | 2018-10-24T14:00:02 | 140,197,098 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 13,083 | py | import tensorflow as tf
import numpy as np
import keras
import pickle
from PIL import Image
from Model import GeneralModel
import argparse
from Datasets import Datasets
from Attacks.fgsm import FGSM
from Attacks.l2 import L2
from Attacks.mifgsm import MIFGSM
from Attacks.pgd import PGD
from Detection.AdaptiveNoiseReduc... | [
"akhil15126@iiitd.ac.in"
] | akhil15126@iiitd.ac.in |
a4aa3cb66427702daeca11f1eba49736ef4dd8e8 | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cps/models/Listener.py | f4508baf200e067c53fd0aa337482b86f24fb929 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
0fb144cb4a0e83cae57092585f2ec354ccc3cc69 | d5677a21d37b0b69694463c5dd54290e7d19c980 | /onmt/encoders/.ipynb_checkpoints/bert_encoder-checkpoint.py | 31718f8f3a2091ad97655fcab1803ac61d89e753 | [
"MIT"
] | permissive | YunwonTae/PePAL-1 | 3cfa42d72a85bc6ad34eb3f74ce01ee4efd5c326 | 2afce659913b0c89c6dd794699a85e49c4206e5d | refs/heads/main | 2023-02-01T06:10:41.793731 | 2020-12-13T08:31:05 | 2020-12-13T08:31:05 | 321,021,253 | 0 | 0 | MIT | 2020-12-13T08:47:36 | 2020-12-13T08:47:36 | null | UTF-8 | Python | false | false | 5,240 | py | from pytorch_pretrained_bert import BertModel
from pytorch_pretrained_bert.modeling import BertConfig
import torch.nn as nn
import torch
import pdb
from onmt.encoders.encoder import EncoderBase
class MyEncoderBertEmbeddings(nn.Module):
"""Construct the embeddings from word, position and token_type embeddings.
... | [
"user@AL01396164.local"
] | user@AL01396164.local |
520d4361ddcd551bf6614ea880e2bba99e488d33 | 99dea6c2f5c8e1331fd3c22ec2ed3265e7414db7 | /developers_8hr_plot.py | db54e708ca6a01a8fff1344fd853bf8c018ce203 | [] | no_license | nicholas-karimi/Python-Data-Visualization- | 07bf2ee9bd192c3ef43ea6ae0136a5ddc830b855 | fc490fd20f1e94ae36bbf0bbce9d278c9554da7e | refs/heads/master | 2022-03-27T01:49:58.453637 | 2019-10-04T17:11:17 | 2019-10-04T17:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #! /usr/bin/python3.6
from matplotlib import pyplot as plt
plt.style.use('classic')
minutes = [1,2,3,4,5,6,7,8,9]
Developer_A = [8, 6, 5, 5, 4, 2, 1, 1, 0]
Developer_B = [0, 1, 2, 2, 2, 4, 4, 4, 4]
Developer_C = [0, 1, 1, 1, 2, 2, 3, 3, 4]
labels = ['Developer_A', 'Developer_B', 'Developer_C']
plt.stackplot(minu... | [
"kariminic@gmail.com"
] | kariminic@gmail.com |
3f2475ef0cd1ab7e91ad1a11161d4314f3a251e1 | d1258576c033845c9c48bae7eedd3f7390bae178 | /server/round.py | c9f6bdce6eaeaf95e02787e8c44e9ac21b12bb92 | [
"MIT"
] | permissive | Teldrin89/TWT_Pict_Game | f4347dfe4dd8dd7a7360636cf42ddd2545135d1b | 01822ff4401fd8261d3dd3ad1513379c4df6135a | refs/heads/master | 2021-05-17T13:40:07.777721 | 2020-04-17T21:17:12 | 2020-04-17T21:17:12 | 250,803,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | '''
Single Round Class Script
'''
import time as t
from _thread import start_new_thread
from .game import Game
from .chat import Chat
class Round(object):
def __init__(self, word, player_drawing, players):
"""
init object
:param word: str
:param player_drawing: Player
:param... | [
"lukasz.cieslak69@gmail.com"
] | lukasz.cieslak69@gmail.com |
04fb1be135cea95cdf79a7d7201426bc8a05b45f | 1a686a82becacfabc4d8f0b5b5be613887bffa72 | /app/botreport/apps.py | bda212b6e824571a3f7af650b6f19b64b6cdbedc | [] | no_license | pedropiresdev/botservice | 0384b8366d7ffe518f2e4cf18bcf234f826ab7bc | f2e3d2e3011e7a7e08b14d11a1058393ad276fe4 | refs/heads/main | 2023-08-22T06:00:16.774357 | 2021-10-21T04:44:35 | 2021-10-21T04:44:35 | 419,543,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from django.apps import AppConfig
class AppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app.botreport'
def ready(self):
from app.botreport.pubsub_service import publisher, listener
try:
publisher()
listener()
ex... | [
"pedropires@discente.ufg.br"
] | pedropires@discente.ufg.br |
eac0a94de53de97ff8835d041f7982daad6ac9f3 | 606a91cf9484494c1a8d3e1c49f7828d31d3d002 | /modules/popup/differ.py | 012d539fb426ad20c90dd5a107df8905b7d2f5c3 | [
"MIT"
] | permissive | Pictor13/GitGutter | e6a3f23266fd598a1fe6c3b7252881b0f33cbf11 | 19f75c581a0f9143c826b6e4bfd7d7f9159a8dbd | refs/heads/master | 2020-04-05T05:24:37.676415 | 2018-11-07T18:54:43 | 2018-11-07T18:54:43 | 156,593,408 | 0 | 0 | MIT | 2018-11-07T18:51:45 | 2018-11-07T18:51:45 | null | UTF-8 | Python | false | false | 5,596 | py | # -*- coding: utf-8 -*-
"""Differ module.
This module is inspired by difflib.Differ which creates human readable diff
output. Instead of text it outputs html which can be displayed by diff popup
well.
"""
import difflib
import html
def highlight_diff(old_lines, new_lines):
"""Generate the html string with highli... | [
"deathaxe@web.de"
] | deathaxe@web.de |
9255e910bd5c9adb27ec7d8d05a78d06af0a9736 | 13391bb116ca5e4dcee49c58029857c1c419e5fb | /Aidea_for_Release_5/v2/flavors.py | e570d2c22ad9ea811ea16f82f83ce5846d9c4076 | [] | no_license | Nigo-Liu/Python | cb501ed606f9019ec01ca646fdd2cdc07f3c2ee1 | 56fb0732ca468aa792cbd060e40fedbadbc5a649 | refs/heads/master | 2021-06-26T19:30:40.210429 | 2020-10-13T07:11:11 | 2020-10-13T07:11:11 | 154,466,751 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import request_utils
class Flavors():
def __init__(self, ip, account, password):
req = request_utils.Request(ip, account, password)
self.req_get = req.req_get
self.req_post = req.req_post
self.req_delete = req.req_delete
self.req_patch = req.req_patch
self.req_put =... | [
"liuchunlin@aol.com"
] | liuchunlin@aol.com |
d089134e584d9b0d118d8a1e547907c28db88b65 | 9bc9885e9500083afc2cd6be4ff93ee2eb4fbfbb | /neuropower/apps/designtoolbox/migrations/0016_auto_20160907_1914.py | 5dbb860d6d601d9fe11f927ee47970a6189b6b04 | [
"MIT"
] | permissive | jokedurnez/neuropower | 50297af01bef55fe2c01355f038a9d184cde493d | ed8c1cf29d447b41dfbfbc7a8345443454e62a96 | refs/heads/master | 2021-01-15T08:36:45.191330 | 2016-11-20T00:56:30 | 2016-11-20T00:56:30 | 51,338,446 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-09-07 19:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('designtoolbox', '0015_auto_20160905_1717'),
]
operations = [
migrations.Alte... | [
"joke.durnez@gmail.com"
] | joke.durnez@gmail.com |
11e8bfe971a98fef054d8ceb67e403f2ab417bf4 | b37dc157442aa54b934b4c170acfb71f785ee029 | /annotation/pin/test/pin_case3.py | 84f1314def9d3bfbf7975a14c1b713dd41c8e6cb | [
"MIT"
] | permissive | windfall-shogi/feature-annotation | 8fd74887086cc0ede0d9198d5a258f20452b3ede | 83ff7c3fa31e542221cf45186b2ea3ef2a10310f | refs/heads/master | 2020-03-15T17:32:42.403072 | 2018-05-05T16:55:13 | 2018-05-05T16:55:13 | 132,264,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
from itertools import product
from pathlib import Path
import numpy as np
import tensorflow as tf
from dotenv import load_dotenv
from annotation.black_naive_effect import BlackNaiveAllEffect
from annotation.direction import PinDirection, Direction
from annotat... | [
"imoto-y@sys.i.kyoto-u.ac.jp"
] | imoto-y@sys.i.kyoto-u.ac.jp |
74e74455de014475d07e51604e15ca1764c43ed9 | 7684ffabb75ed2d6396d3a720c56ed0ee09ee77d | /crack_detection/gcloud/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/oslogin/v1alpha/oslogin_v1alpha_client.py | 17a96db3d16f3b91f1861878024aa4ac72c32e1d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/CrackPropAPI | da7cc7a1ef046d20992423f7c7a148e390bb70e7 | 24c0cfd1f258eeaa7e5e953253b5d778f2fbecb5 | refs/heads/master | 2022-11-09T07:15:41.142453 | 2020-07-02T14:34:15 | 2020-07-02T14:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,176 | py | """Generated client library for oslogin version v1alpha."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.oslogin.v1alpha import oslogin_v1alpha_messages as messages
class OsloginV1alpha(base_api.BaseApiClient):
"""Gen... | [
"yopi1838@gmail.com"
] | yopi1838@gmail.com |
10378955a38e26525d1525c5857474304b97461d | ab1057c92d122c1f8c918f9dd68981990ed04f6c | /src-py/test_1mb.py | 5d00fd9631e1f0944f9fa35e5b24d9f298d2d2c5 | [
"MIT"
] | permissive | Li980701/ResistanceAI | a26e2620080b5d207a6fd54d8c03854058d4ed6b | 6c7c25a00489e055ad5c958b7c30b216e234e69c | refs/heads/master | 2023-08-25T05:49:01.592691 | 2021-10-21T13:04:48 | 2021-10-21T13:04:48 | 417,129,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from resistance.game import Game
from resistance.random_agent import RandomAgent
from resistance.mct.mct_agent import MCTAgent
from resistance.mct.Bounder import Bounder
import json
def test(n_game, players):
scoreboard = {agent.name:{'spy':[0, 0], 'resistance':[0, 0], 'total':[0, 0]} for agent in players}
... | [
"KX980701@gmail.com"
] | KX980701@gmail.com |
520103d6242534030ebdab72ea91e4701a2e2443 | 6e3dea26fd60a8940d5a812d67b6604ddb403224 | /RuleEngine/Rules/ClassificationChecks.py | e5445e6f5841ebb4863cfc388cbbcefb9da17ed8 | [
"Apache-2.0"
] | permissive | Open-EO/openeo-result-validation-engine | 3fcce1b1764a4e2c08db42db20e7bdef85ce7211 | da34d2d0733475af84fb6a2c38ca536bd0c112db | refs/heads/master | 2022-12-14T13:45:51.875040 | 2019-07-18T15:13:56 | 2019-07-18T15:13:56 | 176,923,172 | 1 | 3 | Apache-2.0 | 2022-12-08T04:53:36 | 2019-03-21T10:33:46 | Python | UTF-8 | Python | false | false | 2,607 | py | import os
import cv2
from RuleEngine.Algorithms.edge_computations import calculate_canny_edges
from RuleEngine.Algorithms.edge_computations import compute_overlap
from RuleEngine.Algorithms.edge_computations import create_comparison_image
from RuleEngine.Rules.Rule import Rule
class ClassificationChecks(Rule):
... | [
"simonschulte@posteo.net"
] | simonschulte@posteo.net |
ab7136f89494f52ca7f5bec66e01640e96964b6e | 7a78f54b49915570d8b7e9084bf5e87ac994a138 | /generate_tfrecord.py | a698cac9b968b2375c51f7e99bfdb7b890106386 | [] | no_license | edisonesc/SALBS-II | d604ba179e5caa2845d73b697fa72ccc6fc5d8a7 | 8d640593072c8a462609e6115a11fa81077d8336 | refs/heads/master | 2020-05-04T01:48:28.865752 | 2019-04-17T04:08:23 | 2019-04-17T04:08:23 | 178,914,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | py | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=images/train_labels.csv --image_dir=images/train --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=images/test_labels.csv --image_dir=images/test --output_path=test.record
"... | [
"edi.escx@gmail.com"
] | edi.escx@gmail.com |
18508759ec6eae9a24a1518581ff7c3b9cc5a68f | e3eb9d09b65915a877d4580b8f3151189448d7a0 | /app/__init__.py | 0046f3b4b3dcd81360b2c27791ac09624f62ca63 | [] | no_license | p-chambers/Flask_tutorial | e83035c6bb39cc1518c6bc65d86cd62d3c86f56b | 8f506a1a3f16944769ff1b2ea20ad48e0ffd5e10 | refs/heads/master | 2020-06-23T05:48:39.915119 | 2016-12-05T10:11:59 | 2016-12-05T10:11:59 | 74,662,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
# @Author: paul
# @Date: 2016-11-23 11:41:39
# @Last Modified by: Paul Chambers
# @Last Modified time: 2016-12-02 12:32:57
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
app = Flask(__name... | [
"P.R.Chambers@soton.ac.uk"
] | P.R.Chambers@soton.ac.uk |
723d603f2a8d3ae5026dee47931eff4d9a6ee440 | 4666ce4fe9e34e80291ec91a1898b3064a9165a3 | /build_keras_npy.py | 9f51ace440a1f83f37907776176484f96ac7e421 | [] | no_license | cjstntjd/machine | b2057ecfcea09437eb15d4580151ee3e723e453e | 932530088e0cc9ae060de20909b6171eab80755d | refs/heads/master | 2021-01-02T02:29:00.205314 | 2020-05-19T13:05:30 | 2020-05-19T13:05:30 | 239,453,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | from sklearn import model_selection
from sklearn.model_selection import train_test_split
from PIL import Image
import os, glob
import numpy as np
import sys, os
from keras.models import Sequential
from keras.layers import Convolution2D
from keras.layers import MaxPooling2D
from keras.layers import Activation
from keras... | [
"noreply@github.com"
] | cjstntjd.noreply@github.com |
3442da3604dc7d70f0152c980a89922f6bc81410 | d91c5cc5b3ce4f9a86e6d55b504450535cfc9d67 | /main_stl.py | b98ec93db25ef1813e2958c4b45b1cf2f2760394 | [] | no_license | Nightmareone/stl_program | 3bf033f27f57770275e4179b7cf92ea5b7623e5e | 307bdf9392ba028a1501786b30b10429cd8c13f8 | refs/heads/master | 2020-06-06T20:44:11.525229 | 2019-10-31T07:07:53 | 2019-10-31T07:07:53 | 192,848,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,777 | py | ####################################################
###メインのSTLファイルの読み込み、サポートの起点を生成
####################################################
import program4support as p4s
import draw_graph as dg
import numpy as np
from stl import mesh
import math
import datetime
from matplotlib import pyplot
from mpl_toolkits i... | [
"noreply@github.com"
] | Nightmareone.noreply@github.com |
36baeb280fe445880f582412b5f140997661f413 | f4f181f2c970a163801b4202fc8d6c92a4e8113d | /google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/addresses_utils.py | c24143684ff0332856f3e3da17ca890a539e8ee5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | Sorsly/subtle | 7732a6cb910f5e2f4eed1ac0d3b5979001582340 | 718e79a3e04f1f57f39b6ebe90dec9e028e88d40 | refs/heads/master | 2021-05-24T01:21:39.218495 | 2017-10-28T01:33:58 | 2017-10-28T01:33:58 | 83,103,372 | 0 | 1 | MIT | 2020-07-25T11:21:05 | 2017-02-25T03:33:07 | Python | UTF-8 | Python | false | false | 3,225 | py | # Copyright 2014 Google 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 required by applicable law or ag... | [
"han300@purdue.edu"
] | han300@purdue.edu |
b577e3784df958a8243feb93121f217683018769 | 1063d8a5b345219f60747dc75eab552618e8d33c | /src/benchmark.py | ca30e2114ddba2a625e05c6b10fd07c7aea33710 | [
"MIT"
] | permissive | neutronest/skmodel_benchmark | 76c969ff71f14153cd4250659f6729dc41461665 | f444f8d7c2cb7d6662495e4e5f6c50a967930daf | refs/heads/master | 2021-01-17T10:51:08.008999 | 2016-06-25T03:35:47 | 2016-06-25T03:35:47 | 61,922,277 | 0 | 0 | null | 2016-06-25T03:35:47 | 2016-06-25T02:01:05 | null | UTF-8 | Python | false | false | 3,094 | py | #!/usr/bin/env python
#-*-coding: utf-8-*-
import numpy as np
import scipy as sp
import pickle
import getopt
import sys
import utils
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import Gradi... | [
"dongchao@didichuxing.com"
] | dongchao@didichuxing.com |
1a899f2715073ca9e865032c071585d019b891c1 | 77bb388d1649f520a99d4b0b2f140e1acb9a0fe1 | /binaryTreeTraversal.py | a67708107668431b0209adc2642430aead42ac5f | [] | no_license | gbengaagunsoye/Python_DataStructures | a6c694711396cee928885c84af799e7e1313f87c | 488f8c466fb240345356108bf9c6b47997e25a17 | refs/heads/main | 2023-04-15T16:32:07.006715 | 2021-04-27T10:38:41 | 2021-04-27T10:38:41 | 362,072,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
''' 1
2 5
3 4
'''
myNode = Node(1)
myNode.left = Node(2)
myNode.left.left = Node(3)
myNode.left.right = Node(4)
myNode.right = Node(5)
def inNodeTraversal(ro... | [
"noreply@github.com"
] | gbengaagunsoye.noreply@github.com |
10ef50de6e155b9bb542e5c845172fff8a2bb9e6 | 16e26614611ae87de81388b435d88b142ca6189e | /pywind/decc/Report.py | d66f3fe5a42edfea4de68937f5228223d475ef93 | [] | no_license | tomwadley/pywind | d1d36007b0196730cba1389ef7940dd0ccabe5df | 0d86ff1c9a67b2f446e62c1471257e38bdc1d03c | refs/heads/master | 2021-04-09T15:41:49.823115 | 2013-06-26T09:18:24 | 2013-06-26T09:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,726 | py | from cookielib import CookieJar
import csv
from datetime import datetime
import urllib2
from pywind.decc.geo import osGridToLatLong, LatLon
def field_to_attr(fld):
fld = fld.lower()
for c in [' ', '-', '/']:
fld = fld.replace(c, '_')
return fld
class DeccRecord(object):
FIELDS = ['Reference',... | [
"zathrasorama@gmail.com"
] | zathrasorama@gmail.com |
216fdd365e46e15ec790d11d8ef2cfa9d0d14359 | 8eed1f52c54203197e0a7d88712b150524ef5f27 | /model/data.py | cd325b5f6b1318e4612af498e68393784d4a8e57 | [] | no_license | zhilangtaosha/EpidemicQABert | 8c1baffeb267535eed99c14b182e4b13b3e60575 | 952e31b051edf72a1ac213d3ba5a446acaef5021 | refs/heads/main | 2023-01-28T23:42:36.150441 | 2020-12-11T11:39:23 | 2020-12-11T11:39:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import json
import re
import os
from os.path import join
from torch.utils.data import Dataset
class SampleDataset(Dataset):
def __init__(self, split : str, path : str) ->None:
assert split in ['train','valid','test']
self._data_path=join(path,split)
self._n_data=_count_data(self._data_path... | [
"noreply@github.com"
] | zhilangtaosha.noreply@github.com |
863e655e65df80d8031a8fa741f813b921855761 | 355e6720309a24afde3f6b70e6a1e0091b19cb38 | /gameoflife/main.py | 563013ddb7882d3d03df6bdf9d9de1e666b98ac1 | [] | no_license | Bombeeded/gameoflife | 1b69716fde74cc46f8eef64d0b7b8fbd30bfba03 | b1e50e5a14937117d53659fdb0ee2234fd10d08d | refs/heads/main | 2023-06-25T21:13:39.885364 | 2021-07-24T03:54:29 | 2021-07-24T03:54:29 | 381,522,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,641 | py | import sys
import random
import numpy as np
import matplotlib.image as img
import pygame
import pygame.freetype
from pygame.locals import *
#initialize board
pygame.init()
pygame.freetype.init()
clock = pygame.time.Clock()
programFont = pygame.freetype.Font(file="Arial Unicode.ttf", size=12)
pygame.freetype.set_defau... | [
"bombeeded@gmail.com"
] | bombeeded@gmail.com |
030faf212e0c96085fe19ef5907653e0f6de769f | cc6e36ce306a46c1accc3e979362de34b6063b7e | /game/management/commands/import_games.py | 1be5196a35dfa7b39b0710727bda8fd09f034eca | [] | no_license | bartromgens/petanque-stats-server | d51995e2b4d288a0a99563347c3bf3db863918bf | 9f7e48a7670b1c2c89f1bfcb2ac5ed8c8e9a7fe0 | refs/heads/master | 2020-03-22T19:23:18.230361 | 2018-07-29T00:46:02 | 2018-07-29T00:46:02 | 140,524,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import json
import uuid
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from django.db import transaction
from game.models import Game, Team, ScoreTeam, Player
class Command(BaseCommand):
help = 'Import scores from a custom format'
players_filepath = 'data/pla... | [
"bart.romgens@gmail.com"
] | bart.romgens@gmail.com |
edc57e38a9ee02c07b592be871731d3b3b7b5597 | 778b1668f095ca25bebf577b30d70640bf3b4118 | /find_avg.py | 778ecf4d083f0bb51d4ce7fa5a7fbd2848e1fda6 | [] | no_license | remyacv83/python-practice | e71a1e5b16e17eeb09f163365ccecd83715e4d94 | 0090dd24a080f8276dfa54f6f703905a771b03f8 | refs/heads/master | 2021-01-11T11:35:39.642925 | 2017-01-04T20:03:48 | 2017-01-04T20:03:48 | 76,895,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | def find_average(array):
sum = 0
nSize = len(array)
for n in array:
sum = sum + n
print sum
print nSize
print "{:.2f}".format(sum/nSize)
find_average([5,3,6])
| [
"noreply@github.com"
] | remyacv83.noreply@github.com |
b1a6751a4038fcd54399a73b2edb2ce9a2467150 | ab74653912e1cbc44acccf750e957d661f0c9433 | /designers/wsgi.py | 729c2de21cba80d7caf567b3ff5ccd2323317f85 | [] | no_license | lunyamwi/soft-dj-mobile-repair-python | 25650c8c19e5d6dbc264b4846a7999bb917e0e7d | 72043bbdd79e6234d5f36e86b2c9b0cff5aad171 | refs/heads/master | 2023-08-14T15:36:45.845521 | 2020-06-09T10:02:03 | 2020-06-09T10:02:03 | 270,965,329 | 0 | 0 | null | 2021-09-22T19:16:41 | 2020-06-09T09:54:34 | HTML | UTF-8 | Python | false | false | 395 | py | """
WSGI config for designers 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"root@actserv-hp-nb-15-two.actserv.local"
] | root@actserv-hp-nb-15-two.actserv.local |
a7b04bd21ff6b7b113c2345da471172123d321fa | 07b4d288454fb77a14a879d350b5a6b8be9c0d11 | /machine_learning/eval_domain_agg.py | c5c3924419330bd5f050c53abda791a25729484d | [] | no_license | cltl/a-proof | 8431ae86f5e60c8c495dd88257203aff97b4d3fe | 56412dc2e887d75d53ce01b0e858861fe4ac6cee | refs/heads/master | 2023-03-07T15:42:41.441502 | 2021-02-26T10:13:01 | 2021-02-26T10:13:01 | 281,664,230 | 3 | 0 | null | 2021-01-21T12:53:18 | 2020-07-22T11:55:00 | Jupyter Notebook | UTF-8 | Python | false | false | 3,916 | py | # Eval per domain
def eval_per_domain(dict_predict, dict_ann, outfilename):
"""
calculates precision, recall and f1 per class
dict_predict & dict_ann are dictionaries of the form {note_id : ['label1', 'label2'], note_id: ['label']}
"""
tp_none = 0
fp_none = 0
fn_none = 0
tp_lopen =... | [
"noreply@github.com"
] | cltl.noreply@github.com |
77a2517a6cbe83d59a210c7db0a7122aa5f835a0 | 46b7817988ba7116bcf9f3b4bda2149fa3f58827 | /analyse/differenceAnalysis.py | 7df96e094b6a9c69760bcbb561c4092b7713fa1a | [] | no_license | kronocharia/api-peformance | 4d792bfc310e19fce9e07156793789cd3a184f12 | 99f088e314fc8992828b6eb7705f9f1f8ffaf5a0 | refs/heads/master | 2022-12-11T02:09:13.204322 | 2020-02-03T00:17:29 | 2020-02-03T00:17:29 | 237,582,639 | 0 | 0 | null | 2022-06-22T01:02:55 | 2020-02-01T08:03:56 | Python | UTF-8 | Python | false | false | 2,966 | py | import pandas as pd
import numpy as np
import plotly.express as px
import plotly.graph_objects as go
from pandas import DataFrame
from datagen.datagen import ApiCallSheet
from datasource import datasource
import logging
import sys
from outputs import outputhelper
logging.basicConfig(stream=sys.stdout, level=logging... | [
"mail@mike-li.co.uk"
] | mail@mike-li.co.uk |
47005a3669df2d29e09979c2bfd2bb18fede9e59 | b7e52aeabebf7448e31723d406755809cac63099 | /source/calc_fsun_tree/SConstruct | 9e270b942ba10dbe21a51f6c85d05cb22f763ba5 | [
"BSD-3-Clause"
] | permissive | bucricket/projectMASviirs | df31af86e024499ff87d2c2b707e3b9d24813f7c | 705abc89505122351f0ef78e0edb950b7e3b7f48 | refs/heads/master | 2021-01-01T18:31:16.748864 | 2018-05-30T15:14:07 | 2018-05-30T15:14:07 | 98,354,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | #!python
import os
import platform
import subprocess
AddOption('--prefix',
dest='prefix',
type='string',
nargs=1,
action='store',
metavar='DIR',
help='installation prefix')
env = Environment(PREFIX = GetOption('prefix'))
prefix = os.environ.get('PREFIX')
ba... | [
"bucricket@gmail.com"
] | bucricket@gmail.com | |
6d25cc07becb9e59f730a67748abcca1e17b92d4 | 770f7b7155c33d2f8c27846b93b9b73db45b2e2a | /gofedinfra/system/plugins/simpleetcdstorage/fakeartefactdriver.py | 10293902c919cd5c9cb74e6cf1c783345335fd8e | [] | no_license | gofed/infra | b0f6186486e8aa7c8c640411ee92d6648cbc77ec | 2f402bbdf1e5fa7cb68262cc3408a2fc1436269f | refs/heads/master | 2022-10-16T02:46:09.226939 | 2018-06-07T23:16:44 | 2018-06-08T11:31:37 | 48,703,326 | 1 | 5 | null | 2022-10-11T11:17:16 | 2015-12-28T17:08:28 | Python | UTF-8 | Python | false | false | 346 | py | from .artefactdriver import ArtefactDriver
class FakeArtefactDriver(ArtefactDriver):
def __init__(self, artefact):
ArtefactDriver.__init__(self, artefact)
self.data = {}
def store(self, input):
key = self._generateKey(input)
self.data[key] = input
def retrieve(self, data):
key = self._generateKey(data)... | [
"jchaloup@redhat.com"
] | jchaloup@redhat.com |
e74f8b1dd62e21e4ee2649a494dc6bdeeedc9568 | 541b71fe11be9b1db250c41cba7a8dc3aa93c638 | /termuxguide.py | ec376944f9eb4b3a83c7c2ff169761ab05c3b9cd | [] | no_license | flockygg/smsBomber | 60032be15deab4f5bb762a7abc000e05956b609b | 1053dfa5fc7f1a5fcbfbccd992f2c57c45cbf696 | refs/heads/main | 2022-12-22T18:12:24.767721 | 2020-10-08T04:22:33 | 2020-10-08T04:22:33 | 302,229,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,178 | py |
import threading
import time
import requests, random, datetime, sys, time, argparse, os
def qw(_phone):
if _phone[0] == '+':
_phone = _phone[1:]
if _phone[0] == '8':
_phone = '380'+_phone[1:]
if _phone[0] == '9':
_phone = '380'+_phone
_name = ''
for x in range(... | [
"noreply@github.com"
] | flockygg.noreply@github.com |
6259d118197f95953a32a101f2d62eb96875d9a3 | afd463f7a9fdffb7813a93bf0dcd7348f8b02865 | /pdfsave/pdfsave/urls.py | 4d6d8ca6e514112a4597ccdbe0fb0e2e287bd6d4 | [] | no_license | Kapkiai/japhweb | 6e894f3f7eaa446a7f0bb5801f51a9e366410d71 | fde9838cdcf88dfbaa543249267eab082524ec7f | refs/heads/master | 2023-03-16T21:19:32.346981 | 2021-02-20T20:10:37 | 2021-02-20T20:10:37 | 329,327,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | """pdfsave URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"mathewkiprop17@gmail.com"
] | mathewkiprop17@gmail.com |
597cf6d1f144912f8ce0c5a022b2d7643669efb7 | 798b6a5ec8aae529bce04157ce12e1515700bd35 | /test_parser.py | bcc84e3dfc9aa26fb8e646cdd74585beb7900431 | [] | no_license | 78dbe6544e9f0802ea610a4ad497c8b7/ex49 | db5ac0d71b7a65f5bf60cc460d8968b67e9813e9 | 60e16a6327e45d8a26f07902a96c712c0cec8c1a | refs/heads/main | 2023-01-24T02:31:52.512472 | 2020-12-05T21:14:47 | 2020-12-05T21:14:47 | 318,888,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | import pytest
from ex48.parser import *
def test_Sentence_class():
go_home = Sentence(('noun', 'player'), ('verb', 'go'), ('noun', 'home'))
assert go_home.subject == 'player'
assert go_home.verb == 'go'
assert go_home.object == 'home'
def test_peek_function():
words_list = [('verb', 'go'), ('noun'... | [
"noreply@github.com"
] | 78dbe6544e9f0802ea610a4ad497c8b7.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.