blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc3251f0467a9da63e5a92feab73ee562a40e602 | dc6225fe29d844340d25f3622fe6ba2ac1a5a5a5 | /apps/users/apps.py | c05d05b8cd304f8e05c04ae5469f7016c4add430 | [] | no_license | leerumor/arolsweb | dc9a5970d843f1861d44ced66280238522638f11 | 7ba7a5985bf530c9f684178cec195ae2fb16d024 | refs/heads/master | 2021-01-25T14:16:50.044445 | 2018-03-09T03:26:54 | 2018-03-09T03:26:54 | 123,678,845 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/python
#coding:utf-8
from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'
verbose_name = '用户信息'
| [
"rumeines.lee@gmail.com"
] | rumeines.lee@gmail.com |
21beae235376d4d12e45d2ccf03d03f3e899a0e3 | 3b60a6c45de467abc4945d21bb3e3b0e06c52634 | /lists/migrations/0001_initial.py | 2a49f0f6a349ef0c4da2fc13d861d087a688734a | [] | no_license | doct15/test-1 | c35e275ef5638494d67e4950c7621b90dd5701fb | 0174e4d38ca31fc97b326c989ffe7f96a2d94214 | refs/heads/master | 2021-01-01T16:03:00.287601 | 2017-07-19T19:36:43 | 2017-07-19T19:36:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,618 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-15 17:08
from __future__ import unicode_literals
import base_utilities
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import lists.models
import uuid
class Migratio... | [
"ntbrown@email.sc.edu"
] | ntbrown@email.sc.edu |
e29032b195e115205dc5e9271ffa1febb1e0b325 | 0fbeaad1666e8c50df046a041b24f10bc1c95806 | /remote_flow/metaflow/data_processing/connectors/sf_connector.py | dca2143c10c3d2d03f4c6df9bb4c933f45e841ed | [
"MIT"
] | permissive | vuviethung1998/metaflow-intent-prediction | c8fa2d3ab719f3657135023f2e972b16f23365b3 | f2d1d036b0f0ef0f308f612b5bfc2e50cfec8826 | refs/heads/main | 2023-06-08T14:35:49.175838 | 2021-07-02T20:03:48 | 2021-07-02T20:03:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py |
import os
import snowflake.connector
from snowflake.connector import DictCursor
class SFSelfClosingNamespaceConnection:
"""
A class to connect to a snowflake namespace. This class wraps
the execute command.
Implemented to be used with the with keyword.
Methods
-------
execute(command)
... | [
"asutcliffe@coveo.com"
] | asutcliffe@coveo.com |
84e1834b93f1bb4df2c4ff94758e5dfc8e1cb2e9 | de9c381c17b24cf8b231581fcdf4d895891386d1 | /orders/migrations/0005_auto_20200802_2136.py | 8db761117380abd01eebc07a31613323af6d7b07 | [] | no_license | osknatt/DJ_diplom_project | ed011ecadd526f26650445b09b9bb2990588d9fe | f7a39fa79e2736eefd8deeec43683dba1e533477 | refs/heads/master | 2022-11-28T17:36:05.513002 | 2020-08-04T04:39:14 | 2020-08-04T04:39:14 | 280,056,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # Generated by Django 3.0.7 on 2020-08-02 18:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('orders', '0004_order_use... | [
"natalukonina@mail.ru"
] | natalukonina@mail.ru |
bb8d38d5f03059ff737352042f96a0e7fa2c228f | ea0976329b49877011bee91e864079183a791bf0 | /Testing/responseTime.py | 4631d715a09c17bdd21ef2e995140309b2b1d0e6 | [] | no_license | golaced/LilBro | 1475a7dd094d983267f61a16804a74528bb5542e | 12c2b9d9f134eb1250ea1bbdc43c81c1e0b70216 | refs/heads/master | 2020-05-22T06:08:41.368473 | 2019-05-03T16:24:28 | 2019-05-03T16:24:28 | 186,248,239 | 2 | 0 | null | 2019-05-12T11:49:05 | 2019-05-12T11:49:05 | null | UTF-8 | Python | false | false | 9,284 | py | import time as time_
# ODrive
import odrive
from odrive.enums import *
import math
# Joystick
import os, struct, array
from fcntl import ioctl
import threading
# Shell commands
from subprocess import call
import sys
import PID_
kp = 3
ki = 0
kd = 0
#
print("Finding an ODrive...")
my_drive = odrive.find_any()
inTime = ... | [
"noreply@github.com"
] | golaced.noreply@github.com |
00a759bd71d11f942a7195e2ce3a0f9237ad4f89 | eb91f8764a466c20d3ed53f0df43e2e91fc095ea | /HFhtml/migrations/0007_auto_20210106_2045.py | efdaed8cb955a4052bb217f5edcee04b059ca0bf | [] | no_license | blackw00d/HappyFamily | 61733c46a2f2c26919a532e5c07ea143fabd14a9 | 6b0d99a498c7a92170de0bbdb18907d6d951da31 | refs/heads/master | 2023-03-08T21:20:41.481293 | 2021-02-27T04:13:39 | 2021-02-27T04:13:39 | 291,481,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 3.0.8 on 2021-01-06 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('HFhtml', '0006_auto_20210106_1951'),
]
operations = [
migrations.AlterField(
model_name='orders',
name='pay',
... | [
"email"
] | email |
5497982226fc1fd6f795a09becbbfa23349d3f38 | 7000895fad6f4c23084122ef27b3292d5e57df9f | /tests/core/test_ChainManager.py | b9d94e4c26c5c584e44b7f9d86c8c5184b4ec985 | [
"MIT"
] | permissive | jack3343/xrd-core | 1302cefe2a231895a53fcef73e558cdbc1196884 | 48a6d890d62485c627060b017eadf85602268caf | refs/heads/master | 2022-12-15T07:36:16.618507 | 2020-08-27T09:21:36 | 2020-08-27T09:21:36 | 290,652,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258,142 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from unittest import TestCase
from os import urandom
from mock import Mock, patch, PropertyMock, MagicMock
from pyxrdlib.pyxrdlib import hstr2bin
from pyqryptonight.py... | [
"70303530+jack3343@users.noreply.github.com"
] | 70303530+jack3343@users.noreply.github.com |
9923e1779bf425fc2feb1a1ce1821f88cabc2c1e | cd5a972f8c4e0b12834f761e46a4e95b8aa3ee2a | /basket/basket.py | c5f7de0a684e14f93dea0d993527d512af0433e4 | [] | no_license | nnerel/Django-rest-project-BooksApp | 6b2efe985a27158e2c67501ef3d9a16e1c70aca6 | 59833dc6f5b36bffdf151ac14eedb7f783589e12 | refs/heads/main | 2023-08-10T15:39:39.551530 | 2021-09-30T13:33:07 | 2021-09-30T13:33:07 | 407,148,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from books.models import Book
# Initialize session for basket
class Basket():
def __init__(self, request):
self.session = request.session
basket = self.session.get('skey')
if 'skey' not in request.session:
basket = self.session['skey'] = {}
self.basket = basket
#... | [
"gorzkiewicz.artur97@gmail.com"
] | gorzkiewicz.artur97@gmail.com |
05e7ede5cd60b8fe96d59dc1f2b0782f16f13cc2 | bf7a7ce843ef4e5a63f1cceb7f19795e44f7e4e7 | /HLA_secondary_functions.py | e746e54eb3af5abe24add356452018e0e800e22b | [] | no_license | bigguscodus/roi_amb_analyzer | 71fa4038e214b9e905c1d79c6aa571aceea3285e | c355ea3038a2218bcc6830a291e8035739db9a04 | refs/heads/master | 2020-08-03T05:56:17.999439 | 2020-01-02T15:15:43 | 2020-01-02T15:15:43 | 211,645,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,608 | py | from Bio import SeqIO
import pandas as pd
import re
def hla_parser(gene: str, data='hla.dat') -> dict:
'''Input: gene in which we make a search
data .dat file which contains allele information. Can be obtained from https://github.com/ANHIG/IMGTHLA
Action: parse data from .dat file and put in to the diction... | [
"mikka_tolmachev@protonmail.com"
] | mikka_tolmachev@protonmail.com |
9f4a2400e587d1b177f8d5c42fec5173bc0b289b | 820492d60b65fefc322f7ee902ed90ac22393160 | /testdragdrop.py | 31023cc24ce3c0327a59ced70e16f0746e3ae551 | [] | no_license | ChristianGold/TechTree | e3d570f863b71a746b08dce75394a8b4dd7bb6b2 | f021409a161f38ca929589c250ccf32c8b102667 | refs/heads/master | 2020-05-21T00:26:23.403820 | 2014-10-25T18:55:00 | 2014-10-25T18:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | import sys
from PySide import QtCore, QtGui
class Button(QtGui.QPushButton):
def __init__(self, title, parent):
super(Button, self).__init__(title, parent)
def mouseMoveEvent(self, e):
if e.buttons() != QtCore.Qt.RightButton:
return
mimeData = QtCore.QMimeData()
... | [
"christian.gold@stud.h-da.de"
] | christian.gold@stud.h-da.de |
866842327b3c7e278bf485357fa339a7c1c8dce3 | 8c7ca7c24204687425dd1b3123e232623c8dd500 | /src/modules/database.py | 66275376d0829ec03e058307ed86c6e91d989d0f | [] | no_license | ZultanH/GROWTH | 44eb8700726181018feed81fb2befc7058e7f59e | 919e01cd08d6a7a6aedf517d746784ff17d946eb | refs/heads/master | 2020-03-28T05:22:37.729080 | 2018-09-07T07:49:25 | 2018-09-07T07:49:25 | 147,772,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,780 | py | from peewee import *
from .models import *
import hashlib
import uuid
import pyjwt as jwt
import json
def percentage(percent, whole):
return (percent * whole) / 100.0
class user:
def __init__(self, username, password):
pass_hash = hashlib.sha256(password.encode()).hexdigest()
self.username = us... | [
"noreply@github.com"
] | ZultanH.noreply@github.com |
a86ce8417607db70a904b3ff9754c6950ed06c89 | faabe34af6297530617395bcc6811350765da847 | /platforms/leetcode/NthDigit.py | 6e67cbfe78c483aff5ee596ef9b57abc3fd7bb68 | [] | no_license | pqnguyen/CompetitiveProgramming | 44a542aea299bd553dd022a9e737e087285b8b6d | 27330e7ff79c4ac883d7e1fcdf2f0d30939c3f78 | refs/heads/master | 2021-07-21T12:15:47.366599 | 2021-06-27T14:58:48 | 2021-06-27T14:58:48 | 132,837,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Solution:
def findNthDigit(self, n: int) -> int:
length, start, count = 1, 1, 9
while n > length * count:
n -= length * count
length += 1
count *= 10
start *= 10
start += (n - 1) // length
return int(str(start)[(n - 1) % length])... | [
"pqnguyen1996@gmail.com"
] | pqnguyen1996@gmail.com |
d3204c40c60163450c72b08364f573c81f6b5104 | 9f355fc469ff1d2527b6876bf0613b47c9e80495 | /news/pagination.py | bf46cbc2ed63e4e3b3c631ce3f7dfd65b472949f | [] | no_license | Delmond/financeapp | 0f30361607ed22eadbef6930c2bc637959052581 | 707eca6b311d54cdf02db44c13b9bf763c66f8b9 | refs/heads/master | 2023-07-11T10:08:50.831440 | 2021-08-21T04:35:16 | 2021-08-21T04:35:16 | 398,459,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from rest_framework.pagination import LimitOffsetPagination
class ResultsSetPagination(LimitOffsetPagination):
default_limit = 10
max_limit = 100
| [
"muha.delalic@gmail.com"
] | muha.delalic@gmail.com |
c643ce7089f7de86cf1cdfe5b061ae661a0bf8ec | 22787e8dfb3699beb580be809ae458780b5321e6 | /game_engine/piece_movement.py | 52679fb10b49c47a6d7615919a3de08d9618fa49 | [] | no_license | CynanDavies/ChessGame | 1664196541aa02ae3a14068ce7bb16e51434cf9f | 22a06b6d62714c86e0e2669cd5198505fadfac08 | refs/heads/master | 2023-07-29T07:17:00.604009 | 2021-09-15T13:44:09 | 2021-09-15T13:44:09 | 406,782,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,092 | py | import time
from game_engine.board import Board
def check_if_bit_is_set(bit, test_number):
if test_number & 1 << (bit - 1):
return True
else:
return False
def set_bit(value, bit):
return value | (1 << bit)
def clear_bit(value, bit):
return value & ~(1 << bit)
def test_time():
... | [
"cynan@gmx.net"
] | cynan@gmx.net |
bd99a840682feb7be763dfd54d9bb7176ca6814b | 295cd804ca260770979c50c60a6ecad1c8df1962 | /standards/utils.py | 4c619308b16876edbc66530e648416084517b801 | [] | no_license | adamivora/DiSSECT-gen | 05804d27255110a2455cc11f755dd483d4197682 | 8add71092d8ddbe37368deadafb7227d69159539 | refs/heads/master | 2023-07-14T14:12:41.361137 | 2021-08-16T09:30:57 | 2021-08-16T09:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,303 | py | """Some useful functions for the project"""
from sage.all import Integers, ceil, floor, GF, EllipticCurve
from abc import ABC, abstractmethod
from sage.all import squarefree_part, BinaryQF, xsrange, gcd, ZZ, lcm, Integer
import hashlib
import json
STANDARDS = ['x962', 'brainpool', 'secg', 'nums', 'nist', 'bls']
def... | [
"x451866@fi.muni.cz"
] | x451866@fi.muni.cz |
501ca8c5a71b67cd7db14e7577be41fcd6646fd7 | da747f1c2fcd9ceb994542623a98cc294e670f3a | /DataStructures/priority_queue.py | b81664d1095fa01c57076024c8e3968ecae03963 | [] | no_license | shantanusharma95/LearningPython | ca633ba21e4e1f5b72542a9edc648887738e5c5f | 9437f5dafb402efeff158059da7b61046e15d3f0 | refs/heads/master | 2021-06-29T03:06:48.212926 | 2020-11-09T06:23:40 | 2020-11-09T06:23:40 | 180,113,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import sys
class node:
def __init__(self,data,priority):
self.data=data
self.priority=priority
self.next=None
class queue:
def __init__(self):
self.Head=self.Tail=None
self.queueSize=0
#adds a new value to queue, based on priority of data
#this will make enqueu... | [
"noreply@github.com"
] | shantanusharma95.noreply@github.com |
299229bdf5543f7c95c465a0bb2df8adea9965f6 | d9f972bc0ee4ed42883a8a01b362570bb275e50d | /db/csv_to_db.py | 0eb0f10d3b3cd56970ebc11a895f6ea69f51e594 | [
"Apache-2.0"
] | permissive | h8254201/teamwork | 29bd4abc174190e9991798eeb719c6e9f2380659 | b7cde23cc404f639d96e3ed91a10d0a4d18d41e2 | refs/heads/master | 2020-06-28T19:39:34.355270 | 2016-11-17T04:29:45 | 2016-11-17T04:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import sqlite3
import csv
# Read csv file
with open('./members.csv', newline='') as csv_file:
rows = csv.DictReader(csv_file)
members = [(row['名字'], row['團體']) for row in rows]
# Print csv
# print(members)
# read create db file
with open('./create_db.sql', 'r') as sql_file:
create_db_sql = sql_file.read... | [
"sq851023@gmail.com"
] | sq851023@gmail.com |
f3f5fbac6f37fd3a635eb0dd6c7962173880af7e | a78b8d6061c05e6eb144f7e95f2089e18c318ead | /test_proj/wsgi.py | 08a0e4c09a383e81d34fefd46e485d7658f8db5a | [] | no_license | andrewtran634/test_proj | 7a199438e96bb850a58974cfd913aae7424bddd7 | fd38a3b3f92552ba6f09fdaad255b8c313aa66df | refs/heads/master | 2021-01-23T03:13:18.645349 | 2015-06-25T05:27:06 | 2015-06-25T05:27:06 | 37,823,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | """
WSGI config for test_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from dj_static import Cling
os... | [
"ajtran@umich.edu"
] | ajtran@umich.edu |
3569013e697efa6d1a4da7d564c7ffa526bef9b2 | 7c4c809559b930dddc14e6d4cbe60fbbc5fac269 | /Deep_Learning_A_Z/Volume 1 - Supervised Deep Learning/Part 1 - Artificial Neural Networks (ANN)/Section 4 - Building an ANN/Artificial_Neural_Networks/ann.py | d56dcb15579026ae0b51ebbddc683ca5fd50d3bb | [] | no_license | AdrienF/Udemy-courses | a393c5fae5b678dd986281234df6da604af0ef4d | 056bc271223c958be3e1d2574100f7758a9e040e | refs/heads/master | 2020-03-28T12:13:43.272219 | 2018-11-27T09:53:10 | 2018-11-27T09:53:10 | 148,280,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,713 | py | # Artificial Neural Network
# Installing Theano
# pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
# Installing Tensorflow
# pip install tensorflow
# Installing Keras
# pip install --upgrade keras
#%% Part 1 - Data Preprocessing
# Importing the libraries
import numpy as np
import matplotlib.p... | [
"fontviea@gmail.com"
] | fontviea@gmail.com |
175362d65ed956693d742ed37d75ce17e75b88dc | 01361e80df13a173264c369f63dc42f5fb1eb9b5 | /carts/migrations/0002_initial.py | 642b8aa58314767eaafc395fd7cdd75fb278ce99 | [] | no_license | Angshumaan/greatkart-django | cb63cf1cc1c094f504adb7ff8fea347c43a6fa81 | 3ff1ac8fc7e7f23bdc3185167e2d8b678256a82c | refs/heads/main | 2023-06-05T10:05:21.408371 | 2021-06-12T06:53:15 | 2021-06-12T06:53:15 | 363,017,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Generated by Django 3.2 on 2021-05-22 03:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('store', '0001_initial'),
('carts', '0001_initial'),
]
operations = [
migrations.A... | [
"="
] | = |
1efe16fd82888f82087e9424ef8326ae81f0a858 | 1d5534d807836a08c61d3f41e1682cee796f8d80 | /tests/test-server-pkcs11-module.py | de12ff23b756527af5da0116716881ef0b3f41d9 | [
"Apache-2.0"
] | permissive | Elbandi/ghostunnel | cd684864475c017a39e794f02a617c1fb0045953 | 6a46cd86721a14e4449c727d339438c5b4629340 | refs/heads/master | 2020-04-17T04:55:09.302894 | 2019-01-18T13:05:44 | 2019-01-18T13:11:03 | 166,252,918 | 0 | 0 | Apache-2.0 | 2019-01-17T15:56:35 | 2019-01-17T15:56:35 | null | UTF-8 | Python | false | false | 2,570 | py | #!/usr/bin/env python3
"""
Test that ensures that PKCS11 module support works.
"""
from common import LOCALHOST, STATUS_PORT, TcpClient, print_ok, run_ghostunnel, terminate
import urllib.request
import urllib.error
import urllib.parse
import os
import signal
import json
import sys
if __name__ == "__main__":
ghos... | [
"cs@squareup.com"
] | cs@squareup.com |
1497d31ff7f6a9e237ee4bdc9e50094c38dda229 | acedd9218ecb272c658cf4940dddd763ca5a7fc7 | /venv/bin/pip3.6 | dab4cb1fcc4313611354ef81a4dcf96c5bcb6ba6 | [] | no_license | maximussJS/news | 8a372abe334f6f7f53b8485e0d4c35be171cdc4d | bce12353ddb031e271f7a67a6bc86cb61a949e5e | refs/heads/master | 2020-04-07T05:19:02.823125 | 2019-02-08T12:00:20 | 2019-02-08T12:00:20 | 158,092,293 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | 6 | #!/home/maximuss/PycharmProjects/server/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"mkorsun00@gmail.com"
] | mkorsun00@gmail.com |
42b7b437e7c5803b60ae526ebe80ea1133c1e451 | ce42dda5c2ae9f1ba0d4a6311fb21df84d937af5 | /env/bin/sqlformat | ab72ddc8e30407c072e68b5a75a156a84cda142e | [] | no_license | Azim85/django-project | fcb2af9f960fc54277a548fc8d25f6c28c821a62 | f94c85baaf4e9584f7ce7b4dc6332a496558feee | refs/heads/master | 2023-01-20T18:43:09.072183 | 2020-11-25T18:52:48 | 2020-11-25T18:52:48 | 316,026,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/azimjon/junior/django_project/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"azim_rizaev@mail.ru"
] | azim_rizaev@mail.ru | |
63df120c54856259f8e6a82df20342c6997a4745 | 97a5e07d9df13abffd2ed142a1b22534f6f99bf6 | /optaplus/__init__.py | f820abd474c4c0ff55992abe0146da76c157a73b | [] | no_license | tylerjrichards/optaplus | eb7c90568b6fca76f068aaf88b4dd95eb4e042e8 | ff2fa3ea40b00929faa97015fb8e721ab57ee578 | refs/heads/master | 2020-04-24T07:09:40.528050 | 2019-02-24T21:28:09 | 2019-02-24T21:28:09 | 171,789,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,179 | py | import xml.etree.ElementTree as ET
import pandas as pd
import numpy as np
def add_attacking_direction(eventsDF, tdatDF, playersDBDF, tMetaDF):
attacking_directions = dict()
home_gk = playersDBDF.loc[(playersDBDF['position'] == "Goalkeeper")].loc[
0]['jersey_no']
gk_starting_position = tdatDF.... | [
"tylerjrichards@gmail.com"
] | tylerjrichards@gmail.com |
ebbd48730fbd9939ec1d72fb2ef3df5c198e09f2 | 1eb72c0482efd06e1b06a7f3af8f6a5250b82584 | /code/lang/complex_if.py | 707a5937eca1f84dfba9e07c8e611c1bd8536da4 | [] | no_license | Bubujka/python-learning | dcb8e5f8fc40600b431a2ec1f4a16814fbbfa5c9 | 79bbe16bec01d429c34f9c36f1d15b4f77c811bf | refs/heads/master | 2021-09-07T15:31:54.822139 | 2018-02-25T03:08:06 | 2018-02-25T03:08:06 | 109,488,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | #!/usr/bin/env python3
"""
Комплексные условия в if (and, or)
"""
if True and True and False:
print("NOPE")
if not True or False:
print("NOPE")
if None or None or 1:
print("yeeep")
| [
"zendzirou@gmail.com"
] | zendzirou@gmail.com |
2748416038b0b58376133bc0d50818b602a1d0a9 | c9f062b3d8169ed51e01c1802736eed2dea0b914 | /app/app/api/api_v1/endpoints/items.py | c7ea95522c4db2fcbf2c2439f0f4f4b1bcbb3dc3 | [] | no_license | weisisheng/fastapi | 3267811fbb26ec229f5bceb70aafdfe178386fba | 8db6f65b9b03d60ea102faca9d77b68667d8f057 | refs/heads/master | 2022-12-07T17:04:38.092339 | 2020-08-27T15:47:59 | 2020-08-27T15:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | from typing import Any, List
from fastapi import APIRouter, Depends, HTTPException
from sqlalchemy.orm import Session
from app import crud, models, schemas
from app.api import deps
router = APIRouter()
@router.get("/", response_model=List[schemas.Item])
def read_items(
db: Session = Depends(deps.get_db),
s... | [
"chris@karmacomputing.co.uk"
] | chris@karmacomputing.co.uk |
ff31efc823a5f2d43471dc601119cb87be6c108a | fbfacaa3150b5c67eaeeda5c38556676defea2b0 | /my_app/urls.py | e2a59fb82ffe22ae4c6d47f5c120607a993206a6 | [] | no_license | OussamaNaj/ChatbotInterface | d1003b0bb3366cbee53284342c988461a6ea1154 | 04bdfeb382c7790bb4e896f519a4f1828de8a66d | refs/heads/master | 2023-04-05T10:40:18.717505 | 2021-04-15T22:10:30 | 2021-04-15T22:10:30 | 358,399,622 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | """my_app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"michiamoOUSSAMA"
] | michiamoOUSSAMA |
287d049c635aee1066d607ad2555e00e254b7f26 | 122e7a4aab04f43d0cd6222cae6a60923183a85c | /plotly/validators/heatmap/__init__.py | a6aaa0c1d980bee53dd6140fa8b2b2b447475083 | [
"MIT"
] | permissive | Jo-Con-El/plotly.py | 2e706cc0f0a0181d2989c68c89c7e1d7a14aa2d1 | 106269e1f514d0f62106abfdfe29539886afeee0 | refs/heads/master | 2020-05-28T07:33:20.219830 | 2019-05-27T23:15:09 | 2019-05-27T23:15:09 | 188,923,044 | 0 | 0 | MIT | 2019-05-27T23:57:18 | 2019-05-27T23:57:18 | null | UTF-8 | Python | false | false | 37,482 | py |
import _plotly_utils.basevalidators
class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name='zsrc', parent_name='heatmap', **kwargs):
super(ZsrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_ty... | [
"noreply@github.com"
] | Jo-Con-El.noreply@github.com |
edfde233b9fd6e03f085f971ebe3dd9459d23689 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models.py | d27e5d49e658fa08f7750ab5a048c24f6badf3ae | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 66,522 | 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"
] | scbedd.noreply@github.com |
904064dbeadbe175479b6b5f4ea8cc8c9c81ef57 | 74ca902eb52e2f325fbe54927c5c2d41aea3471c | /namba/env/bin/automat-visualize | ac3d53a5923c895e09af64575efa510a547f29a7 | [] | no_license | UlanDT/nambafood | 5da003536c1b5729358330f130f34d9f44019eaa | 41ef0422e36567c295eda8e383842c5882306b89 | refs/heads/master | 2023-04-13T14:19:30.710211 | 2021-04-24T10:13:07 | 2021-04-24T10:13:07 | 294,014,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/Ulik/Desktop/namba/namba/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from automat._visualize import tool
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(tool())
| [
"Ulik@Ulanbeks-MacBook-Pro.local"
] | Ulik@Ulanbeks-MacBook-Pro.local | |
69b2a3b89c1ec5b73754a3dcf965aa5ec3ac4d1d | 66746ed38e13b2d069829b1e7d963e2a66808f4e | /48 - Estrutura de repetição WHILE TRUE - Cadastro de pessoas.py | 3122b65c4c5ec871a41657df7530cfc8ea8c5469 | [] | no_license | leanndropx/px-python-logica-de-programacao | 23ea8064381646623556130c29c7ecec4a845eb1 | 72d852abc8b4f85c0963909aab8e6aa0e9278ec1 | refs/heads/master | 2023-06-17T09:22:47.516634 | 2021-07-15T11:42:19 | 2021-07-15T11:42:19 | 385,781,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | # - DESCREVENDO O DESAFIO
print('48 - Crie um programa que leia a idade e o sexo de várias pessoas. ',end='')
print('A cada pessoa cadastrada, o programa deverá perguntar se o usuário quer ou não continuar. ',end='')
print('No final, mostre:')
print('1 - quantas pessoas tem mais de 18 anos.')
print('2 - quantos hom... | [
"leanndrompeixoto1@gmail.com"
] | leanndrompeixoto1@gmail.com |
d8620986ed08c6ec05ee3c01c4ec5b2b32c42c80 | dbd909d9eef0f3ff6efbfd43037e4386216de2ef | /mmdet/datasets/pipelines/auto_augment.py | a210d72c718912f8366ae1512de3b20bc8856bec | [
"Apache-2.0"
] | permissive | NichaA/mmdetection | 085cf8973be87144e39f25acf68763c458b5c2a4 | 741b638a1fc60408f46d673457a3e1e513d18cf1 | refs/heads/master | 2022-11-13T23:45:45.279976 | 2020-07-03T12:06:27 | 2020-07-03T12:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import copy
import numpy as np
from ..builder import PIPELINES
from .compose import Compose
@PIPELINES.register_module()
class AutoAugment(object):
"""Auto augmentation.
This data augmentation is proposed in
`Learning Data Augmentation Strategies for Object Detection <https://arxiv.org/pdf/1906.11172>`... | [
"noreply@github.com"
] | NichaA.noreply@github.com |
36b84ab7355e349ade4d27724652abf39251d362 | 08db0c32e023e1eb4ae13fe7812f9ebbf69d3c33 | /example/schema.py | 005fa8c7dce46c8fbd6a21495d16d5a868de6a95 | [
"MIT"
] | permissive | Speedy1991/graphene-django-jwt | 3477139ac612a71983141adb4c44f1808d009990 | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | refs/heads/master | 2022-09-01T07:46:49.149618 | 2020-05-30T07:51:33 | 2020-05-30T07:51:33 | 259,065,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import graphene
from graphene_django_jwt.decorators import login_required
from graphene_django_jwt.schema.mutations import Mutation as JWTMutations
class Mutation(JWTMutations):
pass
class Query(graphene.ObjectType):
hello = graphene.String(required=True)
hello_protected = graphene.String(required=True... | [
"arthur.holz.91@gmail.com"
] | arthur.holz.91@gmail.com |
6e59bb799f9c1b5dabcc39fd12eb1ec52b01ee55 | c040991b16423f5f90591c29c165efdb6b38fd60 | /Week 3/quicksort.py | 15ab013bdda9ae2e774cda2ce5e5d261553a06c2 | [] | no_license | nchong128/fit2004 | cecad83b21b6abfc8146845c524ae8a1cb9cb068 | d836550b97411d7153f77dbac69df5405ec49f30 | refs/heads/master | 2022-01-15T10:10:18.874519 | 2019-06-12T05:36:09 | 2019-06-12T05:36:09 | 177,685,331 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | def partition(alist,first,last):
pivot = alist[first]
LBAD = first+1
RBAD = last-1
# continue until pointers cross
while LBAD <= RBAD:
# move LBAD until it points to a bad element or crosses RBAD
while LBAD <= RBAD and alist[LBAD] <= pivot:
LBAD = LBAD + 1
# move ... | [
"nchong128@gmail.com"
] | nchong128@gmail.com |
5e6ee8b555a309e5ce5e7845954d392ab41207eb | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep010/I_w_M_to_W_pyr/pyr_0s/L7/step10_a.py | 985e11f6a4a139c0e01e9166d0f6ff8d31fb4b6d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
a6992782948a8e58886b5f6a4af193508befe6de | ed71eb7fa3beaa85e81ff7505d43acbf495f7965 | /conf.py | 757f62671a3098b662cf7426a447e697ab5b9326 | [] | no_license | alexprincel/2epf | d67b9e88e5e9fabb54f7130c679bce5d7ebc855a | f093c1ee05dd5c78e395c37bb820b5bd18660746 | refs/heads/master | 2023-03-26T08:03:15.012547 | 2021-03-21T23:55:19 | 2021-03-21T23:55:19 | 345,661,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"alexprincel@gmail.com"
] | alexprincel@gmail.com |
2e99c2beb2543e397a4f428b794066f55709b44d | f05e3d6d2a1ad94fd3d5adbe99170c2cb1086062 | /EventCal/settings.py | b0d992c39f80543036dd1656e0e1e5f65e311930 | [] | no_license | Avi-sa/To-doCal | 6e82e15e0ab83fc349cffbd3b2c498c009928ac5 | ae29e5887522e9b1b6821b92b9b02038ed453999 | refs/heads/master | 2022-12-23T19:27:07.647016 | 2020-10-01T13:14:50 | 2020-10-01T13:14:50 | 275,760,097 | 0 | 1 | null | 2020-10-01T13:14:51 | 2020-06-29T07:21:18 | Python | UTF-8 | Python | false | false | 3,108 | py | """
Django settings for EventCal project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"avivish000@gmail.com"
] | avivish000@gmail.com |
f6f83d8fcc21b13c0e3b8d60e21349fc3e1accdd | eb40dce4039d528b9cd06dbeda75da09d09d7fc5 | /need_install/Django-1.8.17/tests/admin_changelist/models.py | c01bf320621803e3f82fa4938596e56fe61caefe | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MulticsYin/MulticsSH | 39b62189446787c7f0f037b1640c9c780bd1dddd | 5837a0bff0e7da0e8535e4e0b31ef6baf24274b4 | refs/heads/master | 2021-08-28T07:53:51.759679 | 2017-12-11T15:31:03 | 2017-12-11T15:31:03 | 82,428,902 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
class Event(models.Model):
# Oracle can have problems with a column named "date"
date = models.DateField(db_column="event_date")
class Parent(models.Model):
name = models.CharField(max_length=128)
class Child(mo... | [
"multics_luo@163.com"
] | multics_luo@163.com |
7e564cf76ca32c031bbfa57f636702ae377eaa13 | bf23b8898f6457d8e58f8599f8be81e22114dd3e | /TF_learning/tf_sess.py | f0f7fa3532d3659f6ac11b76f7c321910e7a072d | [] | no_license | alphadl/TensorFlow_learning | 9f214afcc560975ab52e23085b022b829f650a9a | 76e322bb108a17fc261f3587e01c1de91c82b369 | refs/heads/master | 2020-07-29T23:31:27.473211 | 2017-01-10T07:56:29 | 2017-01-10T07:56:29 | 73,654,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import tensorflow as tf
matrix1=tf.constant([[3,3]])
matrix2=tf.constant([[2],
[2]])
product=tf.matmul(matrix1,matrix2) #matrix multiply np.dot(m1,m2)
# #method 1
# sess=tf.Session()
# result=sess.run(product)
# print(result)
# sess.close()
#method 2
with tf.Session() as sess:
result2=sess.r... | [
"568775983@qq.com"
] | 568775983@qq.com |
e8364f58a88fcdb2c10225d9f1521f10130693d9 | 083558f27c674112dc0811eed9915a91d99fa0a0 | /Строковый тип данных/Методы строк часть 2/Очень странные дела.py | c2e22fcf82e03e35667efe7d4a215fca71dcd999 | [] | no_license | Kanres-GH/Pokolenie-Python-Stepik | e677639af1eabfd29635b792192b4fd5f107f5bb | 54b8d0ae7dbf7aaf2ea97300e643e1787b87ac7f | refs/heads/main | 2023-04-23T04:42:59.662055 | 2021-05-01T17:42:25 | 2021-05-01T17:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | n = int(input())
cnt = 0
for i in range(n):
s = input()
if s.count('11')>=3:
cnt+=1
print(cnt) | [
"noreply@github.com"
] | Kanres-GH.noreply@github.com |
99dd520ad3dd4ad8cbd7c6e44e59614e5bf3ffee | 4d77f3da849bed4846b2517b387aad94bb09992b | /myTraining/qLearning/qLearning.py | bbbeba48b1e4a2fbf25e969bbfe805f3e18ecfc0 | [] | no_license | Gwiradus/myRepository | dc7d5caac5fac4ce00a0c6e7f756d3f70e9aee97 | 3303ecc45bcbbaeb69832a19266e5c0c9e514ff3 | refs/heads/master | 2020-09-21T17:23:31.795583 | 2020-04-19T15:58:36 | 2020-04-19T15:58:36 | 224,864,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | import matplotlib.pyplot as plt
import numpy as np
def next_state(x, u): # Current state x, performed action u
x += 10 * u
return np.clip(x, 0, 100) # Next state x
def reward(p, x, u): # Current price ... | [
"51299865+Gwiradus@users.noreply.github.com"
] | 51299865+Gwiradus@users.noreply.github.com |
59c8f9be7956acf784c4ef66e26701cbeffb4157 | 2e433ffaa53559493e10922b6d51e50c03407536 | /PID_control/PID_external/config.py | 4d6c002b455afe46a3fc380ab53966670650d887 | [] | no_license | colin-zgf/RCSD | 650c93bb5eaf35bde5262f3628ed5795d7dd53b6 | 4d79b2d586c9ad3ff9e8e6aedf2c786968b33df0 | refs/heads/main | 2023-03-26T09:00:58.957497 | 2021-03-21T09:10:18 | 2021-03-21T09:10:18 | 349,257,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | import numpy as np
from easydict import EasyDict as edict
config = edict()
config.alpha = 6.7
config.beta = 3.4
config.epc = 3.0
config.eta = 0.0
config.num_iters = 1000 # number of iterations.
config.time_periods = 3.0 # time period, unit s.
config.m1 = 1.0
config.l1 = 1.0
config.lc1 = 0.5
config.I1 = 1.0 / 12.0
co... | [
"guangfei.zhu@flexiv.com"
] | guangfei.zhu@flexiv.com |
eaf2b6065b7232e9dbb79998ea313061323eef13 | 16c24cba9ca47b27dafed2595159b5970fbebbd2 | /shan/model.py | d87ad854a89753ad86c12c89bdd81baf39e8e3b2 | [] | no_license | jakisou/SHAN | 834c80271c2a0ad85c12667d7ddd0187d3aa431a | 7e5b5f4970808407f2dc9498e8600bc85b18a4c9 | refs/heads/master | 2022-04-07T23:49:11.382667 | 2020-02-29T07:50:12 | 2020-02-29T07:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,297 | py | import os
import json
import numpy as np
import tensorflow as tf
from functools import reduce
from operator import mul
max_length = 90
VERY_BIG_NUMBER = 1e30
VERY_NEGATIVE_NUMBER = -VERY_BIG_NUMBER
class Model(object):
def __init__(self, config):
self.config = config
# Summary Writer
sel... | [
"2719584131@qq.com"
] | 2719584131@qq.com |
9f5fd565d7ba9817e9f3eaa0b4c21caf0e3a5c5b | 157efc8223be28882fff6e6d64b04a549b16e84e | /MODULES_DATA/DefenseEvasion_CodeSigning_StolenMircosoftWindowsSignature/sigthief.py | 5f73f13dfddf5630caa3eaadf39563fb4d0db16e | [
"BSD-3-Clause"
] | permissive | qq529952515/viperpython | e44161494ce23b4e1515f8c1a651865855467f03 | af277c1f1008332c0e99e507851c3c50758baf4c | refs/heads/main | 2023-07-14T14:11:46.965259 | 2021-08-24T12:29:09 | 2021-08-24T12:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,636 | py | #!/usr/bin/env python3
# LICENSE: BSD-3
# Copyright: Josh Pitts @midnite_runr
import io
import shutil
import struct
import sys
from optparse import OptionParser
def gather_file_info_win(binary):
"""
Borrowed from BDF...
I could just skip to certLOC... *shrug*
"""
flItms = {}
binary = open(bin... | [
"none"
] | none |
1bdef4827baa52ad70bc09641ae345b993e56b6f | 5297bfa2709a0f570f48e580c43fe4d57a907669 | /PYBT1L2LogicalOperations/Logicaloperations.py | b49b65d8751d0bc6d0a261b174110628871cde7e | [] | no_license | JesseXen/Pythonachievements | 5d3e03766590d6df08c24a7d1359161f5c6feacc | 177f238c6473fa7cef07d393ac59b2887b754862 | refs/heads/master | 2023-07-29T21:07:03.874341 | 2021-09-27T10:40:43 | 2021-09-27T10:40:43 | 407,121,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | name = "Jesse"
money = 2000
wantIt = True
if(name == "Jesse" and wantIt or money > 1000):
print("buy new clothes") | [
"Jkeppel19@gmail.com"
] | Jkeppel19@gmail.com |
059478f333d3dfbfa79ef60e67039a3ab163cad2 | eef40c9c88a6fa81903962cfedffda7b0bd76266 | /ARF2/TME7/tme7.py | bc43ebed2641be754b547b4b8a8aead0cea1da79 | [] | no_license | dinuk92/Master_1- | 09dc5f56195b104cbb85cf30d22ea67f315042da | 2266670bb686d607b64c61ea2a054fe661f1f700 | refs/heads/master | 2020-12-30T09:14:56.801694 | 2017-10-30T09:25:02 | 2017-10-30T09:25:02 | 100,397,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 7 11:13:29 2017
@author: 3200183
"""
print(__doc__)
import numpy as np
import matplotlib.pyplot as plt
from sklearn import clone
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
from sklearn.externals.six.moves import xrange
#... | [
"dinuk@debian"
] | dinuk@debian |
63271f899644e5b03ae947783d83297511fded02 | 85f356aec9767ec6ef466745974909e6f3358933 | /cp2k/sum_data.py | 94730ed74e750449872fad076ead29312b279247 | [] | no_license | lileist/myScripts | f613df199aa447bffad4f1052dae519dafed876e | 2b2cfef1a8f7f20b28251c78118710ce0f9eff00 | refs/heads/master | 2021-06-04T13:53:24.379064 | 2020-02-17T01:44:38 | 2020-02-17T01:44:38 | 112,781,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | #!/usr/bin/env python
"""
This code is used to integrate the mean force from thermal integration, thus obtaining free energy
datAlz_TherInteg.py [inputfile]
An example of inputfile (any line starts with '#' will be ignored):
distance = 2.4 2.5 2.6 2.8 3.0 3.2 3.4 3.5 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0
mode = a... | [
"leili_ut@utexas.edu"
] | leili_ut@utexas.edu |
e203dd8619144ece7db64aa824871997e2cbe214 | b57834817c352c701d73bb596404dbcce0d424e2 | /generator.py | ed92f2bbd5663cdd08bd5254d4187a4d4e66e448 | [] | no_license | linzj/AdvanceHook | b6a65efcbef6990f86dd5a06ededbbb0a2be34cb | 5b32af4dc283c99c9520d8a57ea82a03330d0f94 | refs/heads/master | 2020-05-19T20:08:02.548882 | 2014-12-17T11:09:02 | 2014-12-18T01:39:04 | 27,906,645 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,550 | py | """
the format is a python dict.
{
"functions": [
{
"mangled_function_name_to_hook" : xxx(string),
"mangled_function_name_to_listen": xxx(string),
"parameters" : xxx(int),
},
],
}
and this script but a binding between the hooked function and
the listener funct... | [
"linzj@ucweb.com"
] | linzj@ucweb.com |
e5b393b40badb1b8778a10300c04312723c303bc | d377700d0894c0a58c93b94a8fc1b96931cf42eb | /tests/conftest.py | 0e00d0de5402853f3bd554ff15d2587317be8e09 | [
"MIT"
] | permissive | cr3/lookuper | a33db14f6e5cef6351ee5c70e080a6e07a71ae74 | 5e2d0520ad3f78b2c2623f0e9b46390c18edef46 | refs/heads/main | 2023-01-21T07:20:02.214208 | 2020-03-28T02:51:48 | 2020-03-28T02:51:48 | 248,893,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | """Pytest configuration."""
def pytest_make_parametrize_id(config, val, argname=None):
"""Return the canonical string representation of the value."""
return repr(val)
| [
"marc@interunion.ca"
] | marc@interunion.ca |
4c40bf1b6a97a592822efd6388eb99f0064d1be1 | 2b42da23d1b4506a7b48cc2dbce37e9780fe2512 | /python/18-2.py | d912ccb03ed0ba04f867e5c8a855ab3c3bb079a4 | [] | no_license | annaiszhou/LC | 967d27577e8a12d1161d8abc87d9693523864c84 | a321d165c6a92552ca283757ea5f57ae509a17c1 | refs/heads/master | 2020-03-22T14:01:56.159989 | 2019-08-11T16:48:39 | 2019-08-11T16:48:39 | 140,148,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | class Solution(object):
def fourSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[List[int]]
"""
nums.sort()
results = []
self.findNsum(nums, target, 4, [], results)
return results
def findNsum(self, nums, t... | [
"anna_zhouweiwei@outlook.com"
] | anna_zhouweiwei@outlook.com |
b8b775f18af35948840f03b6991da3ce616afdf3 | 88a3d169c4c46517b0b7246407afce02e48cea9e | /ex44d.py | 23953af0904909f37748e08268ba0ba0b1dd93fa | [] | no_license | ChangfU2017/Learn-Python-the-Hard-Way-3rd-Ed | e32826e5715ec584cf231eb26d4ca5c44acd0d46 | 017875c82238d62b597c405ce70438a00296b329 | refs/heads/master | 2021-01-20T09:16:41.378814 | 2017-09-21T03:47:56 | 2017-09-21T03:47:56 | 101,590,094 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | class Parent (object):
def override(self):
print "PARENT override()"
def implicit(self):
print "PARENT implicit()"
def altered(self):
print "PARENT altered()"
class Child (Parent):
def override(self):
print "CHILD override()"
def altered(self):
print "CHILD, BEFORE PARENT a... | [
"noreply@github.com"
] | ChangfU2017.noreply@github.com |
7103b73071b1720d5948716e67321c7ff51b7222 | 4996db18c398fed4642827813cc6d0c0b3c49e05 | /s/single/SingleHyp.py | 6c0f57df15e0f9319e3ceec0ebbbdf859440dcdd | [
"MIT"
] | permissive | BobNobrain/matstat-labs | f8acc9b9de5c5bbfa030981926d6f19d7b218868 | bf7c95b29a6dc8b65675a780871400fd729f9e35 | refs/heads/master | 2022-08-07T08:46:56.204295 | 2020-04-20T22:23:14 | 2020-04-20T22:23:14 | 152,410,113 | 1 | 7 | MIT | 2022-06-21T21:28:20 | 2018-10-10T11:06:59 | Jupyter Notebook | UTF-8 | Python | false | false | 972 | py | from s import AltHypKind, Hyp
class SingleHyp(Hyp):
"""Single sample hypothesis"""
def __init__(self, dist, kind=AltHypKind.TWO_SIDED):
super(SingleHyp, self).__init__(dist, kind)
def criterion(self, sample):
pass
def test(self, sample, alpha):
_, _, _, result = self.full_te... | [
"nikita-ivanov.mail@yandex.ru"
] | nikita-ivanov.mail@yandex.ru |
8dd3bb853f8f0ec562974058a226e570a8bb1911 | 384636a27c1634332853eac87e2b2d438d91f171 | /1.py | 8ddbff25aa3835c848ec73b9536f4089f4178824 | [] | no_license | disheng-lee/send | ce7bc59d6a3020d46b7bb33bacb181c409e86309 | 4429eef5f8965538f421005d884522a54f05a5ea | refs/heads/master | 2021-01-10T13:03:06.063473 | 2016-04-03T02:13:00 | 2016-04-03T02:13:00 | 55,324,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import itertools
def g():
print('--start--')
for i in itertools.count():
print('--yielding %i--' % i)
try:
ans = yield i
except GeneratorExit:
print('--closing--')
raise
except Exception as e:
print('--yield raised %r' %e)
else:
print('---yield return %s---'%ans) | [
"851868265@qq.com"
] | 851868265@qq.com |
8baa9d2d34c28cf039e89bca5f34422e62280386 | e488d6d5300b84065ddb50320aa3930d64798047 | /mkt/constants/__init__.py | 5c29991237eb8686d3066ac298329ca61909b66c | [] | no_license | potch/zamboni | 81b2bf01a1d93bbf933a0b3f30db56b438b7b75f | 4e0bfa8be5af334e2c4be3917e3794216498291c | refs/heads/master | 2021-01-15T21:15:25.102909 | 2013-01-02T17:07:02 | 2013-01-02T20:16:10 | 634,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from .platforms import DEVICE_LOOKUP, FREE_PLATFORMS, PAID_PLATFORMS
from .submit import (APP_IMAGE_SIZES, APP_PREVIEW_MINIMUMS, APP_PREVIEW_SIZES,
MAX_PACKAGED_APP_SIZE)
| [
"me@mattbasta.com"
] | me@mattbasta.com |
54c31aff26c1ba06a43fae42b8bd6e4be7826720 | 94af2002630c1904a60495a29c7c4ca9f976131b | /account/forms.py | 7c5631e5a225f2a7e347ba7fd3928bdfbf69e408 | [] | no_license | Shahoriar007/veryEcom | b7f639596ec572f564fb9c8499f4ba58823b7d38 | 7744fb268dd8c92a77c77888d6293316fd76fbc5 | refs/heads/main | 2023-04-07T11:11:28.443932 | 2021-04-16T14:56:13 | 2021-04-16T14:56:13 | 342,769,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,404 | py | from django import forms
from django.contrib.auth.forms import (AuthenticationForm, PasswordResetForm,
SetPasswordForm)
from .models import UserBase
class UserLoginForm(AuthenticationForm):
username = forms.CharField(widget=forms.TextInput(
attrs={'class': 'form-co... | [
"shahoriar.fahim@gmail.com"
] | shahoriar.fahim@gmail.com |
50f104e0f6bb819ed7e3260cd1671e57d0744183 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003381.py | 5237a05fd13b91ed25973d14234596c3dec60fd5 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
05efc7b30a9fe77f60078b108f96814290c2db03 | 1ac1b7ef94678b8dccd7ce816d97ef5573c4d31e | /books/urls.py | ae66882b2f0a51f9c1fdc57d46a4bbed9fddeecb | [] | no_license | daros21/django | aa7554b243e817a1ba0ee109f20588ba8e65c3b8 | 5933df44317f7771828af7085b8db6cd03ec12cd | refs/heads/master | 2020-09-12T16:56:22.174195 | 2019-11-20T15:30:30 | 2019-11-20T15:30:30 | 222,485,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from django.contrib.auth.decorators import login_required
from django.urls import path
from books.views import books_list, book_details, BookList, BookDetail, book_comment, books_to_excel
app_name = "books"
urlpatterns = [
# path("", BookList.as_view(), name="list"),
path("", books_list, name="list"),
pat... | [
"daros21@op.pl"
] | daros21@op.pl |
b1950eb1635b826c8dc11ed529462d7a7e55eafe | 7a8260a44965f7bfb8c70091f768da9e7b2eda18 | /Day_5/practice/practice_05.py | f2135b32177366ab11cd453db30d3fe928c6aaee | [] | no_license | Mao-dabai/LT_Study | fc38750af25423b883449c46ffe1c3fd733341b7 | a07812432eae46b973dd2bcdcbab49617f166664 | refs/heads/master | 2023-05-09T23:57:50.891162 | 2021-06-06T15:26:58 | 2021-06-06T15:26:58 | 345,310,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | # coding:utf-8
'''
@author: 猫大白
Project:
'''
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium import webdriver
class baidu_page():
def __init__(self,driver:WebDriver):
self.driver = driver
search_ipt = (By.ID,'kw')
submit_btn = (By... | [
"13582105112@163.com"
] | 13582105112@163.com |
dca6ab2cb5a6edd469de7037f706a352b60d86c6 | 7b9228e7c7407bc2a2a86200890b73005d932e91 | /engine/winsAccurate.py | 463003a3222f0ab6f06bc56d191a5c702cff4162 | [] | no_license | hughpearse/The-House | bf5593d9ac2d1955a5e77b285c57bb7122489ad2 | c9225316f21d58de0444726bb9d0a689de533628 | refs/heads/master | 2021-01-22T14:45:50.150000 | 2016-03-15T21:34:58 | 2016-03-15T21:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import glob
import os
import operator
os.chdir("games")
winners={}
numFullGames = 0;
for file in glob.glob("*.txt"):
if(file!="config.txt"):
f = open(file, 'r')
lines = f.readlines()
winner = ""
for line in reversed(lines):
if "wins" in line:
words = line... | [
"jpmccabe@mit.edu"
] | jpmccabe@mit.edu |
9f0f75423dd42ac1839410455e0157842310523d | 5576d59e4f7c7435e371aec4e939f2e09e32369e | /Week 1/Q1.py | 2d78a43fc3eacd659f7007b4ddc9345a6a2031ba | [] | no_license | sandhud6/Coursework-210CT | 76a424a4fca82cb3bd6e93ba377615387db4f187 | a623da89bbf52d3761caea3fb94260a92c65777d | refs/heads/master | 2020-06-13T07:04:23.626404 | 2016-12-02T22:58:24 | 2016-12-02T22:58:24 | 75,416,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import random # random numbers is imported
def randomlist(List):
answer= [] # variable name
while len(List) > 0: # while loop shows the list is greater than "0"
num = random.randrange(len(List)) # reorder the list
answer.append(List.pop(num)) # takes element and puts it in a new list
... | [
"visualassembly1"
] | visualassembly1 |
c1defc981604f62f2d382caf6d561b464f26cdd8 | f6ab64e8e13b7c835ab50c543b151baa0e0e98b0 | /apps/dashboard_app/urls.py | 8412e867b39798a4061e681c3b019b6d95cb7a9d | [] | no_license | jcasorla/Expimed | a4945bd84d79118b3db2a16a3780ef911da059c6 | ee5994abed62f63e085d47a3840b430fc7c5ebaa | refs/heads/master | 2020-07-15T16:16:31.658134 | 2020-01-21T02:01:18 | 2020-01-21T02:01:18 | 205,605,482 | 0 | 0 | null | 2020-01-19T02:32:12 | 2019-08-31T23:09:21 | HTML | UTF-8 | Python | false | false | 1,695 | py | from django.conf.urls import url, include
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^dash/show$', views.show),
url(r'^dash/meds_grid$', views.meds_grid),
url(r'^dash/cat_grid$', views.cat_grid),
# url(r'^dash/calendar$', views.calendar),
url(r'^dash/new_patient$', ... | [
"precado999@gmail.com"
] | precado999@gmail.com |
81317cbb3f055d78b8a02945f4d3232fbd51e5d6 | 23ae3ada518b9bc728eba9a83ac1be671a4cdeaa | /switchboard/__init__.py | 4bb32af9d206b8978d213ce4ff4f3876e230750c | [
"BSD-3-Clause"
] | permissive | adiebrown80/switchboard-python | e997dba9b19c435d2246cf91ef8abe672c7e27f4 | c9b0cb74cb12a64385465091be633e78d39f08b1 | refs/heads/master | 2021-05-05T04:08:47.709561 | 2015-08-03T20:40:26 | 2015-08-03T20:43:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
"""
A Switchboard worker/client implementation.
"""
__author__ = u"Thomas Moulia <jtmoulia@pocketknife.io>"
__copyright__ = u"Copyright © 2014, ThusFresh, Inc. All rights reserved."
from ws4py.client.threadedclient import WebSocketClient
import aplus
import json
import email
import logging
... | [
"jtmoulia@gmail.com"
] | jtmoulia@gmail.com |
422bd5569152e7c11ea8437c401a100057b0229b | 71c5c21b1757cec4d98f78e41ab6bcc56bbfaefe | /RecEngine/migrations/0002_auto_20200223_1358.py | 4dc72a796f07b84afef2825cc66faedb9d29973d | [] | no_license | iamrahulsahani/PyReS | 59ce1c98b66462d23500c19f2727edb5da2f1e95 | 5155ebcc8abc28cc2f591ad7f994de72b956e427 | refs/heads/master | 2022-09-16T18:18:55.291697 | 2022-09-03T10:51:17 | 2022-09-03T10:51:17 | 243,819,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Generated by Django 2.2.5 on 2020-02-23 13:58
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('RecEngine', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
n... | [
"noreply@github.com"
] | iamrahulsahani.noreply@github.com |
ce9ad9bf98dbec1b95fd6bbc404a6d6789226c13 | 72707b0b0448e4ab268f715977905faf2b590ca2 | /day12/karishma_chhugani_37.py | fd212ae8179fbb4d8bb846f5d907058d2fff3b8f | [] | no_license | karishma3397/forskDaily | 3ffa79080c5705546ee55a307be75051f67f5c2d | cd4fe12ede511dc5188741f8a7b6f0643a0c0497 | refs/heads/master | 2020-03-21T07:49:36.978564 | 2018-06-22T13:04:26 | 2018-06-22T13:04:26 | 138,301,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 25 10:48:35 2018
@author: KC
"""
import numpy as np
import matplotlib.pyplot as plt
incomes = np.random.normal(100,20.0,1000)
print(incomes)
plt.hist(incomes,50)
plt.show()
print(np.mean(incomes))
print(np.median(incomes))
incomes = np.append(incomes,1000000)
print(np.me... | [
"karishma01chhugani@gmail.com"
] | karishma01chhugani@gmail.com |
1b5f7970359cd50efcaeb24cab8c592711e3bd4d | 2ca88d41f1bb5042338faec50b2af11931db0bdd | /test/test_forecaster_entrypoints.py | 90ba5d0e6c33b7c209c70ac83d0eba7bdfead759 | [
"Apache-2.0"
] | permissive | canerturkmen/gluon-ts | 2f2d46f9b01f5ee07a51a11e822b1c72c2475caa | 57ae07f571ff123eac04af077870c1f216f99d5c | refs/heads/master | 2022-09-10T23:30:26.162245 | 2022-04-20T12:44:01 | 2022-04-20T12:44:01 | 192,873,578 | 1 | 2 | Apache-2.0 | 2020-08-04T16:58:48 | 2019-06-20T07:43:07 | Python | UTF-8 | Python | false | false | 746 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | canerturkmen.noreply@github.com |
4bdf0186c8aaf70a47cdc8c077fdbce5c682e67a | 2e82aa7b84db88d71a1b3d69d80c6886d74ce04c | /python/2023_daily/p06440.py | c1a6a1273152cc8adb194303e40604740d62dd76 | [] | no_license | hogansung/leetcode | 6fff666483786c2eae666c752eed276700ab0404 | a466fd06d39ffdad5d19e847107e36f301549e0f | refs/heads/master | 2023-06-19T10:55:15.174253 | 2023-05-30T16:31:50 | 2023-05-30T16:31:50 | 95,144,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from typing import List
class Solution:
def differenceOfDistinctValues(self, grid: List[List[int]]) -> List[List[int]]:
n = len(grid)
m = len(grid[0])
result = [[grid[idx][jdx] for jdx in range(m)] for idx in range(n)]
for idx in range(n):
for jdx in range(m):
... | [
"wrangle1005@gmail.com"
] | wrangle1005@gmail.com |
06afb0d1210e64974c38019db61470eca8e719a3 | c40ae4e01828186357bf378d1016b6a2cec0b150 | /build/sim/catkin_generated/pkg.installspace.context.pc.py | 5bd39f228884f54502938aad2fdeec4b2cad706a | [] | no_license | Kushagraw12/Navigation_stack | 80938f0d792d9cb8c952f6066119f65ee080ceed | ba3dc764e6058ce739e34f9f38930ab3bdbe7c17 | refs/heads/master | 2023-02-14T13:30:09.333318 | 2020-12-26T15:36:14 | 2020-12-26T15:36:14 | 322,416,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "sim"
PROJECT_SPACE_DIR = "/home/kush/... | [
"wadhwakushagra01@gmail.com"
] | wadhwakushagra01@gmail.com |
d4b70a9017046975bcd5e5d8feeaa0247d6923b0 | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/slim/nets/resnet_v2_test.py | d06cbde94299ddd2b49f48504dd4119a6f6083ca | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 20,270 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
168e55f8e8249bc88f3f23214d1b6ec24cd29fcd | 31f6a7ca3f6319b617c4b6464c86eb3745a86020 | /Functions/Ridge_CZ_Sort_CategoricalFeatures.py | 446df6fe0a1596116afce3ea344cb067f18c8334 | [] | no_license | PennBBL/pncSingleFuncParcel | 6d2ff864feaf70fc35b82d7422cfdd6d1de3026f | b7928910739801e0adc2d0085305fa4f33bdceb3 | refs/heads/master | 2020-04-21T02:32:56.468937 | 2019-03-19T20:49:40 | 2019-03-19T20:49:40 | 169,257,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,714 | py | # -*- coding: utf-8 -*-
import os
import scipy.io as sio
import numpy as np
import time
from sklearn import linear_model
from sklearn import preprocessing
from joblib import Parallel, delayed
CodesPath = '/data/jux/BBL/projects/pncSingleFuncParcel/Replication/scripts/Functions';
def Ridge_KFold_Sort_Permutation(Sub... | [
"zaixucui@gmail.com"
] | zaixucui@gmail.com |
233fd7f3f4db71a23fcdf59e2e229b8098f04c23 | d9934fe0bb63e8f377a930ff45673e313c3aad8a | /sdk/modules/core/python/pypkg/metavision_core/event_io/npy_tools.py | eeb5d273daccd908a553b669f4871ff5c73bf982 | [] | no_license | HutEight/openeb | 461e47932a62922ad096173315dd3ae128fc8528 | 08b7ed3132b4babe732f7becc66ee373919bc7e8 | refs/heads/main | 2023-05-06T00:17:27.466110 | 2021-05-31T06:56:27 | 2021-05-31T06:56:27 | 372,335,807 | 0 | 0 | null | 2021-05-30T23:38:05 | 2021-05-30T23:38:04 | null | UTF-8 | Python | false | false | 2,455 | py | # Copyright (c) Prophesee S.A.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software... | [
"nmartin@prophesee.ai"
] | nmartin@prophesee.ai |
79ce293179d843ea19a8e88b7a42e900e42268b4 | ef3e2cec9116a8060517a1290310852ed3cde6f7 | /Final_Project_Code.py | 66dee12b169c2c71073e3e6bad95a6265b3fc90e | [] | no_license | egols/Geog428_Final | c5db731fdf5e821311c20e677e5df1eb1edc3c87 | ae787d6b8a4abae89d4d31af25106cac2e576721 | refs/heads/master | 2021-05-22T02:16:42.067309 | 2020-04-04T06:16:42 | 2020-04-04T06:16:42 | 252,924,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,589 | py | import arcpy
import numpy as np
import pandas as pd
import os
##allow overwriting
arcpy.env.overwriteOutput = True
##Create GDB
arcpy.management.CreateFileGDB(r"C:\Users\Eli_G\Desktop\project","project.gdb")
##set workspace
arcpy.env.workspace = r"C:\Users\Eli_G\Desktop\project\project.gdb"
#add oth... | [
"noreply@github.com"
] | egols.noreply@github.com |
bcb641e656040e66bd4d5877e5ad49de2fe7236d | 65a4cc66e9c1430154967acc009402469fce96e3 | /backend/memes/node_modules/snappy/build/config.gypi | 2d83a9b8c863fac82fca3fefd4e33e334ff4b5f6 | [
"MIT"
] | permissive | daixingy/CS5356 | 69e94f1f09fab3489011de6b92dca8a9105e6eac | 08009b612b9bf1471bf65f7d3b828f6831402b72 | refs/heads/main | 2023-04-10T23:11:35.312932 | 2021-04-29T02:08:16 | 2021-04-29T02:08:16 | 349,197,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,858 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2":... | [
"daixingyue1996@hotmail.com"
] | daixingyue1996@hotmail.com |
5c4bef5d8293cf8fc797a9a4bce2494a06407f43 | 7bcf9ded6d3d3cb961c8e7a55b894e3c4434062c | /saltstack/urls.py | 4907f33124225191027b315412a3f6a8c47dd46a | [] | no_license | kbsonlong/SaltRuler | 38af2bc2ba80339126e579c31b9a9b9ae191e967 | e5c4d680b9f766570b55b7a5cd6fb3d96ab1ec97 | HEAD | 2019-07-15T04:40:40.602551 | 2019-01-09T03:11:19 | 2019-01-09T03:11:19 | 104,294,181 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from django.conf.urls import url
from saltstack import views
from saltstack.svndeploy import *
urlpatterns = [
url(r'^key_list/(?P<server_id>[0-9]+)/$', views.key_list, name='key_list'),
url(r'^cmd_exec/(?P<server_id>[0-9]+)/$', views.cmd_exec, name='cmd_exec'),
url(r'^state_exec/(?P<server_id>[0-9]+)/$'... | [
"13610018065@139.com"
] | 13610018065@139.com |
a2ca72fb150256d28f8018cae6addd5908b7c460 | 612c6657c308c3a6007e3bad3fd071fc3fc48d1f | /ToTheMoon-00/ToTheMoon-v2.py | cbd2acde0dd1b3a121395c593b98d49a09c990b0 | [
"MIT"
] | permissive | valchulen/ISW1 | 7a82f8059d11e9b5698412482776f11bb2699992 | a4000cb607a545c60fad9464199f0aea407b3e9b | refs/heads/master | 2020-07-14T06:46:50.361215 | 2019-12-05T19:53:23 | 2019-12-05T19:53:23 | 205,265,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | def sentidoOpuesto(sentido):
return 'antihorario' if sentido == 'horario' else 'horario'
def usarMecha(sentido, rpm, duracion):
print("Girando mecha en sentido " + sentido + " con una velocidad de " + str(rpm) + " por " + str(duracion) + " minutos.")
def perforacionCompleta(sentidoEntrada, rpmEntrada, duracio... | [
"valchulen.pm@gmail.com"
] | valchulen.pm@gmail.com |
47c1586837be077d2a84d538858369aa305a6fba | aba9381d431cca91e5710b20553dbe8e4281f234 | /07_challenge.py | a84d0605382e40972e1c70e41fe10c4755c99b29 | [] | no_license | zettrider/pythonchallenge | bd4f9ca2b5d70c0f30d6fbb029f0b01ab54577ed | 2f49aa672170630e6a5f9e42f7ed6ad4088f88d1 | refs/heads/master | 2021-01-21T06:19:38.026932 | 2016-11-24T21:32:03 | 2016-11-24T21:32:03 | 73,583,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | '''
Challenge 7 von pythonchallenge.com
Aufgabe: http://www.pythonchallenge.com/pc/def/oxygen.html
Loesung:
Naechste:
'''
| [
"nico@schemberg.net"
] | nico@schemberg.net |
2b74909d2d1d7762214f31b2628489b91f3c0436 | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/passlib/utils/_blowfish/__init__.py | 16b85443b77e5ba7fccc0601e0d5299282f0083b | [
"MIT"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 6,509 | py | """passlib.utils._blowfish - pure-python eks-blowfish implementation for bcrypt
This is a pure-python implementation of the EKS-Blowfish algorithm described by
Provos and Mazieres in `A Future-Adaptable Password Scheme
<http://www.openbsd.org/papers/bcrypt-paper.ps>`_.
This package contains two submodules:
* ``_blow... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
05e75bf28d8ff914e6463e3329256393496c3aa2 | 7f54bdf5ac2c7bd97f38476916d51d758d037fc0 | /scrap/scrap/spiders/imdb_spider.py | a2de68982776f8d2262c4269cf63041399362e39 | [] | no_license | DTomusk/Scraping | 83f1c648dc7c31fb671c7f8c46ccf08a2477a626 | 8864080d362f4a98cc9cb849961279f6ba0a7036 | refs/heads/master | 2022-11-16T12:05:28.853505 | 2020-06-25T09:56:46 | 2020-06-25T09:56:46 | 273,224,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,534 | py | # scrape imdb to find connections between actors, go through most known for movies and highest billed cast
# could produce a graph of titles and actors
import scrapy
class IMDBSpider(scrapy.Spider):
name = "imdb"
# start url is the first given actor
found = False
def start_requests(self):
self.logger.info('Tr... | [
"david.tomusk@gmail.com"
] | david.tomusk@gmail.com |
50af0ba1fe035e61753c470d57f2f6ec17a41e80 | 7fc26864e08354acb64d75047ccf8f3d0d0e206d | /dryadic/learning/kbtl/__init__.py | 691319ac52de1e0bf79a30e043a48aa7953865d1 | [
"MIT"
] | permissive | ohsu-comp-bio/dryads | ad56f5655cba87adfa800ff30850e0810d3cc2e2 | 015f6d3186a5146809334e2490c072e675b22891 | refs/heads/master | 2023-03-28T02:52:32.920200 | 2021-03-27T16:30:34 | 2021-03-27T16:30:34 | 142,361,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py |
from .multi_domain import MultiDomain
__all__ = ['MultiDomain']
| [
"mgrzad@gmail.com"
] | mgrzad@gmail.com |
adca33c4279aacc29e2dd5d40cd0a1a62955930d | 67fc009206c80e793bc53071185c385770d177c4 | /assignments/week2/day1/Daniel_Zabari_LC_509.py | 6984156ced029d1aa998167f8b8148062169d63d | [] | no_license | xuejingao/TechnicalInterviewPrep2020 | 07c50ac49b889e7fe104da868f284eb1f51cf590 | 93fe0293fc1e8b4f83794a0cce6770f0dca9316a | refs/heads/master | 2022-11-06T18:10:47.434674 | 2020-06-19T17:47:17 | 2020-06-19T17:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | class Solution:
tab_dict = {}
memo_dict = {}
def fib(self, N: int) -> int:
# return self.fib_rec(N)
# return self.fib_memo(N)
# return self.fib_tab(N)
return self.fib_itr(N)
def fib_rec(self, N: int) -> int:
if N == 0:
return 0
if N == 1:
... | [
"zabari.daniel@gmail.com"
] | zabari.daniel@gmail.com |
e364ad1bda24608013baca7e8b90a08d3d00847b | 9da21c58f60bff08e85319a2aa55d2c6b08728de | /master.py | 2f311a109e665f3c80ba3ed416f272397766d8a2 | [] | no_license | copyrade/AnotatorLingwistyczny | beca0d666f31c129e434e77711fd8a28957aad50 | 23c931d3bd4359a6c1087e52fe9cba317ce800dd | refs/heads/master | 2020-05-22T15:35:21.799599 | 2019-05-14T17:02:54 | 2019-05-14T17:02:54 | 186,411,806 | 0 | 0 | null | 2019-05-13T12:05:13 | 2019-05-13T12:05:12 | null | UTF-8 | Python | false | false | 6,835 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 29 09:25:36 2019
@author: Ixio
"""
import tkinter as tk
import csv
from tkinter import filedialog
import re
class annotatorApp(tk.Tk):
wordList = []
relationDict = {}
def __init__(self, *args, **kwargs):
tk.Tk.__init__(self, *args,... | [
"noreply@github.com"
] | copyrade.noreply@github.com |
da572cf7c1f084ecdcfa7ea840d8fc0c400ce74e | 743fc313aa6315524bcdf3fb12658f0ab915a0be | /pytest/test.py | bd53b41d5a7732c8b0161d63fb7f3024923cd531 | [] | no_license | lm002003/vscode | bc5a4e08f8d8ab07c7019e25b417aca16db8a102 | 9791ebf9fd2b5608f18958996b53596647ed4904 | refs/heads/master | 2021-08-17T04:24:28.567007 | 2021-07-20T08:06:23 | 2021-07-20T08:06:23 | 166,933,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | # -*- encoding: utf-8 -*-
'''
@File : test.py
@Time : 2019/03/06 10:22:09
@Author : John Ederson
@Version : 1.0
@Contact : lm002003@163.com
@License : (C)Copyright 2018-2019, Liugroup-NLPR-CASIA
@Desc : None
'''
import os
import sys
print(os.getcwd())
# os.chdir("pytest") # (表示当前目录时,也可以去掉“.... | [
"lm002003@163.com"
] | lm002003@163.com |
fad1ac1734d53278dab4a3c6c24017f77648ae7d | 1b08875c7bc05d79aafa007c503d77f75181857f | /dep/SleekXMPP/examples/my_proxy_echo_client.py | cacb6c8c064ea5a5e3b5c77bc8e10f7eff0861e2 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | life0fun/teamplay | 11e17c4d6f47543dd6e396cd10423a555bbf6fc4 | 1ae19468ed3eed11a566a28f71beb682cc1bcdaf | refs/heads/master | 2018-12-29T04:17:40.482088 | 2012-12-02T18:59:51 | 2012-12-02T18:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,122 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import sys
import logging
import getpass
from optparse import OptionParser
import sleekxmpp
# P... | [
"life0fun@gmail.com"
] | life0fun@gmail.com |
98151de160beabce13b21bfdf543ed8d489593b8 | 87abafe481849704614c850c0862da47b793377b | /02-SMSSpamDetection/test/test_spam_detector.py | d899a73069a220d911abf5f93ef590907b22f5ea | [] | no_license | SamuelHericles/nuveo-teste-ia | 0852c822a97e19ccd38c2d8ee1d6d23ddfb9d0aa | 08b05dd5038d908c2e91789dc7b979928c03091c | refs/heads/main | 2023-06-07T05:24:39.088102 | 2021-07-06T00:21:40 | 2021-07-06T00:21:40 | 383,236,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,292 | py | import pickle
import pytest
from src.classes.SpamDetector import SpamDetector
spam_text = 'Sunshine Hols. To claim ur med holiday send a stamped self address envelope to Drinks on Us UK \n Wicklow \n Eire. Quiz Starts Saturday! Unsub Stop'
ham_text = 'kasjfçskdjfçsakldfjçsakl asdfsadfsadfas'
# Instantiate class, no... | [
"samuel.herilces@alu.ufc.br"
] | samuel.herilces@alu.ufc.br |
8d8fb3cc683ad40ad5f0818bfc85467640593e4a | 5127fc4c649236e64b7ee830beb3fb7ed590d1e1 | /scout.py | 4dbc70991bb86122ec2af645fca3918febad4418 | [] | no_license | sonya75/EvonyUltimatumApp | 62d9f58e0198f16a573ea3d75c862aa861cc0d61 | 0af97fe5865cb37c37939dc21cbfd9e21f7b1df9 | refs/heads/master | 2021-01-19T08:27:05.052706 | 2017-04-08T12:35:57 | 2017-04-08T12:35:57 | 87,632,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,427 | py | from evony import *
import time
import os
import sys
import json
import requests
import random
from actionfactory.builder import *
from actionfactory.quest import *
from actionfactory.items import *
from threading import Thread
def createacc(server,mailguy,declarewar,proxy='',proxytype='HTTP',useclient=None,... | [
"noreply@github.com"
] | sonya75.noreply@github.com |
f570528f4f3c581767699c0ee74cb657fcc10343 | cc1c82b2fc81162d6f0c578cf6ad133137664c56 | /L_svd/blkdiag.py | 9706bec9030e613c57d0dde308c4e124e059482b | [] | no_license | mahdipc/tcSVD | 040b5f85d54bf39b9c34faec67fc5e8188b17e2a | b8752a11a95d92d9c6bf613018a170b47695a7ee | refs/heads/master | 2020-05-09T11:01:42.518309 | 2019-04-12T18:55:52 | 2019-04-12T18:55:52 | 181,064,968 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 5 14:57:09 2018
@author: lsj
"""
from numpy import *
import numpy as np
def blkdiag(X, x):
[n1, n2] = X.shape
[m1, m2] = x.shape
row = n1 + m1
col = n2 + m2
Xx = zeros((row, col), dtype = complex)
Xx[0:n1, 0:n2] = X
Xx[n1:, n2:] = x
return... | [
"mhdmlv93@gmail.com"
] | mhdmlv93@gmail.com |
89ef96402365353d98beca0240bc74f8568ee0ab | 1f57a987cf586e889a56024d626c58728913d3fc | /devices_using_list.py | 141bb71cc22058d3f305c91ddb7dd7e9a6a686d1 | [] | no_license | aadhithan01/aadhi | 5ff2c6012c5bdffa75c39cb5699577e9e13f43c8 | fac63ad30d70bab57773d6ddb94248d04719304b | refs/heads/master | 2022-06-10T10:34:39.653649 | 2020-05-07T12:00:34 | 2020-05-07T12:00:34 | 262,035,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | #!/usr/bin/py
import datetime
import MySQLdb as mdb
from collections import defaultdict
db = mdb.connect("localhost","root","aadhithan","users")
db1 = mdb.connect("localhost","root","aadhithan","DeviceType")
cursor1=db1.cursor()
sql = "select MAC,user_name,Devicetype,TakenFor_HRS,DeviceOccuppied from AllDeviceList wh... | [
"noreply@github.com"
] | aadhithan01.noreply@github.com |
49341f78627b7d8f4e8b6fbd59e48c87a3f73ad2 | 171cc2637599470a123df253d3cdd0e099590368 | /YouTube-master/discrete_calculus/discrete_1a.py | 1089297d3b126bf12941a39cbd52359900064d79 | [] | no_license | akkiteja/GAMES-I-KNOW | 7f2e3348472be4bbe45cb567d1f785781fc4ee54 | 128d3993e248b77e6ef81c51ddcf7c2b8816aa57 | refs/heads/master | 2022-12-05T12:36:19.836336 | 2020-08-30T08:39:38 | 2020-08-30T08:39:38 | 291,214,839 | 2 | 0 | null | 2020-09-02T03:48:47 | 2020-08-29T06:28:18 | Python | UTF-8 | Python | false | false | 381 | py | import numpy as np
import sys
xp = eval(sys.argv[1])
n = int(sys.argv[2])
def S_k(k):
return s[k] + \
((s[k+1] - s[k])/(x[k+1] - x[k])) * (xp - x[k])
h = 2*np.pi / n
x = np.linspace(0, 2*np.pi, n + 1)
s = np.sin(x)
k = int(xp/h)
print(f"Approximation of sin({xp}) = {S_k(k)}")
print(f"Exact value sin({... | [
"70088733+akkiteja@users.noreply.github.com"
] | 70088733+akkiteja@users.noreply.github.com |
0023e7cc996b06d76ab3494d070946da89f55b12 | 4fd05729855c323116fbedf7e85634955d4c20d0 | /build/mavros/catkin_generated/pkg.installspace.context.pc.py | b44c834ed2e48a933058cb18e7ee765dc16fba27 | [] | no_license | zhenyibi/my-profile | 3b588b68b0a67a2bbe3a463f6e494b8b433fa03e | 1367ff0e67eb0a6638a4c2e4e146e52e205bfcf7 | refs/heads/master | 2020-11-27T09:07:30.023512 | 2019-12-21T06:05:18 | 2019-12-21T06:05:29 | 229,378,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/maybe/ros_ws/install/include;/usr/include;/usr/include/eigen3".split(';') if "/home/maybe/ros_ws/install/include;/usr/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "diagnost... | [
"945895201@qq.com"
] | 945895201@qq.com |
94536fd428bd624c4b6cba714be953c8d1c54e5a | 95310a03ef467e3e9f2090f8659d2e6fab25b9e4 | /Vision_Sim/distributed_train/train_classify.py | 930b05c4d142871d752ae1a5a660f1971728d69f | [
"Apache-2.0"
] | permissive | cash2one/Badi_Du_RD_Intern_Feed_Image_Code | 2685ad6d4940db859a57d809eb2eb87b8061aa85 | 942a74bcc8c1a76985aaae067983eba5855909b7 | refs/heads/master | 2021-06-19T14:19:39.259259 | 2017-07-24T02:34:08 | 2017-07-24T02:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,515 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"noreply@github.com"
] | cash2one.noreply@github.com |
816522a328e2247a1e43e6f0537dd652c8266d33 | 6a2c2af113bb8b4d55db6ceabc6e78a0bbcd1f91 | /genus processing/Double Breasted.py | 01a6ae3e0307df77a4447697a686b3f1c6324fc1 | [] | no_license | JinghongM/Everlasting_Data_Cleansing | 4a966aca5cba102961f64338411d76e51f60f51e | 237073980b2bd1697db578013c7463dcbc1492fb | refs/heads/master | 2021-04-26T23:48:38.083155 | 2018-06-21T20:00:11 | 2018-06-21T20:00:11 | 123,861,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import pandas as pd
import copy
import os.path
Pattern=6
Material=7
Species=4
CGP = pd.read_excel("../Realdata.xlsx")
for row in range(1,CGP.shape[0]):
genus = str(CGP.iat[row,3])
if "Double Breasted" in genus:
print(row)
CGP.iat[row,3] = genus.replace("Double Breasted ","")
CGP.iat[row,Species] = "... | [
"noreply@github.com"
] | JinghongM.noreply@github.com |
65aa66c9fe9583722fabab55fba6800ba7d7c41d | 57c54c0735c496456f03757d4d6ce934707483bf | /build/asu_robot_description/catkin_generated/pkg.installspace.context.pc.py | b46ef08a517dee33e9e239175e2d0e07e5a17e5c | [] | no_license | ahmedgamalhasan/catkin_ws | a7e0faf4efcaf833afcac4bdff68974542c17ec1 | d68a25c7a7d81748e4a2c08a82a5acf60310c909 | refs/heads/main | 2023-08-20T06:17:53.054329 | 2021-10-16T12:31:01 | 2021-10-16T12:31:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "asu_robot_description"
PROJECT_SPACE_... | [
"ahmedagh2013@live.com"
] | ahmedagh2013@live.com |
e37249193da08c35f4081014704f1c817e9cd918 | e9c23e760d4d8893da634cd37873d1701a2313b3 | /compute_predictive_models/make_combined_outputs_neuroticism_prediction_from_lifestyle.py | 2ac3c9d92b3698765a2779b268d746ebdedc0f62 | [
"BSD-3-Clause"
] | permissive | qianwg/empirical_proxy_measures | 3fa8761ac6db18bd381e9b8a10d707ad219be022 | f501dd3027fa8df29dcac92aec333cc71cbc0acb | refs/heads/master | 2023-07-18T12:40:15.121879 | 2021-09-10T14:00:57 | 2021-09-10T14:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,041 | py | import os
from os.path import join
import collections
import numpy as np
import pandas as pd
from itertools import chain
from sklearn.model_selection import train_test_split
from sklearn.impute import SimpleImputer, MissingIndicator
from sklearn.pipeline import make_union, Pipeline
from sklearn.ensemble import RandomF... | [
"denis-alexander.engemann@inria.fr"
] | denis-alexander.engemann@inria.fr |
1b1b09409871a4e234c37a9059b0d37687a76d6a | 077587712c0db1bf998e80c9a4df8dc5da621882 | /backend/app/models/IntentResponse.py | 0c362d09a9b40e59c755266d7189ff3c134ab1e7 | [] | no_license | javiergatto/liquorstore | c425df255e9c086bc868725599b0caf6ad7b0aa5 | d94a1f51e0425e0b470a05030ba197ac38e8b258 | refs/heads/master | 2022-11-29T05:21:22.250196 | 2020-08-11T21:57:32 | 2020-08-11T21:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from app import db
from sqlalchemy import CHAR, Column, DateTime, Float, ForeignKey, String, Text, text
from sqlalchemy.dialects.mysql import BIGINT, INTEGER, TINYINT
from sqlalchemy.orm import relationship
class IntentResponse(db.Model):
__tablename__ = 'intent_responses'
id = Column(BIGINT(20), primary_ke... | [
"shawnlawyer@gmail.com"
] | shawnlawyer@gmail.com |
c1e963fca60e8af56ad57c033ca7b697f1de91fe | ebd1d1bbaa0fe30590e2c8c0d19a9d7eff180320 | /ygz/Recycle/Opp2d.py | ec69aca5097b020253cfc32338dd5c40a9fc0c51 | [] | no_license | HERA-Team/hera_sandbox | 3093009c21e13a79bf3914d64b521b8fbc4bc733 | f9d292f4a91c0599947e3c013b48114b2097d76d | refs/heads/master | 2021-11-26T16:54:38.665721 | 2021-10-05T19:41:40 | 2021-10-05T19:41:40 | 95,712,482 | 2 | 6 | null | 2017-07-10T19:46:22 | 2017-06-28T21:17:39 | Python | UTF-8 | Python | false | false | 3,878 | py | #! /usr/bin/env python
import aipy as a, numpy as n, capo as C, pylab as p
from scipy import signal
#@p.ion()
#fqs = n.linspace(.1,.2,203)
fq = .15
bl1, bl2 = (0,26),(0,26)
#cuedict = {'26_23':0.125, '26_38': 0.042, '26_50': 0.083,'26_26':0., '50_57':0.122}
cuedict = {'26_26':0.,'26_38': 0.032557,'26_46': -0.034, '26_... | [
"yunfanz@berkeley.edu"
] | yunfanz@berkeley.edu |
7d598918765fd212a0acd8a862ee0fdc19695c71 | ada6ef4a7b3b02200d376595147743fd748ea45c | /app/help_command.py | e4f4382b688418101cdbe4e53ee5a5f23838b763 | [
"Apache-2.0"
] | permissive | Critteros/DzwoneczekBOT | 46801a7f5ac485190f330150ed52981d54c58f23 | 4f6100cf26f430521247f494620c9a2ceda1f362 | refs/heads/main | 2023-06-01T18:16:01.246807 | 2021-06-09T08:56:43 | 2021-06-09T08:56:43 | 335,358,844 | 0 | 0 | Apache-2.0 | 2021-02-03T19:29:42 | 2021-02-02T16:49:09 | Python | UTF-8 | Python | false | false | 1,718 | py |
# Library includes
import discord
from discord.ext import commands
class MyHelp(commands.HelpCommand):
def get_command_signature(self, command: commands.Command):
short_description: str = command.brief if command.brief != 'None' else 'Brief missing!'
return_val: str = "`{}{}`: {}".format(
... | [
"szymonkoziol3@gmail.com"
] | szymonkoziol3@gmail.com |
767f0d9fecac1370e3f4972d7415690523a3b214 | 46a624e335783f9035f14e8d5a1f7c1d76fdf69a | /tests/test_core/test_tree.py | 61c93fab4a330382681a23295ad4cdd5b1493b56 | [] | no_license | tymonpitts/game_test | cc04fccef2e54112de578e37db92870e3fd4c2d3 | b40ef729353205a9751b1f975f8a487e24286bf9 | refs/heads/master | 2021-01-18T18:30:36.789779 | 2020-05-31T04:19:57 | 2020-05-31T04:19:57 | 22,335,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,320 | py | import unittest
import game_core
from game_core.abstract_tree import _TreeNodeData
class TreeTestCase(unittest.TestCase):
def setUp(self):
self.tree = game_core.QuadTree(8, 3)
self.tree._data = _TreeNodeData(children=[
_TreeNodeData(children=[_TreeNodeData(value=i) for i in range(0, 4... | [
"tpitts@wetafx.co.nz"
] | tpitts@wetafx.co.nz |
0c4aa77a3094093376053b5f19d0e964a4b1427a | 9e15ada895e90d033bc3b65c2666065bddd62605 | /12/12.1/Path_test1.py | 3093e21b3c397c3f1a090b05e991c3d7de8b5f0f | [] | no_license | zhyErick/fengkuang_python | b0f0c78273420fd862691799bfd7e4f1b6eadf80 | 6d50ad3b7d4ae05d06379c2dc87d91081964ec6d | refs/heads/master | 2021-02-14T08:23:26.616211 | 2020-05-06T13:08:07 | 2020-05-06T13:08:07 | 244,788,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from pathlib import *
# 获取当前目录
p = Path('../')
# 遍历当前目录下的所有文件和子目录
for x in p.iterdir():
print(x)
# 获取上一级目录
p = Path('../')
# 获取上级目录及其所有子目录的.py文件
for x in p.glob('**/*.py'):
print(x)
# 获取C:\python\oldboy_python对应的目录
p = Path('C:\python\oldboy_python')
# 获取当前目录及其所有子目录下的.py文件
for x in p.glob('*/*.py'):
pri... | [
"xingzhishangyang@163.com"
] | xingzhishangyang@163.com |
d7a84329d908fe595fbc2ccd85423e994f1a0421 | 7aa56d50c4b5d830d2e81058554644ca907f7b97 | /poker.py | bf2dacb91a7d46f2fab9aab0c6c691bce76a2f15 | [] | no_license | XiaoqinLI/Design-of-Computer-Programs | f6111f1fcbf074e2f14573cb8124b8d8f4d5ace6 | 90c6a68271d41cb9f010fb19a0101efd5e19da27 | refs/heads/master | 2020-05-21T01:08:32.535853 | 2014-12-12T23:00:27 | 2014-12-12T23:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,430 | py | __author__ = 'daybreaklee'
# learned from CS212 Udacity
import random
import math
import itertools
from collections import defaultdict
def poker(hands):
"Return a list of winning hands: poker([hand,...]) => [hand,...]"
return allmax(hands, key = hand_rank)
def allmax(iterable, key=lambda x:x):
... | [
"daybreaklee@utexas.edu"
] | daybreaklee@utexas.edu |
9a6115e4c931d7901e43b6c2ffcd9946e00053c1 | c11b7bbf994087016256bdce73a0d1c85f69814f | /addons/facturacion_hc/models/models.py | 816c9d778c23af80626428823f8fcde7fc24b906 | [] | no_license | machahui/Odoo-Estandar-HC | b57b252fead45fac95c0153fce6895a355785485 | b1f0472f7e722498643118b7ff07699cb4ec1f2a | refs/heads/master | 2020-04-21T04:59:35.773656 | 2019-02-01T16:37:12 | 2019-02-01T16:37:12 | 169,328,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,058 | py |
# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from odoo.tools import float_compare
import decimal
class FactElecSerie(models.Model):
_name = 'factelec.serie'
name = fields.Char(string='Serie de Facturacion', size=4)
type_document_id = fields.Many2on... | [
"kelly.velarde@tecsup.edu.pe"
] | kelly.velarde@tecsup.edu.pe |
dca1942b0ebd3fb003ac034c809c075d6c5c592d | 3c661797ded99e539a0ffe09f010f3c7598467f2 | /code/zhihu_sentiment/han.py | 78faf815a14484f40b862caa7c832e58a0169987 | [] | no_license | qmh1234567/Tibet-analysis | a579a384e7e3bc6ca2f2414c3a2cc39d24f98776 | f9140c96ed9fe9a5d13ed52ea2c3b77af9d0d0b4 | refs/heads/master | 2021-10-18T15:23:21.966116 | 2019-01-12T02:48:34 | 2019-01-12T02:48:34 | 148,868,232 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | from pyhanlp import SafeJClass
import zipfile
import os
from pyhanlp.static import download, remove_file, HANLP_DATA_PATH
import sys
sys.path.append(r'../common/')
import file_op
# 测试数据路径
DATA_FILES_PATH = "./../../Resources/sentiment_folders/ChnSentiCorp" # 需修改
NaiveBayesClassifier = SafeJClass('com.hankcs.hanlp.... | [
"2640415930@qq.com"
] | 2640415930@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.