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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c1315a888e3fa400a7a29daa027a4b8545ff0168 | f3aecb7313ad69241782bd95d2a492299ee554cb | /i3status/py3status/chargestatus.py | 940f90e2e4c47ac252a6d10ff8824134d15115ca | [] | no_license | Kalior/dotfiles | 24357f70eb301503b1cfe4f194a9ecd5853e4eed | ad3a3797ed13c7009ffd39f9bf635aeff3a0f6a2 | refs/heads/master | 2022-04-28T15:54:44.673206 | 2022-04-01T18:40:33 | 2022-04-01T18:40:33 | 51,951,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,731 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Display the battery level.
Configuration parameters:
- color_* : None means - get it from i3status config
- format : text with "text" mode. percentage with % replaces {}
- hide_when_full : hide any information when battery is fully charged
- mode : for prim... | [
"kalioragus@gmail.com"
] | kalioragus@gmail.com |
a16fd8e50b9c997067a44669d605721cbf30a699 | c82b0584f91a7a130718273ecf72039e2d5f9ab1 | /polyaxon_deploy/schemas/security_context.py | a6ce5946b5aed47c96e476bc8c5a116f43003948 | [
"MIT"
] | permissive | todokku/polyaxon-deploy | 7af770dac9fb9797b86e3bf6b5f1da477a751ba0 | 77828e028670c43cc74704a4d7b9ec2e661e10a4 | refs/heads/master | 2021-02-15T16:02:13.468664 | 2020-03-04T09:37:06 | 2020-03-04T09:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from marshmallow import ValidationError, fields, validates_schema
from polyaxon_deploy.schemas.base import BaseConfig, BaseSchema
def validate_security_context(user, group):
if any([user, group]) and not all([user, group]):... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
1c73574065a164f757249a8c0128113bc3fccdae | 837a430acf6deaf94784bcaec496bbfac5affff7 | /venv/bin/pip3 | acec7bf0fb4b56136916c07617d638c89df28d3e | [] | no_license | meghamanohar/Pythontests | d8a474050b150c2d80690ce71e615306163b50c3 | 93153019e8a35c567d9954b6ba9edda2c3132e92 | refs/heads/master | 2022-06-29T16:34:56.397756 | 2020-05-14T02:27:38 | 2020-05-14T02:27:38 | 263,792,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/krishnayadappanavar/PycharmProjects/FirstProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"megha.manohar@gmail.com"
] | megha.manohar@gmail.com | |
a7a58e508b74821e3264af3384076b5e256be0cd | c58bc356bce1d1c2f0b16357bdd4a193930e29b3 | /ddan/ddcn.py | 755ea2661e8328e5d2b0591e9c44d52f39e9c2f3 | [
"MIT"
] | permissive | spandandey21/ddan | f54067e2b92a52bc6250aac8c51aa358f9e9d5ba | 842fd4dc2d0be0d841863d98df4fc131deff4787 | refs/heads/master | 2022-02-19T14:23:00.050886 | 2019-09-09T16:08:18 | 2019-09-09T16:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,975 | py | import tensorflow as tf
import numpy as np
import pandas as pd
from sklearn.metrics import log_loss
from tensorflow.python.framework import ops
from keras import backend as K
from keras.layers import Dense, Dropout, Activation, GaussianNoise
from keras.layers.normalization import BatchNormalization
from keras.layers.ad... | [
"erlend.davidson@gmail.com"
] | erlend.davidson@gmail.com |
93981d5496bc781858932e1163011673c668b86b | 67769384e54979a058a939d067c813d6ba84e213 | /alphaml/datasets/cls_dataset/sector.py | 31e7198fd548de25beb9398b18c050c77c974921 | [
"BSD-3-Clause"
] | permissive | dingdian110/alpha-ml | f53e1c847c9d327691e77dcb3edab8ca51520d50 | d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde | refs/heads/master | 2020-09-14T17:08:02.229245 | 2019-11-21T11:32:56 | 2019-11-21T11:32:56 | 223,195,139 | 1 | 0 | BSD-3-Clause | 2019-11-21T14:39:39 | 2019-11-21T14:39:38 | null | UTF-8 | Python | false | false | 700 | py | import pandas as pd
def load_sector():
L = []
file_path = 'data/xgb_dataset/sector/sector.txt'
with open(file_path, 'r') as f:
for line in f.readlines():
items = line.strip().split('\n')[0].split(' ')
d ={}
d['label'] = int(items[0]) - 1
del items[0]
... | [
"32727236+salty-fish-97@users.noreply.github.com"
] | 32727236+salty-fish-97@users.noreply.github.com |
015f28cff9057185f32b9aa80589b0f4ae92b00a | b1a7fce60e8935592d07323222212d132eedb407 | /Raspi/Confirm.py | a4d5142e76c993a17e454a2068f3e4dc046cbad7 | [] | no_license | Namlitruong/Capstone-ModularRobot | d0922030a8ee0af7a06667ea5f333b19e1bbb070 | e23b07b260a7bfef9a0ef07bb74816cf64cc6a56 | refs/heads/master | 2022-12-17T23:07:07.952625 | 2020-08-17T00:41:11 | 2020-08-17T00:41:11 | 273,672,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,766 | py | import CANbus
import can
import csv
#############################--INTERRUPT--######################################
import time
import os, signal
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
def interrupt_handler(channel):
ID = os.getppid()
print(ID)
... | [
"pi@raspberrypi"
] | pi@raspberrypi |
22e1df1c15e86bdfdede5035f91968705c0d6f0b | b9a5336cb031d74b80395a5f6482661330516fb7 | /reviews/migrations/0001_initial.py | d9211574aeae7e61c1eeaf6a36084bc56655bb00 | [] | no_license | OMDraz/BookrApp | 124863c0eeb7d381ac6e7aa117b953d3f7448bd5 | 0b202ddc8bb9635f503f4725ae1a2e8fdecf5091 | refs/heads/master | 2023-08-07T03:01:26.932390 | 2021-09-23T05:18:25 | 2021-09-23T05:18:25 | 394,129,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Generated by Django 3.2.3 on 2021-08-09 02:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Publisher',
fields=[
('id', models.BigAutoF... | [
"omardraz94@gmail.com"
] | omardraz94@gmail.com |
1ae71121fe67533c75e20874fc8ff41f033c1d67 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.16/_downloads/plot_artifacts_detection.py | 86f915a1f8213e207c582dae54ccbc31f59c58bd | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 5,773 | py | """
Introduction to artifacts and artifact detection
================================================
Since MNE supports the data of many different acquisition systems, the
particular artifacts in your data might behave very differently from the
artifacts you can observe in our tutorials and examples.
Therefore you s... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
41240f0a6dd4ad176be9cc6e8b9eb2e11cf60e08 | e7b0547134291e4707f9760d4c4ce7bf678b2e7a | /block.py | 6017f3d3de2325fadaecaf921e1a4ba28c148138 | [] | no_license | ThisLiftIsGoingDown/Garden-Railway-Control | 154c51c321360c5289077ed10ff3a80b55b2210e | f66ff0f7750400151e688cab23d1316a4c2909f0 | refs/heads/main | 2023-07-15T07:41:59.640067 | 2021-08-24T07:52:42 | 2021-08-24T07:52:42 | 373,764,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from enum import Enum
class State(Enum):
vacant = 0
occupied = 1
outOfService = 2
class Block:
def __init__(self, node , startState = State.vacant):
self.node = node
self.state = startState
def checkState(self):
return self.state
def updateState(self, newState):
... | [
"david.bartsch@bluewin.ch"
] | david.bartsch@bluewin.ch |
64cbbf12cccecdd79098ee784933598a826d5869 | b9f7c7a87292c1a9c231ce89933ae9d4bc51f487 | /src/sst/elements/simpleElementExample/tests/basicStatistics0.py | 3ea5c138cfc1b3558768044804877e0a4e49d5e9 | [
"BSD-3-Clause"
] | permissive | sstsimulator/sst-elements | 3a8db475a7a6cbd4c2a5d737c32718752da9797a | 68cdb3ac843750705805653b3fdcd4b015e84089 | refs/heads/master | 2023-08-17T03:30:24.145168 | 2023-08-16T13:58:07 | 2023-08-16T13:58:07 | 43,475,440 | 85 | 145 | NOASSERTION | 2023-09-12T13:59:11 | 2015-10-01T02:57:18 | C++ | UTF-8 | Python | false | false | 3,054 | py | # Import the SST module
import sst
# The basicStatisticsX.py scripts demonstrate user-side configuration of statistics.
# Each one focuses on a different aspect of user-side configuration
#
# This example demonstrates:
# 1. Default output behavior (reporting statistics at the end of simulation)
# 2. Various output... | [
"grvosku@sandia.gov"
] | grvosku@sandia.gov |
2fd1b907e6eff215b937433a3f361834b3dd96ec | a355b16b9b4cebdd39beb69a6c5aa4e175ae52f6 | /phytosanitary/urls/links.py | 8d16c92f08f546895ad6e4779cd0a8695434b8ee | [] | no_license | hypertexthero/Phytosanitary | e2ba31116b432a8623b332e53a390ff31c24fc10 | 4f001436c90de7a64649e82089e577af6981b793 | refs/heads/master | 2016-09-05T09:47:01.448846 | 2012-11-28T16:34:03 | 2012-11-28T16:34:03 | 3,460,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | from django.conf.urls.defaults import *
from phytosanitary.models import Link
link_info_dict = {
'queryset': Link.objects.all(),
'date_field': 'pub_date',
}
urlpatterns = patterns('django.views.generic.date_based',
(r'^$', 'archive_index', link_info_dict, 'phytosanitary_link_archive_index'),
(r'... | [
"simon@hypertexthero.com"
] | simon@hypertexthero.com |
0e694119ae71816af6ee234acde50cfb3b07d971 | 259637f225cf17885f972edfc8b8221dfce8f81f | /week-03/day-01/factorio.py | a35246f21bf9bd600e6f75950da6d1a2798938be | [] | no_license | green-fox-academy/IBS_guthixx23 | c9570d0c3a3db4ebe4f6affa4f8980f66178d5fe | f3629e88cf4d9a74adfca2c94b8c928ec669beb3 | refs/heads/main | 2023-01-31T01:12:49.060303 | 2020-12-08T17:58:04 | 2020-12-08T17:58:04 | 304,072,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | def factorio(num):
ans = 1
for i in range(1, num+1):
ans *= i
return ans
print(factorio(4)) | [
"guthixx23@gmail.com"
] | guthixx23@gmail.com |
72a48d03a7274c7f1ba3ddca5b8865827f62836e | 144df6ebbae1caf145c868579b335f579bf81357 | /test.py | 3986f037d12b93923af6b2accd4074cccbba40a2 | [] | no_license | xsnk/GreyHatPythonRead | f78645c00bb60e812bdefb5091971a2f94ccfa61 | 83cd36be8d5145be3b8f327f97619cb25110b774 | refs/heads/master | 2020-03-17T17:53:57.062965 | 2018-05-17T12:01:19 | 2018-05-17T12:01:19 | 133,806,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | import zdebug
debugger = zdebug.Debugger()
debugger.load("c:/Windows/System32/calc.exe")
| [
"noreply@github.com"
] | xsnk.noreply@github.com |
48be6df478a910b9d3c13cffb98277f3082c0fe2 | d41aa512f8ad7a28121121cf96f2286abc5391c3 | /scrape_argos/settings.py | e1d3d896b509fcae2e0caab6b9ec23a69f38a0a7 | [
"MIT"
] | permissive | andyregan/scrape_argos | 8b1757819b013bbdb0d0c67ee6b205455aff5ea7 | a3cb44f29173cb4b64e8d73204aecfb40b9edfd9 | refs/heads/master | 2021-01-01T06:50:54.760280 | 2013-05-11T10:08:43 | 2013-05-11T10:08:43 | 9,894,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Scrapy settings for scrape_argos project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/topics/settings.html
#
BOT_NAME = 'scrape_argos'
SPIDER_MODULES = ['scrape_argos.spiders']
NEWSPIDER_MODULE = 'scra... | [
"andrewjregan@gmail.com"
] | andrewjregan@gmail.com |
acdeccf893f67cfeddb6d3a93bcc2068e4d109c4 | 25d02ff4a1c5375321943b6830d9f9386010a76b | /relayer.py | 9eea4b27caadf47cfaa57449da44b676d06db116 | [
"MIT"
] | permissive | minddrive/image-relayer | a50219ef147238281799e6dc7e0bb62a35eaa09f | ff1d0cc39e93e44eae92b8fc1a1c73139b56d202 | refs/heads/main | 2023-04-29T13:48:25.969809 | 2021-05-21T05:42:51 | 2021-05-21T05:42:51 | 369,377,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | #!/usr/bin/env python
import json
import logging
import re
import cloudscraper
import discord
import yaml
logger = logging.getLogger("relayer")
logger.setLevel(logging.DEBUG)
handler = logging.FileHandler(filename="relayer.log", encoding="utf-8", mode="w")
handler.setFormatter(logging.Formatter("%(asctime)s:%(level... | [
"elessar@numenor.org"
] | elessar@numenor.org |
3160ede5e603262448964d8dc9e3a89b58592466 | 60d5ea4f007d49768d250ef394003f554003e4d0 | /python/Depth-first Search/111.Minimum Depth of Binary Tree.py | 28976c05b41b56e4880a2b5192eea9b5868c08e4 | [] | no_license | EvanJamesMG/Leetcode | dd7771beb119ea1250dbb3b147a09053298cd63b | fa638c7fda3802e9f4e0751a2c4c084edf09a441 | refs/heads/master | 2021-01-10T17:11:10.896393 | 2017-12-01T16:04:44 | 2017-12-01T16:04:44 | 46,968,756 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | # coding=utf-8
# Definition for singly-linked list.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
'''
解题思路:
递归
分几种情况考虑:
1,树为空,则为0。
2,根节点如果只存在左子... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
9ef94e2e4d69efad94f09beea5a420f9acda3202 | c1654d09c1eccf17d105d31c62bbf4106feb89d8 | /resolution-mylar.py | 4d6222a94a7d894fdaa9fbff4e10052cca671b70 | [] | no_license | piti118/crystal-length-study-for-mu2e | 142be2f059299c9902706b50d375fda01e651ead | a0287d2676fef33c15298caf432b0d5b38443bd1 | refs/heads/master | 2016-09-11T09:12:07.118526 | 2012-05-14T05:26:27 | 2012-05-14T05:26:27 | 3,666,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | # -*- coding: utf-8 -*-
# <nbformat>3</nbformat>
# <codecell>
from root_numpy import *
from dist_fit import *
from cithep import *
from h5py import *
sample='mylar'
# <codecell>
class Hitmap:
def __init__(self,numrow=21,numcol=21):
self.hmap = np.zeros([numrow,numcol])
self.numrow = numrow
... | [
"piti118@gmail.com"
] | piti118@gmail.com |
994488c0995c4cb3859a16fbd3481c780bdb7c61 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_load_balancer_load_balancing_rules_operations.py | 80034f67d188e49b5f19806c7376dfe4dd5c6385 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 8,796 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e913df03c7803afd5541a37caa8edf1ec5ee78b8 | 621b856c4f181128e7f7039a6f5508f3ffddc983 | /Peoggramms/salman_h_changed_loop.py | 0ecf8caeee7434c0260eddd5b3e3497d710b096b | [] | no_license | olesyaogorodnikova/Robot_kinematics | 31853f64266f15cce05b6cfc70427819975e7442 | cbc1284540fd7bf1c01f2ef36f319d1ac898590c | refs/heads/master | 2021-01-07T14:22:15.171320 | 2020-02-19T21:50:15 | 2020-02-19T21:50:15 | 241,723,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,959 | py | #!/usr/bin/env python
import rospy
import tf
from kuka_arm.srv import *
from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint
from geometry_msgs.msg import Pose
from numpy import array, matrix, cos, sin, pi, arccos, arctan2, sqrt
from numpy.linalg import inv
import time
def get_Table():
# Define... | [
"ooleszja@gmail.com"
] | ooleszja@gmail.com |
0a1322cfc3522be936cc35d976692015418c04b7 | 78f69f8c44cdb6387bd5fc82919c3e3a7b19abee | /__init__.py | dd2ade445cf488090daac9395705d5804ce632f7 | [] | no_license | evanwike/grocery-list-skill | 63abe9adfe7f81aa7902e2d969a22fbf9e1b3d1b | 672109a0693f6a92738584a0b59a2110d71b4ce5 | refs/heads/master | 2020-05-05T09:42:18.283319 | 2019-04-08T04:26:42 | 2019-04-08T04:26:42 | 179,913,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | from mycroft import MycroftSkill, intent_file_handler
from mycroft.util.log import getLogger
import pymongo
LOGGER = getLogger(__name__)
URI = 'mongodb://root:password1@ds049446.mlab.com:49446/hackathon'
CLIENT = pymongo.MongoClient(URI)
DB = CLIENT.get_database()
USER = 'user'
lists = DB['lists']
class GroceryList(... | [
"sportsdude716@gmail.com"
] | sportsdude716@gmail.com |
cd6a459ece5a08bd23ac75e022e08a981b4e98c4 | 5d09e3b32b0f7dee1147139e5e57822f33dc0f32 | /lib/authorship_simulate_citations.py | dfe00d94e2db5ca746145205494cf1700d1da662 | [] | no_license | scone-snu/pyflib2 | cb797f625100d280f6bd3b757795040ca892b1ed | bb2ad7d9974903ac8c3b01ac48b4d6ab72d2ac80 | refs/heads/master | 2020-03-31T17:37:54.216805 | 2011-05-06T04:43:31 | 2011-05-06T04:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | import os
import glob
import re
import networkx as nx
import itertools
import matplotlib.pyplot as plt
import pickle
from collections import defaultdict
from PlotFunctions import *
import random
from scipy.stats import gamma
import math
# Variables that can be modified
START_YEAR = 1997 # Year to start simulation from... | [
"jccccf@gmail.com"
] | jccccf@gmail.com |
12519564ac2077f1120fb5cbb0e9bfaf0c9762c4 | 0bb991864bb1c68eb41c40229b2a78adcbbf69c9 | /python/model_features/statistics.py | 5f73b2e6b61173784966955ab4a9f0dc70ecff90 | [] | no_license | kristianeschenburg/Parcellating-connectivity | ab78a62a11e549f027a177f57c15924ef6eafb9e | 19edaba4d923b1d283b182f21dca4f46a0fbd2f6 | refs/heads/master | 2020-03-22T13:37:16.801653 | 2018-07-29T18:33:47 | 2018-07-29T18:33:47 | 140,120,191 | 0 | 0 | null | 2018-07-07T22:16:40 | 2018-07-07T22:16:39 | null | UTF-8 | Python | false | false | 1,568 | py | import numpy as np
import time
def UpdateStats(stats, t0, curr_lp, max_lp, K, z, c, steps, gt_z, map_z, verbose):
"""
Update diagnostic statistics.
Parameters:
- - - - -
t0 : initial start time
curr_lp : current log-probability of map
max_lp : max log-probability
K : number of clusters
z : current map
... | [
"keschenb@uw.edu"
] | keschenb@uw.edu |
fc4e2f70fdb42770a7c8e6dd0beb93b61e367911 | 1c7ac6a675fa16e7c7d85b90a02eaddbadf80738 | /skulpt/python/binaire_alarme2.py | 6250021f1bdda748c16d8f42c4f4e05dd8be832c | [] | no_license | mistert14/mistert-skulpt | e19c432264fd532e90fdfcc06e6b5d1d9cac7936 | 7a5990e03466a1889922ad3c1e4b0e736cca569f | refs/heads/master | 2020-09-24T13:26:44.632719 | 2014-05-19T19:37:42 | 2014-05-19T19:37:42 | 40,827,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import canvas, math, math2
canvas.clear_timers()
#variables generales
bits = {'A': 0, 'B': 0, 'C': 0 }
out = '0'
#fonction de calcul de la sortie
def process(val):
global bits, out
parser = math2.RpnMathParser(val, bits);
out = parser.get_result()
if str(out) == '0.0':
out = '0'
else:
out = '1'
#g... | [
"mrtseb@gmail.com"
] | mrtseb@gmail.com |
216cfa0a771df09a4201a43f6c87376c2b2194ba | ac31ab210a9d4688e0ba90872fe48a6c97886b9b | /ReLink.py | f13036d27d75a1e963928ea54802a1835895c68b | [] | no_license | springltd/link2_pi_demo01 | 647120ab2d5cd15189fd8e76f3a699829f4342f2 | 94865945fb0b54a66da3df08f1e604a050f70107 | refs/heads/master | 2022-10-22T12:21:31.301083 | 2020-06-16T09:43:02 | 2020-06-16T09:43:02 | 272,659,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | #!/usr/bin/env python3
#Library imports
from tkinter import *
from tkinter import StringVar
import time
from functools import partial
class App:
# Class to manage ReLink PiHat
# ---------------------------------------
def __init__(self, master):
# Init function for class
# -----------------------
... | [
"andrew.gatt@springltd.co"
] | andrew.gatt@springltd.co |
9014134d43bb036fbffc60790f20a299ae4710ab | 5605d4637f78f6d41958029e692b3b33818c2081 | /src/database.py | 7d3c0212509dfb34325441a6a957736c69568b5e | [] | no_license | ssynn/C-S_chat_program | 0dcc9f922f6416339b45d3fc5e66fc6a03fad306 | f847e5fe192a96ad3337cf64be34e760409069bd | refs/heads/master | 2020-05-24T21:58:20.778252 | 2019-06-16T09:20:09 | 2019-06-16T09:20:09 | 187,487,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,279 | py | import sqlite3
# 登录
def login(user_message: dict) -> bool:
'''
传入以下格式的字典
user_message{
'ID': str,
'PASSWORD': str
}
'''
ans = None
try:
conn = sqlite3.connect('./data/data.db')
cursor = conn.cursor()
cursor.execute('''
SELECT ID
FROM ... | [
"824063458@qq.com"
] | 824063458@qq.com |
d25e7326a9da02a7ac488bd3ef17368a45448185 | d6d4a1e4a4c33b7410fc63852a17ab2de089ef78 | /test2.py | 495b395916689f9f3f29750bfcfea5a50d9c2ee2 | [] | no_license | ankittiwari101/learning_git | 054ffcbf52f785a506a37d4aa49d3eb25951f8ee | 43a3166c98e46fbac9dd2c8dff7371d2aa2b392e | refs/heads/master | 2021-03-29T07:01:56.915364 | 2020-03-17T10:20:08 | 2020-03-17T10:20:08 | 247,928,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | print("Tiwari Again!!This is my second commit at a github repository.") | [
"noreply@github.com"
] | ankittiwari101.noreply@github.com |
99a4ce09a2f6f8b5ae00d0f27e9e5310227a043c | 5290b41db07900b9ec0e818976480918031766eb | /kb_site/manage.py | 99088931b2f798a59a85ee09abb9039ff33deba0 | [] | no_license | aleluk/KnowledgeBase | 8db061bf6b0531f2414e9d8dde8c2482d20e799c | e38c82dfa8269443a24d12f31096b82052c9c026 | refs/heads/master | 2023-04-11T07:48:00.266479 | 2021-04-18T12:35:59 | 2021-04-18T12:35:59 | 352,182,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kb_site_main.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"64218199+aleluk@users.noreply.github.com"
] | 64218199+aleluk@users.noreply.github.com |
f6bc950e15c4b64504ccaad6a8a45115c40cb4de | 447101726b535b2a12fb3c0d8336a8dd06f7dea3 | /modex/core.py | 8de5347336123cdb58e3910e439e818b1c38e5af | [] | no_license | weihaigang/CrackDict | 15503911cd73521151d5fc5a7aa2af075dbd3b3f | d752bd54cbc230e8c610a2f95beaff9247f2898a | refs/heads/master | 2023-07-31T19:01:46.000370 | 2021-09-19T00:17:13 | 2021-09-19T00:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,814 | py | # @Author: JogFeelingVi
# @Date: 2021-08-30 23:14:22
# @Last Modified by: By JogFeelingVi
# @Last Modified time: 2021-08-30 23:14:22
from . import rplan
from itertools import zip_longest, repeat, product
from functools import reduce
import re
class curls:
Archives = {
'var': 1.02,
}
Custom = []
... | [
"lifelse@outlook.com"
] | lifelse@outlook.com |
801a2a01933e03fb0f56781ece4a79654cc8788c | b72d0900bec98fcee6c725cef035c02ca29bbf1b | /Python/100Excersises/1 to 25/25/25.py | 38dc3ba7dc12908e54d10b12f5a442b5a1ccd3cd | [
"MIT"
] | permissive | sugamkarki/NAMI-Year-II-TERM-I-Group_Project | 68b8808c8607858a313e8b4d601d8d12c6edda2b | f0a9a5f219ccbec024eb5316361db3fca46e171c | refs/heads/master | 2023-06-28T19:07:19.330236 | 2021-07-24T03:05:42 | 2021-07-24T03:05:42 | 312,819,148 | 0 | 0 | MIT | 2021-07-24T12:45:06 | 2020-11-14T13:08:08 | Python | UTF-8 | Python | false | false | 163 | py | alphabet=[]
for letters in range(97,123):
alphabet.append(chr(letters))
d=dict(a=alphabet)
for item in d.values():
for alpha in item:
print(alpha)
| [
"sugamkarki7058@gmail.com"
] | sugamkarki7058@gmail.com |
75ed8c814760c96bc4cb333a81523c02f6fce8d5 | 52a4d282f6ecaf3e68d798798099d2286a9daa4f | /test_sa.py | 81104dd1d3c6c5b477f238e92d7d1b4e9c05347a | [
"MIT"
] | permissive | bkovitz/FARGish | f0d1c05f5caf9901f520c8665d35780502b67dcc | 3dbf99d44a6e43ae4d9bba32272e0d618ee4aa21 | refs/heads/master | 2023-07-10T15:20:57.479172 | 2023-06-25T19:06:33 | 2023-06-25T19:06:33 | 124,162,924 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,332 | py | # test_sa.py -- Test of spreading activation
import unittest
from pprint import pprint as pp
import inspect
from time import process_time
from dataclasses import dataclass
import operator
from operator import itemgetter
from heapq import nlargest
from typing import Union, List, Tuple, Dict, Set, FrozenSet, Iterable,... | [
"bkovitz@indiana.edu"
] | bkovitz@indiana.edu |
507f6b0403a78b43766a63432e623686cc5a0493 | 466ba928ab060cc6e9b84cf4f64f742cc6153eb2 | /checkForUpdates.py | f7c00929fceb0b51fc493ea4a83745b57f8259c2 | [] | no_license | Joshua1337/FreifunkNodeChecker | 16de6a35a4343357d357d193ecc843ba89482571 | 53b9a3ef6890ed58f26a35a6accea03597596124 | refs/heads/master | 2021-11-10T01:25:19.307961 | 2021-10-24T11:59:13 | 2021-10-24T11:59:13 | 80,371,054 | 0 | 0 | null | 2020-09-24T21:39:52 | 2017-01-29T20:38:06 | Python | UTF-8 | Python | false | false | 2,612 | py | # coding: utf-8
import argparse
import logging
import os
import json
import requests
from telegram.ext import Updater
from time import sleep
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
class Check():
def __init__(self, authToken, url... | [
"thecop@thecop.us"
] | thecop@thecop.us |
00404615272f8b216b6112c31abf170d3dbb3ac4 | af200bff16d3b176c0cab30d0d71666f9511c3cd | /__init__.py | 2b7440ba08e59b803ecb9580382b5e9f80ef1c0e | [] | no_license | NKLASS/Russian-Grammar-Analyser | af222c307730bed8c97b55dd4672a6443bdead47 | e1d4ae8ceb427df412d93ca09a5e63651e4a72bc | refs/heads/master | 2023-03-17T21:54:38.729881 | 2017-03-29T14:20:59 | 2017-03-29T14:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # -*- coding: UTF-8 -*-
import sys
import json
reload(sys)
from flask import Flask, jsonify,request,render_template
from translator import analyseGrammar
sys.setdefaultencoding('utf-8')
app = Flask(__name__)
@app.route('/')
def index():
return render_template('computer.html')
@app.route('/_add_numbers')
def... | [
"bjamurray@gmail.com"
] | bjamurray@gmail.com |
49d98b69895f2db5dd9fa22267d1e67e92e73d52 | 669196cb7444c699b9c477bd36d76082d534e08a | /tests/unit/test_user_email.py | c475eef807feb4dd45015fb7490c85ba2be6c329 | [
"MIT"
] | permissive | tilgovi/pyramid_fullauth | d51ad9fabca0ef380f6981c0f62e5c36d8484cba | 3de2f784e89c2e82104dbe36acbb85597e4fff31 | refs/heads/master | 2021-01-24T15:15:28.691347 | 2014-11-02T18:45:05 | 2014-11-02T18:45:05 | 26,466,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """Test email related User methods."""
from pyramid.compat import text_type
from pyramid_fullauth.models import User
NEW_EMAIL = text_type('new@example.com')
def test_set_new_email():
"""
Test User.set_new_email method.
setting new email should result in setting new_email field,
and key used to acti... | [
"fizyk@fizyk.net.pl"
] | fizyk@fizyk.net.pl |
790830077d8069ae93383389d8841eccf07aeda2 | bc0f99dba2233f02e1f1b59711164bc2eb47e072 | /LOBDeepPP/LOBDeepPP_model/__LOB_models_output2D.py | 8679322c5bbb76988d2073f925c8c23fa9be2086 | [
"MIT"
] | permissive | mariussterling/LOBDeepPP_code | 29e483b70ee81f4302ea977c47a25d8ec743b2b9 | 010782f8db9a745940753f49d953361c32ee1190 | refs/heads/master | 2022-10-10T15:45:40.770829 | 2020-06-09T22:48:27 | 2020-06-09T22:48:27 | 255,342,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | from keras import layers, models
from .__activations import PReLU2
def output_model_askbid(inp, params, output_shape, interpretable, **kwargs):
if interpretable:
out = inp
else:
out_inp = layers.InputLayer(
input_shape=inp.get_shape().as_list()[1:],
name='out_inp')
... | [
"marius.sterling@hu-berlin.de"
] | marius.sterling@hu-berlin.de |
67143a8e1eb81c79e74cb83a07a1483096d620ba | 4ffb9e383f7c2759bd39a7e1772ecb437e7b4082 | /cursosweb/bin/pip3.7 | 4fefeae8196f856e476355f5b36066cfd9842145 | [] | no_license | meridiaz/x-serv-15.8-cms-users-put | 62fe3a9cd418ced2c67b9b66b1d525107831579e | 67ce09cc2f04b76a5d99149e71f833636c94b6d4 | refs/heads/master | 2022-12-11T18:49:04.635968 | 2020-04-18T17:32:49 | 2020-04-18T17:32:49 | 295,018,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | 7 | #!/home/meri/Escritorio/sat/gitlab/try2git/x-serv-15.6-django-cms-put/cursosweb/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mdiaz"
] | mdiaz |
d86ee1b4566a0e1a14a1ae48450497bf4829a0b9 | bc06161fc2a7ac28931042a9e503a276c003870c | /mysite/vacancies/management/commands/_utils.py | f64f9e7411333ccda3e65785f282f3ba08111b11 | [] | no_license | ilineserg/django_indeed | ac324ee886509b10b119f528ab0c1c0ed809ac25 | 911380593b0068bbe6fd7ac33d8086f180557f4d | refs/heads/master | 2021-02-10T03:31:56.939497 | 2020-04-02T08:34:46 | 2020-04-02T08:34:46 | 244,348,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import hashlib
import urllib.parse as url_parser
from enum import Enum
class Colors(Enum):
"""
Available colors.
"""
RED = '\x1b[91m'
GREEN = '\x1b[32m'
END = '\x1b[0m'
def colorize(text: str, color: Colors) -> str:
"""
Colorizing a text string.
"""
return f"{color.value}{tex... | [
"ilineserg@gmail.com"
] | ilineserg@gmail.com |
05743f19fd6a54dc73ab2663b6a43d967e3953e5 | caf39133030e9e9d9240769fbfe72287009c6b51 | /supervised_learning/0x00-binary_classification/11-neural_network.py | 21048d014bf2a955602c5ea89d0fdecd77c0e585 | [] | no_license | sazad44/holbertonschool-machine_learning | d08facbc24582ebcedf9a8607c82b18909fe7867 | b92e89b980a8f1360a24f4ed5654a2ab0dfac679 | refs/heads/master | 2022-11-30T22:32:21.264942 | 2020-08-12T05:25:06 | 2020-08-12T05:25:06 | 280,286,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python3
"""Class definitions for neural network with 1 hidden layer"""
import numpy as np
class NeuralNetwork():
"""Neural network class definition"""
def __init__(self, nx, nodes):
"""initialization func for class"""
if not isinstance(nx, int):
raise TypeError("nx m... | [
"36613205+sazad44@users.noreply.github.com"
] | 36613205+sazad44@users.noreply.github.com |
476aa2a98daed909cdc94030738f19b05ded46bf | 454fc28a4db23ff10e0642bc9c67e01d95230d42 | /functions.py | 849d5ae0f362aa9dfddb6a2964e55bfc10b6502a | [] | no_license | SarsenovZ2z/fontrec_dataset | 9d739418109b98a348771c9a63dd5343f3ba1493 | 94f948bc3f942de478c1244cd1f963fa1cea66b1 | refs/heads/master | 2020-05-18T20:42:32.492312 | 2019-05-03T00:42:54 | 2019-05-03T00:42:54 | 184,628,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import re
import random
import os
def getFonts(path):
files = []
# r=root, d=directories, f = files
for r, d, f in os.walk(path):
for file in f:
if '.ttf' in file:
files.append({'path': os.path.join(r, file), 'name': file.replace('.ttf', '')})
return files
def getR... | [
"nurik9293709@gmail.com"
] | nurik9293709@gmail.com |
946ffb36b8439369b9bb56e4d75d22cf7dc120d2 | 317f0a8f92043a04a1ec1986603c77c5844d7314 | /Default/install_package_control.py | 2d10cd1b517c4435d3e33e2343bb96ede23c25af | [
"LicenseRef-scancode-boost-original"
] | permissive | sharunkumar/Packages | f658c0a1bbe505a697fc62cbd580950ef388a6bc | bae297c3f03921c8aa2e0adb0ce2a40ee8d33330 | refs/heads/master | 2020-04-06T09:51:16.493005 | 2019-05-09T09:39:20 | 2019-05-09T09:39:20 | 157,359,405 | 0 | 0 | NOASSERTION | 2018-11-13T10:06:30 | 2018-11-13T10:06:30 | null | UTF-8 | Python | false | false | 5,524 | py | import base64
import binascii
import os
import threading
from urllib.error import URLError
from urllib.request import build_opener, install_opener, ProxyHandler, urlopen
import sublime
import sublime_api
import sublime_plugin
class InstallPackageControlCommand(sublime_plugin.ApplicationCommand):
error_prefix = ... | [
"sharunkumar.ks@gofrugal.com"
] | sharunkumar.ks@gofrugal.com |
e8dd578f213f88343398afdca104aa8d1e0c925b | 7020b4ff30cd1f35146235c1d0e74bb8f9a3c4b9 | /venv/Lib/site-packages/pymysql/connections.py | 7c90ce34e00b2a8abdfea1084d9fcca168f6bf9a | [] | no_license | Brian-Munene/HouseProject | 4f6c500738d733d88dc75b6e2849e80d85024197 | a6a41cfa8d59a9861e0659bce2da191d4eefe1df | refs/heads/master | 2023-02-09T06:47:53.011462 | 2021-09-14T09:48:09 | 2021-09-14T09:48:09 | 169,042,895 | 0 | 1 | null | 2023-02-02T06:14:37 | 2019-02-04T07:38:34 | Python | UTF-8 | Python | false | false | 49,033 | py | # Python implementation of the MySQL client-server protocol
# http://dev.mysql.com/doc/internals/en/client-server-protocol.html
# Error codes:
# http://dev.mysql.com/doc/refman/5.5/en/error-messages-client.html
from __future__ import print_function
from ._compat import PY2, range_type, text_type, str_type, JYTHON, IRON... | [
"brianmunene69@gmail.com"
] | brianmunene69@gmail.com |
775bc8ad2440dec3fa0750bcca10332e6a975a4f | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/16a4c177de3f63055c5f0252c3f8ba202175fb41-<start_merge>-bug.py | 488cafe673b3ea8201fc11c222ab29d021e87ebf | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | def start_merge(self, project_id, previous_group_ids, new_group_id):
if (not previous_group_ids):
return
state = {
'transaction_id': uuid4().hex,
'project_id': project_id,
'previous_group_ids': previous_group_ids,
'new_group_id': new_group_id,
'datetime': datetime... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c1e9f92e53090868a41830a7785c711adfab01bc | d9f63d87a9f7b19d5ee60c5f38e9007687df4078 | /面向对象-类和对象4.py | 6b8af3e544ed5021e3843f440b94064de10669be | [] | no_license | zhouf1234/untitled3 | 4b156046f0fea2c773785cba0486621625004786 | 238c5aaef121f3d716c96290e7e417a9a4a03b4e | refs/heads/master | 2020-05-05T02:36:07.396459 | 2019-04-05T08:27:31 | 2019-04-05T08:27:31 | 179,643,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | class Person:
school='阳光幼儿园'
def __init__(self):
self.name='丹丹'
p1=Person()
# 使用对象的方法(属性)时,先看有无此属性,如果没有再看类有无此属性
print(p1.school) #阳光幼儿园
# 给对象改school属性后
Person.school='夏天小学'
print(p1.school) #夏天小学
print()
p2=Person()
print(p2.school) #夏天小学 | [
"="
] | = |
8440e8250bda5ae92abd0501c1219d37a8251790 | d713770971a0d9e4a77921fa85fd03daf339dd84 | /business_hardcode/build_project/build_project.py | b34832268d919212f956754af2974f20ed2d4dea | [
"Apache-2.0"
] | permissive | laashub/laas-soa | cf9c0403cb25eedc74326752aaa776f501fac9d0 | 63a5e84b646bf1d857e97ddbbc7c1c487a9dc9e4 | refs/heads/master | 2023-01-07T17:44:24.431030 | 2020-11-12T13:35:31 | 2020-11-12T13:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,528 | py | """
构建项目
需要依赖一些数据
构建服务器
源码仓库信息
项目配置信息
"""
import datetime
import json
import os
import time
import traceback
from rest.operate.executor import context
local_executor_root_path = os.path.join(os.getcwd(), "business_hardcode/build_project")
remote_executor_root_path = "/data/tristan/1" # 远程执行器根目录
# 准备本地目录... | [
"tanshilinmail@gmail.com"
] | tanshilinmail@gmail.com |
940976f32b9a4bc97574ca4635af3b4154fe20cd | 2e8f6b40cdd1c8d89b5345ab00ea467310eeb90b | /generate/select_tables.py | 12f4600132a6e33c9b1bd0cc843c417db2b24a78 | [
"MIT"
] | permissive | samirgadkari/companies | d028deb88ee6ab46391d5c6d52c455a2846e87cd | f683a3d077ec3d9b7241e9c91e6393b290f80b2e | refs/heads/master | 2021-06-25T01:59:22.878337 | 2021-03-10T02:32:32 | 2021-03-10T02:32:32 | 212,151,854 | 0 | 0 | MIT | 2021-01-14T20:47:04 | 2019-10-01T17:00:49 | Jupyter Notebook | UTF-8 | Python | false | false | 16,986 | py | import os
from utils.file import copy_file
from utils.environ import html_samples_dir
selected_tables = ['file:///Volumes/datadrive/tables-extracted_split-tables/0000036146_TRUSTMARK_CORP/10-k/2018-01-01_2018-12-31_10-K/107.table-extracted',
'file:///Volumes/datadrive/tables-extracted_split-tables/0... | [
"samir.gadkari@gmail.com"
] | samir.gadkari@gmail.com |
b7b344929e53f398c8535a2cacd7a38cd91a01ce | 4df1b2f1b5085e73223800ada334c8603b8be87b | /getdata.py | c0bc31df5a7f8447c7897fb0169999f1d245441a | [] | no_license | srejun/Project_Roboduct | 1c34355951cf0670ce513b332a70c8785f6ed154 | b656797d86773e84c0791a57751f8db973ffa5d8 | refs/heads/master | 2022-06-28T10:36:12.636777 | 2020-05-06T11:49:38 | 2020-05-06T11:49:38 | 261,741,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,183 | py | #Libraries
from __future__ import print_function
import RPi.GPIO as GPIO
import time
import xbox
file = open("cleaningdata.txt","w")
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
#set GPIO Pins
GPIO_TRIGGERleft = 12
GPIO_ECHOleft = 16
GPIO_TRIGGERrigth = 24
GPIO_ECHOrigth = 26
#set GPIO direction (IN / OUT)
G... | [
"noreply@github.com"
] | srejun.noreply@github.com |
bf0840495fc063b35d948fe9b69befd937bd7de7 | d60acaac9e460c5693efe61449667b3c399c53c8 | /algebra/linear/fishercriterion.py | 1c1c14ab2e5666bf05a05221df9b5c7bd15195f6 | [] | no_license | HussainAther/mathematics | 53ea7fb2470c88d674faa924405786ba3b860705 | 6849cc891bbb9ac69cb20dfb13fe6bb5bd77d8c5 | refs/heads/master | 2021-07-22T00:07:53.940786 | 2020-05-07T03:11:17 | 2020-05-07T03:11:17 | 157,749,226 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import numpy as np
"""
We can use dimensionality reduction for linear classification models.
One-dimensional input vector x projected down to one dimension using
y = w^T x
We consider a two-class problem with N1 points of class C1 and N2 points of class C2
so the mean vectors of the two classes aare given by:
m1 =... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
0d6f563bf487e50143491c9294e56c9e298e24ec | a7596165a29e5186bc6c4718e3b6e835939b105d | /apps/pig/src/pig/views.py | 47823c4bb576f890292573687f7d79887416ac0b | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,542 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera |
8af064ef0d7490610f6c59dfd4002054ce1eda91 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_27094.py | ca9e4b98345e5ed3db4156dcb2812fcc628ce499 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | # Save full text of a tweet with tweepy
retweeted_status
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
5148b36fb7b804d585edaef072685b6c32aa6ce1 | 63e8a1c42aad04fa471d5dc92ee2308b511bf33c | /hotel/hotel/settings.py | a1964374a2b5d3a9b27a53f7058b5804bdf5645e | [] | no_license | sampathkumar0511/new_proj | 7a5dfcaf0aaa7f27b50a4d1d11012587d2818221 | 67944367d35da3639e35786d3d9842d97af2c3dd | refs/heads/main | 2023-01-14T12:37:15.549711 | 2020-11-21T16:47:10 | 2020-11-21T16:47:10 | 312,472,762 | 0 | 0 | null | 2020-11-21T16:47:11 | 2020-11-13T04:26:55 | Python | UTF-8 | Python | false | false | 3,073 | py | """
Django settings for hotel project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"sampath@sampaths-MacBook-Pro.local"
] | sampath@sampaths-MacBook-Pro.local |
187bd2a6ff0bfea7ed5629278eea007adedb4d97 | 54d3a1558a4bd38888d4d51f1ae2d2699965087c | /exa.py | 59f998f63b4e4f8e21e59e08b9035fd514853656 | [] | no_license | A8IK/Python-2 | a86843c6ccfe23d42faebb020307351a108075bd | 538aee64bac73110cd0a8ac74747c9d2fa485149 | refs/heads/main | 2023-01-21T12:42:51.226144 | 2020-12-04T18:14:32 | 2020-12-04T18:14:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def div(a,b):
print(a/b)
div(4,2)
| [
"noreply@github.com"
] | A8IK.noreply@github.com |
c1b71ce4bf116be38058532866d68049bfa605b1 | 88ea6ae5a8f97e3771490583d8acecdbe2877fd8 | /zips/plugin.video.vistatv-ini-maker/main.py | 773a4185cc39459dd2f2a721e93b53361a46dfec | [] | no_license | staycanuca/PersonalDataVistaTV | 26497a29e6f8b86592609e7e950d6156aadf881c | 4844edbfd4ecfc1d48e31432c39b9ab1b3b1a222 | refs/heads/master | 2021-01-25T14:46:25.763952 | 2018-03-03T10:48:06 | 2018-03-03T10:48:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,546 | py | from xbmcswift2 import Plugin
from xbmcswift2 import actions
import xbmc,xbmcaddon,xbmcvfs,xbmcgui
import re
from rpc import RPC
import requests
import random
import sqlite3
from datetime import datetime,timedelta
import time
#import urllib
import HTMLParser
import xbmcplugin
#import xml.etree.ElementTree as ET
#import... | [
"biglad@mgawow.co.uk"
] | biglad@mgawow.co.uk |
5df953e7136216e7adfa597079d091686b4fa538 | deb97b21457bc360563e09c7bbba235cdd915548 | /gitkit/commands/del_merged.py | de55050ed183a4ab19f91ae4bcc81325227a18e2 | [
"MIT"
] | permissive | akx/git-kit | e381ae5516a6f36f39d72af00e93aa5d4f0e985f | 8084d99c6a113aad56764b0907d157c6957a3977 | refs/heads/master | 2023-07-19T20:16:27.358018 | 2023-07-18T07:49:41 | 2023-07-18T07:49:41 | 22,340,212 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import click
from gitkit.conf import sacred_branches
from gitkit.util.refs import get_main_branch
from gitkit.util.shell import get_lines, run
@click.command()
@click.argument("ref", required=False, default=None)
def del_merged(ref):
"""
Delete merged branches.
"""
if not ref:
ref = get_main_... | [
"akx@iki.fi"
] | akx@iki.fi |
47ecc56f687300df5c2ad1bba94ec239449193de | d81c04e592aec9d9bb8ad48a7fe3c8d446852f17 | /StateMachine.py | 84fb8efa974ac75cbd20244b2befa59a77073f14 | [] | no_license | Swia/movingrepo | e5e141d49dbde243572d0fe0211c131d18812e6d | 18aeee5b3adc64ad151c70bb40512c96e2f1316f | refs/heads/main | 2023-05-06T12:59:06.456699 | 2021-05-25T14:30:13 | 2021-05-25T14:30:13 | 370,630,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
from enum import Enum
class States(Enum):
"""
A simple state machine to easier navigation through @decorator functions
in alarms_bot.py
"""
STATE_START = 0
STATE_NEWALARM = 1
STATE_SETTING_TIMEZONE_SEPARATE = 2
STATE_SETTING_TIMEZONE_FOR_ALARM = 3
STATE_SETT... | [
"noreply@github.com"
] | Swia.noreply@github.com |
c703a262839b247143130d0cf69dd4626cb5d5ff | a63590f247d914b6993f4e72a5c27a439344d12a | /env/lib/python3.7/io.py | 062f32ae1bab0a72f1d55ace8c1184b6d81bdb8e | [] | no_license | wgcv/Social-Media-Analyze-Election-Guayaquil | e6c65e68e6f54a11aadad9d1765568521df9a20e | 784e6e4c94552307fefdf85367bb6a793ae878c3 | refs/heads/master | 2020-05-09T20:33:58.585077 | 2019-05-11T16:46:43 | 2019-05-11T16:46:43 | 181,410,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /Users/wgcv/anaconda3/lib/python3.7/io.py | [
"gstavocevallos@gmail.com"
] | gstavocevallos@gmail.com |
562d6b667658cc8ca7127a940db800debd92f225 | eccc9f30b406903761c85fa8edf239b809805cf0 | /listings/migrations/0001_initial.py | 5c2e992fd3779b68d2c904bb4d8a262cd3107f4f | [] | no_license | InnaAndreeva/real_estate_django | 40f9510155476f7e4ea135f520112539f2845f89 | 90f9414d76c901c73c412335ebca39610040466a | refs/heads/main | 2023-01-14T05:51:47.931878 | 2020-11-24T10:32:05 | 2020-11-24T10:32:05 | 315,594,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | # Generated by Django 2.1.7 on 2019-03-25 18:38
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"innaandreeva17yo@gmail.com"
] | innaandreeva17yo@gmail.com |
1b29e17738ce8017bc364637474cffdf18602a34 | 2ad64e7398057a09c2a5b8543199f3781c515e45 | /Pilha.py | 1e39a66b1b69ab75517b19e2d8a114afc785b3a4 | [] | no_license | edinhograno/provadepython | e56281657d0b27d0ecf327ab5befde12323a9075 | 55ab15c451a760dbfef0afa561b1bdea5c66186d | refs/heads/master | 2023-06-25T20:08:19.564672 | 2021-07-07T13:43:11 | 2021-07-07T13:43:11 | 383,813,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from Livros import Livro
class Pilha:
def __init__(self):
self.top = None
self._size = 0
def adiciona(self, id, nome, autor):
node = Livro(id, nome, autor)
node.next = self.top
self.top = node
self._size = self._size + 1
def remove(self):
if self._s... | [
"granomotorista@gmail.com"
] | granomotorista@gmail.com |
ca295de07a553fcbc33476193a590c0edf04cefc | 64310ffff77de9878f4a51e8e1c74ae6e796a79c | /external/gnuradio/gfsk_rx.py | af6cdc083decc97bba9b1aee10931101a178d2e3 | [] | no_license | learning-lte/gnuradio-modem-gmsk | f9849f35dadc95f145d92a67a28d42fd6939093d | dab60f749f39466ca8708a693b41fdbee4603d7b | refs/heads/master | 2022-01-19T21:02:59.480389 | 2019-04-29T18:08:20 | 2019-04-29T18:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,621 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: GFSK Receiver
# GNU Radio version: 3.7.13.5
##################################################
if __name__ == '__main__':
import ctypes
import sys
if sys.platform.startsw... | [
"mario.baldini@gmail.com"
] | mario.baldini@gmail.com |
e1e86389d66b93dd4822b7ba5af7fe578432b75a | 1662e063d62bddb3f3e63204f66f8d7685d59d9a | /blog/views.py | 49d6f7ad68dd59e72576de8a887ecc140b0bea0c | [] | no_license | danielmjales/my-first-blog | b2f9ae9bca676d367cc015765e6653ee0a64eabf | 66bd359926b0a38dcc06e4b4c4f1caf815382b3f | refs/heads/master | 2020-04-17T11:40:04.905284 | 2019-01-20T12:37:02 | 2019-01-20T12:37:02 | 166,549,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post
from .forms import PostForm
from rest_framework import viewsets
from .serializers import PostModelSerializer
def post_list(request):
posts = Post.objects.all().order_by('title')
return... | [
"danielmjales@bct.ect.ufrn.br"
] | danielmjales@bct.ect.ufrn.br |
af54235f1808ded628afe0b1d54a6be553ceaa24 | 91e57f5ef0a4477e12a946dc7c9c66ad2ced0778 | /baekjoon_py/14889.py | c6a840877bf2e2890dc01538a4278279e1abb982 | [] | no_license | popcon9424/algorithm | 85b50de51cf6d61dfa8edfcc508e5c7c333eb82b | 5f9c685f4f684ea398758ab1f71f02e0bf1bac03 | refs/heads/master | 2020-05-28T03:08:24.286215 | 2019-11-28T08:01:26 | 2019-11-28T08:01:26 | 188,863,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import sys
from itertools import combinations
N = int(sys.stdin.readline())
board = [ list(map(int, sys.stdin.readline().split())) for _ in range(N) ]
minimum = 0
for bd in board:
minimum += sum(bd)
combs = combinations(list(range(N)), N//2)
for com in combs:
firstSum, secondSum = 0, 0
smallcombs = combina... | [
"gusgh9424@naver.com"
] | gusgh9424@naver.com |
bb9a53589955ef9aa479dbd294e34706c2932991 | 1ff34305a38b92eb33983ec90f29c67eac731f31 | /next level platform.py | 63a34dbb60b17f2a65176d70adbc3e5e620c2c64 | [] | no_license | jerhieb/pygame | 3e4e78fd3a9f1bfdda52404c4994025249e0c0b0 | 81d737d82d0562389cab87eb80f5913806082080 | refs/heads/master | 2020-08-04T16:56:53.348022 | 2019-10-02T02:06:38 | 2019-10-02T02:06:38 | 212,210,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,741 | py | import pygame
pygame.init()
display_width = 800
display_height = 600
surface = pygame.display.set_mode((display_width, display_height))
running1 = pygame.image.load('Running1.png')
running2 = pygame.image.load('Running2.png')
standing = pygame.image.load('playerstanding.png')
door = pygame.image.load('Door.png')
key = ... | [
"noreply@github.com"
] | jerhieb.noreply@github.com |
0d307cf1b2d2df910db56e7f5bfb1b8f8f5ab2a4 | 288ccb79d6b73572d6d82366031813a3a7976eb5 | /venv/lib/python3.6/site-packages/secretstorage/util.py | 60bafca0f46b04c7a1d59de295c9b98aaa186a15 | [
"MIT"
] | permissive | abualrubbaraa/Baraa-Validator | d9182767b696270dbcc6f071c12574e470ed0f5d | bff356f4e35ea7de66de799e7f063c383e298d1f | refs/heads/master | 2022-11-29T11:19:30.624281 | 2020-08-18T20:37:22 | 2020-08-18T20:37:22 | 288,558,878 | 0 | 1 | MIT | 2022-11-28T19:57:51 | 2020-08-18T20:34:28 | Python | UTF-8 | Python | false | false | 6,213 | py | # SecretStorage module for Python
# Access passwords using the SecretService DBus API
# Author: Dmitry Shachnev, 2013-2018
# License: 3-clause BSD, see LICENSE file
"""This module provides some utility functions, but these shouldn't
normally be used by external applications."""
import os
from typing import Any, List,... | [
"baraaabualrub1998@gmail.com"
] | baraaabualrub1998@gmail.com |
e19d83d920cbf214a0559c2f0bb610c90b9d69ee | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1914.py | 20d7b72d1b8a35128812032e9655e83a53e17756 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | f = open("A-large.in","r")
t = int (f.readline())
ent = []
def check(ent):
for i in range(0,4):
if ('.' not in ent[i])and ('O' not in ent[i]):
return 0
if ('.' not in ent[i])and ('X' not in ent[i]):
return 1
for i in range(0,4):
a = []
f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e1a8258c295bb435d8d056b45f9adbadb1d5fb35 | 6d2307761303169e6527e10d4ee3b8692c84e9b7 | /Code/Algorithm Testing/NB.py | 82463836cc9517bc6e6411e58f5807ed2a177bf8 | [] | no_license | bpblakely/Email-Spam-Classification-Project | e783bed5a6b5b4bb6ccf8c9be092cdb9e163207f | d657bfbf475edb5731e78a4122fb7aaeee9e6ab5 | refs/heads/master | 2020-10-02T04:39:27.867598 | 2019-12-12T22:42:19 | 2019-12-12T22:42:19 | 227,703,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 31 10:29:48 2019
@author: Brian
"""
import numpy as np
from sklearn.naive_bayes import MultinomialNB,GaussianNB,ComplementNB
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2
from sklearn.svm import SVC
from sklearn.ne... | [
"noreply@github.com"
] | bpblakely.noreply@github.com |
9c7c5a026f89ccbfb7ccfb066f21b2da5e6310a4 | 03644227f51ff3ebfd0b5321d40c7d392dfcd315 | /exchange_plane/venv/Scripts/easy_install-script.py | 272aecf33bbda4ac76aa86b4c487a6da0a400aa8 | [] | no_license | wufeipku/python | 32fc26b85bafad15fe8f873d9806b6ab8d699310 | 1eb16a01d11aecd23097172a45caf79a4042f3bf | refs/heads/master | 2020-04-29T15:11:11.065925 | 2019-03-18T07:28:45 | 2019-03-18T07:28:45 | 176,220,111 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | #!E:\python36\Pycharmproject\exchange_plane\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?... | [
"wufei.pku@163.com"
] | wufei.pku@163.com |
4fd29bedd1166b6c40908bcbd80ecf7dd8f39329 | 8a67943c7dfdf9c89a140d1a4c5aabc63d1b7263 | /train/train_transfer.py | 300ccb9c01c4c5b326954a52bac63326c93ccd29 | [
"MIT"
] | permissive | huynhtuan17ti/UnsupervisedLearning-JigsawPuzzle | c37782050b61a60695681a195dd5f38b36803976 | 1aafade4b6f169cef8815f90c27ec485bf64ca7d | refs/heads/main | 2023-04-30T07:46:43.300200 | 2021-05-16T13:08:52 | 2021-05-16T13:08:52 | 366,249,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | import sys
sys.path.insert(1, '../UnsupervisedLearning-JigsawPuzzle')
import torch
import torch.nn as nn
import torchvision
import os
import cv2
from torch.autograd import Variable
from dataset_factory.data_loader import AnimalDataset
from dataset_factory.data_utils import get_all_imgs
from models.AlexNet import Alex... | [
"huynhminhtuan6429@gmail.com"
] | huynhminhtuan6429@gmail.com |
c34cf6fe9e2f299d9e4c23ed305ee16c98656660 | 20257efe43389be6da440cf0ae1d28d203cc49c0 | /label/label_V1/srcs/photos.py | 514f826c196a235e8fd79e8737b31042153db91e | [] | no_license | Sebds/Patate | 26a7b8590edffe7a08dae8696d949ab8c5cb36da | 7676189d6051a4530bd47392639e4169217b61c5 | refs/heads/master | 2020-03-26T21:33:29.513474 | 2018-08-19T17:33:00 | 2018-08-19T17:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,561 | py | import os
import time
import srcs.color as c
from tkinter import *
from PIL import ImageTk, Image
class Photos(object):
def __init__(self, photos, lab_photos, trash='trash/', auto_next=False, width=800, height=600):
self.photos_dir = photos
self.lab_photos_dir = lab_photos
self.trash_dir = ... | [
"tnicolas@student.42.fr"
] | tnicolas@student.42.fr |
360fbd0df75ba142aadd5589508fdb2d95ba7602 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_074/ch117_2020_04_01_19_24_01_200930.py | 446a96f7337eaf516aa30fe9c7ef40edbc6f0571 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import math
def snell_descartes (n1,n2,c):
o1>=o2
c=math.degrees(o1)
d=math.degrees(o2)
a=math.sin(c)
b=math.sin(d)
b=a*n1/n2
o1<=90 and o1>=0
if o1==0:
o2==0 and a==b==1
return(o1) | [
"you@example.com"
] | you@example.com |
b87d3f64e713ba53fb5b94de3507f74d8a97ea0b | 5c533e2cf1f2fa87e55253cdbfc6cc63fb2d1982 | /python/quantumhall/cyclotron.py | 108c267d7ee00673328a312228abdcb7f535d40f | [] | no_license | philzook58/python | 940c24088968f0d5c655e2344dfa084deaefe7c6 | 6d43db5165c9bcb17e8348a650710c5f603e6a96 | refs/heads/master | 2020-05-25T15:42:55.428149 | 2018-05-14T03:33:29 | 2018-05-14T03:33:29 | 69,040,196 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 993 | py |
#A suggesiton for the classical fractional hall effect
#Is a mean field organiztion of the cycltron phases, such that they synchronize.
#Leading to an effective time and angle dependant
# self consistantly dz/dt2 = i w dz/dt + P
# where E is a vortex configuration by conjecture. P = f(|z|)z^n
# and also has angular t... | [
"philip@FartMachine7.local"
] | philip@FartMachine7.local |
60d4e232d5fa663fa88d5d6da7e0953144542f33 | 9ef0f266173887eafd5c797d13a6538733b39002 | /trimesh/path/entities.py | de2166781a4699322e91ad3e70b13e8fccd4f1c4 | [
"MIT"
] | permissive | MiaoLi/trimesh | a850e3a922e43ce6500085eeaf16df8404ad0f17 | 8f6e537151d914d23180a1c1152d849c41d2c1fa | refs/heads/master | 2021-01-14T12:36:02.831270 | 2015-10-17T01:36:33 | 2015-10-17T01:36:33 | 44,636,986 | 2 | 0 | null | 2015-10-20T21:52:11 | 2015-10-20T21:52:10 | null | UTF-8 | Python | false | false | 5,072 | py | '''
entities.py: basic geometric primitives
Design intent: only store references to vertex indices and pass the vertex
array back to functions that require it.
This keeps all vertices in one external list.
'''
import numpy as np
from .arc import discretize_arc, arc_c... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
64dcffc9f3b11462172adb89a4680a202824afe1 | 669b9fd39398de1fc55ad7da8e7f3182c3d25ade | /sonar.py | aa1179e0e5de9bb69342c6ea8306a32da0a67705 | [
"Apache-2.0"
] | permissive | milos85vasic/Website-Sonar | 3fa811082221f90225d174b17a8dce31c69d05f3 | 406fa3f1baa82d1a7279c0d50dada9b141dec506 | refs/heads/master | 2020-04-15T16:11:10.500880 | 2019-01-31T13:59:25 | 2019-01-31T13:59:25 | 164,824,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,171 | py | import os
import sys
import time
import json
import urllib2
import requests
import logging
import os.path
from requests import ConnectionError
from logging.handlers import RotatingFileHandler
param_configuration_name = '--configuration'
configuration_default_file = 'configuration.json'
configuration = {}
elapsed_tim... | [
"milos85vasic@gmail.com"
] | milos85vasic@gmail.com |
ebbb121bfb497e7f272ba80d191c5af2c3a9b31d | 04adc1a7ae0f9577076321a5931b7816cacc980b | /Exercicios/media-de-lista-com-input-e-1-while.py | 54a19fcbeed414daebbc49a459bf230dbdd8f22b | [] | no_license | jacquesfelipe/python-learning | 455db8ab474edf3e230c20667aa54d194381b7dd | 668a0c6393655e18841c5ca76bfed9de54d13f32 | refs/heads/main | 2023-06-30T11:11:05.384635 | 2021-08-08T21:34:59 | 2021-08-08T21:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | """Média de lista com input"""
notas = []
x = 0
soma = 0
while x <= 3:
notas.append(float(input("Digite qual nota gostaria de adicionar: ")))
soma = soma + notas[x]
x = x + 1
media = soma / (len(notas))
print(f"A média das notas: {[notas]} é: {media}")
| [
"jacquesfelipej@gmail.com"
] | jacquesfelipej@gmail.com |
dee362941322f9741b27f098fc60916cc88f260a | b5e3b4b8e2c70e06e3b19bcd86789b83028da78f | /django_project/blog/migrations/0009_auto_20190620_2016.py | fd3d4764fd5b6fae3dd1dfcc853bd20a330c5b05 | [] | no_license | feridbedelov/Django_Project_Blog_Aurora | 334593d2d523f38e7c472b6e8439cd19f777ec6a | 130f3db455590333c45d40c042722f5908e7bb32 | refs/heads/master | 2020-07-31T15:47:39.431799 | 2019-09-24T17:41:33 | 2019-09-24T17:41:33 | 210,662,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # Generated by Django 2.2.1 on 2019-06-20 16:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0008_post_rating'),
]
operations = [
migrations.AlterField(
model_name='post',
name='rating',
fi... | [
"User@DESKTOP-K24KG53"
] | User@DESKTOP-K24KG53 |
611e6bea09e4fc1314eb651ee69043dad69aec8d | 0af76aee48453b64d2f09dfadeb79f4a4ac6fef3 | /solution/practice/data-structures/multiple-choice/how-well-do-you-know-trees/solution.py | fc9723e63948c87114dd0dc2b22b2b8d0c594e5f | [
"MIT"
] | permissive | Abhishek2019/HackerRank | 99ee5d437eb3abe8f041a04bea3968848605a811 | d8a297e2707545957452d07ca564086e3e34a527 | refs/heads/master | 2021-05-03T12:06:18.488528 | 2019-10-30T17:19:59 | 2019-10-30T17:19:59 | 120,493,921 | 0 | 1 | MIT | 2019-10-30T17:20:05 | 2018-02-06T17:08:34 | Python | UTF-8 | Python | false | false | 13 | py | print("n-1")
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9ef08444444fb5f68dc415a3902027135ded3355 | 7fa478e503293dad2b12ffc5a7648e5ead2cf3df | /outliers/enron_outliers.py | ffd44aaaccb50fdc57f9afed72de4250f8092578 | [] | no_license | bluewaitor/ud120 | e81457fec36b8d1841bbecb91fde4e893d4df37b | b120ca580443d92721f9a46955b0f42a01b15e66 | refs/heads/master | 2021-08-28T23:33:16.267964 | 2017-12-13T08:37:13 | 2017-12-13T08:37:13 | 114,091,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | #!/usr/bin/python
import pickle
import sys
import matplotlib.pyplot
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
### read in data dictionary, convert to numpy array
data_dict = pickle.load( open("../final_project/final_project_dataset.pkl", "r") )
features = ["salary", "b... | [
"405622394@qq.com"
] | 405622394@qq.com |
e08349ddfbec65c303385ec355d6356a79d8056f | f9ca6da37554c16211eae83d280765205d98a72d | /gesture_recognizer/picture_cropper.py | e8a989109264ea1d288cc96b69918eec6dbe2f3e | [] | no_license | kgalloway2/VSC-Code | 03f8955f0c6b630ad97dd1d42ca83af64317e6f8 | 7c3d321de7a4880a9c92f57c153cd23a154390f6 | refs/heads/master | 2023-07-09T12:20:02.147818 | 2021-08-09T13:50:06 | 2021-08-09T13:50:06 | 291,090,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from PIL import Image
# 640x480
i = 0
while i <= 105:
img=Image.open("C:/Users/kgtrm/Documents/VSC Code/gesture_recognizer/screenshots/test_hands/test_hand" + str(i) + ".jpg")
c_i = img.crop(box=(20,20,550,400))
c_i.save("C:/Users/kgtrm/Documents/VSC Code/gesture_recognizer/screenshots/test_hands/cropped... | [
"keatongalloway@yahoo.com"
] | keatongalloway@yahoo.com |
76732c90be1e6c89d923ed2aabebc32359ae7817 | b73b77dbbd6b4b2c216c1c1e08e5d92c734e545c | /hotel/migrations/0102_auto_20200414_1402.py | 4c95c54d31333b48f288d476d6df915d58142931 | [] | no_license | aadarshachapagain/hotel_booking | 0cf248b78a03277a5208aecb1a72aa1282319ead | 58503c57d2fd6d07fdbe6b7eb113954a0282dc3d | refs/heads/main | 2023-08-27T01:53:21.176194 | 2021-10-01T03:13:42 | 2021-10-01T03:13:42 | 412,294,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 2.1.5 on 2020-04-14 08:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hotel', '0101_bedtype_status'),
]
operations = [
migrations.AlterField(
model_name='bedtype',
name='description',
... | [
"aadarshachapagain@gmail.com"
] | aadarshachapagain@gmail.com |
900753b09ad104145d9f0ffbfa579ec628962275 | f62cf89d4e87a053c442e24f50cef4eb0ada2263 | /01-Python3基础语法.py | ed343984a27df1a3348f6ad4e7e5b2fdf7dd6e7e | [] | no_license | Yushallchao/PythonPractise | e9024a45b01658805ad39c47c86574d241b11f5e | 4d5fe0a7870af9b38569d715d73f8f057ce9b37d | refs/heads/main | 2023-01-31T20:54:54.449565 | 2020-12-10T06:10:57 | 2020-12-10T06:10:57 | 316,146,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | #默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串。 当然你也可以为源码文件指定不同的编码:
# -*- coding: utf-8 -*-
#!/usr/bin/python3
# coding=utf-8
# 第一个注释
print ("Hello, Python3!") # 第二个注释
'''
第三注释
'''
"""
第四注释
"""
if True:
print ("True")
print("Hello, Python3! again")
else:
print ("False")
str = 'Runoob'#python中单引... | [
"yushallchao@163.com"
] | yushallchao@163.com |
4e6028989cc9120f76b6ac9bca31ed716230e93f | 001b95da5e994198a53c21f39f0e5b2c88fcd885 | /apiloaderv2.py | 7ad66da9d150f4797a02b8be4897272e256e9e83 | [
"Apache-2.0"
] | permissive | vunetsys/conf-analysis | 43ed78a4e5859ece4b94067156825c0478a6833e | 20945710646ac346caff5d2d7b45a44402721426 | refs/heads/master | 2022-12-05T15:11:04.506836 | 2020-08-28T11:06:48 | 2020-08-28T11:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | import csv
import json
import requests
from papertracker.models import ConfPaper, ConfAuthor, Conference
csvfile = open('C:/Users/Mattia/Pictures/csrankings.csv', encoding='utf-8')
a = requests.get('https://dblp.org/search/publ/api/?q=conf/fast/2011$&format=json&h=1000')
c = a.json()
conf = Conference.objects.... | [
"mtt.manzaroli@gmail.com"
] | mtt.manzaroli@gmail.com |
d772e8a81b0341e954f8e91fbfad37c97cf003c4 | b7fa6ec316abd8b0df7a873f2a0f82ed55e13c0e | /Datos/Operator_In-Contando_Vocales.py | dfd28a47d4377f0b3ad975603c990ad5a5576c59 | [
"MIT"
] | permissive | CaosMx/Code-Exercises-in-Python-Language | 5230ec32f9606563bc92d77415f11b12946803f4 | 0693e445a48cf8b06432affbf72c9182ce9cfb20 | refs/heads/main | 2023-02-01T16:03:05.763750 | 2020-12-14T02:41:29 | 2020-12-14T02:41:29 | 321,198,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # CaosMX
# Dic 2020
# Ex Python Practica
'''
Comprobar dada una palabra, la cantidad de vocales que contiene:
Usando el operador in -> Nos dice en determinada posición de un string si el caracter existe en
otro string predeterminado:
Siguiendo Curso de Python de Manuel Gonzalez:
https://www.youtube.com/cha... | [
"ing.manuel.arreola@gmail.com"
] | ing.manuel.arreola@gmail.com |
5352686f4e473327fc059b46ee1eb30a3308f534 | 8efd2eccd36946f430f1243e13070685d4695bfe | /satfire/tests/test_utils.py | bc3d156a7a881af9851ed304324705627a97bc8a | [] | no_license | pytroll/satfire | 5ca99ccb2b346692eb5fd136c917fd74e55d36d5 | f8bc309ed84aa92673cc02c61eeef0cc997b662b | refs/heads/master | 2020-05-05T13:36:52.702079 | 2020-02-04T13:29:32 | 2020-02-04T13:29:32 | 180,085,989 | 4 | 2 | null | 2020-02-04T13:29:33 | 2019-04-08T06:40:30 | Python | UTF-8 | Python | false | false | 8,356 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017, Panu Lahtinen / FMI
#
# Author(s):
#
# Panu Lahtinen <panu.lahtinen@fmi.fi>
"""Unit testing for utils
"""
import sys
import os.path
from collections import OrderedDict
import numpy as np
from satfire import utils
from posttroll.message import... | [
"pnuu+git@iki.fi"
] | pnuu+git@iki.fi |
3d614af7145d14a806ab6a25d4ba583b74ca5e28 | b7fd24b41333575264a18f4631a0054b8eecea40 | /schema/zst_alarm.py | 7208762ef2097495930ac7fb6ba35582680e3203 | [] | no_license | zhouwanchun/zst_online_server | 5d430d4fe928cb30fed0060f12839eb9519890ca | 955f7ad62f020128c40a3f0ca14848034a3e7bbd | refs/heads/master | 2023-03-17T21:50:35.792788 | 2021-08-18T14:06:54 | 2021-08-18T14:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | import json
import logging
import time
import requests
# Get an instance of a logger
logger = logging.getLogger(__name__)
class WexinAlarm:
def __init__(self):
self.token = ""
self.expired = int(time.time())
def refresh_token(self):
now = int(time.time())
if now < self.expir... | [
"text.zwb@gmail.com"
] | text.zwb@gmail.com |
75b886785f83e8dc3312498f8d4259af161c02b6 | 337976db44254cb997c721139298328416af4086 | /study/part1/dump_db_classes.py | f53647f2e7bbacd3e73ac19d7d18643ad1fcd836 | [] | no_license | vzhukov85/python-study | 3f5d00aa2f84a9b01432d0c0fb378a4b79f46442 | 28b84be1ce50247b8f0b89a8a4b285029c924cde | refs/heads/master | 2020-09-25T23:12:00.044547 | 2020-01-15T06:46:13 | 2020-01-15T06:46:13 | 226,102,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import shelve
db = shelve.open('class-shelve')
for key in db:
print(key, '=>\n', db[key].name, db[key].pay)
bob = db['bob']
print(bob.lastName())
print(db['tom'].lastName())
| [
"erzhukov@i-teco.ru"
] | erzhukov@i-teco.ru |
2b44e8f347c687e6cfc33ec6220eb5f18acfb6ef | e287d17181ca901f52f81662dddcb6e6e34af9d0 | /Fallout's Hacking Game.py | 1361bf710d7eaca2e9b01500a45c519e57fff22b | [] | no_license | MarkMillerKeene/DailyProgrammer | 92819771dce19e7e4671f34198f57127bed9d39e | f03b63051c84827e386c08f96b3f95df393317c3 | refs/heads/master | 2021-01-17T11:54:53.355033 | 2014-11-05T20:48:17 | 2014-11-05T20:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | __author__ = 'peiggs'
| [
"mark.miller@ksc.keene.edu"
] | mark.miller@ksc.keene.edu |
acbeb910b65258b18b71182806b2cc75e84ffa03 | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/person/factories.py | e076b4ef72e4bec53e2bc6a55c5798054d06ced0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,456 | py | # Copyright The IETF Trust 2015-2019, All Rights Reserved
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import factory
import faker
import faker.config
import os
import random
import shutil
from unidecode import unidecode
from django.conf import settings
from dja... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
16a90710f419b70d6f28a6bc8e178229f4dd5d27 | aeae1f547225452774a109f2e9a5a2c55f4d866b | /tvm_cudnn/lstm.py | 391ebf12c076b61203b4fde8f61cb7e7788ae2b7 | [] | no_license | ybai62868/MixPrecisionTensorCore | afb73883593f5c93618d1a626eebb9837e630e2d | 9466d378186adb21156b7e50636f74e5144539e4 | refs/heads/main | 2023-08-14T11:12:11.634726 | 2021-10-18T15:02:27 | 2021-10-18T15:02:27 | 401,226,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | from __future__ import print_function
import argparse
import time
import torch
from torch.autograd import Variable
torch.backends.cudnn.benchmark = True
def update_progress(progress):
print("\rProgress: [{0:50s}] {1:.1f}%".format('#' * int(progress * 50),
progres... | [
"ybai62868@gmail.com"
] | ybai62868@gmail.com |
d872427d19cab578ba3812d427c71e3f1ce07cee | efea54ec2c6b63ca8904fb3fcbee94102aa256ed | /AprilCookpff/1.py | 3cad934b5a7b7e8eff188c6aa3f4ffa12dc55f2b | [] | no_license | ArefinMizan/Codechef-Solutions | 427198e736da8089001818b96109ab7a2e637497 | 01dd0caab636c3c9d39be87ee57ba867f3ea4c87 | refs/heads/master | 2023-03-15T23:00:13.347656 | 2020-01-20T09:59:17 | 2020-01-20T09:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | def main():
for _ in range(int(input())):
(n,m) = map(int, input().split())
print((n-1)*(m-1))
if __name__ == '__main__':
main() | [
"dillu9878@gmail.com"
] | dillu9878@gmail.com |
45b19b1cab318c1d3e4c9a7783e0ebccc5e46929 | ff5d86192ad048737716528d4d59e0bc506e0bfd | /76.py | d4a3a4d3ce102fc5e8151c223ffe9deb4eddfdb7 | [] | no_license | ggddessgxh/aron | 4c7d0b42ee8a8ef9c8edf5e2528beb36cf5b632f | 69c42a0269d46d88287bc753a4e860d3ea5311f7 | refs/heads/master | 2020-04-17T11:46:54.915655 | 2019-01-31T13:36:27 | 2019-01-31T13:36:27 | 166,555,227 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | a = 809
for i in range(10, 100):
b = i * a
if b >= 1000 and b <= 10000 and 8 * i < 100 and 9 * i >= 100:
print(i)
print(i*809)
| [
"1249440711@qq.com"
] | 1249440711@qq.com |
c2329e1d0a37e88a0fcbfb5d6a743b80e8753c28 | df3853b41ed05d86f5bcd992fcc265f637c67784 | /big_deal/test2/14.py | d79e788612e926b9cf62a3a53eddc0a537b10ca5 | [] | no_license | KseniaMIPT/Adamasta | 6ab0121519581dbbbf6ae788d1da85f545f718d1 | e91c34c80834c3f4bf176bc4bf6bf790f9f72ca3 | refs/heads/master | 2021-01-10T16:48:31.141709 | 2016-11-23T21:02:25 | 2016-11-23T21:02:25 | 43,350,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | def digraph_from_input():
N = int(input())
digraph = {}
for i in range(N-1):
line = input().split()
if line[1] not in digraph:
digraph[line[1]] = {line[0]}
else:
digraph[line[1]].add(line[0])
if line[0] not in digraph:
digraph[line[0]] = se... | [
"ksenia22.11@yandex.ru"
] | ksenia22.11@yandex.ru |
344bf52717197625def8b9d5930b228ba011b004 | 27db9295cde6fe07ae4888e3a9c151864642c673 | /blobs.py | f3c880b683470662d5e89f90f7171551e532be87 | [] | no_license | dariodotti/tracking_traj_experiment_indoor_outdoor_dataset | 2ec9d558c8276b9327505c27c9ab0b04d27bb9ad | 0acd8c3f8f138844ee93c4291111dd6fa9f31666 | refs/heads/master | 2021-01-12T10:25:59.095397 | 2016-12-14T11:20:14 | 2016-12-14T11:20:14 | 76,453,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | import cv2
import pickle
import numpy as np
from multiprocessing.dummy import Pool as ThreadPool
from os import listdir
from os.path import isfile, join
import img_proc as my_img_proc
import main as main_camera017
def my_function(k):
print k
temp_track = []
temp_track_append= temp_track.append
map(lam... | [
"dario.dotti@maastrichtuniversity.nl"
] | dario.dotti@maastrichtuniversity.nl |
6343e86e13ef3b29cc0d65db953cb6ba85f7283a | d8f9b8131cfac411bf551a20e9a5b863160ffb79 | /PreProcessing.py | 76985ef3acbd2cd67be4f32d2d4c04f3a3344065 | [] | no_license | artificial-inteligence/AnacondaTest | dbc59b923a7de843ae3adb81b354c73da5a12e4c | eebde6a95d6f6f65593c5a1e4e50f9296a917dbc | refs/heads/master | 2020-04-21T07:41:30.847875 | 2019-02-11T16:52:32 | 2019-02-11T16:52:32 | 169,398,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # openCV
import cv2
import numpy as np
from matplotlib import pyplot as plt
from skimage.color import rgb2gray
class PreProcessor:
def __init__(self):
pass
def applybilateralfilter(self, img):
# apply bilateral filter on image
blur = cv2.bilateralFilter(img, 9, 75, 75)
retur... | [
"stbbap@gmail.com"
] | stbbap@gmail.com |
7cfa51f0591a736e57700f3cb0a8d61f4217297e | f3af403b0f17ba952bdca1554d5d7bcba0b95c05 | /virtual/bin/flask | 4272a265fad124463ed730b2b231cdae1d819d57 | [
"MIT"
] | permissive | Daniel-darnell/Pitchworld | 3157256470b49a24e770718a3cc2dbe713ac475a | 7b9b53a0bbf0a6c191189c5780fdcaabcf89b398 | refs/heads/master | 2023-01-06T02:52:44.270973 | 2020-11-02T09:14:31 | 2020-11-02T09:14:31 | 309,213,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/moringa/Desktop/FullStack/Projects/Pitch/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"darnelldanny1997@gmail.com"
] | darnelldanny1997@gmail.com | |
26464ce47e44f9c4fe06a0efc68c7c7a9c866238 | f3d3ba2921e65a352e6f78fe02f04ddb8a55a8cd | /data/presets.py | 3f876e79971ed19e57a852fb53b9cf01c931a3aa | [] | no_license | ejtalbot/piscripts | ac9f68abce1c2c0711cfb7187cae42fa396feee8 | b5f86edaa8d748108b8316c2b21c79bc2d029071 | refs/heads/main | 2023-07-02T22:23:02.573466 | 2021-08-07T02:16:08 | 2021-08-07T02:16:08 | 341,776,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | snake_templates = {
"rainbow": ["red", "orange_red", "yellow", "electric_green", "blue", "violet"],
"purple_pink": ["pink_orange", "magenta", "purple_pizzazz", "violet"],
"hot": ["red", "persian_red", "orange_red", "selective_yellow"],
"cool": ["aquamarine", "teal", "blue", "violet"],
}
| [
"erikjamestalbot@gmail.com"
] | erikjamestalbot@gmail.com |
abf58fb31e51c78bb90abe08fcf94e44fc5f36c0 | 1985d1a7462d537e1f43055e3c75d91145407ff9 | /Next_Permutation.py | fcc699c978f678ede7468f2b601e8c68627e87c9 | [] | no_license | yeonnseok/algorithm_practice | d95425e59b7b579a70dbbd932e4fb691c57f4534 | c1468f23b2c077ecadac1fa843180674b6ea3295 | refs/heads/master | 2020-04-28T08:51:32.728010 | 2019-04-05T03:20:44 | 2019-04-05T03:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | def swap(list, a, b):
temp = list[b]
list[b] = list[a]
list[a] = temp
def next_permutation(c_list, n):
i = n - 1
while c_list[i - 1] >= c_list[i]:
i -= 1
if i <= 0: return False
j = n - 1
while c_list[j] <= c_list[i - 1]:
j -= 1
swap(c_list, j, i - 1)
j = n - 1
... | [
"smr603@snu.ac.kr"
] | smr603@snu.ac.kr |
efb691981ff05fe7bcb03faa225d88b4bee1bde0 | 084d1b9cb341a1b943f95e98ee3cf680df502ba9 | /Products/mediaPage/tests/base.py | b0e818b0d28196ee7fc5c4b6020c8236190fd002 | [] | no_license | intk/Products.mediaPage | 629aa7c8f98e308b536f997cafbab177ba6ae1a5 | a3f4b0c900565b438593888a3009f8e7e4867792 | refs/heads/master | 2016-09-06T13:57:17.209247 | 2014-09-18T08:56:37 | 2014-09-18T08:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | """Test setup for integration and functional tests.
When we import PloneTestCase and then call setupPloneSite(), all of
Plone's products are loaded, and a Plone site will be created. This
happens at module level, which makes it faster to run each test, but
slows down test runner startup.
"""
from Products.Five import... | [
"andreslb1@gmail.com"
] | andreslb1@gmail.com |
f92c4c2d30adeab12a1909fe55ab12ef7f60d039 | 0bff1f5481f5f83d2053a165839489a1f787e433 | /tweets/models.py | 0f0457fe9ac4c66c0ead9896570035fa931205ed | [] | no_license | tong1yi/my-django-twitter | d92b81a5f74f1251fae273ee11cb07851bd97565 | c1909b7f541fe8062bed6e5add068b0e855cfec9 | refs/heads/main | 2023-06-06T06:03:39.629167 | 2021-06-24T03:14:45 | 2021-06-24T03:14:45 | 380,594,421 | 0 | 0 | null | 2021-06-26T20:54:36 | 2021-06-26T20:54:35 | null | UTF-8 | Python | false | false | 3,888 | py | from django.db import models
from django.contrib.auth.models import User
from utils.time_helpers import utc_now
from django.contrib.contenttypes.models import ContentType
from likes.models import Like
from tweets.constants import TweetPhotoStatus, TWEET_PHOTO_STATUS_CHOICES
# https://stackoverflow.com/questions/351296... | [
"wilburzjh@gmail.com"
] | wilburzjh@gmail.com |
bbadb5f2b9ced965d16217dd49cadebc56d5713c | 2a720f618609e6e28a01cba5f915c5b52285db53 | /donghyeon's python/python.review(1).py | 04d0623a491368075bdddff1b1625e2910522e80 | [] | no_license | kai3n/fastcampus | 87f923dda0712a42644f67581650ccd99a1cd2e8 | 9363c948b50e1789a64f58ce206d49d71d93c801 | refs/heads/master | 2021-01-10T09:34:56.222510 | 2016-02-16T11:22:02 | 2016-02-16T11:22:02 | 49,542,285 | 11 | 4 | null | 2016-01-13T13:45:25 | 2016-01-13T02:01:23 | Python | UTF-8 | Python | false | false | 23,920 | py | '''파이썬 정리 파일
1 . 파이썬에서 변수 혹은 리터럴값의 타입을 알고싶다면 type()를 사용하면된다''' #tpye()
a= 7
print('----1번----')
print(type(a))
print(type(58))
print(type(99.9))
print(type('abc'))
"""2 . 파이썬의 연산자 특징 알아보기""" #... | [
"jkoon2013@gmail.com"
] | jkoon2013@gmail.com |
196c4f27e79af13c60f2efd7ff86c0e6b8733c45 | f31391ec70caf12b5c04634c6375f768b7ddc854 | /Full_Project/PyMongo/Main.py | 808e97469b36fdbbec9610da01b09f07a5f9b9e7 | [] | no_license | poklj/Python | 8daebeff851a494b35c3ef0561bd7dfb5ac4ea94 | acbf3b8705220fb7c0afe8ccb40381f9e337838d | refs/heads/master | 2021-08-23T10:53:44.729608 | 2017-12-04T15:38:07 | 2017-12-04T15:38:07 | 112,198,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from PyMongo import *
def Main():
pass
if __name__ == "__main__":
Main() | [
"compgeek223@gmail.com"
] | compgeek223@gmail.com |
49915c6689b5cfb63c853499fc46782cbfb4e004 | 02d6aa27cffce7620975cc1750b1fdc33cfb4a52 | /gsf/processed/gsf_sub_routine_run_seqs/func_code.py | cf44c59a8295fee0c9b6d81b1e4b41edab648578 | [] | no_license | AlgorithmicAmoeba/picklejar | d8d54216e35b8f10c814a8837b536d480e3ced63 | 8b44829149f39c6e7538b52ae1fae62be3270d93 | refs/heads/master | 2022-12-28T18:33:25.397765 | 2020-10-21T07:43:53 | 2020-10-21T07:43:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # first line: 501
@PickleJar.pickle(path='gsf/processed')
def gsf_sub_routine_run_seqs():
"""Returns the run sequences for the predict, update and resample subroutines
Returns
-------
run_seqss : List
[predict; update; resample] x [N_particles; run_seq]
"""
N_particles_gpu = numpy.array... | [
"29543948+darren-roos@users.noreply.github.com"
] | 29543948+darren-roos@users.noreply.github.com |
8ab113cf60a3a4a75b3d8b50adeeef8e0c253799 | 22b78677bfe20f4c548a8c6cadfaeebcc635a22e | /venv/bin/pip2 | e606e424a07a9bdbdd662dc790e5b6d64708c181 | [] | no_license | mr-kaveh/flasksocialapp | 57778db7bab285d514502d4dd0ef43245a0f1d5c | d9fa096c53b3a202191d2d9e0373ff1b39663421 | refs/heads/master | 2020-04-19T02:33:34.151348 | 2019-02-01T05:12:25 | 2019-02-01T05:12:25 | 167,907,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/home/hossein/myScripts/socialApp/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mr.hdavoodi@gmail.com"
] | mr.hdavoodi@gmail.com | |
a47988e12caea650f9b6dc78153c6e2a74602047 | 5aa0e5f32d529c3321c28d37b0a12a8cf69cfea8 | /client/local_objects/ClientPlayerManager.py | 8acf4ecba25471df1e138e3be612cc0741d8054f | [] | no_license | sheepsy90/survive | 26495f1ff2d8247fbb9470882f8be9f5272e7f2c | 0eddf637be0eacd34415761b78fc2c9d50bc1528 | refs/heads/master | 2021-01-09T05:55:16.546762 | 2017-02-03T20:15:28 | 2017-02-03T20:15:28 | 80,864,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | # -*- coding:utf-8 -*-
from client.local_objects.PlayerModel import PlayerModel
class ClientPlayerManager(object):
def __init__(self):
self.players = {}
self.me = None
def add_new_player_position(self, player_id, player_name, position, is_moving, is_me):
if player_id not in self.play... | [
"robert.kessler@klarna.com"
] | robert.kessler@klarna.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.