blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4781b424d9b9fbdd8f44d282b49b55a5e2d91486 | cf7b827958166c8569eb58deb511cc3f07567741 | /in_Python/0018 4Sum.py | 60ae17d9a8e2a5f6ae27d81501ae8a1beba56d71 | [] | no_license | YangLiyli131/Leetcode2020 | e4e36eb36b1983f73b0e733455b4a7953dfebe6d | 20623defecf65cbc35b194d8b60d8b211816ee4f | refs/heads/master | 2023-08-22T06:00:55.924112 | 2021-09-18T19:04:15 | 2021-09-18T19:04:15 | 251,426,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | class Solution(object):
def threesum(self, nums, target):
res = []
for i in range(len(nums)-2):
if i > 0 and nums[i] == nums[i-1]:
continue
l = i+1
r = len(nums)-1
while l < r:
s = nums[i] + nums[l] + nums[r]
... | [
"noreply@github.com"
] | noreply@github.com |
faf9386e8572b52f4ebd7b6ed69b8ca7c28b3c9e | 70ff4bfa6af83a1754b6d75f4d372d643ec66bbc | /main.py | f2bf5f0a2a7cebce9b0b056ced3a6afa2e570261 | [] | no_license | benmali/Resty | ca1ba091f2275463e67849b3e0195c96be14d47a | bfbdd3cdfe18e6d2d845d0f9ca81dcaf754e5d35 | refs/heads/master | 2023-07-24T17:05:58.788126 | 2021-08-16T16:03:04 | 2021-08-16T16:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | from flask import Flask, session
from backend.register import registerBP
from backend.send_hours import sendHoursBP
from backend.main_page import mainBP
from backend.arrangement import arrangementBP
from backend.login import loginBP
from backend.log_working_hours import log_workBP
from backend.restore_shifts import res... | [
"benmali94@gmail.com"
] | benmali94@gmail.com |
4ffea9d60227c13597c035fcec909aa0f5efba0a | 9b187191ffca9cd84191ad0b086bf1f3450311cf | /migrations/versions/6dcc3fec26a4_posts_table.py | e1e3e83d7992ff186e314b3de496b14f94b422e3 | [] | no_license | shivam2211/flask_1 | 7ae7c170b4cf9efdd103a0528b02f766445a79bf | 9ba2c82ea3d21dc985e518a0d0cda3fba39c66f0 | refs/heads/master | 2022-11-30T16:48:58.714298 | 2019-08-16T05:50:30 | 2019-08-16T05:50:30 | 202,662,534 | 0 | 1 | null | 2022-11-29T09:49:15 | 2019-08-16T05:14:14 | Python | UTF-8 | Python | false | false | 1,057 | py | """posts table
Revision ID: 6dcc3fec26a4
Revises: 14c1433eaa17
Create Date: 2019-08-07 18:39:59.461452
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6dcc3fec26a4'
down_revision = '14c1433eaa17'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"shivamformal@gmail.com"
] | shivamformal@gmail.com |
2e65701776453eaac4caa781ef041ef94faf4efa | a905f5b56732cb49d5d692b75c7334d772b67144 | /pydevs_abc/src/test/hex.py | 9c4f617649392474728cb4ea418e60a10a63452d | [] | no_license | weilaidb/PythonExample2 | d859acee3eb3e9b6448553b4f444c95ab2b2fc8f | 492fa2d687a8f3b9370ed8c49ffb0d06118246c7 | refs/heads/master | 2022-04-20T00:35:35.456199 | 2020-04-26T00:32:12 | 2020-04-26T00:32:12 | 114,774,595 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 890 | py | #!/usr/bin/python
# -*- coding: GBK -*-
'''
Created on 2017Äê12ÔÂ23ÈÕ
@author: Administrator
'''
from test import num
print (("%x " % 108))
print ("%X" % 108)
print ("%#x" % 108)
print ("%#X " % 108)
print ('%f' % 1234.567890)
print ('%.2f' % 1234.67890)
print ('%E' % 1234.567890)
print ('%e' % 1234.567890)
p... | [
"wxjlmr@126.com"
] | wxjlmr@126.com |
d5c3d573dd671d8acd86f5bffe5b659ddbd1f738 | 3a46874efa8238c516c70768c677dbd7e8f9225c | /utility/logging/base_logger.py | 5f1ec9eef95f1d0bf0f840f4d4be0ee98e138498 | [] | no_license | hungntt/WorldModelPlanning | ad36d8086275086dae0625dc040bdcce0f9d9aef | 1e58be1870bae952f104971d082999852f48a51b | refs/heads/master | 2023-05-28T14:39:04.194597 | 2021-01-12T12:40:04 | 2021-01-12T12:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py |
class BaseLogger:
def __init__(self, is_logging):
self.log_dir_root = 'utility/logging/tensorboard_runs'
self._is_logging = is_logging
def start_log(self, name):
pass
def commit_log(self):
pass
def end_log(self):
pass
def _add_text(self, tag, value, ste... | [
"dttn@itu.dk"
] | dttn@itu.dk |
91ff9a717c2a2c75bf69aa2faee3c27419ad23c0 | a7757ca757eedc7d17c840e5f726f8d5f067a544 | /djangoweb/wsgi.py | 9472b1c747a5e851da254aacaa47261f1aed4cf5 | [] | no_license | spicycouscous/apscp-project-thing | fcd613515f37ec9e26940bd2c972fa0965a48f25 | bea47ce027a986d9f4a5b49450c8310feed4c960 | refs/heads/master | 2020-05-30T01:03:15.925589 | 2019-06-03T20:39:17 | 2019-06-03T20:39:17 | 189,469,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | """
WSGI config for djangoweb project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"nope"
] | nope |
c458fef4201fe3d3cee5e187f12aea981b5cab02 | 8f2adafcc2fd52870986b17863b39ded83b730a0 | /ryu_multipath_1_5.py | 26c5df5dd2704572ec222f5739da91e2b68e925d | [] | no_license | josecarlosjr/SDN-CONTEXT | 197664fd8a5908cb8f8f5f11c65bc813abe8d0a4 | 78ccff317d6c79e07544d428a9112d757290181b | refs/heads/master | 2020-04-02T10:06:37.004598 | 2019-11-13T12:04:09 | 2019-11-13T12:04:09 | 154,324,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87,429 | py | #-*- coding: utf-8 -*-
from ryu.base import app_manager
from ryu.controller import mac_to_port, ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATCHER, set_ev_cls
from ryu.ofproto import ofproto_v1_4
from ryu.ofproto import ofproto_v1_4_parser
from ryu.lib.mac import haddr_to_... | [
"noreply@github.com"
] | noreply@github.com |
729039bc1346bdb0938344b828fd0e78aca84c84 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/blink/tools/blinkpy/tool/commands/queries_unittest.py | 9d7214548f8855b08c2b70d812721dd9d733433e | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 7,907 | py | # Copyright (C) 2009 Google Inc. All rights reserved.
# Copyright (C) 2012 Intel Corporation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain th... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
0a31f183176667b3ccb7ef41a3aae879976e561e | b595a24b07662a89826a1b6d334dfcaa3ec1c4b0 | /venv/lib/python3.6/_bootlocale.py | eacdd540c7def6405335d26557019be25b1bb7e2 | [
"CC0-1.0"
] | permissive | kentarofujiy/base1 | 4629b638f96b3ed091ea695c81b3b7837af1ec79 | f820b9b379cda86ca5b446c63800fbe4bb8f3bce | refs/heads/master | 2021-07-13T02:06:01.371773 | 2017-03-11T12:43:19 | 2017-03-11T12:43:19 | 84,649,225 | 0 | 1 | CC0-1.0 | 2020-07-26T01:08:25 | 2017-03-11T12:43:32 | Python | UTF-8 | Python | false | false | 101 | py | /usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_bootlocale.py | [
"Kentaro@Kentaros-MacBook-Pro.local"
] | Kentaro@Kentaros-MacBook-Pro.local |
f20ae300239e95b18221dae69c1ce376ca36d924 | 8729478cd46625a8403894677bf616a34846a248 | /Django/hexocomments/migrations/0001_initial.py | 23e9389dd42b18441bae64f5c4e298c51ac2d7c1 | [] | no_license | dongdatangjie/Django | 5528e81c438b39eea94ee022283ac9b8b4cb4594 | 57dcef7182e1cc8b3f27c8f8c44643ec0755cf62 | refs/heads/master | 2020-12-03T06:44:56.795787 | 2017-06-29T02:18:02 | 2017-06-29T02:18:02 | 95,729,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-28 07:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Hexo', '0002_auto_20170628_1535'),
... | [
"dongdatangjie@gmail.com"
] | dongdatangjie@gmail.com |
36f8862cb75c3b1df9d93265b47e29c0730ba897 | eb73cc75bcda7a26784674c09a1cd14227889547 | /use_model.py | 22f59a9c2329ea44733b241afc6f92743d2d392c | [] | no_license | junTaniguchi/python | 232fc43b8650b4168264120fba1b0f686ada042f | 09ca809bee9a96ff0a79e84f827afd9256a1f15a | refs/heads/master | 2021-01-22T05:28:23.793408 | 2017-03-25T12:44:54 | 2017-03-25T12:44:54 | 81,666,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 9 17:15:52 2017
@author: j13-taniguchi
"""
import os
import cv2
import keras
from keras.applications.imagenet_utils import preprocess_input
from keras.backend.tensorflow_backend import set_session
from keras.models import Model
from keras.models import model_from_json
f... | [
"noreply@github.com"
] | noreply@github.com |
56f0e42e930e5b0e72947b0bfbd26a4fa58d4071 | 12e6e0c818de61deabeeac039af16f440572faa6 | /exerc_01_b.py | bd95e79d52c5a9e5997c9cb637ec722340f8be15 | [
"MIT"
] | permissive | rmmariano/final_project_scientific-program | 379682365e899820da9407985b62057441d8d2bc | 95d06ecca39056436b5361a8486ab4449b712742 | refs/heads/master | 2020-05-20T06:03:51.171072 | 2016-09-15T22:52:59 | 2016-09-15T22:52:59 | 68,248,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py |
# Exerc. 01) b)
import matplotlib.pyplot as plt
import numpy as np
# create 200 values between 0 and 1
x = np.random.rand(200)
# do the values between -0.5 and 0.5
x = x - 0.5
print("values of x: ")
print(x)
plt.hist(x)
plt.show()
| [
"rodmariano13@gmail.com"
] | rodmariano13@gmail.com |
ba158f2eb3e6552542d82191472d68f317100f75 | 9b4d7689a8b8dfea5971eb85637b76f52ab54bc6 | /ddMS/wsgi.py | 9b4cdaaeaa8fd5bbc808680487670c17697f2815 | [] | no_license | 007janus/MS | af610ce2633a88c5a5e1d851542d6a50b83d3b29 | f92c73ab6ecb031d11ec659f6b7f1d24a82c1402 | refs/heads/master | 2021-01-13T01:04:15.414333 | 2015-12-24T05:06:21 | 2015-12-24T05:06:21 | 48,355,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for ddMS 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.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ddMS.settings")
from django.core.wsgi im... | [
"347776325@qq.com"
] | 347776325@qq.com |
c57e95274668910124ec3d3e16b4c0c86d1dabc4 | 1584ef7c2cbde323fe43675225a583154a9fe6de | /11_evaluate_det_lable.py | 0c5e29d6e97dbb8589f26077c0f5fc16538f7eef | [] | no_license | haima1998/dataset | 1620fa91c9b16a50c3037825c6836eb8ebd4cc5e | acaf2194f3e5fe59af99d3f1dff79defc2e34bfb | refs/heads/master | 2020-07-14T09:56:14.924563 | 2020-06-15T02:28:55 | 2020-06-15T02:28:55 | 205,295,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,188 | py | import numpy as np
import sys,os
import cv2
from lxml.etree import Element, SubElement, tostring
from xml.dom.minidom import parseString
import json
import xml.etree.ElementTree as ET
ROOT_DIR = '/home/charlie/disk2/dataset/number/data_dataset_voc'
#ROOT_DIR = '/home/charlie/disk2/dataset/number/test_data_dataset... | [
"zhuoyinga@163.com"
] | zhuoyinga@163.com |
97978976bbcc9a6bb1444b2a6c8d5159f0d88aa7 | 198289bcb6bccc9fd53f927db6f0bcdbd7d1e72e | /LoanApprovalSVM.py | db4eb814c49e6bca82959cf97b2f214ca7b396f0 | [] | no_license | arunbaruah/MLexamples | c1da1e19f4b10c0192c31bc5fa913bc5c63b1317 | b74c971ef44d1bda22d0766342fce5cafff1213b | refs/heads/master | 2020-08-24T01:51:02.384516 | 2020-05-07T08:42:25 | 2020-05-07T08:42:25 | 216,743,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | #Build the Support Vector Classifier Model
# Predict the loan approval status based on
# Gender, Marital Status, Credit History, Income and Loan Amount
#import the data
import pandas as pd
#read the data
dataset = pd.read_csv("LoanDataset-1.csv")
#check for null value
dataset.isnull().sum(axis=0)
# Replac... | [
"noreply@github.com"
] | noreply@github.com |
3baad59fe65bdc3700e08030e2fac3f88bc8d20a | f4dedea53630c9cbdc6297ae4a7e2a8195fd7691 | /7 Mathematics/31 Another Game.py | 9fee062c97127af344f06717d0ffe41c0d4a9c6c | [] | no_license | nikkisora/cses_problemset | d089db048444e07e002f131b4323adc9df95b05b | 03160f33e36cdc6d538403357b36bcb015b4dba7 | refs/heads/master | 2023-07-03T10:34:23.487709 | 2021-08-05T21:13:49 | 2021-08-05T21:13:49 | 379,251,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | '''
CSES - Another Game
Time limit: 1.00 s
Memory limit: 512 MB
There are n heaps of coins and two players who move alternately. On each move, a player selects some of the nonempty heaps and removes one coin from each heap. The player who removes the last coin wins the game.
Your task is to find out w... | [
"32413317+nikkisora@users.noreply.github.com"
] | 32413317+nikkisora@users.noreply.github.com |
c3da4bca0ba8fb33dc93aead0dff65d72e62a31a | 30a621afb2a42e4750ee09decb1a82329dd30e1a | /datasets/__init__.py | 3e6321d5f899656136679120a60023baede9eb4b | [] | no_license | hongfel3/car_segmentation | c828e955d965f766f97ebed6f00cc01158b1fe63 | 2e815a27468d4d37fa9ed4477b2246e4072d8fab | refs/heads/master | 2020-03-08T13:12:28.949875 | 2017-09-15T21:49:05 | 2017-09-15T21:49:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from .carvana import CARVANA
__ALL__ = [CARVANA]
| [
"mlagunas94@gmail.com"
] | mlagunas94@gmail.com |
56d130728bdf1a465e5ffc8e16b294e68834aa4c | e397de5c8ec8b6a0973ee4a22c2dc3a11b06c0bc | /bot.py | a46658d76f4de29834061e7bed4fed3b7d107fc4 | [] | no_license | VnyC/tweetbook | e94c4f9e735d00acee86c506ebc8daf73ced4b20 | 8127319c97a27cc556527958749695856f2fa7b6 | refs/heads/main | 2023-05-14T16:08:01.185580 | 2021-06-10T16:29:57 | 2021-06-10T16:29:57 | 375,762,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import tweepy
import time
print("Welcome back Vinay")
consumer_key = 'wGNE1qCPjhjfcOYMWsOik6g0O'
consumer_secret = 'kF1Y0jVAZviLfvODQVmYJJ3NIQvBkVAoStsqajzvclihcejxDk'
key = '1238345000678653952-qE5mHVLjjYE45Qjfqg2bZBvMsjYelq'
secret = 'E61WoMrFfVgb21ovryHrMr7KNx5mtwMgMxRyhlWJoCJca'
auth = tweepy.OAuthHand... | [
"noreply@github.com"
] | noreply@github.com |
4f9371a99c122b5c7f63b63291b8d9fcad56880e | d0e0268584916b8e31dd99a26c693dfe33b24663 | /chatire/urls.py | 133c013062e2b05a3950620aa5c191f54542ded3 | [] | no_license | wesleymutwiri/emailgram | 1e5e31282f4efaf7bbb5708ad0ee7c4439554fb7 | 56cde06197ebcb97d0748085d7adf9bd7f3df81c | refs/heads/master | 2020-03-19T05:00:52.614342 | 2018-06-03T19:45:06 | 2018-06-03T19:45:06 | 135,891,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """chatire URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"wesleymochiemo@gmail.com"
] | wesleymochiemo@gmail.com |
72ba460bc33d2377356cfe0aa0cd91894117102f | 20b7df94a756200fc38853b9897b37dfbfd27d77 | /src/hdiutils/HDIimport/imzml_reader.py | 8659b95c3db5eab2b798007e7d0652a625b36944 | [
"MIT"
] | permissive | JoshuaHess12/hdi-utils | 6cbb8f84a3d7bb6455f55499f85a8f6ea07dea00 | 2b2923e74391eccf5963b161d5fc302ac6b214f3 | refs/heads/main | 2023-06-24T15:38:36.183314 | 2021-07-14T20:47:31 | 2021-07-14T20:47:31 | 361,567,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,929 | py | # Module for imzML parsing of imaging mass spectrometry (IMS) data
# Developer: Joshua M. Hess, BSc
# Developed at the Vaccine & Immunotherapy Center, Mass. General Hospital
# Import external modules
from pathlib import Path
import os
from pyimzml.ImzMLParser import getionimage
from pyimzml.ImzMLParser import ImzMLPar... | [
"joshmhess12@gmail.com"
] | joshmhess12@gmail.com |
46d412c1bb1b2739c159e119a2dbbb4235dcc3f3 | 2d064be157ce2ec9a37aef53c3d50c0f57027a7c | /code_monkey/node/assignment.py | 631023e32ff654bedb7bce1ab68a02459624b366 | [] | no_license | davidwallacejackson/code_monkey | 4cd447555ffaf4ed31f64b2c45db4a891f095804 | 8aae3dfb2cc78e52a1aceda583ec70763eb3ae53 | refs/heads/master | 2021-05-29T10:27:55.915608 | 2015-09-20T05:34:46 | 2015-09-20T05:34:46 | 42,385,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,506 | py | from ast import literal_eval
from code_monkey.change import VariableChangeGenerator
from code_monkey.node.source import SourceNode
from code_monkey.utils import (
absolute_index_to_line_column,
find_termination)
class AssignmentNode(SourceNode):
'''Node representing a variable assignment inside Python sou... | [
"altmail@jackson-wallace.net"
] | altmail@jackson-wallace.net |
7b5a8df56a92afdaa085b6dd78e03a066d5dcbf0 | 997c3b34d65105cb3e02cb427344637557f35d3e | /mecanografia/version orientada a objetos/data/clock.py | 0ffbd8210a98953cf3fd0ae95ee7f135b858be14 | [] | no_license | TomiProgramm/telegramconaku | 7db34d510937f4e31937b2aa1fd12e689231209f | b28b4c5e07c1b0c532ae875b08c16f3fcae00296 | refs/heads/main | 2023-03-07T04:39:31.948411 | 2021-02-16T17:23:32 | 2021-02-16T17:23:32 | 338,463,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from datetime import datetime
from math import floor
from .config import *
class Clock():
def __init__(self):
self.time = TIME
self.start = int()
self.end = int()
def start_count(self):
self.start = datetime.now()
def update(self):
difference = datetime.now() - se... | [
"tomi_leiva1234@hotmail.com"
] | tomi_leiva1234@hotmail.com |
85cbb1571c577c9e96a89e14e876ecbdc9d02336 | 649f0e0593219ea8c4fe932c6be8457e2898011b | /data_split_impute.py | 55d9643b0c9b032e7872c7855aa1ea37bfd2a415 | [] | no_license | Xiaoting05/ML-final-project | 83a5c2c8bdbabea4d17ef7f51c8d93d65ab1060e | 7235afa84a66f61d1143bb6e4aaa1670dccdbfd6 | refs/heads/main | 2023-05-13T12:24:13.168085 | 2021-06-04T05:00:32 | 2021-06-04T05:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import pylab as pl
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.pipeline import Pipeline
from sklearn import metrics
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import Rando... | [
"sunxiaot666@163.com"
] | sunxiaot666@163.com |
c34c133b43595f122a6f0a44e7439e75a1ea200c | b5a5daf6f3312b25ad8899dd46c1f3a1c3d83295 | /src/chime_dash/app/components/container.py | ec606b7086bf9566a22c8cd567509091c2510f09 | [
"MIT"
] | permissive | quinn-dougherty/chime | ed4a8e8f300c95793622645e7ff59ebb6436ab7a | 76a4a5751a084e6d0167f10ff1bd0ad06092bafc | refs/heads/master | 2021-03-26T21:11:44.602107 | 2020-03-28T15:25:52 | 2020-03-28T15:25:52 | 247,750,339 | 0 | 0 | MIT | 2020-03-16T15:41:29 | 2020-03-16T15:41:29 | null | UTF-8 | Python | false | false | 1,728 | py | """Initializes the dash html
"""
from collections import OrderedDict
import dash_bootstrap_components as dbc
from chime_dash.app.components.base import Component, HTMLComponentError
from chime_dash.app.components.content import Content
from chime_dash.app.components.sidebar import Sidebar
from penn_chime.models impor... | [
"eric@smyth.app"
] | eric@smyth.app |
1ba26800a9ca397933e9387e3d361639a6d795ab | 3376d59bb048943970d9ab13c255e558317329bc | /iocage/cli/list.py | 9086404b9a516b2baa0f29a0f48cf249f32bb862 | [
"BSD-2-Clause"
] | permissive | jungle-boogie/iocage | 69aeca238d3e80ed18b0517ba6ea6b0004c70e9b | 6175e93409cfb0db1afef8daf15993d43c9293b7 | refs/heads/master | 2021-01-11T22:35:17.480965 | 2017-01-13T23:13:39 | 2017-01-13T23:13:39 | 78,992,068 | 0 | 0 | null | 2017-01-15T03:20:46 | 2017-01-15T03:20:46 | null | UTF-8 | Python | false | false | 897 | py | """
List module for the cli.
"""
import click
from iocage.lib.ioc_list import IOCList
__cmdname__ = "list_cmd"
@click.command(name="list", help="List a specified dataset type")
@click.option("--release", "--base", "-r", "-b", "dataset_type",
flag_value="base", help="List all bases.")
@click.option("--... | [
"brandonschneider89@gmail.com"
] | brandonschneider89@gmail.com |
b950ba242ff0b1513e26655c11ccb47456c94b10 | 7fc9a1d1c66922ea8389a55a807633c1d5c6eeb8 | /bin/django-admin | 6d809e3c62cafc21b3413c656774336d3682fdb0 | [] | no_license | Ibtisam-a/Web-services-and-web-data | 84898758f7a0791b0a8d2092e7174d7a6861398e | 2f3de6fba9f2e92822b8a6cf831193e611218a33 | refs/heads/master | 2021-04-08T00:32:55.073909 | 2020-08-14T08:59:20 | 2020-08-14T08:59:20 | 248,720,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | #!/home/cserv1_a/soc_msc/ml18ikfa/courseworkK/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"noreply@github.com"
] | noreply@github.com | |
e957ea449283848311d7d2e96ec5d74a7c796e20 | 6f23fadd1a5071d4c211802de620784740045443 | /presentation/part2/code/MultLayer.py | a5b4032487a45de97275b89ef12d3e55bc0bdcf7 | [] | no_license | abhijat01/deepnn4se | 35fa369e0226d6f3712760d13e8510156864cccb | f863ee573f52c0526a15a21220fdc41a3f2b4a40 | refs/heads/master | 2023-08-15T14:01:24.093712 | 2021-10-05T13:04:43 | 2021-10-05T13:04:43 | 287,421,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | class MultiplicationLayer1D:
def __init__(self):
self.cache = {}
def forward(self, x, w):
self.cache['x'] = x
self.cache['w'] = w
return w * x
def backprop(self, incoming_grad):
x_grad = self.cache['w']
w_grad = self.cache['x']
x_grad *= incoming_gra... | [
"abhijat.vatsyayan@gmail.com"
] | abhijat.vatsyayan@gmail.com |
102678c00a5a71158d91b82481969944b9ac7f02 | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re2_test_file/regexlib_8007.py | 8f321fc6b1879f147d7566e9824b54c9f43cfb25 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # 8007
# ^[\.\wæøå-]+@([a-zæøå0-9]+([\.-]{0,1}[a-zæøå0-9]+|[a-zæøå0-9]?))+\.[a-z]{2,6}$
# EXPONENT
# nums:5
# EXPONENT AttackString:".@"+"a"*16+"!1 __NQ"
import re2 as re
from time import perf_counter
regex = """^[\.\wæøå-]+@([a-zæø&... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
5cefd90a4c04739c5b4ed617546cd65496b62ca5 | 8106a563f5e52c84483736d7f8331818030c2eda | /dz3/5.py | 6d5b299701d740afaffe916286cb776faf05cdf1 | [] | no_license | romanfffg/vsu_programming | 7340f75c473df8bb33312ca55dc0974abd98f644 | 6967df6b062f9f42798738b3333c46a5c6a86f9c | refs/heads/master | 2022-12-12T11:40:04.380911 | 2020-09-17T20:06:45 | 2020-09-17T20:06:45 | 296,305,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | a = int(input())
lst = []
while a:
lst.append(int(a))
a = input()
print(sum(lst) / len(lst))
| [
"noreply@github.com"
] | noreply@github.com |
186ba64144442a69bc12003089f9b8d7fd1d387e | 2e57d94047c47a2c7d8b0cd9bdedce78cfc9e9a3 | /pretraining_and_competitors/segmentation/Unet_noskips.py | 9efe61f295bfdc090590e69dfcdbd2921f1e1186 | [] | no_license | PollastriFederico/skin_lesion_segmentation_ensemble | fd1e0ec9b90a8821321416947002dd9c30535957 | ebde6f8191af556fd31737a38cb0d42cb3372492 | refs/heads/master | 2020-06-07T23:15:53.230445 | 2019-06-21T14:50:19 | 2019-06-21T14:50:19 | 193,113,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import torch
import torch.nn.functional as F
from torch import nn
from utils import initialize_weights
class _EncoderBlock(nn.Module):
def __init__(self, in_channels, out_channels, dropout=False):
super(_EncoderBlock, self).__init__()
layers = [
nn.Conv2d(in_channels, out_channels, ke... | [
"federico.pollastri@unimore.it"
] | federico.pollastri@unimore.it |
4b4a50988580ded53a3099b5bf1d46c08ccf1474 | a88ceaf127ad66c0c419684a65a3eaa68bdac807 | /c2b.py | cc116b67953e038a5e21b1377d9e29ebdcdf94a7 | [
"MIT"
] | permissive | EvansKaranja/darajaApi- | 54631586c3a472af1a34ff8163c0460840575adc | 402d0fa5949b81f4273908762af8141a00d2277d | refs/heads/master | 2020-07-11T21:50:41.977044 | 2019-08-27T12:46:02 | 2019-08-27T12:46:02 | 204,650,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | import requests
import keys
from keys import get_access_token
def register_url():
access_token = get_access_token()
api_url = "https://sandbox.safaricom.co.ke/mpesa/c2b/v1/registerurl"
headers = {"Authorization": "Bearer %s" % access_token}
request = {
"ShortCode": keys.shortcode,
"Res... | [
"evanskndungu@gmail.com"
] | evanskndungu@gmail.com |
c9ecef2696dc4e74fc257405b04245662007e250 | 7c6b0694b88d2ab29744f8f8b606879409811dc3 | /backend/vehicle/migrations/0001_initial.py | b434c4cf712b1260cbe8a81b3b715ebbb2110958 | [] | no_license | crowdbotics-apps/mobile-3777-18387 | 85192498f9970a7fc9d58c6d105271bd6b481515 | 1870ba38a9a48d61ae9d140f048149ad7f5e65db | refs/heads/master | 2022-11-10T06:07:31.811885 | 2020-06-24T09:05:40 | 2020-06-24T09:05:40 | 274,621,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | # Generated by Django 2.2.13 on 2020-06-24 08:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("taxi_profile", "0001_initial"),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8802c5f5b5fb018edabed52a443a6732d2cdba69 | a2531d7b363b7bf35f3f4254fa0e34722b858321 | /experiment/experiment_code/mnist_nag.py | 350a3f7cbb961e5e4876ddbb1ca6aeaa6f6c6c46 | [] | no_license | sgflower66/SPI-Optimizer | 08c7fc110ef3ff6299de5c1cc3a8f218840b5b05 | 1cece09f350bbbeb1105e209c20292dad77e1c2a | refs/heads/master | 2020-04-29T08:04:26.039221 | 2019-03-16T14:02:48 | 2019-03-16T14:02:48 | 175,973,850 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,745 | py | import torch
import torch.nn as nn
import torchvision.datasets as dsets
import torchvision.transforms as transforms
from torch.autograd import Variable
from sgd import SGD
import os
from utils import Bar, Logger, AverageMeter, accuracy, mkdir_p, savefig
import torch.nn.functional as F
import random
import numpy as np
... | [
"sgflower66@gmail.com"
] | sgflower66@gmail.com |
60c27b9b2d5592e9cfd29c966e30307bdf9dd261 | 6a591980ff8b85801163880383e4ff6b83b2375f | /testchild.py | 31138eb006398a68710ee2091ba4dd482c99a1e5 | [] | no_license | crosseyedlion/testrepo | 2f37bf4baaca9a3708faa112feabec3da6d99c63 | 0ee506da10ea96d8a8f895282b7345a3fd96e3b0 | refs/heads/main | 2023-06-21T17:55:46.413060 | 2021-07-21T17:08:13 | 2021-07-21T17:08:13 | 388,185,814 | 0 | 0 | null | 2021-07-21T17:08:14 | 2021-07-21T16:50:45 | Python | UTF-8 | Python | false | false | 66 | py | ## Adding a new file in childbranch
print ("inside child branch")
| [
"noreply@github.com"
] | noreply@github.com |
3de0defe6015bb5872be5677642e3b6e1f8bfd76 | 22013212df1e21f29d0180f2109841177a2a8791 | /basic_addons/planilla/models/contabilidad/planilla_detalle_linea_nomina.py | 29af5e120796aae5ad9f32c01c818921cea7571c | [] | no_license | butagreeza/DTDATA_A | f965236c0d7faf0ec4082d27e2a0ff8e7dafe1c6 | 90b09f89714349a3f26de671a440a979aeebd54c | refs/heads/master | 2023-06-18T00:41:02.521432 | 2021-06-14T21:17:06 | 2021-06-14T21:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError
from odoo.addons.base.res.res_request import referenceable_models
from datetime import datetime
class PlanillaDetalleLineaNomina(models.Model):
_name = 'planilla.detalle.linea.nomina'
_auto = False
fe... | [
"lmillan131@gmail.com"
] | lmillan131@gmail.com |
0aa3c239919591a7da1a732bb8b313608a8b22dc | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/documentdb/v20210701preview/sql_resource_sql_role_definition.py | 3952f82004d3f80c5a9692dd2d9b3041ef281f9e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,723 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
05eefbd6347b2717c3294d3bacc4001917e74fa8 | a3626b65e8881da7e5b74fa1bb433478b22e4587 | /hacktj8/manage.py | 46c7f9291d376b65943c51442aef5e0f0dba1d32 | [] | no_license | saisree27/hacktj-8.0-project | ae779dfb6a45b394cdd18973f3205fb694294496 | ea8f99c3b45574d7741a2347b56bf0befbb909dc | refs/heads/main | 2023-04-09T20:13:52.938541 | 2021-04-11T19:42:22 | 2021-04-11T19:42:22 | 356,609,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | 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', 'hacktj8.settings')
try:
from django.core.management import execute_from_command_line
... | [
"goldenlele10@gmail.com"
] | goldenlele10@gmail.com |
e8b54a4cad8e629c9f2ec0a179d49743ddc5deb5 | c81a68fd49fd3f41648a54d467b655a3c3ba1a00 | /activity/page/activity.py | c4c18e48701ce1229bb66626e228c50e456c44d0 | [] | no_license | yellowsea19/join | e505a8d1f9445432bce56c9372a17c576adbae44 | 878ac9585778f9a6261ecc7ae1d7e612d191ac74 | refs/heads/master | 2020-03-26T10:48:14.289820 | 2018-08-15T06:48:00 | 2018-08-15T06:48:00 | 144,816,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,282 | py | from page.login import loginPage,url
# from selenium import webdriver
# import requests
from selenium.webdriver.common.keys import Keys
import time,datetime
# name_td=datetime.datetime.strftime(datetime.datetime.now(),'%Y-%m-%d %H:%M')
# td1=datetime.timedelta(hours=1)
# td2=datetime.timedelta(hours=2)
# td3=datetime.... | [
"314221719@qq.com"
] | 314221719@qq.com |
d3a02d8a0d5dc8a84e62e77c3a8635fac1e9942f | ce105dfbcb2acb78ba19f3410d87249a75eecbd9 | /FastGCN/models.py | 5bde38cf93ef28040331c704a0f9d3b2ab2abf28 | [
"MIT"
] | permissive | CEfanmin/DataMiningProjects | 8209670f65332681d0de39ba6e702077a7ab4602 | b6375f542c68c0001ae2971dd7e8046a0b4afc7a | refs/heads/master | 2021-04-06T02:05:52.868605 | 2020-02-29T03:41:33 | 2020-02-29T03:41:33 | 124,988,979 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,271 | py | from layers import *
from metrics import *
flags = tf.app.flags
FLAGS = flags.FLAGS
class Model(object):
def __init__(self, **kwargs):
allowed_kwargs = {'name', 'logging'}
for kwarg in kwargs.keys():
assert kwarg in allowed_kwargs, 'Invalid keyword argument: ' + kwarg
name = k... | [
"fanminUESTC2015@163.com"
] | fanminUESTC2015@163.com |
7959884d04bc3ce0e004bf3583549026b6fc1b1a | 3a9c1bc10588073920d55f72be5fbbbd3781cf9e | /word_count_python/word_count_reducer.py | 5378d6844129a68307411949c3b6a5875c627786 | [] | no_license | adcohen-tech/tech_challenge | 3224ff9e2278ebaca33361527cb313cc9d8f8b0f | 2d6bfe541998149cf056022ad2b3e626cf7bc8b9 | refs/heads/master | 2016-09-05T12:53:20.981228 | 2014-11-25T16:51:12 | 2014-11-25T16:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | #!/usr/bin/env python
import sys
if __name__ == '__main__':
current_word = None
key_count = 0
for line in sys.stdin:
key,value = line.strip().split("\t")
try:
record_count = int(value)
except ValueError:
continue #?!?
if key != current_wor... | [
"adcohen@L-SDV-00444151.corp.ebay.com"
] | adcohen@L-SDV-00444151.corp.ebay.com |
5488b240e57097bb3539fc1125cba122aa285455 | b0cd6f73c3a2c4bf9d30cf2db06de937415f6ae5 | /loadData.py | 61101777354833673295041ac9fedaff8e5fe713 | [] | no_license | BinbinBian/TextualEntailment | 9d76b8c4ddb8c6f37172f12844646f736fb68434 | a81980e038762d325330d6852d17e9a32800e1b9 | refs/heads/master | 2021-01-18T03:55:47.090212 | 2015-12-08T14:07:48 | 2015-12-08T14:07:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,457 | py | import cPickle
import gzip
import os
import sys
sys.setrecursionlimit(6000)
import time
import numpy
import theano
import theano.tensor as T
import theano.sandbox.neighbours as TSN
from logistic_sgd import LogisticRegression
from WPDefined import ConvFoldPoolLayer, dropout_from_layer, shared_dataset, repeat_whole_mat... | [
"mr.yinwenpeng@gmail.com"
] | mr.yinwenpeng@gmail.com |
61eec9209783882bdf2ed14473c988499d502c47 | 489b07587ac1ce7956e62295b0c2fa5fed0a79de | /testing.py | dd0ed56da4ca7134c6ad62baf659446bea1c809a | [] | no_license | rlhjansen/Paper_netlists | daa8c8a8ac849e8e8f04018f8670ead05e1f5535 | 34e05a6ceb15bb64d764f6b2f0c20f5af595a473 | refs/heads/master | 2021-06-06T11:49:32.605626 | 2019-11-05T10:34:58 | 2019-11-05T10:34:58 | 124,765,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py |
import os
import code.algorithms.simplyX as simple
def count_slash(str):
return sum([c=='/' for c in str])
for ind, elem in enumerate(os.walk('./results')):
if count_slash(elem[0]) == 10: # these give datafiles
try:
datafile = os.path.join(elem[0], elem[2][0])
... | [
"rlh.jansen@outlook.com"
] | rlh.jansen@outlook.com |
00b3db52cbf83200b0f4fb99b314fb59143ff2ae | fcee5f9afb4444c1ba2b81b672e78eed3fb721c4 | /make_voc_list.py | 97f929dc083e8c852934981f624f23da4c75a5c5 | [] | no_license | Abandon-ht/k210_yolov2 | 2c90ac8a599e8f096801134af46daba6305da921 | 0ff4d4dc84a8d3f53e03ded10159381774fe7d55 | refs/heads/main | 2023-07-18T20:18:07.865204 | 2021-09-22T10:49:57 | 2021-09-22T10:49:57 | 408,284,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | import os
import re
import numpy as np
import sys
import argparse
# image_txt_path = '/home/ncy/PycharmProjects/VOCdevkit/VOC2012/ImageSets/Main/train.txt'
def main(train_file: str):
image_path_list = np.loadtxt(train_file, dtype=str)
if not os.path.exists('data'):
os.makedirs('data')
np.savet... | [
"noreply@github.com"
] | noreply@github.com |
45e3cc0a6ee8e036392a8bceaabbd1267b9d866e | 064b0a858f5d03dcba2bcdfe763fa46c0e507770 | /mas_common_robotics/mcr_navigation/mcr_navigation_tools/ros/scripts/navigation_goals_as_marker | 738c49dad3386c280a1594b87450d609af1a4e3b | [] | no_license | deebuls/robocup-at-work | ff7ebff2453d768fa4a118b179e4366ea1bc99d5 | f67f841dcbadfe4ba3c6b13eef6a939fe7d52c0b | refs/heads/brazil-2014 | 2020-04-06T06:53:23.497667 | 2014-08-12T11:12:05 | 2014-08-12T11:12:05 | 43,391,473 | 0 | 0 | null | 2015-09-29T20:08:39 | 2015-09-29T20:08:39 | null | UTF-8 | Python | false | false | 2,442 | #!/usr/bin/python
import rospy
import tf
from visualization_msgs.msg import *
if (__name__ == "__main__"):
rospy.init_node('mcr_navigation_goals_as_marker', anonymous=True)
location_publisher = rospy.Publisher("/visualization_marker_array", MarkerArray)
while not rospy.is_shutdown():
rospy.sleep(... | [
"frederik.hegger@h-brs.de"
] | frederik.hegger@h-brs.de | |
6350b28ce677c4102b1d0be5c87748350f2aa9e6 | c58bfb0d7a293cc471f2921db57b00d5c3e56bac | /Backups/Old-DIKB-Micropublication/scripts/query-DIKB-DDIs.py | 4aa6f9c61687c0fefd78be1965e8e28e369068b3 | [
"Apache-2.0"
] | permissive | dbmi-pitt/DIKB-Micropublication | 0a2f29b704c269d2ccfe091f8faff1b2374d626d | 0fa264903414ac0b552d363d139746ead198f06a | refs/heads/master | 2020-12-24T16:32:04.206847 | 2020-01-22T18:33:58 | 2020-01-22T18:33:58 | 22,527,994 | 6 | 2 | null | 2015-07-15T14:39:09 | 2014-08-01T20:51:07 | Python | UTF-8 | Python | false | false | 6,141 | py | ## query-DIKB-DDIs.py
##
## Simple Python script to query http://dbmi-icode-01.dbmi.pitt.edu:2020/sparql for DIKB observed DDIs"
## No extra libraries required.
# Authors: Richard D Boyce, Yifan Ning
#
# August 2014
#
## This code is licensed under Apache License Version 2.0, January
## 2004. Please see the license ... | [
"ningyifan1212@163.com"
] | ningyifan1212@163.com |
d52327859a2773b746a3751f55e4a4b9a7224608 | 5f2b22d4ffec7fc1a4e40932acac30256f63d812 | /tensorflow-study/AI_Drive_3D_Car/Driving_3D_Car/env.py | e5bf1bf7f0a584e5d2feb28a0bfb8734e741b3ea | [] | no_license | Thpffcj/Python-Learning | 45734dd31e4d8d047eec5c5d26309bc7449bfd0d | 5dacac6d33fcb7c034ecf5be58d02f506fd1d6ad | refs/heads/master | 2023-08-04T21:02:36.984616 | 2021-09-21T01:30:04 | 2021-09-21T01:30:04 | 111,358,872 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,074 | py | # -*- coding: UTF-8 -*-
# Created by thpffcj on 2019-02-13.
"""
配置 Neon Race(霓虹赛车)的游戏环境,以方便我们训练
"""
import cv2
import time
import numpy as np
import logging
import gym
from gym import spaces
from gym.spaces.box import Box
import universe
from universe import vectorized
from universe import spaces as vnc_spaces
from u... | [
"1441732331@qq.com"
] | 1441732331@qq.com |
d731866885db9fe81a9f2fb738a972218db51623 | 00e21a29e078f5216e66a71f591c4b1a7b6465b9 | /Level.1/Arrange String in Descending.py | 22a2e702010fc14f902458aba2e033f04f755da0 | [] | no_license | minji-OH/Python_Programmers_Solution | 6bdd0d251f883ab03e8deb990656d17757178de2 | 395b5459e026bfb0449383840d3bf3b17eb38754 | refs/heads/master | 2021-05-27T04:11:50.439360 | 2020-10-13T06:27:10 | 2020-10-13T06:27:10 | 254,211,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | def solution(s):
answer = ''
#대소문자 구분하기
lower = []
upper = []
for i in range(len(s)):
if s[i] >='a' and s[i] <='z':
lower.append(s[i])
else:
upper.append(s[i])
#각각 정렬
lower.sort(reverse=True)
upper.sort(reverse=True)
#조인
answer = ''.joi... | [
"noreply@github.com"
] | noreply@github.com |
6aefd1ec8f70dea375cd31b19055bc75bd9b5da9 | 51cfc2ff8b2bf98f6abacf6f3bb4bd19bf88fd81 | /user/migrations/0003_auto_20191230_2314.py | 69dfae1e43f64df86c6fd96a42849e1f26f7dd6d | [] | no_license | AndreiiZh/cnip | f1cac9e0f84d409acf8bb682e270608364921137 | 4dd31b507d94f42f1bb3a2258166add938ca8af8 | refs/heads/master | 2022-12-12T13:18:03.728428 | 2020-03-13T11:49:42 | 2020-03-13T11:49:42 | 227,101,711 | 0 | 0 | null | 2022-04-22T23:07:27 | 2019-12-10T11:22:34 | HTML | UTF-8 | Python | false | false | 451 | py | # Generated by Django 2.2.8 on 2019-12-30 21:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0002_auto_20191230_2249'),
]
operations = [
migrations.AlterField(
model_name='listservice',
name='price',
... | [
"you@example.com"
] | you@example.com |
54361217ef28c9e0c8e6a9fccca0f48c5ea11222 | aedbc5b8cb95ba346137d21a636a37f3b24e76d7 | /restaurants/views.py | 9d6e98760ea565ca3361d1780cb3e35504f1d603 | [] | no_license | jayabhavana342/Learning_Django | 39df268612826c656e56eb2333516a92f38adfae | fc2a18f3920c23ed49d58cad40ffa84fb67154f9 | refs/heads/master | 2021-09-04T07:01:18.064031 | 2018-01-16T23:24:30 | 2018-01-16T23:24:30 | 116,726,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import ListView, DetailView, CreateView, UpdateView
from .forms import RestaurantLocationCreateForm
from .models import RestaurantLocation
class RestaurantListView(LoginRequiredMixin, ListView):
def get_queryset(self):
re... | [
"j_k201@txstate.edu"
] | j_k201@txstate.edu |
95485ccb37d5016b6bc455ec89bb27e6274ca8a0 | 049a40bd4e44636fe13656a815daaca860a98db1 | /forms.py | 87f85f44c8a2d2a6bb51e30d5cc6a0751b9f8ea3 | [] | no_license | heggy231/wdi-capstone-project-4-zom | ccbce32015838076fed969844ff2ec906d2f6b38 | ffe957ae44311d91c35888a3644d4fe5c4aa1db0 | refs/heads/master | 2023-02-06T11:01:55.088763 | 2020-04-15T01:22:03 | 2020-04-15T01:22:03 | 178,492,782 | 3 | 0 | null | 2023-02-02T05:44:18 | 2019-03-30T00:38:00 | HTML | UTF-8 | Python | false | false | 1,955 | py | # forms.py defines class to represent our form. Add the field we need which will eventually be used with a form builder on the front end https://git.generalassemb.ly/sf-wdi-51/Flask-Models
# import the tools, fields we need
from flask_wtf import FlaskForm as Form
# from models import User
from wtforms import StringF... | [
"heggyy@gmail.com"
] | heggyy@gmail.com |
523a8bd5d2d8793658e493383d612fb1445cc0eb | 0ce955a125f729b6dff17c4a507162c8b86e4812 | /flip_zero_max_sum.py | 07ec8fcee1e2cc5029e710f6358e8228716bd30b | [] | no_license | changediyasunny/Challenges | f1b1f0fda490c53bfe8de4648c29b501ec7180a1 | df2ce669049ca040631dc6cc05cf5b5e8d2cc376 | refs/heads/master | 2021-01-10T13:29:53.137452 | 2019-10-10T05:19:39 | 2019-10-10T05:19:39 | 52,062,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py |
"""
Sliding window Problem...
"""
def flip(list1, n):
wL =0
wR = 0
Lindex = 0
window = 0
zero_cnt = 0
while wR < len(list1):
# Widen window if zero-count is < given flips...
if zero_cnt <= n:
if list1[wR] == 0:
zero_cnt = zero_cnt + 1
wR = wR + 1
# zero-cnt is more...
if zer... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
beeaa747f14ea060a718efff86b3fd69fa3fa66b | 2275e9c3147a5284f36c1fc2da7a8dcf53cc2383 | /params/blend3.py | 627fbb0b7e708598d26ec087e6101ea71394c352 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | puttak/nrel-efr | cb39197c362569922e69d65b3e7abf96e42ec992 | 2b6ebf1ce6136d13dfff741e8ff7c2b50ed65e85 | refs/heads/master | 2022-11-02T14:35:14.617027 | 2020-06-16T21:11:00 | 2020-06-16T21:11:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | """
Blend3 feedstock parameters.
ultimate_analysis : list
Elements listed as [C, H, O, N, S, ash, moisture]
chemical_analysis : dict
Biomass composition determined from chemical analysis data. These values
are used for the pyrolysis kinetics. Values are given as mass fraction (-)
on dry ash-free basis... | [
"6828967+wigging@users.noreply.github.com"
] | 6828967+wigging@users.noreply.github.com |
d67459851bcc2e99ac347e2321788fbb44de2d73 | 61e23efe2d623da80d59fd98f62d98620512d0ae | /analyze_seqresults.py | 28dd2e3b284b04f80b64684b1e99753b0f338d1b | [] | no_license | sara-kassani/Embryo-Stage-Onset-Detection | 8e61634e47e72b538a35d73d81e5833eed91e633 | 98f7d327e4ca4d032258495762b7a52410f7f1f8 | refs/heads/main | 2023-08-06T00:16:55.829341 | 2021-09-29T14:27:14 | 2021-09-29T14:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | import numpy as np
import pandas as pd
import argparse
import math
parser = argparse.ArgumentParser()
parser.add_argument("--train_name", type=str, help="Training/Experiment name")
parser.add_argument("--suffix", type=str, help="Folder Suffix")
parser.add_argument("--cross_val", type=bool, help="Whether 5-fold cross-... | [
"llockhar@sfu.ca"
] | llockhar@sfu.ca |
a31c303649e88c74d60cf8c7bb1455f75042f804 | 5cf982f0d16c4084b8c0b519a4856e4f5160e70d | /accountapp/forms.py | 002e95b59f712e8b73ea36fbc6b63657f74024be | [] | no_license | minzyk/Django_1 | 4b5ab942a45a61c368466b91f54af2acaac5cb63 | 1200db8a638ce5332e82c7785b483155f0d855a4 | refs/heads/master | 2023-06-07T18:31:57.527188 | 2021-07-01T05:44:38 | 2021-07-01T05:44:38 | 373,013,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from django.contrib.auth.forms import UserCreationForm
class AccountUpdateForm(UserCreationForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['username'].disabled = True # username 을 비활성화 시킨것 (정보수정 할 경우에 ID 는 수정하지 못하도록) - disabled를 true로 바꿔주면 수정을 해도 서버에 반... | [
"minji121534@gmail.com"
] | minji121534@gmail.com |
077b5149d9a43b8f848cf4db9db2caa0bca1888a | d15ed15aa3df11ce3bc5a007d65dc90ad7b7471d | /manage.py | a271f08565de2725fd8a4d22c732429e233aa742 | [] | no_license | dansgithubuser/dansMap | 95947005c74f975355858f4b059b8913410814e9 | 48e035b1d6c308e83d5ddb5884475bfb88fb3eae | refs/heads/master | 2020-03-17T02:18:56.329812 | 2018-06-24T15:34:22 | 2018-06-24T15:34:22 | 133,185,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dansmap.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"dansonlinepresence@gmail.com"
] | dansonlinepresence@gmail.com |
c355599110224238645664085a3d8c5b3a4781f3 | ccc55c7a05cd115e029f04cd577b11b70d0d3fdc | /Chapter 4/D4 TI C/Nurul Kamila (1184038)/Teori/7.py | f5bf61d9618b21cc7d772c42d310445c76f0ab7a | [] | no_license | ariqrafikusumah/Tugas | 6019be8c3219c930730d29076efd4494a3c70c79 | 6903117a91ad3002033c6d0297b4d1d06903088d | refs/heads/master | 2020-09-15T19:51:29.066553 | 2020-02-29T12:08:36 | 2020-02-29T12:08:36 | 216,065,279 | 0 | 0 | null | 2019-10-18T16:28:46 | 2019-10-18T16:28:45 | null | UTF-8 | Python | false | false | 141 | py | #Menulis File CSV dengan Fungsi to csv dengan Library Pandas
import pandas
df = pandas.read_csv('praktikum.csv')
df.to_csv('praktikum4.csv') | [
"nurulkamila1899@gmail.com"
] | nurulkamila1899@gmail.com |
001a7c30b6353f7f46ae2652312694e726f9a87e | 637b9d443b84039cb3943ec186eb7e4872258c1e | /setup.py | d47f28936baf28bc9b27dc28fcb15c12dee19616 | [
"MIT"
] | permissive | ncod3/vprimer | d71a0c97c0a8583d57fd07e19dac01d82ecdab01 | 403151788e2df5138509cb444dd3eeebe4a78f1a | refs/heads/main | 2023-07-08T18:54:17.950399 | 2023-07-01T01:06:27 | 2023-07-01T01:06:27 | 278,553,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="vprimer",
version="1.0.7",
author="satoshi-natsume",
author_email="s-natsume@ibrc.or.jp",
description="V-primer",
long_description=long_description,
long_description_content_type="... | [
"ncod3@sunny-side-st.com"
] | ncod3@sunny-side-st.com |
4decefeabc83feb66925607a6c3965c9dbc63df9 | 92cfe7677656056abaec6c6b349546260fbeb895 | /chplot.py | de7ef0630b47f49b1215c3adb579f3c8d9a35384 | [
"MIT"
] | permissive | cheolheil/control_chart | ea11eae0a13587ffd9bebd2d232d141699129a77 | adce7c5d6af27aab8053dba15518e531846434e5 | refs/heads/main | 2023-08-30T08:21:17.593741 | 2021-11-15T16:32:41 | 2021-11-15T16:32:41 | 428,305,384 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | import matplotlib.pyplot as plt
class ccplot:
# this class accepts an instance of schewart_chart
def __init__(self, chart, X_test, figsize=(18, 6)):
self.chart_name = chart.stat.__repr__()
self.figsize = figsize
self.fig, self.ax = plt.subplots(figsize=self.figsize)
se... | [
"noreply@github.com"
] | noreply@github.com |
60048c313e05bbc5f0b93f2fa2ea0123d4309b37 | e68bb9b3f1befb0116967981783d1bc1f8ce1eef | /project-addons/lot_states/wizard/mrp_consume_quarantine.py | 37d40eb405b3b559b0f11ceb44d8db656e9e1276 | [] | no_license | maurolguin1/PXGO_00064_2014_PHA | a0732e3c59a5a606b37f2a860642ba6550a3d099 | 50d341a0fb69529160e59c0ceb03fe6264ef7ae1 | refs/heads/master | 2020-03-22T16:37:39.396576 | 2015-05-14T08:47:56 | 2015-05-14T08:47:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,540 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Pexego All Rights Reserved
# $Jesús Ventosinos Mayor <jesus@pexego.es>$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affer... | [
"jesus@pexego.es"
] | jesus@pexego.es |
4dc218da7a5113da958b27d32acefa665a10695e | ef79ff6fdc3e2c3e162792c7f56c6c31c12efb9d | /account_makeover/report/aged_partner_balance.py | e5cbd63841fa2a111ad69903e31526e0b5d32ec7 | [] | no_license | 3dfxmadscientist/odoo_isa | dee0197d03b7c9775b71a5e909f591035698c9ed | 898895da18ce78c702e0191cd64d2056559faeab | refs/heads/master | 2020-04-10T09:25:00.743961 | 2014-07-04T07:25:15 | 2014-07-04T07:25:15 | 21,499,414 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"a.stirpe@isa.it"
] | a.stirpe@isa.it |
5886c639f14ce10db24b8b4ca5e7007774e40d9c | 486318571da84691363fa5f090237318c4217dd8 | /tests/unittests/test_models.py | e8b7445f1218055f13d4c0f290532a0ce8219eeb | [] | no_license | klfoulk16/personal_website | f731912a2e67771ca75ba4a83aa1b620efac61fb | 0820b2beaba7bd2fc790dc11de05e1f44a36eca0 | refs/heads/main | 2023-04-18T04:02:52.752460 | 2021-05-05T16:10:09 | 2021-05-05T16:10:09 | 315,940,441 | 10 | 1 | null | 2021-03-11T15:48:21 | 2020-11-25T12:59:32 | Python | UTF-8 | Python | false | false | 2,065 | py | import pytest
from application.database import Posts, BodyImages, Subscribers, Admin
import datetime
def test_posts_model():
"""
GIVEN a Posts model
WHEN a new Post is created
THEN check the h1, header_path, youtube_vid, sample, body, category, and date fields are defined correctly
"""
h1 = "H... | [
"klfoulk16@gmail.com"
] | klfoulk16@gmail.com |
19a69838af72624333f25bcd7754605562b07419 | 1f0c6179a0d755dc7ac2521ea6ab500475239d72 | /transmitter.py | cef4a8bd6ac45862044d2b58792b79be19de57ba | [
"Apache-2.0"
] | permissive | aritrog/sarathi | 7034b9ccad3fc152667e5607778b94f8cc55313c | aeae111405656dc334e366ea42a5a8e2c7b26c5d | refs/heads/master | 2021-08-22T16:45:15.371830 | 2020-07-04T23:08:21 | 2020-07-04T23:08:21 | 202,331,724 | 3 | 1 | Apache-2.0 | 2019-11-16T12:37:52 | 2019-08-14T10:51:56 | Python | UTF-8 | Python | false | false | 1,547 | py | import os ,random,struct,binascii,base64
from nanpy import (ArduinoApi, SerialManager)
from time import sleep
from Crypto import Random
from Crypto.Cipher import AES
import hashlib
class transmit():
def __init__(self,key):
self.bs=AES.block_size
self.key=hashlib.sha256(key.encode()).digest()
def encrypt(self, ... | [
"aritraghosh084@gmail.com"
] | aritraghosh084@gmail.com |
2d1a6eafcbbdf684f1e6ac28f727e3e6a3c14ddd | 783324290a8c23ba03050032ecbf2be13558a536 | /pymethods/algorithms/elliptic_mesh_generation/meshStretch2d.py | 64c0b49286339634048edcb344307f3ca847fa15 | [] | no_license | IFF-0303/pymethods | 4a3a39af00554c2ed5e21528188214049766791f | c8690379dd9ca383cf3257a281094e4851677faa | refs/heads/master | 2023-07-03T21:30:59.695292 | 2020-12-14T03:18:03 | 2020-12-14T03:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | import numpy as np
inner = np.s_[1:-1]
ip1 = np.s_[2:]
im1 = np.s_[0:-2]
def f1Prime(alpha, zeta):
return alpha * np.exp(alpha * zeta) / (np.exp(alpha) - 1)
def f1PrimePrime(alpha, zeta):
return (alpha**2) * np.exp(alpha * zeta) / (np.exp(alpha)-1)
def f2Prime(beta, eta):
return beta * np.exp(beta *... | [
"38807452+hj40@users.noreply.github.com"
] | 38807452+hj40@users.noreply.github.com |
9fe9ea9d09007ef7568122aac18607ee2e1cdc33 | 75212bbbbe9b09e6b920af3fe28d68987e8c4f2f | /Algorithm-Python/Week-2/fibonacci.py | 71cab665dbb9c9d28ed306cc76e2e38d172621b4 | [] | no_license | definito/Algorithm | 001a93c9cf63af1e5867e0bc49769c6d8f8dc8b7 | 31a71a96245ff94c80d1f9435c4512b0bf07f85c | refs/heads/master | 2021-06-10T08:41:58.389782 | 2020-05-27T22:20:24 | 2020-05-27T22:20:24 | 95,305,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import sys
def fibonacci(n):
a = 0
b = 1
if n < 0:
print("Incorrect input")
elif n == 0:
return a
elif n == 1:
return b
else:
for i in range(2,n+1):
c = a + b
a = b
b = c
return b
if __name__ == '__main__... | [
"noreply@github.com"
] | noreply@github.com |
33e5cd4b2657c61467c435a3db9d60da3799993f | 98b8f1b1705f1ad8f36c68166770516f5717d9b1 | /contrib/kmb_search/topk_impl.py | 4a7f66ea0bb53e3bb8bb0055b16148411753f3b4 | [
"MIT"
] | permissive | gauenk/faiss_fork | b4fad9bfe7e027d52cd9f96a2ba00abd9e133245 | f51ffb536f829358bd1907acda89dfc8c1bc4146 | refs/heads/main | 2023-08-27T09:05:10.553656 | 2021-11-12T01:15:10 | 2021-11-12T01:15:10 | 408,296,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,537 | py |
# -- python --
import math
import numpy as np
from einops import rearrange,repeat
from numba import jit,njit,prange
# -- project --
from pyutils import save_image
# -- pytorch --
import torch
import torch.nn.functional as nnF
def pad_first_dim(tensor,pad):
tensor = torch.transpose(tensor,0,-1)
tensor = nn... | [
"kent.gauen@gmail.com"
] | kent.gauen@gmail.com |
2825869abf0d80c2fbadd1499c8068f1d7a3f4cf | a7ee6ca2121c0d6478a631df0b670e3280abb664 | /SConstruct | 7b4598fdea4b4de74adb25997180e2ec55e73df4 | [
"MIT"
] | permissive | Boyquotes/crash-bandicoot-godot | fdf0fcb8ea8289dc0b154e0f49b594ae64c1cfff | 863294fa44936f45748efe364601e8ec65ecc500 | refs/heads/master | 2023-06-14T11:30:33.249550 | 2020-09-03T11:29:46 | 2020-09-03T11:29:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,039 | #!python
import os, subprocess, sys
# Workaround for MinGW. See:
# http://www.scons.org/wiki/LongCmdLinesOnWin32
print("this is cool eh :D")
if (os.name=="nt"):
import subprocess
def mySubProcess(cmdline,env):
#print "SPAWNED : " + cmdline
startupinfo = subprocess.STARTUPINFO()
startup... | [
"nonunknown777@gmail.com"
] | nonunknown777@gmail.com | |
05847e11fb76457486afad1b7417b96292f4bfe7 | 1e9f6e914bdb9ad79f74636eca5e2384a36595c5 | /pyronn/ct_reconstruction/__init__.py | 9843791cf969842ee18375bd3a8a15eb3386b687 | [
"Apache-2.0"
] | permissive | theHamsta/PYRO-NN | 18c1dea96659b44b4def2979b256d21133090840 | c454527c5edebc2cf4f351c6453ba013abf6a701 | refs/heads/master | 2020-07-29T10:30:44.480120 | 2019-09-17T12:38:05 | 2019-09-17T12:38:05 | 209,763,348 | 0 | 0 | Apache-2.0 | 2019-09-20T10:16:07 | 2019-09-20T10:16:06 | null | UTF-8 | Python | false | false | 599 | py | # Copyright [2019] [Christopher Syben, Markus Michen]
#
# 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 ... | [
"christopher.syben@fau.de"
] | christopher.syben@fau.de |
8c40010ee1ea291323b93a24c8d96a24315a25d0 | fa33e457dbf78453f71795fe8e6ed07dbacec1db | /maingui.py | 58a1f2cfca5106e3a12e49d0553fc12cf0bb1cca | [] | no_license | Mountagha/projet-Automate | 91e879862420b21955a279ecccca608a46084c00 | db2336d9639a189b8e3170c4f0ffc2dc497104c1 | refs/heads/master | 2021-01-22T05:24:22.422731 | 2017-03-01T00:58:39 | 2017-03-01T00:58:39 | 81,659,770 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/env python
#! -*- coding:utf-8 -*-
from Automate import Automate
from Tkinter import *
from gui import InterfaceGraphique
#on crée une interface graphique minimale pour récupérer les input des utilisateurs et afficher les automates
#on crée notre fenêtre principale
window = Tk()
interface = InterfaceGrap... | [
"muntaghaba@gmail.com"
] | muntaghaba@gmail.com |
bb205e0d3be5a05f7828eef5c267e833e58a348b | 9c7b2965396867b7d1459fafacd87b0ed14959c3 | /LowerSaxony/06_subset_shps_per_tile.py | 086fa6a524efdbd88d2049a7c1be41e738e581eb | [] | no_license | clejae/forland_repo | 461cd7fcd85615c2d33b0a5985d5d8ee37164032 | 3387eed69fc3a60e1d3a948b12fe23538f0b79da | refs/heads/master | 2023-08-17T06:30:37.571058 | 2023-08-09T08:46:49 | 2023-08-09T08:46:49 | 241,071,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,678 | py | #
# github Repo: https://github.com/clejae
# ------------------------------------------ LOAD PACKAGES ---------------------------------------------------#
import os
import time
import glob
from osgeo import ogr, osr
import joblib
## CJ REPO
import vector
import forland_wrapper
import general
# ---------------------... | [
"clemens.jaenicke.1@hu-berlin.de"
] | clemens.jaenicke.1@hu-berlin.de |
4fab9b6d74e6e9291d5d6b793838630fdaa4ac61 | c901830bafc8035aa28eed8c84ab7255f6afe923 | /unfolding/runCorrectionEnergyFakeTrgCutoff.py | d2acbb8199754ee9b5dce19b21d684302b55d95e | [] | no_license | mfasDa/SubstructureAnalysis | b003882418e0f8eae8188eafaa9b54cec8b3030e | fc365c285a148911fcab96677c653d5140d18d86 | refs/heads/master | 2022-06-13T04:14:15.877728 | 2022-05-31T16:33:23 | 2022-05-31T16:33:23 | 118,133,369 | 5 | 2 | null | 2022-12-09T15:53:41 | 2018-01-19T14:14:57 | C++ | UTF-8 | Python | false | false | 2,481 | py | #! /usr/bin/env python
from __future__ import print_function
import argparse
import os
import subprocess
import sys
from threading import Thread, Lock
class workpool:
def __init__(self):
self.__tasks = []
self.__mutex = Lock()
def insert(self, task):
self.__mutex.acquire()
se... | [
"markus.fasel@cern.ch"
] | markus.fasel@cern.ch |
69a1bb73fc99c15a7457dfafc605f31130d4167e | 18137ede97006561de0bf109055be06b7bab3e71 | /第四周/最小基因变化.py | e25ead2f8aad811c3d859d5f7b6f782a0fe390bd | [] | no_license | aisen-x/git_learn | 0defe07eb5ee27d138cd69cbff37ee58ef980acb | 44f385fd269329503f4176a0dafaf7b9fd8b3070 | refs/heads/master | 2023-05-10T03:45:12.765662 | 2021-06-14T15:37:09 | 2021-06-14T15:37:09 | 354,201,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from typing import List
class Solution:
def minMutation(self, start: str, end: str, bank: List[str]) -> int:
bank = set(bank)
if end not in bank: return -1
dict_ = {
"A": "CGT",
"C": "AGT",
"G": "CAT",
"T": "CGA"
}
queue = [(sta... | [
"aisengentle@gmail.com"
] | aisengentle@gmail.com |
d4d98a04bb227001091d27832dc6dda7e8bdb711 | ecaf7a4af0e68296363ad62080d38889b6ffdd1d | /student/migrations/0002_auto_20160803_1417.py | e9943a29c7142169e163fdeacf5ace64ae6f5924 | [] | no_license | Patch67/openmis2 | 3c45cd394d3a09f3a8fda903f37f111073c086eb | 92d35da308ab586a6b34c0332b46a028c3c005d8 | refs/heads/master | 2021-01-19T04:19:44.286109 | 2016-08-12T06:49:25 | 2016-08-12T06:49:25 | 65,443,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-03 13:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"patrickabiggs@gmail.com"
] | patrickabiggs@gmail.com |
94febc2b579cb0ba9226d746eb929b24ac66b9b7 | d37ae956875dcff4ba4d8ca4ce4057c9acc2a314 | /Py_Practice/Tkinter_屏保/screensaver_V01.py | 399239b2a0994f46867b7d3fa72a5d0cd39402fc | [] | no_license | w976994214/Project | d74904fe2215ae38b027dbb714d90f5e67ad7065 | 8a7a0a35c62e73e8b72e17f3842ae023d90bafda | refs/heads/master | 2020-05-16T02:47:27.228346 | 2019-08-29T08:57:48 | 2019-08-29T08:57:48 | 182,638,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,965 | py | """
tkinter项目实战-屏保
分析:
屏幕保护可以自己启动,也可手动启动
一旦敲击键盘或移动鼠标,或者其他事件,则停止
如果屏保事一幅画的话,则没有画框
图像的运作时随机的,具有随机性,可能包括颜色、大小、数量、运动方向、变形
构成:
ScreenSaver
需要一个canvas,大小等于屏幕大小,没有边框
ball
颜色、大小、数量、运动方向、变形
可移动,可以被调用
"""
import random
import tkinter
class RandomBall(object):
"""
定义运动的球... | [
"976994214@qq.com"
] | 976994214@qq.com |
5723936537563bf8d80ec19210d44c360aaeea77 | 42a3aaf2347c8eaa83a61ecb65bca40b0320fc6f | /socket05s.py | 8d947dee9285add7e6db559aa7d5a56a0735f13e | [] | no_license | qinfena/python_net | 5893281525144c68c6f98c297bcf4f4e517de4ca | 72f8df6d77dcdcbb737fc66318fd9c2b21e875c0 | refs/heads/main | 2023-03-05T08:45:53.721116 | 2021-02-20T10:01:34 | 2021-02-20T10:01:34 | 340,620,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import socket
import psutil
def do_cpu():
data = str(psutil.cpu_percent(0)) + '%\n'
count = 0
for process in psutil.process_iter():
data = data + process.name()
data = data + ',' + str(process.pid)
cpu_usage_rate_process = str(process.cpu_percent(0)) + '%'
data = data + ',' + cpu_usage_rate_process + '\n'
... | [
"xiangxianjun@hba.cn"
] | xiangxianjun@hba.cn |
02c5e834dc1df9cbf54266b2bca5a7a80ac5c957 | f820ac21e543206c9b345144827cc0702653c6a0 | /env2/bin/freeze_graph | 7ae934acd3d69abf5adb5c7e548ae5dd28566ed0 | [
"Apache-2.0"
] | permissive | HweheeChung/acai-iclr-2019 | 1885b0d23e04febcb7387947e482782488665a99 | 60eaef7c6a238396b784bcc57dc689b62461d29f | refs/heads/master | 2020-05-15T09:37:36.179629 | 2019-04-29T12:26:39 | 2019-04-29T12:26:39 | 182,180,758 | 0 | 0 | null | 2019-04-19T01:25:43 | 2019-04-19T01:25:43 | null | UTF-8 | Python | false | false | 273 | #!/Data/github/acai-iclr-2019/env2/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tensorflow.python.tools.freeze_graph import run_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_main())
| [
"chheyvy@kaist.ac.kr"
] | chheyvy@kaist.ac.kr | |
aed6a5cee7db41042619ae1167ba4ccf10c709b3 | daba182ef8dca49585c9a97ed379072eb4565931 | /21.py | 8d09105eb5c63fffef86e2135963b3a091aeaa93 | [] | no_license | krlos097/21 | f4e52ae703c7cdc1782f343ca152fc8f6268fca3 | 40e81a799ad96fe5cda7f34cc14321a3b7542fdf | refs/heads/master | 2021-06-26T14:58:06.396200 | 2017-09-11T22:14:23 | 2017-09-11T22:14:23 | 102,394,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | import random
#Crear el Mazo (1 a 10 y J,Q,K)
def crearMazo():
return range(1,11) + [10, 10, 10]
def crearPalos(palos):
if (palos == 0):
return []
else:
return crearMazo() + crearPalos(palos - 1)
def Barajar(mazo):
random.shuffle(mazo)
return mazo
def crearBar... | [
"noreply@github.com"
] | noreply@github.com |
cff95b961d789ca9c8dc2aa750326f673898db1e | e2af7750bfc3e1834c9b46be5d8ac0fd20d61e0b | /ticket/migrations/0001_initial.py | 154e341c449854f4cda538b977057a44ae2f7207 | [] | no_license | MahanaElbana/CinemaTicketsReservation_Api | 5cca784c01e83663dca002035def8010aebfccc5 | 3be30bc504b8283db5ba179a2cac81d9eeb99cc8 | refs/heads/main | 2023-08-08T09:57:01.366960 | 2021-09-06T09:15:37 | 2021-09-06T09:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # Generated by Django 3.2.6 on 2021-09-01 08:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Geust',
fields=[
... | [
"cbmbbmj@gmail.com"
] | cbmbbmj@gmail.com |
2263dba5a2e7dcfcb1a99554ec165e4b8d52d3af | 89b6997b24e404c176358073626a8bfad7bcdb8e | /.history/courses/api/urls_20210426132401.py | a7fabb6eb22b1afeeebd95f123329c5eaeb754d1 | [] | no_license | mohamedhawas123/Education-platform-django | 513e64ac112880385402ce609077796578b4e9ee | 7b83e66bba66b8b2b1a007f5818a534653e6abfb | refs/heads/main | 2023-07-18T16:19:52.177886 | 2021-09-24T12:04:09 | 2021-09-24T12:04:09 | 352,306,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from django.urls import path, include
from .views import SubjectListView, SubjectDetailView, CourseViewList
from rest_framework import routers
from . import views
app_name = 'courses'
router = routers.DefaultRouter()
router.register('courses', views.CourseViewList)
urlpatterns = [
path('subjects/', SubjectListV... | [
"mohamedhawas123@gmail.com"
] | mohamedhawas123@gmail.com |
1b891071e90ee29ffabeab565da595a88b22ffa0 | 9c6a05d671049913b6f811b30967ecc79794ca68 | /dhtserver.py | 0ba4753e9e29a7dbf0742044a8ae176dc868df66 | [] | no_license | yucy/DHT | 955d2e0ca393c417367988256a33e46335c26aba | d5d2aeff5fb49c7b11afb4e41ddd239a7d316e01 | refs/heads/master | 2021-01-19T02:30:12.425330 | 2017-06-11T07:22:38 | 2017-06-11T07:22:38 | 87,285,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | # -*- coding:utf-8 -*-
import hashlib,time
import socket
# 初始化公网节点
BOOTSTRAP_NODES = (
("67.215.246.10", 6881),
("82.221.103.244", 6881),
("23.21.224.150", 6881),
("localhost", 6881),
)
# 使用sha1算法,返回key加密后的字符串
def str_encrypt(key):
sha = hashlib.sha1(key)
encrypts = sha.hexdigest()
print encrypts
return enc... | [
"yucongyu@outlook.com"
] | yucongyu@outlook.com |
64a6001c461b63871f2473e2890588b8d3d3dff6 | ae7d1e7cfb16aa5c330ff3903699bdae7a57d2fe | /zoo_catagories_rnn.py | 683f3d1cc13b4f980d836dd31b65d977604f6b40 | [] | no_license | Christopher-Braun/zoo_animal_classification | e933f2ada35a85d22731194df83524574ad51c0c | bdfa7dc08e5083d05052d0203661361a9116e821 | refs/heads/master | 2021-08-31T07:09:57.404068 | 2017-12-20T16:11:43 | 2017-12-20T16:11:43 | 114,904,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('zoo.csv')
X = dataset.iloc[:, 1:17].values
y = dataset.iloc[:, -1].values
y[:][y[:]==7]=int(0)
X[:,12][X[:,12]==2]=int(1)
X[:,12][X[:,12]==4]=int(2)
X[:,12][X[:,12]==6]=int(3)
X[:,12][X[:,12]==8]=int(... | [
"mrcrbraun@gmail.com"
] | mrcrbraun@gmail.com |
b8968b3b65bf1de5df78c3c1473ecaf43be8aed9 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/2e033ce6e3a2cdde5174895cadb3b406b2a013729dd641fee2cebd9f7ed97879/cv2/cv2/xfeatures2d_BoostDesc.py | ee8d24abbfaff2a33bb993d84a1fd7baffc4e439 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | # encoding: utf-8
# module cv2.cv2
# from C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
# by generator 1.147
""" Python wrapper for OpenCV. """
# imports
import cv2.cv2 as # C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
import cv2.Error as Error # <module 'cv2.Error'>
imp... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
14808a94e6859ea984b7599bc4c6afbd5f24d8d4 | 6b6edacfc343e60ee82b74bf82248ba8685d5007 | /backend/base/migrations/0001_initial.py | e560d4770812c27ad2df904d59b7860caa7c4d74 | [] | no_license | wchandler2020/django-react-ecommerce | 0e6c591227c118a8492bb6f89727e907f303b1db | cc62f9eadf89fa417dc1cd2f183dca65a736da90 | refs/heads/main | 2023-03-04T20:34:40.950457 | 2021-02-21T20:49:22 | 2021-02-21T20:49:22 | 338,858,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | # Generated by Django 3.1.6 on 2021-02-15 19:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"william.d.chandler1@gmail.com"
] | william.d.chandler1@gmail.com |
f72d4da9cfe29c981f9e132cef7c27f0de2a1a42 | 02a2ecc29102387120db40bbb64ea5a564b00a3d | /protocol/src/com/teltonika/Codec/IMEI_validation_test.py | d0d23c2002a2530c6d1b12cf09671a16f1717953 | [] | no_license | pkumarray91/production | f86a96b9fa603f8e6c2282466384edef4fde644c | 41adcc02738ffef07d72d019386bbb2253ffe9af | refs/heads/master | 2023-03-21T19:21:13.761448 | 2021-03-12T07:35:41 | 2021-03-12T07:35:41 | 346,977,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | from protocol.src.com.teltonika.Codec.IMEI_validation import *
"""
It is Driver code which calls IMEI_validation class and get the result
1. Get the hex_num
1.a. which contain the imei_number where the first 2 bytes gives the length of IMEI (000F)
1.b. and the digit '3' is present before every imei_number
2. T... | [
"prakashkumar30101991@gmail.com"
] | prakashkumar30101991@gmail.com |
3bb2626e106e0aed2af16a86f65070cf26d1077d | 548666cccda576bf1e13070a58e9cbbbc11c7f6b | /Assignment3/get_print_string.py | 05bc6d955a163a9fa043ea577d00f580ab206ebc | [] | no_license | Kiran0343/Python | cfd0cf3171323b7a4f532c05628213b6a71cf3c8 | 46d640fd251cdf55733891c8a2a61fdc520bad50 | refs/heads/master | 2020-06-27T22:38:09.894204 | 2018-04-16T01:39:30 | 2018-04-16T01:39:30 | 97,076,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | """
python script which has class having two below methods and access
those methods in another class:
"""
class parent():
def __init__(self):
print "hello from parent"
def getString(self):
self.word = str(raw_input("Enter string : "))
def printString(self):
print "string is : ", ... | [
"kiran.kamcharla92@gmail.com"
] | kiran.kamcharla92@gmail.com |
6236e03243994ff3486a24f3d867d6b68ee24e25 | 5cc5a3063c98719662899d52e176d4df1dc4147e | /application/model/report.py | df2343d773c689157f418c1e7c2be0e2458a5db4 | [] | no_license | yuxd/pile | fef8b6005556eb1ab994830956363ff44bdc2025 | d1b0d4e53b4379e4878ef6dba36cb66414af39e4 | refs/heads/master | 2021-01-11T22:06:30.397223 | 2016-09-08T01:39:30 | 2016-09-08T01:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from datetime import datetime
from .helper import to_ts
from .. import db
class Report(db.Model):
"""
This class defines report structure.
id : record id
user_id : user id
comment : comment
evidence : evidence
dt : timestamp
handled : whether the report is handled
"""
id = db... | [
"m15955038579@163.com"
] | m15955038579@163.com |
3f36a95e1faafb80203d5e7e414bfc856688ba93 | 2009832522a7f4f9c79da1dc16efea74975ef218 | /events/migrations/0012_auto_20190412_1822.py | 914d70996c725b954896831319d10fdc5568c9d1 | [] | no_license | siobahnv/communityeventsapp | 47f472f08f2921e8991d64dbc1cb3f5aee7e4f3f | ae30ab721d1c93f1ba8e9ae289676bfe6811afcc | refs/heads/master | 2022-12-09T07:55:15.292261 | 2019-04-17T17:29:46 | 2019-04-17T17:29:46 | 180,808,021 | 1 | 0 | null | 2022-12-08T04:58:54 | 2019-04-11T14:19:45 | Python | UTF-8 | Python | false | false | 442 | py | # Generated by Django 2.2 on 2019-04-12 18:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0011_auto_20190412_1755'),
]
operations = [
migrations.AlterField(
model_name='event',
name='tags',
... | [
"siobahnv@gmail.com"
] | siobahnv@gmail.com |
ee6d6b096a33d9847e60bfe9a67807cf517e81db | a947c8c5ded83187d11944e21681dae71d027afa | /core_spider/core_spider/items.py | ad5381856bad8986353e32cc1ee4e2a814e3aef0 | [] | no_license | minfun/scrapeqq | f84cea349a476e1a25b0dec9d87776abab6d8d3b | 04bac71d22700d6eddb85a7194bbc44ab6def8f3 | refs/heads/master | 2020-12-30T15:41:55.101008 | 2017-05-14T08:51:49 | 2017-05-14T08:51:49 | 91,165,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class CoreSpiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"nowican@live.com"
] | nowican@live.com |
e82fb68fa15cb53c49889f6939ecfd1fccf3035c | 8e0df595ef441a2c57a209728f2b2f6bf5d13265 | /blogapi/api/serializers.py | 1cd635351a91a26e83fb0a9ffcc61046af926384 | [] | no_license | saddamphp/blog_api_django | eb5bd52e424150da9e3745adb94d0ade01f9be52 | c8fb1b5ba82c12f94a43fb0d6e59ea026e3c6635 | refs/heads/master | 2023-01-09T11:57:06.343348 | 2020-11-14T19:03:28 | 2020-11-14T19:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | from django.contrib.auth import get_user_model, password_validation
from django.contrib.auth.models import BaseUserManager
from rest_framework import serializers
from .models import Post,Profile
class blogserializer(serializers.ModelSerializer):
class Meta:
model = Post
fields ='__all__'
... | [
"muntasirornob@gmail.com"
] | muntasirornob@gmail.com |
33a1bd5faf0881009d06ebde82f8871fe939b812 | 8beeebe1ea8e9d13e1a2c1ef851d91c6fd9fa156 | /Date.py | 01d61a789821302f93e9ee532b80618a94cc345a | [] | no_license | jamanges/raspberrypi | 101a6b65036df8ef25395aaebe44706b5878ab3b | 83527f9e478565871785f4c45db215282ab42d12 | refs/heads/master | 2016-09-06T03:56:18.291574 | 2015-01-03T04:15:50 | 2015-01-03T04:15:50 | 28,611,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import RPi.GPIO as GPIO
import time
ledPin=15
GPIO.setmode(GPIO.BOARD)
GPIO.setup(ledPin,GPIO.OUT)
month = int(float(time.strftime("%m")))
day = int(float(time.strftime("%d")))
while month > 0:
global month
GPIO.output(ledPin,GPIO.HIGH)
time.sleep(.25)
GPIO.output(ledPin,GPIO.LOW)
time.sleep(.25... | [
"james.manges@gmail.com"
] | james.manges@gmail.com |
1def6138482e78b1cb11607f3c331914c0a37927 | cdfb5ba3e6210672f6e69a9370503544867d8ef6 | /Module 3 Labs/Module 3.2.py | be614a7d3aabcb2720977bf719c2787e35146c5f | [] | no_license | Dannyh0198/Module-3-Labs | a436a82c42eb580fe9df5945c78a67c52062239e | 68d430ba9a836ef9f955aaa71358232e35ae166c | refs/heads/master | 2023-07-19T06:17:34.930581 | 2021-09-23T18:35:05 | 2021-09-23T18:35:05 | 408,910,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,798 | py | # 3.2.1.3 LAB: Essentials of the while loop - Guess the secret number
# A junior magician has picked a secret number. He has hidden it in a variable named secret_number. He wants everyone
# who run his program to play the Guess the secret number game, and guess what number he has picked for them.
# Those who don't gues... | [
"Dannyh0198@hotmail.co.uk"
] | Dannyh0198@hotmail.co.uk |
bd443cac36cd8112754d692cea7d260869ab626d | 7789f4c84a250ce45accdecbf73630519bfc4aa1 | /devel/lib/python2.7/dist-packages/rail_manipulation_msgs/srv/_PrepareGrasp.py | de78ffe163fbb53ac02bd322fbc7c0c91ccb1710 | [] | no_license | JerryHu1994/NRI-authoring-Backend | 33610913692c3ba8ac2e7fd47b735d193771526c | d130201224deb8696ae4b2dbc451c251693040d3 | refs/heads/master | 2021-09-15T23:15:01.061392 | 2018-06-12T15:56:40 | 2018-06-12T15:56:40 | 113,100,927 | 0 | 2 | null | 2018-06-12T15:56:41 | 2017-12-04T22:11:56 | HTML | UTF-8 | Python | false | false | 12,030 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rail_manipulation_msgs/PrepareGraspRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class PrepareGraspRequest(gen... | [
"hjr01211@gmail.com"
] | hjr01211@gmail.com |
f779f90897b4b3140cf74c2e61e30e9eb35861fd | c52bf4544fc0224c4db5c6a4a5457d9b2e7fee4b | /core/models.py | c225807f5459e5b00d3326e884fb58339d7da2e5 | [] | no_license | sntciitbhu/website1 | c4efe48479cb092d0f5db0a257563b42d4e343ef | 7063a747abbaec0254fe04a2c2eefde7db656589 | refs/heads/master | 2022-10-13T11:30:58.307699 | 2019-11-09T08:33:51 | 2019-11-09T08:33:51 | 216,588,378 | 1 | 2 | null | 2022-09-23T22:31:37 | 2019-10-21T14:26:24 | CSS | UTF-8 | Python | false | false | 62 | py | from django.db import models
#class Students(models.Model):
| [
"vermasubodhk@gmail.com"
] | vermasubodhk@gmail.com |
c68bcdaaf52094708cc8f1606bed4ef43235f013 | 99b7b8cef0f28aa93e87da82f9f75b65f91208f1 | /Game.py | a45b8541dd8e5733a0952b0e43ddfad28a2a43da | [] | no_license | ghosts1995/fjsss | b3a01115832fac2f0140baacd51ea6b4c3f63489 | 526a69378067e3632cf41d9c1f4943628ce4201a | refs/heads/master | 2022-03-05T18:56:28.358968 | 2019-10-30T10:17:43 | 2019-10-30T10:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,160 | py | import sys
from MainPageUi import Ui_MainWindow
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication, QWidget,QMainWindow,QLabel,QPushButton
from PyQt5.QtGui import QMovie,QPixmap,QCursor,QPalette,QBrush,QFont,QIcon
from PyQt5 import QtCore
import linkServer
import execjs
POKE_SIZE=(50,68)
class Room(Q... | [
"justno@foxmail.com"
] | justno@foxmail.com |
5c2a44299f26b665135279bbbcbf5363c8df7b19 | df2282a02ae0dd788dc6bd5bd6457415cb1e1771 | /scoket/socketserver.py | e9f953d8793a87f13b14a325e3fc2df2e9b09a4d | [] | no_license | randian666/MPython3 | 6f6b6fc31734840c87322d5b0b74e4afd7e2165f | 6de046262ba1ad37a3072ee5d064b6e4cfa57df0 | refs/heads/master | 2021-01-21T01:11:27.491355 | 2018-01-05T10:44:30 | 2018-01-05T10:44:30 | 101,870,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | #!/usr/bin/env python3
'''
scoket服务端
大多数连接都是可靠的TCP连接。创建TCP连接时,主动发起连接的叫客户端,被动响应连接的叫服务器
'''
# 导入socket库:
import socket,threading,time
# 创建Socket时,AF_INET指定使用IPv4协议,如果要用更先进的IPv6,就指定为AF_INET6。SOCK_STREAM指定使用面向流的TCP协议,这样,一个Socket对象就创建成功
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
# 监听端口:
s.bind(('127.0.0.1',9999))... | [
"liuxun@jd.com"
] | liuxun@jd.com |
1858d23256a8661d9d4359342a7148db7f925449 | b4adeaad18998e818da63e98d58c35a072b7d3d6 | /faktor.py | 0fa83d9076b9d49f4ce086939cf7368db5431fc9 | [] | no_license | mmncit/kattis | c3a7bd72f00ccec7c5bb3cd808789eda3c49372f | fbdee694d9ecc00531ca00bd6d559db65f61e672 | refs/heads/master | 2020-04-26T06:31:45.988378 | 2019-03-07T01:39:08 | 2019-03-07T01:39:08 | 173,367,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | a, i = list(map(int, input().split())) # read input and split
print((a * (i-1)) + 1)
| [
"mmncit@gmail.com"
] | mmncit@gmail.com |
431b065c5c92a9cc3b0e0da46ebaeaac958573ac | 7b2b9d66d3972714e9951d4664773e2d0b2012eb | /processAnnotationforGT.py | 9985d1f883cd89bbda7e4ed61e680fc722ea3d4a | [] | no_license | JASON7033/vigilant-barnacle | ff0f8194333b401994cc44638db7cf82f3eeee14 | 7c379c86f55d938388c3a7d095da04b49d0a7125 | refs/heads/main | 2023-04-20T12:33:39.950484 | 2021-05-30T15:00:02 | 2021-05-30T15:00:02 | 372,241,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | '''
生成测试集
修改图像信息的宽度 高度 bbox area的大小
删掉一个category的vehicle
'''
import json
'''
:type
annotations
images
categories
'''
#写入文件的位置
out_file="panda_test_gt_for_tiny.json"
#读取anno文件
anno_src_file_panda_coco="anno.json"
src_annos=json.load(open(anno_src_file_panda_coco))
#生成目标文件的副本 避免修改源文件
tiny_test_annos={}
#需要修改的部分为 ima... | [
"48329570+JASON7033@users.noreply.github.com"
] | 48329570+JASON7033@users.noreply.github.com |
aa0fc14548faba731a4e211d376b0d6b65f8d387 | 5ec7a72cab10dd39e0cc877caa1cb97c3cd9f3de | /tests/unit/models/dq/test_operation.py | 2641a03a60137ae33d350e1327c0bbce25d716ca | [] | no_license | raufer/spark-dsl | a1d311263fe48f64859c04cd63a79f48d8cd8fa4 | a0fbf9561ba4567bc5d40bf2c7d289e214712aa6 | refs/heads/main | 2023-04-11T19:29:11.661273 | 2021-01-26T18:34:23 | 2021-01-26T18:34:23 | 367,982,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | import unittest
import pyspark.sql.types as T
import pyspark.sql.functions as F
from garuda.engine.graph.eval import resolve_operation
from garuda.models.dq.operation import Operation
from garuda.constants.argument_types import ARGUMENT_TYPES as AT
from garuda.constants.operations_ids import OPERATION_ID as OID
from ... | [
"raufer92@gmail.com"
] | raufer92@gmail.com |
57ed4ed1637ba7d77a5067ac736bd9e3f23767d2 | 992e59b87f87afb950e5eaf8e348e2073e5183af | /ADT/Stack/linked_stack.py | 29d127385c45ecd72b878352179787b9149e703c | [
"MIT"
] | permissive | daesookimds/data-structure | 3167e31046370acf2db7d5f8c2500b0bad50642c | b5bb69e1ae533ff723280e991e6dd8d372368697 | refs/heads/main | 2023-03-14T02:37:19.279377 | 2021-03-02T15:05:24 | 2021-03-02T15:05:24 | 343,374,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # Stack with Node
class Node(object):
def __init__(self, value=None, pointer=None):
self.value = value
self.pointer = pointer
class Stack(object):
def __init__(self):
self.head = None
self.count = 0
def isEmpty(self):
return not bool(self.head)
def push(self, ... | [
"dskim9107@gmail.com"
] | dskim9107@gmail.com |
8758d8c4012938721a0f27e3b0a175dd8d14cdd9 | 5eb961d4961db6e32f59945edb51af3d76a382a3 | /matrimony/user_management/views.py | edfdb4b40fadbbc72cd26d1c89a17286e9466ec7 | [] | no_license | prakashgun/matrimony-app | e0e9ba4c18cc627886644937cd9eb8f1846f569c | b8f9f96e8c73055162888e9111f805afaf8f87c9 | refs/heads/master | 2023-04-20T20:13:36.244947 | 2021-05-09T05:55:13 | 2021-05-09T05:55:13 | 365,545,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from rest_framework import generics
from .permissions import IsPostOrIsAuthenticated
from .serializers import UserSerializer, GroupSerializer
class UserList(generics.ListCreateAPIView):
permission_classes = [IsPostOrIsAut... | [
"mail.prakash.india@gmail.com"
] | mail.prakash.india@gmail.com |
0e57498e17dbb1188ff5803eaac005b6c4135d6c | 07a9efcd778003ca90dba01db64e5e21c02d256d | /project/cultboard/admin.py | 06c9eacb125393eb93dd82bbadc8cfdca28dee87 | [] | no_license | rakeshgithub00/cultboard | 099f1bb326dc61ae446bd9685ef5d170499b8a24 | 290b87ab1c33dd6f5c91a03fe353c7887d1f6a1b | refs/heads/master | 2023-06-11T13:45:46.918673 | 2021-06-25T05:06:27 | 2021-06-25T05:06:27 | 380,130,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.contrib import admin
from .models import Note, Detail, TeamMember, GallaryEvent, MajorEvent, Club, UpcomingEvent
# Register your models here.
admin.site.register(Note)
admin.site.register(Detail)
admin.site.register(TeamMember)
admin.site.register(GallaryEvent)
admin.site.register(MajorEvent)
admin.site.re... | [
"rakeshdangra00@gmail.com"
] | rakeshdangra00@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.