blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
014e8f1ddcd99487d99ffa878a6e6cfa7d50ed6c | d55bda4c4ba4e09951ffae40584f2187da3c6f67 | /h/admin/views/groups.py | 0caffe6dcf887350fc17bfffc50c9f1ecc8b64bc | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"BSD-2-Clause",
"MIT"
] | permissive | ficolo/h | 3d12f78fe95843b2a8f4fc37231363aa7c2868d9 | 31ac733d37e77c190f359c7ef5d59ebc9992e531 | refs/heads/master | 2021-01-15T21:08:17.554764 | 2016-06-09T15:42:01 | 2016-06-09T15:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | # -*- coding: utf-8 -*-
from pyramid.view import view_config
from h import models
from h import paginator
@view_config(route_name='admin_groups',
request_method='GET',
renderer='h:templates/admin/groups.html.jinja2',
permission='admin_groups')
@paginator.paginate
def groups_in... | [
"nick@whiteink.com"
] | nick@whiteink.com |
6eaca6a201451c63a49e92fe9a8c3d1051b56082 | 9727810fb355e3d047bc02f006248eee45be5ebe | /experiments/test2.py | 74929f8bf2704e253433658905cc5a4e70211128 | [] | no_license | scipioni/cherry | e00d4433fdf173ed6259d9e141050b0c7f2132d3 | 14432503533723626a79063b5663b48b1b5a4ae5 | refs/heads/master | 2021-12-02T15:30:09.424412 | 2017-06-29T13:03:34 | 2017-06-29T13:03:34 | 90,058,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,237 | py | """
white balance: 2500 (no auto)
"""
import numpy as np
import cv2
import time
from picamera.array import PiRGBArray
from picamera import PiCamera
import argparse
import collections
def draw_text(img, text, y=75, x=10, color=(255,255,0)):
cv2.putText(img, str(text), (x, y), cv2.FONT_HERSHEY_SIMPLEX, 0.8, c... | [
"scipio.it@gmail.com"
] | scipio.it@gmail.com |
840b8e213aaeafea3b9c2b03e58bd84996694d5a | bafcde124dd3af37ef14e322e0e76e82d8684469 | /restapi/services/models/PasswordResetModel.py | 47e24ce9d570005a767967ad9265625a49a108e4 | [] | no_license | mentimun-mentah/balihot-property-backend | 1c7ac91c04f791ca55f5f97e872034fbc30a8d32 | b715cc3988ca70d16dbe2e89839653af310fa091 | refs/heads/master | 2022-12-27T15:01:23.196310 | 2020-09-06T17:00:53 | 2020-09-06T17:00:53 | 268,197,437 | 1 | 0 | null | 2020-10-20T16:55:31 | 2020-05-31T02:46:41 | Python | UTF-8 | Python | false | false | 1,310 | py | import uuid, os
from services.serve import db
from time import time
from flask import url_for
from sqlalchemy import func
from services.libs.MailSmtp import MailSmtp
class PasswordReset(db.Model):
__tablename__ = 'password_resets'
id = db.Column(db.String(100),primary_key=True)
email = db.Column(db.String... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
18b07d81056da8370a9d8501f88b08674c67ba74 | ac28fd7497b2ce1fdd95441aa54706baf8a2123c | /GoogleAppEngine/ascii_chan/main.py | 5e619775f9776d39ae4b5c1f44a4dd9c015445ef | [] | no_license | rollersitch/All_my_code | 6b6defbb5620372f6fdefc094acd8d73ff2a9def | 964ba36b10d6b5b79b57e42a335643347b229106 | refs/heads/master | 2021-04-28T23:17:52.550381 | 2017-09-13T15:30:30 | 2017-09-13T15:30:30 | 77,738,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | import webapp2
import jinja2
import os
import urllib2
import sys
import logging
from google.appengine.ext import db
from google.appengine.api import memcache
from xml.dom import minidom
template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(te... | [
"dany88vai@gmail.com"
] | dany88vai@gmail.com |
c23fda02795ce8062a1ea9feb8f8170ac4d0bc95 | 31dff1fae6d31d84a442c8af5dc75fa7f98d3570 | /main.py | 1d4ed854e5cb6b7f060fca5b4785c734180ab50a | [] | no_license | jblakeh1/circuit-playground-lamp | e1e7fdd7227d18d44d273cc93c7d0ed93b1435a5 | 71949de0f7569596b4c11ec69e8ba74a1388bc4d | refs/heads/master | 2020-06-22T06:14:33.443595 | 2019-07-18T20:50:30 | 2019-07-18T20:50:30 | 197,654,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,282 | py | # digital rothko
# January 15, 2019
# J. Blake Harris
# Display two colors on a string of neopixels based
# on sound and light sensors
# on the Adafruit Playground Express
from simpleio import map_range
from analogio import AnalogIn
from digitalio import DigitalInOut, Direction, Pull
import array
import au... | [
"noreply@github.com"
] | noreply@github.com |
92e85c7b6e66817ecaf916d920cc1d86019397c2 | fe9573bad2f6452ad3e2e64539361b8bc92c1030 | /scapy_code/sniif_packet.py | 97cbf240c0083c9937735a47714341cd1d7da111 | [] | no_license | OceanicSix/Python_program | e74c593e2e360ae22a52371af6514fcad0e8f41f | 2716646ce02db00306b475bad97105b260b6cd75 | refs/heads/master | 2022-01-25T16:59:31.212507 | 2022-01-09T02:01:58 | 2022-01-09T02:01:58 | 149,686,276 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from scapy.all import *
def print_pkt(pkt):
print("---------------this is a new packet----------------------")
new_pkt = pkt[IP]
if new_pkt[ICMP]:
new_pkt.show()
sniff(filter= "icmp" , prn=print_pkt)
| [
"byan0007@student.monash.edu"
] | byan0007@student.monash.edu |
0a5675da25a028a42fa188f880eddf903e3b9acb | b4751705fa779ee908d80389a1ab3c6220d451cb | /lab/migrations/0005_auto_20190107_1459.py | aca97e5e3b6d9fce8efe2c196a3815e65bb22d49 | [] | no_license | bikashsaud/Paperless-Hospital-System | 266d280648f5ad408e5afdeba10f60ff62756e20 | 69a4b62398c08ed4c0fa67539b1f14983c8717ab | refs/heads/master | 2021-10-15T19:47:28.759514 | 2019-02-06T00:23:54 | 2019-02-06T00:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-01-07 09:14
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('lab', '0004_auto_20190107_1421'),
]
... | [
"saudbikash514@gmail.com"
] | saudbikash514@gmail.com |
c8551e2daf0a9f2f18a67975e6278b4397c7c41d | ef6629579799f113825076462a833d58044696f2 | /log.py | e70068ec45088aaa12d0270443bda684cf10815a | [] | no_license | shivamgupta97/ML-ALGO- | b1eb886ba6bf8b64b70626e83828cf46cfeeada9 | 2ce806fbdae2b55b6d0e0fa91b68ff29061a74b7 | refs/heads/master | 2020-03-22T22:14:05.005517 | 2018-07-12T16:55:55 | 2018-07-12T16:55:55 | 140,741,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import numpy as np
#import panda as pd
from sklearn import datasets
class log:
def __init__(self, lr=0.01 ,it=10000,fit_int=True, verbose=False):
self.lr=lr
self.it=it
self.fit_int=fit_int
def add_int(self,d):
x=np.asarray(d)
inter=np.ones((x.shape[0],1))
print(np.concatenate((inter, x), ... | [
"noreply@github.com"
] | noreply@github.com |
1ad539f604598332216df124c4c50ab4ace3ad3d | ab83597bd6ccbb3276f9f42b8057961133dd5e73 | /sensors/sensor1.py | bbfe222631fff790d111df410803150a83c1b5ed | [] | no_license | jhilmiljain/trial | ba3053ad0c8f911fe4bc5137aa471063b1cbbaaf | af727f4495b394089949551a23b005143f3caf29 | refs/heads/master | 2020-07-14T12:23:00.584325 | 2019-09-03T10:36:36 | 2019-09-03T10:36:36 | 205,317,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py |
import eventlet
from st2reactor.sensor.base import Sensor
class HelloSensor(Sensor):
def __init__(self, sensor_service, config):
super(HelloSensor, self).__init__(sensor_service=sensor_service, config=config)
self._logger = self.sensor_service.get_logger(name=self.__class__.__name__)
sel... | [
"noreply@github.com"
] | noreply@github.com |
c693954cad97f78d72668a79087d4930ccea1091 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-opsgenie/source_opsgenie/source.py | 743694d15b54b6ca441b6e91b3a528af43f6b85c | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 1,870 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from typing import Any, List, Mapping, Tuple
import requests
from airbyte_cdk.sources import AbstractSource
from airbyte_cdk.sources.streams import Stream
from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator
from .streams i... | [
"noreply@github.com"
] | noreply@github.com |
7d219625a694286ce91c08cd9564ac96df7a33a7 | 551b2a5bb3a926524e1a0c2366cbb0ebd54a33e7 | /core/src/test/python/compare_model_test.py | ffeb2caec8f5d8d7a024d56f51603a3c7cc7f5d0 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-3-Clause",
"UPL-1.0",
"BSD-2-Clause"
] | permissive | sercam/weblogic-deploy-tooling | 1b12b00b04e66c432b05dc23841f1b1bb319284f | a35756229f00995a2ad42c957fcee21928179f6e | refs/heads/master | 2022-07-09T05:17:24.156680 | 2020-05-08T00:24:41 | 2020-05-08T00:24:41 | 263,242,404 | 1 | 0 | NOASSERTION | 2020-05-12T05:34:17 | 2020-05-12T05:34:16 | null | UTF-8 | Python | false | false | 8,623 | py | """
Copyright (c) 2020, Oracle Corporation and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
import unittest
import os
import shutil
import tempfile
from java.util.logging import Level
from oracle.weblogic.deploy.compare import CompareExce... | [
"noreply@github.com"
] | noreply@github.com |
f5a2ef71015d9c0200dc92159cec1251c7167ddd | b611b928dc02348a83fadb70d363d273cfb1f36a | /latent_bot/latent_dec.py | d4e83341dcc8d7f60caf49c6a1f9cf3141ebf403 | [] | no_license | m0n0ph1/malware_analysis | 5e1d8e6ae88a92c0806305ccfcebf3fc753e3240 | 817d2f6e8575f3308326062fa3af28c4b06c77bd | refs/heads/master | 2021-01-04T11:37:54.525465 | 2019-07-23T18:02:00 | 2019-07-23T18:02:00 | 240,529,928 | 2 | 0 | null | 2020-02-14T14:44:53 | 2020-02-14T14:44:53 | null | UTF-8 | Python | false | false | 3,178 | py | """latent_dec.py: Script for IDA Pro decoding Latent Bot's strings"""
__author__ = "hasherezade"
import idautils
lookup_table = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3E\x00\x00\x00\... | [
"hasherezade@op.pl"
] | hasherezade@op.pl |
9e22f5283f06022fe6da4ddeb1f1e16516a673c8 | de6bc17d71706ff030926c273f7f3435082ede9b | /tutorial/snippets/models.py | 114d28c48670ff91859764281348acf974bd6ffa | [
"MIT"
] | permissive | PabloSuarez/API_django | c1054a4103b6a0bc460bb92a484db3d2bf5f9bcb | 522cc5b052c13c38fc7ef95353b8e3640126feaa | refs/heads/master | 2021-01-15T14:43:09.911839 | 2015-09-23T21:17:59 | 2015-09-23T21:17:59 | 42,883,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | from django.db import models
from pygments.lexers import get_all_lexers
from pygments.styles import get_all_styles
#add to save method
from pygments.lexers import get_lexer_by_name
from pygments.formatters.html import HtmlFormatter
from pygments import highlight
LEXERS = [item for item in get_all_lexers() if item[1]]
... | [
"hostsuarezpablo@gmail.com"
] | hostsuarezpablo@gmail.com |
b9aeff68654c2ed50000a30879c2e21c640d81e5 | 0206ac23a29673ee52c367b103dfe59e7733cdc1 | /src/nemo/compare_2nemo_simulations.py | 041bbfd0229b247c34b4796abf04bc639b9483ae | [] | no_license | guziy/RPN | 2304a93f9ced626ae5fc8abfcc079e33159ae56a | 71b94f4c73d4100345d29a6fbfa9fa108d8027b5 | refs/heads/master | 2021-11-27T07:18:22.705921 | 2021-11-27T00:54:03 | 2021-11-27T00:54:03 | 2,078,454 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | from collections import namedtuple
from pathlib import Path
from matplotlib import cm
from matplotlib.gridspec import GridSpec
from nemo.nemo_yearly_files_manager import NemoYearlyFilesManager
__author__ = 'huziy'
# Compare 2 Nemo outputs
import matplotlib.pyplot as plt
import numpy as np
def main_compare_max_year... | [
"guziy.sasha@gmail.com"
] | guziy.sasha@gmail.com |
bae78268a22dd8097a25f839b0a4b162beeae02c | 4d332c45578246847ef2cdcdeb827ca29ab06090 | /modules/Bio/Graphics/GenomeDiagram/_GraphSet.py | 0a2ed5a0bc20757fad28322a3c8d7e8873e6337e | [
"MIT"
] | permissive | prateekgupta3991/justforlearn | 616cc297a2a6119fa959b9337a5e91c77a11ebf7 | 3984c64063b356cf89003e17a914272983b6cf48 | refs/heads/master | 2021-03-12T22:09:12.184638 | 2014-01-28T10:37:07 | 2014-01-28T10:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | /usr/share/pyshared/Bio/Graphics/GenomeDiagram/_GraphSet.py | [
"prateekgupta.3991@gmail.com"
] | prateekgupta.3991@gmail.com |
2befd970c82eb7cf641e06eec46ab2d024091f8e | 7b0ea72a8863585546d72c5f5d80297a9035f1d2 | /tests/workflows/eos/test_workchain_eos.py | 639cf918b5898537a3e5075de7cc89b2f8c5a37a | [] | no_license | sponce24/aiida-common-workflows | 6b1951e9bff98ad84d78698398d5a55b4abd70b6 | f2af0ae6e8c3182ce2cbbd181540bf0b87178281 | refs/heads/master | 2023-02-02T13:46:07.987014 | 2020-12-21T16:16:14 | 2020-12-21T16:16:14 | 305,392,084 | 0 | 1 | null | 2020-11-03T16:22:28 | 2020-10-19T13:24:40 | Python | UTF-8 | Python | false | false | 4,286 | py | # -*- coding: utf-8 -*-
# pylint: disable=redefined-outer-name
"""Tests for the :mod:`aiida_common_workflows.workflows.eos` module."""
import pytest
from aiida import orm
from aiida.engine import WorkChain
from aiida.plugins import WorkflowFactory
from aiida_common_workflows.plugins import get_workflow_entry_point_na... | [
"noreply@github.com"
] | noreply@github.com |
446d33ef9eb76038d095c98939f9b31af266e4c5 | 26d76543052c86359ab25e78eac9ddd950220670 | /session1/addition.py | 204b1cf7d21576dede795f4fc2790afab276f192 | [] | no_license | HarshMaurya-coder/pythonbasics | ee67d1c2c61c01f188bba2a25d052385deb142a6 | 916af7678b9068ec1d641b9b3bd1bcd1e89c9611 | refs/heads/main | 2023-02-19T17:16:46.109718 | 2021-01-12T16:04:04 | 2021-01-12T16:04:04 | 328,421,112 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
print("press 1 for addition")
operator = input()
if operator == "1":
print(num1 + num2)
| [
"ramkumarpagal1@gmail.com"
] | ramkumarpagal1@gmail.com |
6cc4871ad6e651a61dd04d85f3d5d5955a4afad2 | 95793265e9ff20bff2082271dbeef946b4acf301 | /shapes/square.py | 54cc886c6e20bb2aae771918c0e923d36a666e1f | [] | no_license | dmpawlowski/Quiz | 4e6d7b9b38d9deeadcfd54dff6bbb85418eb9cdc | 8ee8c2762d12e12c74933eff7fd241f587e0027d | refs/heads/master | 2016-08-05T08:44:27.991457 | 2013-01-22T23:57:10 | 2013-01-22T23:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | class Square(object):
def __init__(self, side):
self.side = side
def area(self):
return self.side ** 2
def perimeter(self):
return self.side * 4
| [
"donny44131@yahoo.com"
] | donny44131@yahoo.com |
a0b0afefa29d9867d2ca4e7ea95add21f514f525 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_cli_mgmt_cognitiveservices.py | 36137183535e3c620a46e8cea7f926e0adadefd9 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,767 | 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.
#----------------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
cb5806652dd6da026afc979dedd514931ea72e0d | 4dda601cb02b404bc0ae25f984825641ddb135fe | /scuole/campuses/migrations/0018_auto_20230324_1538.py | dfd660bed1b58acca9e972a52309b108928de740 | [
"MIT"
] | permissive | texastribune/scuole | d89e49d6bf42d6476a8b2e5a4ebe6380c28e9f60 | 155444e313313ba484d98d73d94d34e9b8f57fbe | refs/heads/master | 2023-06-28T02:52:40.037200 | 2023-05-22T21:51:15 | 2023-05-22T21:51:15 | 35,112,798 | 1 | 0 | MIT | 2023-06-12T20:04:49 | 2015-05-05T17:03:23 | Python | UTF-8 | Python | false | false | 6,271 | py | # Generated by Django 3.1.12 on 2023-03-24 15:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('campuses', '0017_auto_20230324_1520'),
]
operations = [
migrations.AlterField(
model_name='campusstats',
name='acco... | [
"carla.a.astudillo@gmail.com"
] | carla.a.astudillo@gmail.com |
87db78fc9bb040bc77eeeb14ffba6ee78b8c43fa | 42394bd8cd674dcd0822ae288ddb4f4e749a6ed6 | /fluent_blogs/sitemaps.py | 97da332b7a014536107d1f7fe042d295b321ac83 | [
"Apache-2.0"
] | permissive | mmggbj/django-fluent-blogs | 4bca6e7effeca8b4cee3fdf4f8bb4eb4d192dfbe | 7fc3220d6609fe0615ad6ab44044c671d17d06a3 | refs/heads/master | 2021-05-08T13:02:51.896360 | 2018-01-31T21:54:27 | 2018-01-31T21:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from django.contrib.sitemaps import Sitemap
from fluent_blogs.models import get_entry_model, get_category_model
from fluent_blogs.urlresolvers import blog_reverse
from parler.models... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
83a912f2fd9bb92402ffe65df2ebaf7a667edd7e | e590449a05b20712d777fc5f0fa52097678c089b | /python-client/test/test_stash_appscode_com_v1alpha1_api.py | 58eaf340d2c3e2c403e782c27e9854d90c2f4271 | [
"Apache-2.0"
] | permissive | Hardeep18/kube-openapi-generator | 2563d72d9f95196f8ef795896c08e8e21cd1a08e | 6607d1e208965e3a09a0ee6d1f2de7e462939150 | refs/heads/master | 2020-04-11T03:30:18.786896 | 2018-05-05T20:57:51 | 2018-05-05T20:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,173 | py | # coding: utf-8
"""
stash-server
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unit... | [
"tamal@appscode.com"
] | tamal@appscode.com |
4ac8a081e46391eeea55282689febe7c06212c68 | 5d9dedd551118449844767da7aa6493dd5efe542 | /selenium_trio/extras/javascript/js_scripts.py | 204825912f77ff029dd97e3791430d64f5e0968b | [
"MIT"
] | permissive | birkin/selenium-trio | 9e3c542ed4fd72c0804841ed9cc40ca2232f7e5b | 3295ba313837d7b1993acf042bad1c7cadb1bfdf | refs/heads/main | 2023-03-23T05:24:06.021387 | 2021-01-25T22:57:46 | 2021-01-25T22:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,723 | py |
PAGE_HEIGHT_JS = """
var body = document.body;
var html = document.documentElement;
var height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
return height;
"""
CLEAR_CANVAS_JS = """
var canvas = document.getElementById("myCanvas");
... | [
"digiology@gmail.com"
] | digiology@gmail.com |
a5707c468740a579a9638411ffac86c44071b646 | 11239bdf1a43abc674981a2e290f867d521555fe | /accounts/front_views/front_confirmation_registration.py | 90f59f5fda71c3ee0168657c3caafba457c6cee6 | [] | no_license | gergerov/front-django-account | c4441800aeee69832eadee8d417cf823a0babc67 | 7cc78117bd0669f7bbfc4c57766fd111df65e727 | refs/heads/main | 2023-05-05T15:10:00.732374 | 2021-05-24T19:26:17 | 2021-05-24T19:26:17 | 366,051,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | from django.shortcuts import render, redirect
from django.views import View
from accounts.forms.confirmation_form import ConfirmationRegistrationForm
from accounts.validators.base import *
from accounts.validators.confirmations_validators import *
from accounts.services.confirmation import accept_confirmation
from a... | [
"gergerov94@gmail.com"
] | gergerov94@gmail.com |
ac829ac73598a0d0da9c3829ae92352cec0d73c6 | 1fbf278cca477451d6b3bae4ecba31b018ced42e | /tlssecondopinion/wsgi.py | d580ee045afb8b460834bd4044b5cc19e4dfa13f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | MiWCryptAnalytics/tlssecondopinion | 2451049a3c553aa1fa4ff5ef6357cdcb9f3a8259 | f1eebf753cc898ba546bf1371f3ce1ea848d17d6 | refs/heads/master | 2016-09-06T07:39:45.921966 | 2015-08-31T14:23:39 | 2015-08-31T14:23:39 | 41,423,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for tlssecondopinion 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"MiWCryptAnalytics@gmail.com"
] | MiWCryptAnalytics@gmail.com |
edc5c3eb6a2016b78d59f991f388998fe03d5bae | 8b3f06622b801801db3587e74e2c8ccf7227c25b | /models.py | 96a74f922609920396615303689b8aeb73f207b8 | [] | no_license | mayuri-shah/warbler | 2197b491f6f40f02e75471b5b7bed6dc75bef7e0 | 3ab262a86609e56efafbb1d2486fa8afcf20bb52 | refs/heads/main | 2023-04-28T19:37:39.626844 | 2021-05-26T14:28:48 | 2021-05-26T14:28:48 | 371,063,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,578 | py | """SQLAlchemy models for Warbler."""
from datetime import datetime
from flask_bcrypt import Bcrypt
from flask_sqlalchemy import SQLAlchemy
bcrypt = Bcrypt()
db = SQLAlchemy()
class Follows(db.Model):
"""Connection of a follower <-> followed_user."""
__tablename__ = 'follows'
user_being_followed_id = ... | [
"mayurishah0408@gmail.com"
] | mayurishah0408@gmail.com |
0693ea164d0f55d55cd10b0b62feb9852c3317d9 | 548fe32bf338f9ef270add39cd849f31c26de107 | /2016/day1.py | 77c9fdefaf54184e7139ac7debc1d9e91a523b4a | [] | no_license | JamesWalter/AdventOfCode | 764799fe1cb3c6657945140c597d3b01247a91d3 | 3e203d9c95721b93c5e2308c9c1703c9743cf110 | refs/heads/master | 2021-09-03T17:15:55.765822 | 2018-01-10T17:06:26 | 2018-01-10T17:06:26 | 112,657,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,108 | py | """Advent of Code 2016 Day 1 No Time for a Taxicab"""
# Santa's sleigh uses a very high-precision clock to guide its movements,
# and the clock's oscillator is regulated by stars. Unfortunately, the stars
# have been stolen... by the Easter Bunny. To save Christmas, Santa needs
# you to retrieve all fifty stars by Dece... | [
"james.walter@grainger.com"
] | james.walter@grainger.com |
434bebc7cbd0dff66c53188da6ab39dc4e50735f | 7ca7eb242d5c2211bead3039ef8d2271a473bf00 | /ce86.py | 345e2164b3e2be729d3feb48a3c597ec651290ec | [] | no_license | raman934/python-2019 | 613214da5f4215f1db507321d94ac9d29784c126 | ba5cf4e2204349e3bc716d8a7ef68a863d74b547 | refs/heads/master | 2020-06-25T04:12:56.717409 | 2019-10-02T07:33:56 | 2019-10-02T07:33:56 | 199,197,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | # RG
# 7.3 # todo learn
def is_palindrome(s):
n = len(s)
if n == 1:
return True
elif s[0] == s[n - 1] and is_palindrome(s[1:n - 1]):
return True
return False
print(is_palindrome('level'))
| [
"noreply@github.com"
] | noreply@github.com |
b0df4eace34d430063c111b44bb84d0c2cacf364 | e6ee1044aff06f5f1826543a03da811bb007c1d1 | /qa/rpc-tests/test_framework/util.py | 6bb66b61fe0a6eb693c78caa35f89c2b761eddca | [
"MIT"
] | permissive | ssghost/litecoinz | b7ca54aba47bb1f6f6980ab3f831c97b19aca3b6 | eef13e8349dc83528dda4a00d0013e240a1f53db | refs/heads/master | 2020-05-25T02:15:51.902536 | 2019-04-13T14:09:23 | 2019-04-13T14:09:23 | 187,572,391 | 1 | 0 | null | 2019-05-20T05:20:16 | 2019-05-20T05:20:16 | null | UTF-8 | Python | false | false | 15,931 | py | # Copyright (c) 2014 The Bitcoin Core developers
# Copyright (c) 2017-2018 The LitecoinZ developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regression testing
#
# Add python-bitcoinrpc to module ... | [
"team@litecoinz.info"
] | team@litecoinz.info |
a5328528846152c1bd69b79fa4f5920c31fd2652 | 3bcad3ca2f3f3b3a93041a844cdfc60598181c91 | /Part3/utilities/losses.py | 4166bc7f5e40e20543145d00cefa1ba13fc20ed1 | [] | no_license | DMarshallDeveloper/Machine-Learning | 474e6337afde2a27bcf88142685c5597351474a8 | 6ded473d7f391f5098d2d3ea75be58b74b617663 | refs/heads/main | 2023-04-30T18:20:11.397336 | 2021-05-23T08:59:47 | 2021-05-23T08:59:47 | 370,002,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | # -*- coding: utf-8 -*-
"""
A function used to compute for the loss
"""
import numpy as np
def compute_loss(y, x, theta, metric_type):
"""
Compute the loss of given data with respect to the ground truth
y ground truth
x input data (feature matrix)
theta mode... | [
"53842370+DMarshallDeveloper@users.noreply.github.com"
] | 53842370+DMarshallDeveloper@users.noreply.github.com |
b149655165dbfc3253e689f968488cd68f3e18c6 | 3e660e22783e62f19e9b41d28e843158df5bd6ef | /script.me.syncsmashingfromgithub/smashingfavourites/scripts/oldscripts/smashingtvextended.py | 23aa7191d67b111064220b6ce41ecbc4caa91859 | [] | no_license | monthou66/repository.smashingfavourites | a9603906236000d2424d2283b50130c7a6103966 | f712e2e4715a286ff6bff304ca30bf3ddfaa112f | refs/heads/master | 2020-04-09T12:14:34.470077 | 2018-12-04T10:56:45 | 2018-12-04T10:56:45 | 160,341,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,059 | py |
# -*- coding: utf-8 -*-
# opens tv channel or guide groups via smashingfavourites and / or keymap.
import os
import os.path
import xbmc
import sys
# make sure dvbviewer is running - enable and wait if necessary
def enable():
if not xbmc.getCondVisibility('System.HasAddon(pvr.dvbviewer)'):
xbmc.executeJSON... | [
"davemullane@gmail.com"
] | davemullane@gmail.com |
6c439ccf2c737008aee11eb88610dc3214c2fc42 | 826d6d3a2f691046bc65d25d00a23d1b4444c4d5 | /tecpython/lib/python3.7/enum.py | eeed73f8c031d41138a8e1aac3504d374c9afa4e | [] | no_license | oscargarciahernandez/QuesiQuieroOquesiTeqno | e3391d56329d84d52ad4a61270dab8bef34db15c | 2f7024f08a6de6a84d0fb5f40832df70aee48c6f | refs/heads/master | 2023-01-19T22:43:44.789533 | 2020-11-23T13:07:20 | 2020-11-23T13:07:20 | 285,193,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /home/ai5/anaconda3/lib/python3.7/enum.py | [
"proyectoroseo@gmail.com"
] | proyectoroseo@gmail.com |
906e3e03a8bec34146c12f47b27c47b30a868b4b | 91a5afd451c999092838d6cf8c3b8478783750ad | /ch03_Neural_Network/ex03_MNIST_example_and_batch.py | 846049a0c6c2018337daf51e7c1e3345b7ef4610 | [] | no_license | DeokO/Deeplearning-from-scratch | eda7c66b53cdcaf43368bd26753bd5463f0c1e08 | a1c902871d243f6c510231d09e9c65decb75361d | refs/heads/master | 2021-06-24T14:58:08.168127 | 2017-09-13T06:03:24 | 2017-09-13T06:03:24 | 103,262,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,545 | py | # coding: utf-8
#MNIST : 28*28의 회색조 이미지이며, 각 픽셀은 0부터 255의 값을 가짐. 숫자 label이 붙어있음. 학습데이터 60,000장, 시험 데이터 10,000장
import sys, os
sys.path.append(os.pardir) #부모 디렉터리의 파일을 가져오기 위해 path를 지정해둔다.
from dataset.mnist import load_mnist
#처음 한번은 몇 분 정도 걸림
(x_train, t_train), (x_test, t_test) = load_mnist(flatten=True, nor... | [
"noreply@github.com"
] | noreply@github.com |
7b0ff48f0a0173f17521f7f8579ec29be80ff5ba | 2e92e5e73422c381cde2926f77cc2ce73e2edffa | /s3_file_check.py | ddd0b8e7f7ca0d01365488356535f0e59ddcecce | [] | no_license | teng1/python-s3-check | 4492b9e9e7298c635831423e778012729c7a66aa | c6b297986274df29eb4e7e5af5360e4acb7b6576 | refs/heads/master | 2020-05-30T17:56:13.686560 | 2019-06-02T19:28:04 | 2019-06-02T19:28:04 | 189,886,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | import boto3
import re
import datetime
from operator import itemgetter
s3 = boto3.client('s3')
client = boto3.client('s3')
s3_bucket = 'mybucket'
s3_prefix = 'myprefix'
def s3_list_objects(bucket, prefix):
"""Gets a python list of dictionaries of all S3 object properties matching the bucket and prefix."""
pa... | [
"noreply@github.com"
] | noreply@github.com |
6042ebe496e64d755d312557f38f2f61d3e98e80 | 18e687608ff326fae4d1e1604cf452f086f99559 | /classroom/admin.py | 7da03566a6f4b009b1d4c24281b22e580476a82c | [
"Apache-2.0"
] | permissive | nu11byt3s/lms-ml | 955bad451ddcb78e464227294496ee0a92be08c0 | c0ea63f09d4125b0ae9033fd8b0a4aab2604bb42 | refs/heads/main | 2023-08-13T08:09:53.097312 | 2021-10-12T09:51:31 | 2021-10-12T09:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from django.contrib import admin
from .models import ClassFiles, ClassRoom, MemberShip, RoomStream, Comment
admin.site.register(ClassRoom)
admin.site.register(ClassFiles)
admin.site.register(MemberShip)
admin.site.register(RoomStream)
admin.site.register(Comment)
| [
"farsin310yeariha9701@gmail.com"
] | farsin310yeariha9701@gmail.com |
796df7285da9327a551337685c8ba477309e2c20 | 2f959af673728e4d7f3bc5d744ff7186abe3281b | /Aula11/djangoProject/booksApp/serializers.py | 04767bc863362b7530eeb4cfdf9514680a1b90ee | [] | no_license | FabioSparta/TPW_LabClasses | 1e3c42d30050f0bba5261ae47cd1e0bb43e42cf8 | 223e5f3bd52deb4478aaa21704735b404b4830c6 | refs/heads/main | 2023-05-26T03:32:14.006341 | 2021-06-16T21:28:50 | 2021-06-16T21:28:50 | 360,298,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from booksApp.models import Author, Publisher, Book
from rest_framework import serializers
class AuthorSerializer(serializers.ModelSerializer):
class Meta:
model = Author
fields = ('id', 'name', 'email')
class PublisherSerializer(serializers.ModelSerializer):
class Meta:
model = Publ... | [
"faac@ua.pt"
] | faac@ua.pt |
a1ce721648437c692be680703e759af641f629a4 | 370eb3d601cba2d791a7c690896d3504b3204c48 | /car_speech_rec/CarAudio/settings.py | b2f19fe0df1b292619a84d3c306dbc7d86ec3033 | [] | no_license | marchboy/python_machine_learning | ba558efa2bc016964251c0daa0276d6115e39bc2 | 7d2cae69930f381fe2029f58e977b55affb5e88b | refs/heads/master | 2021-07-15T09:05:02.252006 | 2020-01-17T09:35:49 | 2020-01-17T09:35:49 | 132,924,711 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import os
import time
import logging
MYSQL_INFO = {
'host':'localhost',
'user':'root',
'passwd':'mariadb',
'db':'test',
'charset':'utf8'
}
# MYSQL_INFO = {
# 'host':'localhost',
# 'user':'testuser',
# 'passwd':'testpwd258*',
# 'db':'t... | [
"jjgdut@163.com"
] | jjgdut@163.com |
d756be90db2bdec1a2a588b798658cf2d63721c8 | 0994fb9ccf25a79203ed176e6535949889255995 | /houses/roster.py | db4057126195fc0c16ef20277005836cf6bc6970 | [] | no_license | Hazem-ali/PSET7-CS50 | 1ee013069fa4e90a6101febc5c570d3849bdd3cc | 0a2b0456f174d3f859e270ffa8acc35c659406e4 | refs/heads/master | 2023-01-24T03:37:31.728740 | 2020-12-07T23:05:41 | 2020-12-07T23:05:41 | 319,467,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | from cs50 import SQL
import sys
# Sample --> python roster.py Gryffindor
# Sample Test --> Lavender Brown, born 1979
# TAKE THE HOUSE NAME FROM ARGV
# EXECUTE SQL COMMAND TO SELECT ALL NAMES FROM THIS HOUSE
# SORTING RESULT BY LAST NAME
# FOR MUTUAL LAST NAME, SORT BY FIRST NAME
def main():
# Checking That ar... | [
"hazemali627@gmail.com"
] | hazemali627@gmail.com |
c16ff949874ec6e391680cf0a2e5becac995f1e8 | ef853c148a2bfc0def7587f316da1f84d93b1785 | /myproject/app/models.py | db390fa5e856bcaa841960fa403fd35fd65b365f | [] | no_license | gitget2322/goal_web | fd7391621d689e83075b55d715e8923b636d1f8d | 0544c9c6da29da387f92195b183c87456303a171 | refs/heads/master | 2021-01-20T07:28:05.059072 | 2017-08-27T15:37:26 | 2017-08-27T15:37:26 | 101,540,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,527 | py | #coding=utf-8
from werkzeug.security import generate_password_hash,check_password_hash
from __init__ import db
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app
from flask_login import UserMixin,AnonymousUserMixin
import hashlib
from flask import request
#权限常量
class P... | [
"hcc96@outlook.com"
] | hcc96@outlook.com |
dd814c9e5a365e583776871999a9fa14e4d4e014 | 0e33389f026a7b249e46825dd0d7c192cee91666 | /db.py | 13d5717dabe0f8099aadc9472ac570b16aa993e5 | [] | no_license | sachinprajapati/paym | 59b17fc97dfaa279ddbc236c49822ef257fa7195 | f5f87525e2618e327930957d2209ced549db4b89 | refs/heads/master | 2023-02-16T06:48:48.513720 | 2021-01-18T12:09:04 | 2021-01-18T12:09:04 | 328,702,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | from settings import *
class DB():
db_name = dir_path+'/demo.db'
conn = None
curr = None
table = None
schema = """CREATE TABLE Cards (
id integer PRIMARY KEY AUTOINCREMENT,
card_num int NOT NULL UNIQUE,
date text NOT NULL,
cvv int NOT NULL,
pin int NOT NULL
);
CREATE TABLE Trans... | [
"tavarsachin@gmail.com"
] | tavarsachin@gmail.com |
38f5936465861ffb9a9e1b63f3e2f4926c1f27f6 | 89fd384acfd1b90d398fb41a1c515b42b5a43ccf | /snakes/Caliban.py | a0d456cb092d3de5370a02055ca74a8c135c7198 | [] | no_license | slippedandmissed/CodeSnake | 2fb4cbe091e20af9184db1ea41329db7e8c0ba84 | b771aa8bd240b4d1c9cefaf85acb738ac95f97c5 | refs/heads/master | 2022-03-21T05:38:52.710428 | 2019-09-10T18:05:30 | 2019-09-10T18:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | from operator import add
import random
name = "Caliban"
myHistory = []
myLength = 1
oldPelletPos = [-1, -1]
def getDist(arg0, arg1):
vector = [arg1[i]-arg0[i] for i in range(len(arg0))]
distance = sum([abs(i) for i in vector])
return [vector, distance]
def isTurningBack(myPos, direction):
global myL... | [
"noreply@github.com"
] | noreply@github.com |
bae738bc7e7a8bb92e7ac2548c71d0c31bd31a99 | 6197379b99f2de08bc01c495cee1666feec732eb | /rexster_rest/client.py | 79b6e132354103b339ae2ff8f7b4601f08ada24d | [] | no_license | windj007/python-rexster-rest | 8160e149c8afd465ac59697dacf6bccaa1f75831 | cd8119961315e890680ec965b6cb0be2b604da22 | refs/heads/master | 2020-03-28T18:52:30.104520 | 2015-09-01T22:25:02 | 2015-09-01T22:25:02 | 41,481,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,496 | py | import os, glob
from pyarc import ClientBase
from rexster_rest.query import Q, format_typed_value
__ALL__ = ['RexsterClient', 'Dir', 'Q']
class Urls:
GRAPHS = '/graphs'
GRAPH = GRAPHS + '/{graph}'
VERTICES = GRAPH + '/vertices'
VERTEX = VERTICES + '/{vertex_id}'
INCIDENT = VERTEX + '/{direction}... | [
"windj007@gmail.com"
] | windj007@gmail.com |
83f1f904fbc11dea0d949ea539259c4155273c82 | 364e2632a334241c034448ee0a7242818b49cdf7 | /bigmler/tests/test_02_batch_predictions.py | f37bd5abba68ee95bee0e21639252ce78ebf007f | [
"Apache-2.0"
] | permissive | cybernetics/bigmler | 46f6bf508b9ac6c6000c3859b5ed32a7619a3dad | c1c91548169e6f6053aef1b09085fa1fb7a43e43 | refs/heads/master | 2021-01-18T01:07:10.519630 | 2015-06-12T23:56:28 | 2015-06-12T23:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,126 | py | # -*- coding: utf-8 -*-
#
# Copyright 2014-2015 BigML
#
# 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 ... | [
"merce@bigml.com"
] | merce@bigml.com |
27ea18a5756b03152493d5b0994a5db4e48e30db | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03227/s470552278.py | 434e9ba40f42f909254017bbb3c840bf9b0c6468 | [] | 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 | 49 | py | n = raw_input()
print n if len(n)==2 else n[::-1] | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e87d75c1630684e37d72f6c38d6cea9b33695223 | 2471c87c3338eec3121499b34cb5684fd2eb9390 | /blackjack/blackjack.py | d7820d1aa6d6285eaaccd23eb28d61d413ecb206 | [] | no_license | nums11/OpenAIGym | 0c893c9a086ea4ea6590bca7aa79e24103fada60 | 5df988497426645dc229cccce1ca35fe7d880377 | refs/heads/main | 2023-04-16T07:54:27.282401 | 2021-04-12T21:55:43 | 2021-04-12T21:55:43 | 346,795,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | import gym
import numpy as np
from tqdm import tqdm
import random
from agents.simple_q_learning_agent import SimpleQLearningAgent
from agents.advanced_q_learning_agent import AdvancedQLearningjackAgent
from agents.simple_monte_carlo_agent import SimpleMonteCarloAgent
from agents.advanced_monte_carlo_agent import Advanc... | [
"numsmt2@gmail.com"
] | numsmt2@gmail.com |
5d30285999bbb36f4f2e1fd387a252661c7caafe | 988c1009561153d0d7682c833b03babe4c2ce12d | /Qust/q3.py | cc2a39cc738dd387d0b426b38fc32855670f53b0 | [] | no_license | shibushimeiyoumingzile/week1 | f61c9da316b35db07236853de42e5aaf8c50561a | 6bd63c287f1a8e26141324e00668b65b997d702d | refs/heads/master | 2020-04-24T09:44:15.210920 | 2019-02-21T12:56:11 | 2019-02-21T12:56:11 | 171,871,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | import random
list = []
for i in range(1,21):
a = random.randint(1,10)
list.append(a)
print(list)
li = sorted(list[::2],reverse=True)
print(li) | [
"304803570@qq.com"
] | 304803570@qq.com |
019224f7f5c9f1c5399ec71d8eeed014832fc4f8 | 4f56670a3c4c8c2d3c269c0ee8ff47a4db31a43a | /craps_classes.py | c05cc83852655cf0754bf95ee35e6c3e8729e77b | [] | no_license | mejongetje/Craps | a663e1751f36a90f02c68d9478c55e767c42b5f2 | 9869b290b3ae197e3181208d7c6c96a859c86d70 | refs/heads/main | 2023-07-02T04:08:57.482165 | 2021-08-08T12:29:47 | 2021-08-08T12:29:47 | 393,954,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import random
class Die:
def __init__(self, eyes=6):
self.eyes = eyes
def throw_die(self):
result = random.randint(1,self.eyes)
return result
class Player:
players = []
def __init__(self, name, position=0, balance=50):
self.name = name
self.balance = balance
self.position = position
__class... | [
"noreply@github.com"
] | noreply@github.com |
9e72b47e9121173ec1189fe4f3ee46d3f7ef2635 | 4062ffcc0fdd4308aa75e4883a02b190a802759b | /backend/core/urls.py | d2de78f5f85479db5ae4933609eaee1a373314c6 | [] | no_license | 5000eliteprw/RestaurantReview | 89be210a6268855c9add0e47276b84e71b5df384 | 547e648eaaa11ee79b0a46b82f6203543d48920f | refs/heads/master | 2023-06-16T15:18:01.277155 | 2021-07-10T08:06:14 | 2021-07-10T08:06:14 | 384,647,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | """core 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 vi... | [
"karl00814@outlook.com"
] | karl00814@outlook.com |
b4648d3ef6b9bf7f0f856176fd2bb007ac18a41b | 181b482a7089bb891c8d2af63fd6ff366be6f703 | /passtable/table.py | 092c099c72d20447ef6575a05756ba85baa80a26 | [] | no_license | mferland/experiments | 9f30bed1fcdba07cba58e52f3577c76f52df22d6 | e760519f0e702371504fc683b873ad85b75d5595 | refs/heads/master | 2020-07-02T11:58:06.272116 | 2016-04-02T00:10:44 | 2016-04-02T00:10:44 | 52,111,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,972 | py | #!/usr/bin/python
def split_list(alist, chunks=1):
length = len(alist)
return [ alist[i*length // chunks: (i+1)*length // chunks]
for i in range(chunks) ]
def distribute(string, chunks):
if chunks == len(string):
# i.e.: 'abc' in 3 chunks ==> 'a', 'b', 'c'
return list(string)... | [
"marc.ferland@gmail.com"
] | marc.ferland@gmail.com |
28a49b39c9e366056bcef362331ce78cc2460c41 | 3c6062703eb4681346d4134b23054a47b2f45010 | /build/hector_slam/hector_map_tools/catkin_generated/pkg.develspace.context.pc.py | f0e9bbbc77c0ccb4092318589250c8876dc5f49a | [] | no_license | cocharland/Quadrotor_Simulation | f71797220e4b00299a993a27f987a6b611d8fefe | 4d1423c4599fb20429bf12aaf79cdb4ddda8837a | refs/heads/master | 2022-04-06T05:50:25.852587 | 2020-03-09T01:11:16 | 2020-03-09T01:11:16 | 215,884,074 | 0 | 0 | null | 2020-02-10T00:29:52 | 2019-10-17T20:55:07 | Makefile | UTF-8 | Python | false | false | 546 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/cody/catkin_ws/src/hector_slam/hector_map_tools/include;/usr/include/eigen3".split(';') if "/home/cody/catkin_ws/src/hector_slam/hector_map_tools/include;/usr/include/eigen3" != "" else []
PROJEC... | [
"charland.cody@gmail.com"
] | charland.cody@gmail.com |
9054097f669f4130575ff2a2f5cb764eee1fbe3c | 8923028a025d1869dc30507c6de88b75a6bb4ce7 | /undefined/category/models.py | 762df603a0c20f3e4076aef95e25267f5adabdd4 | [] | no_license | GuGu-market/backend | 33567933281f471781b62c7136ce0bbf84bfa076 | 76a8de45269478da30f2c0ef13de0b5d6096bd56 | refs/heads/master | 2022-11-18T23:33:42.310557 | 2020-07-19T14:11:29 | 2020-07-19T14:11:29 | 280,068,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from django.db import models
# Create your models here.
class Category(models.Model):
category_name = models.CharField(max_length=15)
category_image = models.CharField(max_length=500)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now_add=True)
class Me... | [
"caruen@hanmail.net"
] | caruen@hanmail.net |
fbf9701cc9ca6f827074d5b942e1d29dc4398cb0 | 9ecdbaebb3fedddbd9a586952562e6ef9d24ac42 | /tests/convert/test_euler.py | 6265978db2c03cbfc2571d45be5ffd9f6ee14a88 | [
"MIT"
] | permissive | aestene/alitra | 8396725a07329afaf000da27d8dd4da56590b697 | 7e762e6d18948056ae2503557d5b02fc1fc84465 | refs/heads/main | 2023-04-01T09:53:37.384476 | 2021-04-07T13:46:41 | 2021-04-08T11:06:10 | 350,310,766 | 0 | 0 | MIT | 2021-03-22T11:03:50 | 2021-03-22T11:03:50 | null | UTF-8 | Python | false | false | 872 | py | import numpy as np
import pytest
from alitra import Euler, Quaternion
from alitra.convert.euler import euler_to_quaternion
@pytest.mark.parametrize(
"euler, expected",
[
(
Euler(psi=0, phi=0, theta=0, from_="robot", to_="asset"),
Quaternion(x=0, y=0, z=0, w=1, frame="robot"),
... | [
"steneae@gmail.com"
] | steneae@gmail.com |
eab14e230dad104423301f0de8646fde3c358188 | 41201d5cb019b2aa26dbb3a13f7dda492e0a7afc | /globalHandler.py | 3deb723d537d06e1803c4c5630a2ea26734e3c3b | [] | no_license | ASL-Dutch/tools-server | eb09afc6e8caedb3c529b270c1d0f6ee15a9a7fa | 09bf909b031b82e9e625b9a73644fd93f61774e2 | refs/heads/master | 2023-07-06T20:55:54.919997 | 2021-08-18T09:26:31 | 2021-08-18T09:26:31 | 396,247,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | # -*- coding:utf-8 -*-
import os
import threading
from concurrent.futures import ThreadPoolExecutor
from py_eureka_client import eureka_client
from tornado.web import RequestHandler, Application
from tornado.ioloop import IOLoop
from tornado.httpserver import HTTPServer
import tornado.options
import tornado.gen
from... | [
"li890424"
] | li890424 |
59bd29fb6eb52de6fe04df9967256812d218e790 | 4e60e8a46354bef6e851e77d8df4964d35f5e53f | /share/create_db/__init__.py | 89e75b0e45db463c422c246e51d237b4f3e7984d | [] | no_license | cq146637/DockerManagerPlatform | cbae4154ad66eac01772ddd902d7f70b62a2d856 | 9c509fb8dca6633ed3afdc92d4e6491b5d13e322 | refs/heads/master | 2021-04-09T13:58:14.117752 | 2018-03-19T13:41:04 | 2018-03-19T13:41:04 | 125,712,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | # -*- coding: utf-8 -*-
__author__ = 'CQ'
| [
"1016025625@qq.com"
] | 1016025625@qq.com |
7f7624aeebbcea875a7a0678ee7625b0a527be23 | 9addcb2eaf6b465845c509fd1f34245a1f4e482a | /jobplus/decorators.py | 253a90eb7d91b6a01dd7e29fa2d7e1aeaa29e3b5 | [] | no_license | xglvdai/jobplus18-1 | d2bfa0f71ab96b403ddd438caf282c1e108e2999 | 93baeb68582522f1753281f42df52de0f3801f35 | refs/heads/master | 2022-09-10T21:36:12.472957 | 2020-06-02T09:17:56 | 2020-06-02T09:17:56 | 265,989,403 | 0 | 0 | null | 2020-05-22T01:24:57 | 2020-05-22T01:24:57 | null | UTF-8 | Python | false | false | 564 | py | from flask import abort
from flask_login import current_user
from functools import wraps
from .models import User
def role_required(role):
def decorator(func):
@wraps(func)
def wrapper(*args, **kwrargs):
if not current_user.is_authenticated or current_user.role < role:
a... | [
"564188950@qq.com"
] | 564188950@qq.com |
6d3a4a146ddc89f0e0c9dd1362b0945b5dffba41 | 1d2b1e1d2573f15ec964235fed2b76b3436735f1 | /agents/simple_agent.py | bf55f079a456dee0c413eb243fb2731d5c19713f | [] | no_license | hellovertex/hanabi | 8e7eeefd27b8237f0b393eb9690920b64755dcaa | e8aefac46a5814296a5499b99d1c07bf5a6e9964 | refs/heads/master | 2023-01-07T04:40:38.671048 | 2020-09-24T11:37:22 | 2020-09-24T11:37:22 | 184,106,764 | 2 | 1 | null | 2022-11-21T21:54:50 | 2019-04-29T16:33:17 | Python | UTF-8 | Python | false | false | 2,783 | py | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"sascha.lange@campus.tu-berlin.de"
] | sascha.lange@campus.tu-berlin.de |
1e96507dae057ddf6c7da82b6d321afb5554140d | e2b1008be564227f4c87e23c66d7981dfcd61024 | /src/modules/pipe09_Hierarchical_Cluster.py | d1f1476f15546bdcf468da294127442864734c7f | [] | no_license | codeaudit/mia | 39092664f66d10d017ce41f17a67d115109297af | 2b82f9708f828faa2d5bf3a218b06a1db66599cc | refs/heads/master | 2021-01-22T23:10:35.574187 | 2015-12-11T18:22:32 | 2015-12-11T18:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,115 | py | #-*- coding: utf-8 -*-
'''
Created 08/08/2012
Updated 01/09/2014
Updated 11/10/2015 - get_params()
@author: Damian Kao
@url: http://blog.nextgenetics.net/?e=44
'''
import FileDialog
from scipy.cluster.hierarchy import linkage
from scipy.cluster.hierarchy import dendrogram
import classes.BarGraphic as graphPac
import... | [
"flalix@gmail.com"
] | flalix@gmail.com |
0cbd6afbf693325fa1f70ccc30cf449820a3b5b3 | 9e37ba1d4869b7a10abc168daa040604812af745 | /covid/urls.py | 745ea037d500e45aa27b0ccce264e24133792533 | [] | no_license | ryandingle/cavid19-tracker | 3141a860061b4fb288c1cba83e5909ce24b1a819 | 50e5fdce8ca7caff2a59cda8197e45c00b3aed9e | refs/heads/master | 2022-12-10T15:50:20.057972 | 2020-09-09T09:18:45 | 2020-09-09T09:18:45 | 294,062,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django.urls import path
from . import views
app_name = 'covid'
urlpatterns = [
path('', views.V1.as_view()),
path('download', views.V2.as_view(), name='download'),
] | [
"ryandingle09@gmail.com"
] | ryandingle09@gmail.com |
13d3ada859155e463b0435b8a5cce6dec4bf7413 | b922213b085f6946839bb67d42a76dfbdc1f73e8 | /module/XBPM_Query.py | 2fa03da235545f3fa5a550cac8764a5c078d77d7 | [] | no_license | Yu-Zheng/NSRRC-LINE-Chatbot-Template | d34a9a66277b3a8707a1c4ec427bdf730082ebce | 51c2408193e75d9eebf04db0b2484b70dec7da1f | refs/heads/master | 2020-04-17T21:34:25.980381 | 2019-01-22T08:32:08 | 2019-01-22T08:32:08 | 166,956,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | from epics import caget
def XBPM_Status(FE_number):
try:
if FE_number =="05":
XBPM_1X=caget('FE-DI-XBPM-051:signals:sa.X')/1000
XBPM_1Y=caget('FE-DI-XBPM-051:signals:sa.Y')/1000
XBPM_2X=caget('FE-DI-XBPM-052:signals:sa.X')/1000
XBPM_2Y=caget('FE-DI-XBPM-052:s... | [
"lin.yz@nsrrc.org.tw"
] | lin.yz@nsrrc.org.tw |
f50a2c13091de7e6652bd032364405a6cb81e40a | f08336ac8b6f8040f6b2d85d0619d1a9923c9bdf | /148-sortList.py | deaa09cb9bde869ffaac11cb72d4a48498d2f6ed | [] | no_license | MarshalLeeeeee/myLeetCodes | fafadcc35eef44f431a008c1be42b1188e7dd852 | 80e78b153ad2bdfb52070ba75b166a4237847d75 | refs/heads/master | 2020-04-08T16:07:47.943755 | 2019-02-21T01:43:16 | 2019-02-21T01:43:16 | 159,505,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | '''
148. Sort List
Sort a linked list in O(n log n) time using constant space complexity.
Example 1:
Input: 4->2->1->3
Output: 1->2->3->4
Example 2:
Input: -1->5->3->4->0
Output: -1->0->3->4->5
'''
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next... | [
"marshallee413lmc@sina.com"
] | marshallee413lmc@sina.com |
28224815fb499ec53db781bcb0dee2f91be8ff9a | 4bc00484a4d8e1790f2efe9a90248468fe9ffa48 | /3.py | 93071bbcf365879562957bc16c1e7b39078c1623 | [] | no_license | lsy512/python_exercise | 797a9e3eeb96402a600132d88a6f0f387946e9dd | 3fd5c233585ee3109972e0ce879b22dc58d05ca6 | refs/heads/master | 2021-08-28T15:35:49.865771 | 2017-12-12T16:50:01 | 2017-12-12T16:50:01 | 110,863,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | print 'Hello Python world!\n'
print '*' * 10
for i in range(5):
print '* *'
print '*' * 10
print '*\n' * 6
| [
"ls12@lsy512.HOST"
] | ls12@lsy512.HOST |
94039fd9178ad4160ba0efb6f0dda17c0fde9816 | 8926a97e04be31c62a28ee9031520ca785f2947b | /flask/member_test/app3.py | 1879796d52c5957ea5c6d9b35167283e4c2e6a95 | [] | no_license | ragu6963/kfq_pyhton | 3d651357242892713f36ac12e31f7b586d6e7422 | bdad24e7620e8102902e2f0a71c8486fb0ad86c9 | refs/heads/master | 2022-11-26T16:02:49.838263 | 2020-07-31T00:40:59 | 2020-07-31T00:40:59 | 276,516,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py | from flask import Flask, request, render_template, redirect, url_for, jsonify, json
import pymysql, os, cx_Oracle
from flask_sqlalchemy import SQLAlchemy
from json import JSONEncoder
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "oracle://hr:hr@127.0.0.1:1521/xe"
# app.config['SQLALCHEMY_DATABASE_URI'... | [
"bhj1684@naver.com"
] | bhj1684@naver.com |
24aeb181fe8842ceab8dcbdae1e7eae470e32e96 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2091.py | 2be5159255a480621d5ba476c77387286fc6d261 | [] | 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 | 935 | py |
def get_values(f,line):
choices = [];
for i in range(0,4):
if i+1 == line:
choices.extend(f.readline().split())
else:
f.readline()
return choices
if __name__ == "__main__":
with open('problem.txt','r') as f:
trials = int(f.readline())
for i in ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b643e592a963c16bf141ce455f1e68dbe8dff664 | ac8a817a86bd23cd8f941ec9a6a485828a3d97b3 | /train.py | 3c82abe73a7ae494615ebf0527e17f5b42c9c7c8 | [] | permissive | diamondgloves/im2latex | 0df317384c29df50834132cb6fbb1f75431cdc2d | 8ef3378cb289846a5d85ce60785e11c6c5291700 | refs/heads/master | 2021-12-14T01:44:06.339995 | 2021-12-05T10:21:55 | 2021-12-05T10:21:55 | 231,594,988 | 1 | 0 | Apache-2.0 | 2020-01-03T13:30:46 | 2020-01-03T13:30:45 | null | UTF-8 | Python | false | false | 2,451 | py | import click
from model.utils.data_generator import DataGenerator
from model.img2seq import Img2SeqModel
from model.utils.lr_schedule import LRSchedule
from model.utils.general import Config
from model.utils.text import Vocab
from model.utils.image import greyscale
@click.command()
@click.option('--data', default="... | [
"343600153@qq.com"
] | 343600153@qq.com |
dce59121fba5ccf5e8c8796047c5b2c77fd6f8d2 | a11d61a72206fc50a976092bb466609d6bab35ed | /example5.py | 06b4ccb84b5c345b5c3bfca18b7cd95a84475c8b | [
"MIT"
] | permissive | Man1ish/derivativeinpython | 0c32636073428a3f0637d9a308433cae2d74988a | fc20b0110f9bb8b825cb3a38e991a8713972b8c6 | refs/heads/master | 2021-04-10T11:08:33.976557 | 2020-03-21T09:03:33 | 2020-03-21T09:03:33 | 248,931,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # Example 5: Using the definition, find the derivative of the simplest quadratic function
import sympy as sp
x = sp.symbols('x')
f = x ** 2
der = sp.diff(f,x)
print(der)
# output :2x | [
"manpandey321@gmail.com"
] | manpandey321@gmail.com |
68ef26fd2826b2c8882df530e003ddcc3a9a97f9 | b8337bfa265096bce556091b1ea9bca193d28220 | /subcmds/push.py | 5f7625da5b88d1c735faa91a388ec102f16db50f | [
"Apache-2.0"
] | permissive | GatorQue/git-repo-flow | 2d058031fe2aedec0bf60ca6365ed7cc4f5a6932 | 12e960cd04ca482b57d9af9b04c577bd2af2f654 | refs/heads/stable | 2022-11-08T08:54:43.694308 | 2022-10-30T22:39:17 | 2022-10-30T22:39:17 | 50,465,445 | 6 | 3 | Apache-2.0 | 2022-10-30T22:39:18 | 2016-01-26T22:57:50 | Python | UTF-8 | Python | false | false | 3,111 | py | #
# Copyright (C) 2016 Pieter Smith
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"pieter.smith@philips.com"
] | pieter.smith@philips.com |
15d9a96411a5590bb63bb613b31cffc9f05c7078 | 07c6950a3d68657a8816ba0506fd01305f34aa28 | /Week_4/week_four_class_notes.py | 31b70e419f9964df91b7e9645fb710e253d999f0 | [] | no_license | stone-braker/scriptingWorksets | 4c71ee86a4fdc96de0de968c5f040bb4f51ca510 | f1538014567b063bf4624ada910f78b98cc171c0 | refs/heads/master | 2020-09-11T09:03:41.124340 | 2019-11-27T08:25:19 | 2019-11-27T08:25:19 | 222,014,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | def sumOfDigits(cardNumber):
rev_list = reverse_order(cardNumber)
new_str = ""
for x in rev_list:
indeX = rev_list.index(x)
print(indeX)
if indeX % 1 == 0:
int_x = int(x)
new_string +=
# then add it to string not list
# new_li... | [
"noreply@github.com"
] | noreply@github.com |
5eccc52f48c73a6631455d9c91a854f095aa432a | 4dd8416c2a6cf08dd3fa3d197d895f2852106097 | /语法基础/04.元组、函数-上/10-带有返回值的函数.py | a682be7ad48a46c456cf674dbd5b700daeff7694 | [] | no_license | lanboys/HelloPython | 19a74ad416ddadf7ed487023527e08ad9fcecb87 | d411ee29781a9cf00470d05d1be61da8f2081080 | refs/heads/master | 2020-04-07T19:40:17.381564 | 2018-11-23T10:43:00 | 2018-11-23T10:43:00 | 158,657,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | def get_wendu(a):
wendu = 22
print("当前的室温是:%d" % wendu)
return wendu
def get_wendu_huashi(wendu):
print("------4------")
wendu = wendu + 3
print("------5------")
print("当前的温度(华氏)是:%d" % wendu)
print("------6------")
print("------1------")
result = get_wendu(1000000)
print("------2---... | [
"lan_bing2013@163.com"
] | lan_bing2013@163.com |
155b6c2895b77c52ac63f156b1d146aefdae42d1 | 73fc3c4d600f8ae939b3079a4704a7892cffa476 | /arrays/searching in rotated and sorted array.py | 87e20ef6ed23e1247c75085ef08f0cf1d16991c9 | [] | no_license | Nirmaljeet/Learn_DS_Algorithms_in_Python_from_scratch | 2b53a38de03a5e00ee839b7af1cef167c3d530a5 | 9e5c46be2fb9ae6e2c298421e223a358c6d6a71d | refs/heads/master | 2022-12-09T06:56:37.659535 | 2020-09-03T11:53:36 | 2020-09-03T11:53:36 | 257,008,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | def search(arr, l, h, key):
mid = (l+h) // 2
if arr[mid] == key:
return mid
if arr[l] <= arr[mid]:
if key >= arr[l] and key <= arr[mid]:
return search(arr, l, mid-1, key)
return search(arr, mid+1, h, key)
if key <= arr[mid] and key >= arr[h]:
retur... | [
"500060993@stu.upes.ac.in"
] | 500060993@stu.upes.ac.in |
c036b7721af2bf6f79ba842ed6fe820549220497 | 663e7fb7125a0b4caabbf13ad3050f14076fee8d | /project3/command_reminder/command_reminder/urls.py | b831c4648fa4fbea4ddd6c9fda8c16cca503b4ce | [] | no_license | djp21/web_desktop | 0aa3c1384b6cb4bd3ab00fc55e5c3a903ca02a47 | 77074cd2e88db266834344d80f2d4c4c433f004f | refs/heads/master | 2022-11-19T17:44:03.016339 | 2020-07-08T13:14:32 | 2020-07-08T13:14:32 | 278,067,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """command_reminder URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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')
Cl... | [
"daphnejoan21@gmail.com"
] | daphnejoan21@gmail.com |
c266b3398768426498c471fe608f96eaed0fc57a | 1162c4afffa9cabf1066070b05c144cf093410f7 | /backend/config.py | 4245114b6aeda7fff927b000ca2f59b12f49cac1 | [] | no_license | jakearmendariz/cruzhacks2020 | db18246a6c41ee2d7eca88dc662551942f704eee | 576dd5ca6cfe91ea42470807f53a974bc5a407b7 | refs/heads/master | 2020-12-11T21:09:00.775054 | 2020-03-24T18:55:21 | 2020-03-24T18:55:21 | 233,959,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # file for storing our config settings
MONGO_URI = "mongodb+srv://readAndWrite:uJkfM1V7bi3xT13k@cluster0-ksxj2.gcp.mongodb.net/CharityDB?retryWrites=true&w=majority"
MONGO_DBNAME = 'CharityDB'
| [
"sadschmi@ucsc.edu"
] | sadschmi@ucsc.edu |
5490b375dcf12fe850a9a31b095d68b1388bd03e | 036876f40c4da57fd600250561160ca5e6be2263 | /7_추상_데이터_타입/4_queue_from_two_stacks.py | f86890b7165c41e41d75dbcef8a45906b9cb937e | [] | no_license | yonghee555/Python-Study | feccbab38105846bee7e143408234ed2ee719413 | 6e2ad33f6a4db3328bd5f717813e8cdbb2d3aa6c | refs/heads/main | 2023-07-22T03:17:50.091140 | 2021-08-13T14:48:24 | 2021-08-13T14:48:24 | 314,240,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | class Queue(object):
def __init__(self):
self.in_stack = []
self.out_stack = []
def _transfer(self):
while(self.in_stack):
self.out_stack.append(self.in_stack.pop())
def enqueue(self, item):
return self.in_stack.append(item)
def dequeue(self):
if no... | [
"yhlee2514@daum.net"
] | yhlee2514@daum.net |
a3fd18ab13fe4890d0bf3a2a23362acda1da3b1f | 7e03d0a4bfa010360f86c02d39b82fd63a14aac8 | /Marshal/main.py | 596bbbb976e41cfa4b61e2a3b8a9ffc1bf050b1a | [] | no_license | brumazzi/Python2.x-Exemples | 765e30d225998c5a163b09d2f8eea8b4fa098b14 | 73581c862fbfcc448b9756e18019e234dbc9b95c | refs/heads/master | 2021-06-12T17:43:16.184080 | 2021-02-10T18:05:53 | 2021-02-10T18:05:53 | 60,136,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import marshal as ms
lista = [1,8,3,'texto']
msg = ms.dumps(lista)
print msg
msg = ms.loads(msg)
print msg
| [
"brumazzi_daniel@yahoo.com.br"
] | brumazzi_daniel@yahoo.com.br |
c9ec4c1a18887780a64d795b647178b06293b2c4 | 5c941453d3ebef544a21e85222ff362275a17eb8 | /twitter_bot.py | b560f3f4c5cfc482631f9bf42ca334167038dfc7 | [] | no_license | SooGood888/Twitter_bot | 2e872ce2e5643f80c22df991847b02edbf8a9b9e | 721d13562c8d0d9ea22c9818d1319c970e74f286 | refs/heads/main | 2023-05-21T04:57:29.458745 | 2021-06-09T13:25:13 | 2021-06-09T13:25:13 | 371,226,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | # pip install selenium, pyautogui, opencv, pillow
# seleniumを動かすには、webdriverが必要。https://github.com/mozilla/geckodriver/releases
#からダウンロードして、exeファイルを任意のフォルダに保存。右フォルダにPATHを通す。
#あと、Firefoxをインストールしておく必要あり。
import os
import time
import pyautogui
from selenium.webdriver import Firefox
#ブラウザの起動
driver = Firefox()... | [
"noreply@github.com"
] | noreply@github.com |
3841955c6fdc812fb485883ea962413bbf824c21 | 2a679c523fe3b32860e5c06e6a5b80dbf9991c04 | /ECDH.py | 737223ddad3f223914231bcfcc92c42deaf33bdc | [] | no_license | jmacenka/python-unordered_scripts | 09c3a8bc6dfa97cc801fccc57a9df2a58916f58f | 46dc0de93113f839ae9ccf29d2459cf233253091 | refs/heads/master | 2020-03-22T19:31:38.999040 | 2018-07-12T13:56:25 | 2018-07-12T13:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | import hashlib
Pcurve = 2**256 - 2**32 - 2**9 - 2**8 - 2**7 - 2**6 - 2**4 - 1
N = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCEAF48A03BBFD25E8CD0364141
Acurve = 0; Bcurve = 7
Gx = 55066263022277343669578718895168534326250603453777594175500187360389116729240
Gy = 326705100207588169780830851305070431844712733806592432... | [
"noreply@github.com"
] | noreply@github.com |
2390f76f7b3aef733c743e79e179ecdeeb752821 | db04519f8c941cda2bd826c2d87b8635eade0117 | /chap5/global.py | 8881a226a1727df18b87128e9ce1ef1a03282960 | [] | no_license | tom--bo/perfect_python | 414099fd7a0bdcab5d2a0a065a33c6e40ba382a0 | f90e8414869d12a3a4ed4facd43b7f97566e72d3 | refs/heads/master | 2021-01-10T02:44:39.281717 | 2015-06-20T00:13:32 | 2015-06-20T00:13:32 | 36,939,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py |
var1 = 'グローバル'
def spam():
#var1 = 'ローカルで代入'
global var1
var1 = 'ローカルからglobalを変更'
var2 = 'ローカル'
return (var1, var2)
if __name__ == '__main__':
ret = spam()
# print(var1)
print(ret)
| [
"otsuka.t.2013@gmail.com"
] | otsuka.t.2013@gmail.com |
cbf8a72e10d75d3f99ce287afab796c2b39ef168 | feaabe4e8dbbc68839c9bae0ff8a33786c67628d | /src/utils/configs/fusion_id9_2gpu_semi_3x.py | 4643b4f0f033c20121af090e94c8b8dc2ad5d519 | [] | no_license | Chrisfsj2051/Multi-Modal-Tagging | 4f759fffe81708317129f518e99360e61d11f81d | 2415bb7ae3bd773924e18be6d76f835292b39f21 | refs/heads/main | 2023-06-12T03:01:38.357269 | 2021-07-08T01:36:42 | 2021-07-08T01:36:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | _base_ = 'fusion_id9_2gpu_semi_2x.py'
train_total_iters = 30000
lr_config = dict(policy='step',
warmup='linear',
warmup_iters=500,
warmup_ratio=0.001,
step=[train_total_iters // 3, 2 * train_total_iters // 3])
runner = dict(type='IterBasedRunner', max... | [
"34179691+Chrisfsj2051@users.noreply.github.com"
] | 34179691+Chrisfsj2051@users.noreply.github.com |
89bb0587757a6aed99336fb24ec99c4a1cbfe575 | 8d2a785ffc06ec46a546cdf50af41054a382f05a | /classes/day02/class/3.pass语句.py | f2defecd7c5467b8ae56a75acfff0e26254f3c38 | [] | no_license | Pigcanflysohigh/Py27 | 4be0d9ad93f5d695c48fd89157952230ec4d111a | 2f6568fce2a6f09c73cdc08342a8b05645c87736 | refs/heads/master | 2020-06-18T08:09:08.217036 | 2019-11-20T16:14:05 | 2019-11-20T16:14:05 | 196,225,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | if 1==2:
... # 什么也不做,只是占个地方,表示我是明白python的语法规则的
n = 0
while n<6:
pass
| [
"729167925@qq.com"
] | 729167925@qq.com |
d5a8d2365d35856d0646f1ff1609b05d58d5be42 | 836111ab99c44675a8d1f585100053e1e79e1d93 | /tests/system/test_base.py | 416c0964f9143b403edc157f319e0b14255f1510 | [
"Apache-2.0"
] | permissive | michael1589/recordbeat | 8ef6629e559920eb245bf982d1591f899f3131fb | ba9e35696bcbaf77246052c324c2701e89a2d6d8 | refs/heads/master | 2020-07-11T02:48:21.320743 | 2019-08-26T09:17:24 | 2019-08-26T09:17:24 | 204,430,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from recordbeat import BaseTest
import os
class Test(BaseTest):
def test_base(self):
"""
Basic test with exiting Recordbeat normally
"""
self.render_config_template(
path=os.path.abspath(self.working_dir) + "/log/*"
)
recordbeat_proc = self.start_beat... | [
"liuzuchong@icsoc.net"
] | liuzuchong@icsoc.net |
fddd88e6d5df361afe252585abfa25f97496a3f7 | efd818a7651c20fc7999a6a41728ace8f81a4896 | /register/migrations/0001_initial.py | 09a38c1b9eaef632386ef250c24f72c104419f90 | [
"MIT"
] | permissive | yashiki-takajin/sfa-next | dd65c13d68122595f242140239bf977970aad744 | 049058a37b9ee45b58be5f4393a0b3191362043c | refs/heads/main | 2023-04-16T15:43:08.790520 | 2021-04-21T09:57:35 | 2021-04-21T09:57:35 | 358,530,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | # Generated by Django 2.0.2 on 2018-11-05 15:46
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import register.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_max_length'),
... | [
"ms.yashiki@creerbateau.com"
] | ms.yashiki@creerbateau.com |
223346ee2a61a34b5ec530473b238cfae1d67fe7 | a38117c71f1256175c81d7eb14b1dec073c61331 | /pythonwork/dict.py | 9a0c22702818bf831534d87e3a338f077e75e2eb | [] | no_license | mps-jenkins/API | 6fc51c3d3cc2d1bf5338b4341d85fdbdfda5c19e | 00d612304a0e4ed244dfb00d40e1358dd5848c5f | refs/heads/master | 2020-05-20T23:28:34.337178 | 2019-07-08T05:20:32 | 2019-07-08T05:20:32 | 185,800,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | import re
dict = {}
list1 = []
def counting(text):
count = 0
for letter in text:
#print(letter)
if letter in dict:
dict[letter] += 1
else:
dict[letter] = 1
list1 = list(dict.keys())
list1.sort()
#print(list1)
for letter in list1:
if n... | [
"mps-jenkins@test.com"
] | mps-jenkins@test.com |
7912a0f0e4eb725cfd2d8a2e26b19ba48eb36d0b | 661741c14f20713607c6ce22fa13756dc88e2f12 | /evaluate.py | 4f64d9383e647562b8679a9461ce452944c57d08 | [] | no_license | ChantalMP/A-Comprehensive-Benchmark-for-Defenses-Against-Black-Box-Adversarial-Attacks | 61dd2ee8479e3df8a30ac2c04df49f1597218162 | 91aa7991a2c6bc5e8e027b4edb3682914a72c19c | refs/heads/master | 2022-11-28T14:27:50.302644 | 2020-02-26T09:39:29 | 2020-02-26T09:39:29 | 214,792,084 | 1 | 0 | null | 2022-11-21T21:15:44 | 2019-10-13T09:20:01 | Python | UTF-8 | Python | false | false | 5,104 | py | from classifiers.mymodel import MyModel
from attack.foolbox_boundary_attack import run_attack
from utils.attack_testdata_loader import get_attack_testset
from utils.modelWrapper import ModelWrapper
from foolbox.attacks import BoundaryAttack, BoundaryAttackPlusPlus
from utils.image_utils import plot_result
from utils.co... | [
"chantal.pellegrini@tum.de"
] | chantal.pellegrini@tum.de |
44ecf2daa56228971637548596c441a0552a2c35 | 88fadf1a81c10240e3355bce67b470e6888b3080 | /EXT_SERVER/test_main.py | a884d8d54a0d4e0d351d49e641807d2f477db38f | [] | no_license | khy4701/PythonTest | ba23dfd2b77fe00800845c7f7d324ed5fe07d093 | ae30041b1c91022ccd0aee81b32f5d978afb53c5 | refs/heads/master | 2021-05-08T17:28:09.542194 | 2018-01-30T03:09:56 | 2018-01-30T03:09:56 | 119,473,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from flask import Flask
from flask_restful import Api
from ServiceClass import Departments_Meta
#Create a engine for connecting to SQLite3.
app = Flask(__name__)
api = Api(app)
#api.add_resource(Departments_Meta, '/departments/<string:department_name>/<int:abc>')
api.add_resource(Departments_Meta, '/depa... | [
"e2e@localhost.localdomain"
] | e2e@localhost.localdomain |
627023dff02f8904a68d2e185eab89f227b2b83d | 0f03a32c18350dae7980587a141dd3ee6daa0005 | /csvtojson/src/main/resources/csvToJson.py | 443c2f7099094be61c3e917de5021bfb11924ebd | [] | no_license | ReddyRohan/MuleSteve | 0dbe196f9c007db08de711c1e511f47439b33ab2 | 6dea1792141151a010229bffc8cae13d711def96 | refs/heads/master | 2016-08-12T14:03:33.378968 | 2016-02-04T16:52:55 | 2016-02-04T16:52:55 | 51,090,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import json
import csv
a= """column1;column2;column3;column4;column5
abc;def;dghi;jkl;mno
pqr;stu;vwx;;"""
#get rows of the csv file
rows=a.splitlines()
#get the headers from the csv file
fieldnames=rows[0].split(';')
#Delete the rows containing headers
rows.pop(0)
#read CSV and convert csv to Json
reader = csv.Di... | [
"rohan.reddyin@gmail.com"
] | rohan.reddyin@gmail.com |
b40d364523a6a0d9a5830630e0d64197363cab87 | 95884a6b32f6831e68c95d7785bc968a56877121 | /cifar_imagenet/models/cifar/momentumnet_restart_lookahead_vel_learned_scalar_clip_mom.py | ba44f69eff7577785b303b3c9d7d192514916fc3 | [
"MIT",
"Apache-2.0"
] | permissive | minhtannguyen/RAdam | d89c4c6ce1ce0dd95b0be3aa2c20e70ea62da8b0 | 44f403288df375bae0785cc82dd8c888eaaaa441 | refs/heads/master | 2020-08-09T07:53:50.601789 | 2020-02-17T06:17:05 | 2020-02-17T06:17:05 | 214,041,479 | 0 | 0 | Apache-2.0 | 2019-10-09T23:11:14 | 2019-10-09T23:11:14 | null | UTF-8 | Python | false | false | 7,243 | py | # -*- coding: utf-8 -*-
"""
momentum net
"""
import torch
import torch.nn as nn
import math
from torch.nn.parameter import Parameter
__all__ = ['momentumnet_restart_lookahead_vel_learned_scalar_clip_mom']
def conv3x3(in_planes, out_planes, stride=1):
"3x3 convolution with padding"
return nn.Conv2d(in_planes,... | [
"mn15@rice.edu"
] | mn15@rice.edu |
815d0ff01fcabf11a984f1f67ea03376a58ef481 | 2308bb5c1f93dfb3d546ae27742bceba69060c40 | /web_flask/8-cities_by_states.py | 162ff67b6463698a54fa2aa481c8c3e0899665b1 | [
"LicenseRef-scancode-public-domain"
] | permissive | FreeJules/Web_Framework_AirBnB | 2e73f3d4fe29a8d9fad4bbce8122d1a9590b8e6e | 71832869d150083b2b4f250a0237f076c16b4d4f | refs/heads/master | 2021-06-26T19:52:46.188007 | 2017-09-15T12:31:06 | 2017-09-15T12:31:06 | 103,736,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #!/usr/bin/python3
from models import storage
from flask import Flask
from flask import render_template
app = Flask(__name__)
app.url_map.strict_slashes = False
@app.teardown_appcontext
def teardown_db(exception):
"""calls close method of storage"""
storage.close()
@app.route('/cities_by_states')
def cities... | [
"lee.julija@gmail.com"
] | lee.julija@gmail.com |
e2c680856a32945f8d634761009a24feeff11bd2 | 88c4811d895959b56242ed39b09ec0ae6b345984 | /flaskblog2/posts/forms.py | ea03da410f9df8f86cfa92469f5d7d179697f9fb | [] | no_license | Barnez299/flaskblog2 | a078e01817c233ba0626aee28022f4c0b4a8ba52 | a9c0c87f1c9923acf0a7d808821ef2edc4a3023f | refs/heads/main | 2023-02-17T10:39:05.924860 | 2021-01-19T11:55:00 | 2021-01-19T11:55:00 | 326,720,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField
from wtforms.validators import DataRequired
class PostForm(FlaskForm):
title = StringField(label='Title', validators=[DataRequired()])
content = TextAreaField(label='Content', validators=[DataRequired()])
submit ... | [
"barnez29@gmail.com"
] | barnez29@gmail.com |
babc9118bdcf7d2c25b4dc9e551d807e63b0a18f | 6b6c00e637e4659e4c960ff5dc48c8b25f09c543 | /myihome/web_html.py | 86d5f26bfaab5886725ef16013e4324d6595659e | [] | no_license | too-hoo/myiHome | 881d24f7835a1d6f95fea8cc97d68194d078d451 | 54c57755f5c9a700330cb38a47fe88e4f9f7ab3a | refs/heads/master | 2020-07-13T11:26:53.915246 | 2019-09-04T11:43:01 | 2019-09-04T11:43:01 | 205,073,018 | 9 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# 静态文件加载的显示文件
from flask import Blueprint, current_app, make_response
from flask_wtf import csrf # 引入CSRF防御
# 提供静态文件的蓝图
html = Blueprint("web_html", __name__)
# 127.0.0.1:5000/()
# 127.0.0.1:5000/(index.html)
# 127.0.0.1:5000/(register.html)
# 127.0.0.1:5000/(favico.ico... | [
"13414851554@163.com"
] | 13414851554@163.com |
43ac56c73e4f34fab8eb30c53bb912cf0413c224 | 9bba29dd48e1edcd42becdf34fda265fde7570b3 | /HR/Mat_fundamentals/max_withdraws.py | b1d998bdc0e6ab465364a03e61d4950206ddfa63 | [] | no_license | maltesh/practice | 7945d8f6cb74e92b51432617aabb56204c10f991 | 922bc4d4075a5aaa8b2c6f40545578f36f46c398 | refs/heads/master | 2023-07-30T01:08:08.473457 | 2023-07-09T12:26:45 | 2023-07-09T12:26:45 | 58,482,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | #https://www.hackerrank.com/challenges/maximum-draws?h_r=next-challenge&h_v=zen
import sys
import sys
for line in sys.stdin.readlines()[1:]:
print int(line)+1 | [
"malatesh.mylarappachar@philips.com"
] | malatesh.mylarappachar@philips.com |
066f467af220cf2210d237b5be14036c9a366795 | c4ee4a9d28425aa334038ad174c7b1d757ff45db | /py/survey_backdeck/SurveyBackdeckDB.py | 425ea9aadef024c30c34e6d6199380a96c70f5d1 | [
"MIT"
] | permissive | nwfsc-fram/pyFieldSoftware | 32b3b9deb06dba4a168083a77336613704c7c262 | 477ba162b66ede2263693cda8c5a51d27eaa3b89 | refs/heads/master | 2023-08-03T07:38:24.117376 | 2021-10-20T22:49:51 | 2021-10-20T22:49:51 | 221,750,910 | 1 | 1 | MIT | 2023-07-20T13:13:25 | 2019-11-14T17:23:47 | Python | UTF-8 | Python | false | false | 1,155 | py | __author__ = 'Todd.Hay'
# -------------------------------------------------------------------------------
# Name: TrawlBackdeckDB.py
# Purpose: Provides connection to the trawl_backdeck.db SQLite database
# Author: Todd.Hay
# Email: Todd.Hay@noaa.gov
#
# Created: Jan 08, 2016
# License: M... | [
"will.smith@noaa.gov"
] | will.smith@noaa.gov |
56cb0a401e086cffa893b8b4dcd75edf07ca9e4c | dacf092e82b5cc841554178e5117c38fd0b28827 | /day24_program4/server_start.py | 80694736d2929c195b9ccc3caf71539ee8767758 | [] | no_license | RainMoun/python_programming_camp | f9bbee707e7468a7b5d6633c2364f5dd75abc8a4 | f8e06cdd2e6174bd6986d1097cb580a6a3b7201f | refs/heads/master | 2020-04-15T11:27:09.680587 | 2019-04-06T02:21:14 | 2019-04-06T02:21:14 | 164,630,838 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | import socket
import os
from conf import setting
from interface import common_interface
from db import models, db_handler
import logging.config
def upload_file(): # 接收文件
file_path = os.path.join(BASE_DIR, 'db', 'file_upload')
if not os.path.exists(file_path):
os.makedirs(file_path)
path = os.path... | [
"775653143@qq.com"
] | 775653143@qq.com |
c006c011444f682f8e1c58a8416788ccf0c19eee | 63ebdcdd975d76bdcb55f20c4db458fb1bec3092 | /bitbox/lib/blitter/scripts/sprite_encode2.py | 4f31467ef8efcefed0f6a8935a6f946312f1da79 | [] | no_license | gameblabla/bitbox-alterego-gcw0 | 3729e4542e16b4abc7c7fa4b46fb093ad7949922 | 6b5489aa290b01aeef3736a1152a602007476029 | refs/heads/master | 2021-01-19T00:50:56.619666 | 2017-04-04T16:51:28 | 2017-04-04T16:51:28 | 87,211,572 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,321 | py | #! /usr/bin/python2
from itertools import groupby
import sys, struct, os
from PIL import Image # using the PIL library, maybe you'll need to install it. python should come with t.
# 16 bits format : nb skip1:7, RLE:1, eol:1, nb blit1:7
# encode simply as palette merge + trous
# TODO : multiframe, several frame spr... | [
"gameblabla@openmailbox.org"
] | gameblabla@openmailbox.org |
baac1a629e7de1c2defc44e786ef103e0acb461c | 7e8d50833762f3eb6a0bc7f7e3d3a24c7e6fda19 | /src/pyscript/Q_learning/gym-kenage/gym_kenage/__init__.py | 138558b0e4df4dd62909c16d975327864e30d0ac | [] | no_license | Aries1A/kenagerobo | 58d2e75dd6572745046efd10b214e18f0d20f42f | 617c042dc3d2696e1f24ff8d3db296918dcbb4c7 | refs/heads/master | 2020-08-22T04:59:24.600584 | 2019-12-06T18:22:23 | 2019-12-06T18:22:23 | 216,322,371 | 0 | 0 | null | 2019-12-06T18:22:24 | 2019-10-20T07:13:41 | Jupyter Notebook | UTF-8 | Python | false | false | 113 | py | from gym.envs.registration import register
register(
id='kenage-v0',
entry_point='gym_kenage.envs:KenageEnv',
)
| [
"kaiso.mar26.littleswitch@gmail.com"
] | kaiso.mar26.littleswitch@gmail.com |
7eab37da59212eb54be6555921c7e1de10ec5e35 | ea0d5cc7ed49ea61545a2325ce5025db6fac91db | /posts/views.py | 0080afe93f4a42b9c68008a28557a3613471fe49 | [] | no_license | zer0ttl/django-message-board-app | 57e0fe4b70b9f2a6230d2e64a6d361148d1c824b | 5994f3729f90cab20419f7a51cafb70a9b5b1bd5 | refs/heads/master | 2020-05-03T20:50:28.982307 | 2019-04-01T07:58:20 | 2019-04-01T07:58:20 | 178,812,030 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.views.generic import ListView
from django.shortcuts import render
from .models import Post
# Create your views here.
class HomePageView(ListView):
model = Post
template_name = 'home.html'
context_object_name = 'all_posts_list'
| [
"sudheer.shirsath+zerottl.com"
] | sudheer.shirsath+zerottl.com |
9a4c7bd0dc795de08ef23d2bd66f09a6eb5f8051 | 4ace0870ca82afae03985beaad0e7a24377b414c | /snare/core/operation.py | 688955d4a7a2fa57945ab6e7075e6042e5804954 | [
"MIT"
] | permissive | DK56/snare | 6f7b50ab3b9c0b23bc2f3b5f8325589dd777238f | 46f1d5af1c144cdc9b8be6e57bfe9e740221dae6 | refs/heads/master | 2023-04-08T02:35:07.884117 | 2020-03-06T12:14:47 | 2020-03-06T12:14:47 | 211,815,979 | 0 | 0 | MIT | 2023-03-24T22:24:03 | 2019-09-30T08:45:44 | Python | UTF-8 | Python | false | false | 9,586 | py | import numpy as np
import math
import copy
from ..wrappers import WeightsProvider, Group
from tensorflow.python.keras import backend as K
class Operation(WeightsProvider):
def __init__(self, weights_provider):
self.weights_provider = weights_provider
def get(self):
return self.weights_provid... | [
"tobias.viehmann@mail.de"
] | tobias.viehmann@mail.de |
732e5989b03e6ac0ba0c7a3273baa3636f04fcc3 | ac13c0de8d821b2d2dc58486b84899976729724d | /primechecker.py | 5977fd2b2f4306969d2edaf47dd5167f321a93d9 | [] | no_license | momopranto/project_euler | 3e6362cd5aae4677ef3de4686ad986827edd8e30 | 916426bc263bee5e1dd6a47be21d834819820e87 | refs/heads/master | 2016-09-16T11:52:34.206057 | 2015-09-13T21:17:53 | 2015-09-13T21:17:53 | 42,413,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | import math
def is_prime(n):
if n % 2 == 0 and n > 2:
return False
for i in range(3, int(math.sqrt(n)) + 1, 2):
if n % i == 0:
return False
return True
x = raw_input("Enter a number to check if it is prime \n")
print is_prime(x) | [
"johncena.alamin@gmail.com"
] | johncena.alamin@gmail.com |
4b1ebf1835bb7aef79e1980e4bebf0724bc2a664 | b8ce3789c44bea523e1531d2ec6c8ee7e8855d83 | /change_detection_pytorch/stanet/model.py | 07d8a7e75842ba790274f886790703dc05e2dd93 | [
"MIT"
] | permissive | YangPanHZAU/change_detection.pytorch | 47898236c20586f3bd2cba39e24a0bed6c71fd53 | 7221a9304a1202c52fd8b798780614af28aa38d8 | refs/heads/main | 2023-09-06T05:47:14.446874 | 2021-11-25T09:08:05 | 2021-11-25T09:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | import torch
from typing import Optional
from torch.nn import functional as F
from ..encoders import get_encoder
from .decoder import STANetDecoder
from ..base import SegmentationHead
class STANet(torch.nn.Module):
"""
Args:
encoder_name: Name of the classification model that will be used as an encode... | [
"913896141@qq.com"
] | 913896141@qq.com |
50a805dc8a946792bd4c670cf4d42f3317b82c4d | 5925c0fc934760f1726818a18d6098499dcfb981 | /GAN_upscale_28x28/GAN_upscale_28x28.py | 0c4f60692043ba8d1aaf07a121723c78c1911750 | [
"MIT"
] | permissive | PsycheShaman/Keras-GAN | 64b4b20471f4b185580860f28caa9320ed615a51 | 9a1f2576af8f67fad7845421ea5feb53012c1c9f | refs/heads/master | 2020-06-17T11:03:23.993616 | 2019-09-14T08:04:25 | 2019-09-14T08:04:25 | 195,858,154 | 2 | 0 | MIT | 2019-09-14T08:04:26 | 2019-07-08T17:33:39 | Python | UTF-8 | Python | false | false | 6,859 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 11 12:14:02 2019
@author: gerhard
"""
from __future__ import print_function, division
from keras.datasets import mnist
from keras.layers import Input, Dense, Reshape, Flatten, Dropout
from keras.layers import BatchNormalization, Activation, ZeroPadding2D
fro... | [
"christiaan.viljoen@cern.ch"
] | christiaan.viljoen@cern.ch |
16da2cbf7b87db6103fa3137d33a13a40ba2afa5 | d264c38d2b7a91098ffd2935961b2297b245b020 | /cron/setwatermark.py | 52db4da3b6c8a79135ec444f7585a8ec7bdd9b85 | [] | no_license | durm/aksvrnru | 367d7633453a1947c596aea3230156eb5d48e5ee | 8ac364795ab31f84c1e6e241bdea624a36197369 | refs/heads/master | 2021-01-10T21:42:26.241084 | 2015-04-21T15:14:33 | 2015-04-21T15:14:33 | 23,011,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #-*- coding: utf-8 -*-
import os, time, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "aksvrnru.settings")
from django.conf import settings
from aksvrnru.utils import add_watermark
fpath = sys.argv[1]
if os.path.exists(fpath):
add_watermark(fpath, settings.WATERMARK)
| [
"durm.icecoffee@gmail.com"
] | durm.icecoffee@gmail.com |
53ace3b60db8c9a22aa93f538e2f61cbf99e3c07 | ca9db058f59c5dc742082cd108505be6fce04f04 | /project/application.py | 995dc399987bbe3557a505d9f95693497505bc30 | [] | no_license | zmytryc/youtubegeosearch | ae29d94abbcfbf74cc77f2d8e48b9995d25a630d | 6b6ea197fd5a138b03585b4136743ee0e21abf59 | refs/heads/master | 2021-10-01T18:51:06.314551 | 2018-11-28T12:57:21 | 2018-11-28T12:57:21 | 115,494,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import os
import re
from flask import Flask, jsonify, render_template, request, url_for, json
from flask_jsglue import JSGlue
from helpers import youtubesearch
# configure application
app = Flask(__name__)
JSGlue(app)
# ensure responses aren't cached
if app.config["DEBUG"]:
@app.after_request
def after_requ... | [
"zmytryc@ukr.net"
] | zmytryc@ukr.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.